1 2007-02-18 Bruno Haible <bruno@clisp.org>
3 * modules/math-tests: New file.
4 * tests/test-math.c: New file.
6 * modules/math: New file.
7 * modules/mathl (Files): Remove lib/mathl.h.
8 (Depends-on): Add math.
9 (Makefile.am): Don't mention mathl.h.
10 (Include): Use <math.h> instead of mathl.h.
11 * lib/math_.h: New file.
12 * lib/mathl.h: Remove file.
13 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
15 * lib/asinl.c: Likewise.
16 * lib/atanl.c: Likewise.
17 * lib/ceill.c: Likewise.
18 * lib/cosl.c: Likewise.
19 * lib/expl.c: Likewise.
20 * lib/floorl.c: Likewise.
21 * lib/frexpl.c: Likewise.
22 * lib/ldexpl.c: Likewise.
23 * lib/logl.c: Likewise.
24 * lib/sincosl.c: Likewise.
25 * lib/sinl.c: Likewise.
26 * lib/sqrtl.c: Likewise.
27 * lib/tanl.c: Likewise.
28 * lib/trigl.c: Likewise.
29 * m4/math_h.m4: New file.
30 * MODULES.html.sh (Mathematics): Add math.
32 2007-02-17 Bruno Haible <bruno@clisp.org>
34 * modules/wctype-tests: New file.
35 * tests/test-wctype.c: New file.
37 * modules/wchar-tests: New file.
38 * tests/test-wchar.c: New file.
40 * modules/unistd-tests: New file.
41 * tests/test-unistd.c: New file.
43 * modules/time-tests: New file.
44 * tests/test-time.c: New file.
46 * modules/sysexits-tests: New file.
47 * tests/test-sysexits.c: New file.
49 * modules/sys_time-tests: New file.
50 * tests/test-sys_time.c: New file.
52 * modules/sys_stat-tests: New file.
53 * tests/test-sys_stat.c: New file.
55 * modules/sys_socket-tests: New file.
56 * tests/test-sys_socket.c: New file.
58 * modules/sys_select-tests: New file.
59 * tests/test-sys_select.c: New file.
61 * modules/string-tests: New file.
62 * tests/test-string.c: New file.
64 * modules/stdbool-tests: New file.
65 * tests/test-stdbool.c: New file.
67 * modules/netinet_in-tests: New file.
68 * tests/test-netinet_in.c: New file.
70 * modules/inttypes-tests: New file.
71 * tests/test-inttypes.c: New file.
73 * modules/fcntl-tests: New file.
74 * tests/test-fcntl.c: New file.
76 * modules/byteswap-tests: New file.
77 * tests/test-byteswap.c: New file.
79 * modules/arpa_inet-tests: New file.
80 * tests/test-arpa_inet.c: New file.
82 2007-02-17 Bruno Haible <bruno@clisp.org>
84 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
85 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
86 if the corresponding module is not enabled. Emit link warnings if
87 the function is used nevertheless.
88 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
89 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
90 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
91 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
92 * modules/inttypes (Depends-on): Add link-warning.
93 (Makefile.am): Copy the contents of build-aux/link-warning.h into
94 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
95 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
96 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
97 * modules/imaxdiv (configure.ac): Likewise.
98 * modules/strtoimax (configure.ac): Likewise.
99 * modules/strtoumax (configure.ac): Likewise.
101 2007-02-17 Bruno Haible <bruno@clisp.org>
103 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
104 gl_STRING_MODULE_INDICATOR_DEFAULTS.
105 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
106 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
108 2007-02-17 Bruno Haible <bruno@clisp.org>
110 * modules/link-warning: New file.
111 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
112 * lib/string_.h (GL_LINK_WARNING): Remove definition.
113 * modules/string (Depends-on): Add link-warning.
114 (Makefile.am): Copy the contents of build-aux/link-warning.h into
116 * MODULES.html.sh (Support for building libraries and executables): Add
119 2007-02-17 Bruno Haible <bruno@clisp.org>
121 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
122 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
123 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
126 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
127 Bruno Haible <bruno@clisp.org>
129 * modules/tmpfile: New file.
130 * lib/tmpfile.c: New file.
131 * m4/tmpfile.m4: New file.
132 * MODULES.html.sh (func_all_modules): New section "Input/output".
134 2007-02-15 Bruno Haible <bruno@clisp.org>
136 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
137 (supports_delete_on_close): New function.
138 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
140 2007-02-14 Bruno Haible <bruno@clisp.org>
142 * modules/mbspcasecmp-tests: New file.
143 * tests/test-mbspcasecmp.sh: New file.
144 * tests/test-mbspcasecmp.c: New file.
146 New module mbspcasecmp.
147 * modules/mbspcasecmp: New file.
148 * lib/mbspcasecmp.c: New file.
149 * lib/string_.h (strncasecmp): Change warning message.
150 (mbspcasecmp): New declaration.
151 * m4/mbspcasecmp.m4: New file.
152 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
154 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
155 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
157 2007-02-14 Bruno Haible <bruno@clisp.org>
159 * modules/mbsncasecmp-tests: New file.
160 * tests/test-mbsncasecmp.sh: New file.
161 * tests/test-mbsncasecmp.c: New file.
163 New module mbsncasecmp.
164 * modules/mbsncasecmp: New file.
165 * lib/mbsncasecmp.c: New file.
166 * lib/string_.h (mbsncasecmp): New declaration.
167 * m4/mbsncasecmp.m4: New file.
168 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
170 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
171 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
173 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
175 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
176 Verify that it doesn't overlap with our flags.
177 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
178 do not have the desired effect in multibyte locales; instead, use
180 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
181 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
182 we don't require GNU fnmatch ourselves (if our users require it, they
183 should do so explicitly).
185 Fix regex code so it doesn't rely on strcasecmp.
186 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
187 Otherwise, include gnulib's langinfo.h.
188 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
189 undesirable behavior in non-C locales. Instead, rely on localecharset.
190 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
191 * modules/regex (FILES): Remove m4/codeset.m4.
192 (Depends-on): Add localcharset. Remove strcase.
194 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
196 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
197 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
199 2007-02-13 Bruno Haible <bruno@clisp.org>
201 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
202 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
204 2007-02-12 Bruno Haible <bruno@clisp.org>
206 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
207 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
208 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
209 time warning rather than a link error.
211 2007-02-12 Bruno Haible <bruno@clisp.org>
213 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
214 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
215 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
217 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
219 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
222 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
224 New module 'time', so that apps can include <time.h> as per
225 POSIX and GNU instead of separate include files like time_r.h
226 and timegm.h. This implementation tries out a simpler approach
227 for replacing decls in standard include files (as compared to
228 the string module), somewhat as an experiment.
230 * config/srclist.txt: Comment out mktime.c for now.
231 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
232 since it doesn't apply any more. Use generic wording instead.
233 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
235 * lib/time_.h, m4/time_h.m4, modules/time: New files.
236 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
237 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
238 Don't include <sys/types.h>; no longer needed since we assume C89.
239 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
240 * lib/strftime.c: Likewise.
241 * lib/time_r.c: Likewise.
242 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
243 * lib/nanosleep.c: Include <time.h> first, to check interface.
244 * lib/strptime.c: Likewise.
245 * lib/time_r.c: Likewise.
246 * lib/timegm.c: Likewise.
247 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
249 * lib/timegm.c: Don't include timegm.h; no longer needed.
250 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
251 time.h now handles any problems in that area.
252 (struct timespec, nanosleep): Remove; time.h now arranges for these.
253 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
254 that time.h defines struct timespec.
255 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
256 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
258 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
259 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
260 needed. Set REPLACE_LOCALTIME.
261 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
262 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
263 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
264 nanosleep; time_h.m4 now does that. Don't require
265 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
266 module handles this now.
267 * modules/getdate (Depends-on): Remove timespec. Add time.
268 * modules/nanosleep (Depends-on): Likewise.
269 * modules/stat-time (Depends-on): Likewise.
270 * modules/nanosleep (Include): Include time.h, not timespec.h.
271 * modules/strptime (Files): Remove lib/strptime.h.
272 (Depends-on): Add extensions, time.
273 (Include): Include time.h, not strptime.h.
274 * modules/time_r (Files): Remove lib/time_r.h.
275 (Depends-on): Add time.
276 (Include): Include time.h, not time_r.h.
277 * modules/timegm: Likewise.
278 * modules/timespec (Description): Now does timespec-related decls
279 of our own, instead of struct timespec itself.
280 (Depends-on): Add time; remove extensions.
281 (Maintainer): Add self.
282 * modules/utimecmp (Depends-on): Add time; remove timespec.
283 * modules/utimens (Depends-on): Likewise.
284 * modules/xnanosleep (Depends-on): Likewise.
286 2007-02-11 Bruno Haible <bruno@clisp.org>
288 * lib/c-strstr.c: Include allocsa.h.
289 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
290 * lib/c-strcasestr.c: Include allocsa.h.
291 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
292 * lib/strcasestr.c: Include allocsa.h.
293 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
294 * lib/mbsstr.c: Include allocsa.h.
295 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
296 allocsa/freesa instead of malloc/free.
297 * lib/mbscasestr.c: Include allocsa.h.
298 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
299 allocsa/freesa instead of malloc/free.
300 * modules/c-strstr (Depends-on): Add allocsa.
301 * modules/c-strcasestr (Depends-on): Likewise.
302 * modules/strcasestr (Depends-on): Likewise.
303 * modules/mbsstr (Depends-on): Likewise.
304 * modules/mbscasestr (Depends-on): Likewise.
306 2007-02-11 Bruno Haible <bruno@clisp.org>
308 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
310 * modules/mbsspn-tests: New file.
311 * tests/test-mbsspn.sh: New file.
312 * tests/test-mbsspn.c: New file.
314 2007-02-11 Bruno Haible <bruno@clisp.org>
316 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
318 * modules/mbspbrk-tests: New file.
319 * tests/test-mbspbrk.sh: New file.
320 * tests/test-mbspbrk.c: New file.
322 2007-02-11 Bruno Haible <bruno@clisp.org>
324 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
327 * modules/mbscspn-tests: New file.
328 * tests/test-mbscspn.sh: New file.
329 * tests/test-mbscspn.c: New file.
331 2007-02-11 Bruno Haible <bruno@clisp.org>
333 * modules/mbscasecmp-tests: New file.
334 * tests/test-mbscasecmp.sh: New file.
335 * tests/test-mbscasecmp.c: New file.
337 2007-02-11 Bruno Haible <bruno@clisp.org>
339 Ensure O(n) worst-case complexity of mbscasestr.
340 * lib/mbscasestr.c: Include stdbool.h.
341 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
343 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
344 the bookkeeping indicates that it's worth it.
345 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
347 * modules/mbscasestr-tests: New file.
348 * tests/test-mbscasestr1.c: New file.
349 * tests/test-mbscasestr2.sh: New file.
350 * tests/test-mbscasestr2.c: New file.
351 * tests/test-mbscasestr3.sh: New file.
352 * tests/test-mbscasestr3.c: New file.
353 * tests/test-mbscasestr4.sh: New file.
354 * tests/test-mbscasestr4.c: New file.
355 * m4/locale-tr.m4: New file.
357 2007-02-11 Bruno Haible <bruno@clisp.org>
359 Ensure O(n) worst-case complexity of mbsstr.
360 * lib/mbsstr.c: Include stdbool.h.
361 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
363 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
364 bookkeeping indicates that it's worth it.
365 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
367 * modules/mbsstr-tests: New file.
368 * tests/test-mbsstr1.c: New file.
369 * tests/test-mbsstr2.sh: New file.
370 * tests/test-mbsstr2.c: New file.
371 * tests/test-mbsstr3.sh: New file.
372 * tests/test-mbsstr3.c: New file.
373 * m4/locale-fr.m4: New file.
375 2007-02-11 Bruno Haible <bruno@clisp.org>
377 * lib/mbsrchr.c (mbsrchr): Fix bug.
379 * modules/mbsrchr-tests: New file.
380 * tests/test-mbsrchr.sh: New file.
381 * tests/test-mbsrchr.c: New file.
383 2007-02-11 Bruno Haible <bruno@clisp.org>
385 * lib/mbschr.c (mbschr): Fix bug.
387 * modules/mbschr-tests: New file.
388 * tests/test-mbschr.sh: New file.
389 * tests/test-mbschr.c: New file.
390 * m4/locale-zh.m4: New file.
392 2007-02-11 Bruno Haible <bruno@clisp.org>
394 Support for copying multibyte string iterators.
395 * lib/mbiter.h: Include <string.h>.
396 (mbiter_multi_copy): New function.
397 (mbi_copy): New macro.
398 * lib/mbuiter.h: Include <string.h>.
399 (mbuiter_multi_copy): New function.
400 (mbui_copy): New macro.
402 2007-02-11 Bruno Haible <bruno@clisp.org>
405 * modules/mbslen: New file.
406 * lib/mbslen.c: New file.
407 * lib/string_.h (mbslen): New declaration.
408 * m4/mbslen.m4: New file.
409 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
411 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
412 * MODULES.html.sh (Internationalization functions): Add mbslen.
414 2007-02-11 Bruno Haible <bruno@clisp.org>
416 Ensure O(n) worst-case complexity of strcasestr substitute.
417 * lib/strcasestr.c: Include stdbool.h.
418 (knuth_morris_pratt): New function.
419 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
420 bookkeeping indicates that it's worth it.
421 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
423 * modules/strcasestr-tests: New file.
424 * tests/test-strcasestr.c: New file.
426 2007-02-11 Bruno Haible <bruno@clisp.org>
428 Ensure O(n) worst-case complexity of c_strcasestr.
429 * lib/c-strcasestr.c: Include stdbool.h, string.h.
430 (knuth_morris_pratt): New function.
431 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
432 the bookkeeping indicates that it's worth it.
433 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
435 * modules/c-strcasestr-tests: New file.
436 * tests/test-c-strcasestr.c: New file.
438 2007-02-11 Bruno Haible <bruno@clisp.org>
440 Ensure O(n) worst-case complexity of c_strstr.
441 * lib/c-strstr.c: Include stdbool.h, string.h.
442 (knuth_morris_pratt): New function.
443 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
444 bookkeeping indicates that it's worth it.
445 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
447 * lib/c-strstr.c: Complete rewrite for maintainability.
449 * modules/c-strstr-tests: New file.
450 * tests/test-c-strstr.c: New file.
452 2007-02-11 Bruno Haible <bruno@clisp.org>
454 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
455 5.2.1 and earlier, whereby \055 was treated just like the range
456 delimiter '-'. Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
458 2007-02-08 Bruno Haible <bruno@clisp.org>
460 * modules/regex (Depends-on): Add stdbool.
461 Reported by Dalibor Topic <robilad@kaffe.org>.
463 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
465 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
466 Prefer returning from main to exiting from it.
467 Remove unnecessary parens after sizeof.
469 2007-02-05 Bruno Haible <bruno@clisp.org>
472 * modules/mbssep: New file.
473 * lib/mbssep.c: New file.
474 * lib/string_.h (strsep): Add a conditional link warning.
475 (mbssep): New declaration.
476 * m4/mbssep.m4: New file.
477 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
479 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
480 * MODULES.html.sh (Internationalization functions): Add mbssep.
482 2007-02-05 Bruno Haible <bruno@clisp.org>
484 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
485 Optimize search in case of 1 delimiter.
487 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
489 * lib/acl.h: Include sys/types.h before sys/acl.h.
491 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
493 Merge upstream fix for glibc bugzilla #3957:
495 2007-02-05 Jakub Jelinek <jakub@redhat.com>
497 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
498 bit for RE_HAT_LISTS_NOT_NEWLINE.
499 (build_charclass_op): Remove bogus comment.
501 2007-02-05 Simon Josefsson <simon@josefsson.org>
503 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
505 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
507 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
508 * lib/memmem.c [!defined _LIBC]: Include config.h.
510 2007-02-04 Bruno Haible <bruno@clisp.org>
512 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
515 2007-02-04 Bruno Haible <bruno@clisp.org>
518 * modules/mbstok_r: New file.
519 * lib/mbstok_r.c: New file.
520 * lib/string_.h (strtok_r): Change argument names to match the
521 comments. Add a conditional link warning.
522 (mbstok_r): New declaration.
523 * m4/mbstok_r.m4: New file.
524 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
526 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
527 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
529 2007-02-04 Bruno Haible <bruno@clisp.org>
532 * modules/mbsspn: New file.
533 * lib/mbsspn.c: New file.
534 * lib/string_.h (strspn): Add a conditional link warning.
535 (mbsspn): New declaration.
536 * m4/mbsspn.m4: New file.
537 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
539 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
540 * MODULES.html.sh (Internationalization functions): Add mbsspn.
542 2007-02-04 Bruno Haible <bruno@clisp.org>
545 * modules/mbspbrk: New file.
546 * lib/mbspbrk.c: New file.
547 * lib/string_.h (strpbrk): Add a conditional link warning.
548 (mbspbrk): New declaration.
549 * m4/mbspbrk.m4: New file.
550 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
552 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
553 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
555 2007-02-04 Bruno Haible <bruno@clisp.org>
558 * modules/mbscspn: New file.
559 * lib/mbscspn.c: New file.
560 * lib/string_.h (strcspn): Add a conditional link warning.
561 (mbscspn): New declaration.
562 * m4/mbscspn.m4: New file.
563 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
565 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
566 * MODULES.html.sh (Internationalization functions): Add mbscspn.
568 2007-02-04 Bruno Haible <bruno@clisp.org>
570 New module mbscasestr, reduced goal of strcasestr.
571 * modules/mbscasestr: New file.
572 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
573 (mbscasestr): Renamed from strcasestr.
574 * lib/strcasestr.c: Don't include mbuiter.h.
575 (strcasestr): Remove support for multibyte locales.
576 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
577 Change the conditional link warning.
578 (mbscasestr): New declaration.
579 * m4/mbscasestr.m4: New file.
580 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
581 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
583 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
584 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
585 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
586 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
587 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
588 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
589 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
590 (Depends-on): Remove mbuiter.
591 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
593 2007-02-04 Bruno Haible <bruno@clisp.org>
595 Simplify handling of strncasecmp.
596 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
597 the conditional link warning.
598 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
599 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
600 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
601 * modules/strcase (configure.ac): Don't invoke
602 gl_STRING_MODULE_INDICATOR.
603 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
605 2007-02-04 Bruno Haible <bruno@clisp.org>
607 New module mbscasecmp, reduced goal of strcasecmp.
608 * modules/mbscasecmp: New file.
609 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
610 (mbscasecmp): Renamed from strcasecmp.
611 * lib/strcasecmp.c: Don't include mbuiter.h.
612 (strcasecmp): Remove support for multibyte locales.
613 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
614 Change the conditional link warning.
615 (mbscasecmp): New declaration.
616 * m4/mbscasecmp.m4: New file.
617 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
618 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
620 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
621 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
623 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
624 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
625 * modules/strcase (Files): Remove m4/mbrtowc.m4.
626 (Depends-on): Remove mbuiter.
627 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
629 2007-02-04 Bruno Haible <bruno@clisp.org>
631 New module mbsstr. Remove module strstr.
632 * modules/mbsstr: New file.
633 * modules/strstr: Remove file.
634 * lib/mbsstr.c: Renamed from lib/strstr.c.
635 (mbsstr): Renamed from strstr.
636 * lib/string_.h (strstr): Remove declaration. Change the conditional
638 (mbsstr): New declaration.
639 * m4/mbsstr.m4: New file.
640 * m4/strstr.m4: Remove file.
641 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
643 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
644 Don't initialize GNULIB_STRSTR.
645 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
646 substitute GNULIB_STRSTR and REPLACE_STRSTR.
647 * MODULES.html.sh (Internationalization functions): Add mbsstr.
648 (Support for systems lacking ANSI C 89): Remove strstr.
650 2007-02-04 Bruno Haible <bruno@clisp.org>
653 * modules/mbsrchr: New file.
654 * lib/mbsrchr.c: New file.
655 * lib/string_.h (strrchr): Add a conditional link warning.
656 (mbsrchr): New declaration.
657 * m4/mbsrchr.m4: New file.
658 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
660 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
661 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
663 2007-02-04 Bruno Haible <bruno@clisp.org>
666 * modules/mbschr: New file.
667 * lib/mbschr.c: New file.
668 * lib/string_.h (strchr): Add a conditional link warning.
669 (mbschr): New declaration.
670 * m4/mbschr.m4: New file.
671 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
673 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
674 * MODULES.html.sh (Internationalization functions): Add mbschr.
676 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
678 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
680 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
682 2007-02-04 Bruno Haible <bruno@clisp.org>
684 New module description section 'configure.ac-early'.
685 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
686 (func_get_autoconf_early_snippet): New function.
687 (func_import, func_create_testdir): Use it. Remove special cases for
688 modules 'extensions' and 'lock'.
689 * modules/extensions (configure.ac-early): Require
690 gl_USE_SYSTEM_EXTENSIONS.
691 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
693 2007-02-04 Bruno Haible <bruno@clisp.org>
695 Make use of gcj-4.3's -fsource and -ftarget option.
696 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
697 and if so try the options -fsource and -ftarget.
698 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
699 source_version, ftarget_option, target_version arguments.
700 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
701 (is_envjavac_oldgcj_14_14_usable): Renamed from
702 is_envjavac_gcj_14_14_usable.
703 (is_envjavac_oldgcj_14_13_usable): Renamed from
704 is_envjavac_gcj_14_13_usable.
705 (is_gcj_present): Update.
706 (is_gcj_43, is_gcj43_usable): New functions.
707 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
708 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
709 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
710 try the options -fsource and -ftarget.
712 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
714 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
715 checking code. Set N = ceil (1.5 * N) rather than to a slightly
718 2007-02-03 Jim Meyering <jim@meyering.net>
720 Give tools a better chance to allocate space for very large buffers.
721 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
723 Make pwd and readlink work also when run with an unreadable parent dir
724 on systems with openat support.
725 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
726 provided getcwd function, even when we have openat support.
727 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
729 2007-02-02 Bruno Haible <bruno@clisp.org>
731 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
732 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
733 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
734 portability problems if one of these functions is only used on specific
736 Reported by Paul Eggert.
738 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
740 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
741 is causing more trouble than it's curing.
742 * lib/regex_internal.h (__mempcpy): Remove.
743 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
744 (and make the code a tad smaller to boot).
745 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
747 2007-02-02 Jim Meyering <jim@meyering.net>
749 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
750 section, not in the Makefile.am: one.
752 2007-02-02 Eric Blake <ebb9@byu.net>
754 * lib/strchrnul.c: Always include config.h first.
756 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
757 gnulib strstr is not necessary here.
759 2007-02-02 Simon Josefsson <simon@josefsson.org>
761 * m4/socklen.m4: Fix typo.
763 2007-02-02 Eric Blake <ebb9@byu.net>
765 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
766 * modules/netinet_in (Makefile.am): Likewise.
768 2007-02-01 Bruno Haible <bruno@clisp.org>
770 * lib/string_.h (GL_LINK_WARNING): New macro.
771 (strcasecmp, strstr, strcasestr): If provided by the system,
772 conditionally define as a macro that leads to a warning instead of to
774 (strncasecmp): Conditionally define as a macro that leads to a warning.
776 2007-02-01 Jim Meyering <jim@meyering.net>
778 Give tools a better chance to allocate space for very large buffers.
779 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
781 2007-02-01 Karl Berry <karl@gnu.org>
783 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
785 2007-02-01 Bruno Haible <bruno@clisp.org>
787 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
790 2007-02-01 Eric Blake <ebb9@byu.net>
792 * modules/regex (Depends-on): Revert dependence on mempcpy.
793 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
794 module's definition of mempcpy.
795 Reported by Paul Eggert.
797 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
799 * lib/string_.h: If the gnulib module XYZ is not present, undefine
800 the symbol XYZ before redefining it. This fixes a problem with
801 programs that don't use XYZ, when compiled on systems that define
802 XYZ to something else.
804 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
806 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
807 occurs when "mkdir -m foo" creates a setgid directory that is (1)
808 writeable to group or other and (2) is intended to have a special
809 mode bit that is set or cleared. In such a case, the directory
810 should be neither group- nor other-writeable until the special
813 2007-01-31 Eric Blake <ebb9@byu.net>
815 * modules/mountlist (Depends-on): Add strstr.
817 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
819 * modules/string (Makefile.am): Remove redundant replacement.
820 * modules/regex (Depends-on): Add mempcpy.
822 2007-01-31 Bruno Haible <bruno@clisp.org>
824 New module description field 'Link'.
825 * gnulib-tool (func_usage): Document --extract-link-directive.
826 (sed_extract_prog): Recognize 'Link' directive.
827 (func_get_link_directive): New function.
828 (func_import): Show summary of link directives.
829 Handle --extract-link-directive option.
830 * modules/acl (Link): New section.
831 * modules/clock-time (Link): New section.
832 * modules/euidaccess (Link): New section.
833 * modules/gettext (Link): New section.
834 * modules/iconv (Link): New section.
835 * modules/lock (Link): New section.
836 * modules/nanosleep (Link): New section.
837 * modules/readline (Link): New section.
839 2007-01-27 Bruno Haible <bruno@clisp.org>
841 Enforce the use of gnulib modules for unportable <string.h> functions.
842 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
843 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
844 (gl_HEADER_STRING_H_BODY): Require it.
845 * lib/string_.h: If the gnulib module XYZ is not present, redefine
846 the symbol XYZ to one that gives a link error.
847 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
848 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
849 * modules/mempcpy (configure.ac): Likewise.
850 * modules/memrchr (configure.ac): Likewise.
851 * modules/stpcpy (configure.ac): Likewise.
852 * modules/stpncpy (configure.ac): Likewise.
853 * modules/strcase (configure.ac): Likewise.
854 * modules/strcasestr (configure.ac): Likewise.
855 * modules/strchrnul (configure.ac): Likewise.
856 * modules/strdup (configure.ac): Likewise.
857 * modules/strndup (configure.ac): Likewise.
858 * modules/strnlen (configure.ac): Likewise.
859 * modules/strpbrk (configure.ac): Likewise.
860 * modules/strsep (configure.ac): Likewise.
861 * modules/strstr (configure.ac): Likewise.
862 * modules/strtok_r (configure.ac): Likewise.
864 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
866 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
868 2007-01-30 Jim Meyering <jim@meyering.net>
870 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
872 2007-01-29 Bruno Haible <bruno@clisp.org>
874 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
875 * lib/execute.c: Likewise.
876 * lib/pipe.c: Likewise.
877 * lib/printf-args.h: Likewise.
878 * lib/printf-args.c: Likewise.
879 * lib/printf-parse.c: Likewise.
880 * lib/vasnprintf.c: Likewise.
882 2007-01-29 Eric Blake <ebb9@byu.net>
884 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
887 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
889 * lib/strptime.h (strptime): Use 'restrict' for args where
891 * lib/strptime.c (strptime): Likewise.
892 Change license notice from LGPL to GPL, since gnulib-tool will
893 change this as needed.
894 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
896 Include "strptime.h" first, to check interface.
897 Do not #undef _LIBC and _NL_CURRENT.
898 Do not include <stdlib.h>; no longer needed.
899 Include "time_r.h" and declare ptime_locale_status
900 only if _LIBC is not defined.
901 (__P): Remove unused macro.
902 (match_string): Bring back glibc version, but use it only if _LIBC
904 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
905 Remove unnecessary assertion and abort() call.
906 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
907 * m4/strptime.m4: Fix serial number comment.
908 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
909 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
910 (Depends-on): Add time_r.
912 2007-01-29 Bruno Haible <bruno@clisp.org>
914 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
916 * modules/strptime (Depends-on): Add stdbool.
917 * lib/strptime.h: Include <time.h> always. Add comments.
919 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
921 * modules/strptime: New file.
922 * lib/strptime.h: New file.
923 * lib/strptime.c: New file.
924 * m4/strptime.m4: New file.
926 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
928 * MODULES.html.sh: New module mpsort.
929 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
931 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
932 a circularity problem with HP-UX ia64 reported by Bob Proulx in
933 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
935 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
937 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
939 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
940 the parameter matches the prototype.
942 2007-01-28 Jim Meyering <jim@meyering.net>
944 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
945 sys/time.h here, reverting that part of the previous patch:
946 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
948 2007-01-28 Bruno Haible <bruno@clisp.org>
950 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
951 value of $(SYS_TIME_H).
952 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
953 remove it conditionally, too. [added by Jim Meyering]
954 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
955 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
956 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
957 GETTIMEOFDAY_REPLACEMENT to 1.
959 2007-01-28 Bruno Haible <bruno@clisp.org>
961 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
962 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
963 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
964 Set UNISTD_H instead of UNISTD_H2.
965 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
967 2007-01-28 Bruno Haible <bruno@clisp.org>
969 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
970 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
972 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
974 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
975 (func_create_testdir): Ensure C locale for `grep' and `tr'
977 (func_create_megatestdir): Avoid one `grep'. Fix bug in
978 ACLOCAL_AMFLAGS parsing state machine.
980 2007-01-27 Bruno Haible <bruno@clisp.org>
982 * modules/unistr/base: Update.
984 2007-01-27 Bruno Haible <bruno@clisp.org>
986 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
987 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
988 * modules/unistr/u32-mbtouc-unsafe: Renamed from
989 modules/unistr/u32-mbtouc.
990 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
991 * lib/unistr.h: Update.
992 * lib/linebreak.c: Update.
993 * modules/unistr/u32-mbtouc: Renamed from
994 modules/unistr/u32-mbtouc-safe.
995 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
996 * lib/unistr.h: Update.
997 * lib/unistr/u32-to-u8.c: Update.
998 * lib/unistr/u32-to-u16.c: Update.
1000 2007-01-27 Bruno Haible <bruno@clisp.org>
1002 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
1003 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
1004 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
1005 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
1006 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
1007 * modules/unistr/u16-mbtouc-unsafe: Renamed from
1008 modules/unistr/u16-mbtouc.
1009 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
1010 * lib/unistr.h: Update.
1011 * lib/linebreak.c: Update.
1012 * modules/linebreak: Update.
1013 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
1014 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
1015 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
1016 * modules/unistr/u16-mbtouc: Renamed from
1017 modules/unistr/u16-mbtouc-safe.
1018 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
1019 * lib/unistr.h: Update.
1020 * lib/unistr/u16-to-u8.c: Update.
1021 * modules/unistr/u16-to-u8: Update.
1022 * lib/unistr/u16-to-u32.c: Update.
1023 * modules/unistr/u16-to-u32: Update.
1025 2007-01-27 Bruno Haible <bruno@clisp.org>
1027 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
1028 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
1029 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
1030 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
1031 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
1032 * modules/unistr/u8-mbtouc-unsafe: Renamed from
1033 modules/unistr/u8-mbtouc.
1034 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
1035 * lib/unistr.h: Update.
1036 * lib/striconveh.c: Update.
1037 * modules/striconveh: Update.
1038 * lib/linebreak.c: Update.
1039 * modules/linebreak: Update.
1040 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
1041 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
1042 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
1043 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
1044 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
1045 * lib/unistr.h: Update.
1046 * lib/striconveh.c: Update.
1047 * modules/striconveh: Update.
1048 * lib/unistr/u8-to-u16.c: Update.
1049 * modules/unistr/u8-to-u16: Update.
1050 * lib/unistr/u8-to-u32.c: Update.
1051 * modules/unistr/u8-to-u32: Update.
1053 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1056 * lib/argz.c: Do not include strings.h nor memory.h, include
1057 string.h unconditionally. Patch by Simon Josefsson.
1059 2007-01-27 Bruno Haible <bruno@clisp.org>
1061 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
1062 from gl_HEADER_STRING_H_BODY.
1063 (gl_HEADER_STRING_H_BODY): Require it.
1064 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
1065 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
1066 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
1067 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
1068 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
1069 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
1070 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1071 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
1072 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
1073 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
1074 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
1075 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
1076 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
1077 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1078 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
1080 2007-01-27 Bruno Haible <bruno@clisp.org>
1082 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
1083 check_PROGRAMS into noinst_PROGRAMS.
1084 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
1085 check_PROGRAMS in this case.
1086 (func_import): Set for_test to false.
1087 (func_create_testdir): Set for_test to true.
1089 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1090 Bruno Haible <bruno@clisp.org>
1092 * modules/strcasestr (Files): Remove lib/strcasestr.h.
1093 (Depends-on): Add string.
1094 (Includes): Use <string.h> instead of strcasestr.h.
1095 * modules/string (Makefile.am): Also substitute the value of
1097 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
1098 assume strcasestr is declared in <string.h> not <strings.h>. Also
1099 set REPLACE_STRCASESTR.
1100 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
1102 * lib/strcasestr.h: Remove file.
1103 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
1104 * lib/string_.h (strcasestr): New declaration.
1106 2007-01-27 Bruno Haible <bruno@clisp.org>
1108 * lib/string_.h: Use 'extern'.
1110 2007-01-27 Jim Meyering <jim@meyering.net>
1112 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
1113 of set-but-not-used local, "q".
1115 * lib/mempcpy.c: Include <config.h> before <string.h>.
1116 This fixes a compilation error on HP-UX, due to the system's
1117 "restrict"-using mempcpy prototype.
1119 2007-01-26 Bruno Haible <bruno@clisp.org>
1122 * lib/javacomp.c: Include c-strstr.h.
1123 (is_envjavac_gcj): Use c_strstr instead of strstr.
1124 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
1126 2007-01-26 Bruno Haible <bruno@clisp.org>
1128 * MODULES.html.sh (Unicode string functions): Add the new modules.
1130 * modules/uniconv/u32-strconv-to-locale: New file.
1131 * lib/uniconv/u32-strconv-to-locale.c: New file.
1133 * modules/uniconv/u16-strconv-to-locale: New file.
1134 * lib/uniconv/u16-strconv-to-locale.c: New file.
1136 * modules/uniconv/u8-strconv-to-locale: New file.
1137 * lib/uniconv/u8-strconv-to-locale.c: New file.
1139 * modules/uniconv/u32-strconv-from-locale: New file.
1140 * lib/uniconv/u32-strconv-from-locale.c: New file.
1142 * modules/uniconv/u16-strconv-from-locale: New file.
1143 * lib/uniconv/u16-strconv-from-locale.c: New file.
1145 * modules/uniconv/u8-strconv-from-locale: New file.
1146 * lib/uniconv/u8-strconv-from-locale.c: New file.
1148 * modules/uniconv/u32-strconv-to-enc: New file.
1149 * lib/uniconv/u32-strconv-to-enc.c: New file.
1150 * modules/uniconv/u32-strconv-to-enc-tests: New file.
1151 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
1153 * modules/uniconv/u16-strconv-to-enc: New file.
1154 * lib/uniconv/u16-strconv-to-enc.c: New file.
1155 * lib/uniconv/u-strconv-to-enc.h: New file.
1156 * modules/uniconv/u16-strconv-to-enc-tests: New file.
1157 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
1159 * modules/uniconv/u8-strconv-to-enc: New file.
1160 * lib/uniconv/u8-strconv-to-enc.c: New file.
1161 * modules/uniconv/u8-strconv-to-enc-tests: New file.
1162 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
1164 * modules/uniconv/u32-strconv-from-enc: New file.
1165 * lib/uniconv/u32-strconv-from-enc.c: New file.
1166 * modules/uniconv/u32-strconv-from-enc-tests: New file.
1167 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
1169 * modules/uniconv/u16-strconv-from-enc: New file.
1170 * lib/uniconv/u16-strconv-from-enc.c: New file.
1171 * modules/uniconv/u16-strconv-from-enc-tests: New file.
1172 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
1174 * modules/uniconv/u8-strconv-from-enc: New file.
1175 * lib/uniconv/u8-strconv-from-enc.c: New file.
1176 * lib/uniconv/u-strconv-from-enc.h: New file.
1177 * modules/uniconv/u8-strconv-from-enc-tests: New file.
1178 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
1180 * modules/uniconv/u32-conv-from-enc: New file.
1181 * lib/uniconv/u32-conv-from-enc.c: New file.
1182 * modules/uniconv/u32-conv-from-enc-tests: New file.
1183 * tests/uniconv/test-u32-conv-from-enc.c: New file.
1185 * modules/uniconv/u16-conv-from-enc: New file.
1186 * lib/uniconv/u16-conv-from-enc.c: New file.
1187 * lib/uniconv/u-conv-from-enc.h: New file.
1188 * modules/uniconv/u16-conv-from-enc-tests: New file.
1189 * tests/uniconv/test-u16-conv-from-enc.c: New file.
1191 * modules/uniconv/u8-conv-from-enc: New file.
1192 * lib/uniconv/u8-conv-from-enc.c: New file.
1193 * modules/uniconv/u8-conv-from-enc-tests: New file.
1194 * tests/uniconv/test-u8-conv-from-enc.c: New file.
1196 * modules/uniconv/base: New file.
1197 * lib/uniconv.h: New file.
1199 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
1201 * doc/gnulib-tool.texi (Initial import): Update to match current
1202 behavior with strdup module.
1203 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
1204 * lib/memmem.h: Remove; all uses removed. This is now done
1206 * lib/mempcpy.h: Likewise.
1207 * lib/memrchr.h: Likewise.
1208 * lib/stpcpy.h: Likewise.
1209 * lib/stpncpy.h: Likewise.
1210 * lib/strcase.h: Likewise.
1211 * lib/strchrnul.h: Likewise.
1212 * lib/strdup.h: Likewise.
1213 * lib/strndup.h: Likewise.
1214 * lib/strnlen.h: Likewise.
1215 * lib/strpbrk.h: Likewise.
1216 * lib/strsep.h: Likewise.
1217 * lib/strstr.h: Likewise.
1218 * lib/strtok_r.h: Likewise.
1219 * lib/string_.h: New file.
1220 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
1221 Rely on <string.h> instead.
1222 * lib/canon-host.c: Likewise.
1223 * lib/chdir-long.c: Likewise.
1224 * lib/concatpath.c: Likewise.
1225 * lib/exclude.c: Likewise.
1226 * lib/fchdir.c: Likewise.
1227 * lib/getaddrinfo.c: Likewise.
1228 * lib/getcwd.c: Likewise.
1229 * lib/getsubopt.c: Likewise.
1230 * lib/glob.c: Likewise.
1231 * lib/hard-locale.c: Likewise.
1232 * lib/iconvme.c: Likewise.
1233 * lib/javacomp.c: Likewise.
1234 * lib/mempcpy.c: Likewise.
1235 * lib/memrchr.c: Likewise.
1236 * lib/regex_internal.h: Likewise.
1237 * lib/stpncpy.c: Likewise.
1238 * lib/strcasecmp.c: Likewise.
1239 * lib/strchrnul.c: Likewise.
1240 * lib/strdup.c: Likewise.
1241 * lib/striconv.c: Likewise.
1242 * lib/striconveh.c: Likewise.
1243 * lib/striconveha.c: Likewise.
1244 * lib/strncasecmp.c: Likewise.
1245 * lib/strndup.c: Likewise.
1246 * lib/strnlen.c: Likewise.
1247 * lib/strsep.c: Likewise.
1248 * lib/strstr.c: Likewise.
1249 * lib/strtok_r.c: Likewise.
1250 * lib/userspec.c: Likewise.
1251 * lib/w32spawn.h: Likewise.
1252 * lib/xstrndup.c: Likewise.
1253 * lib/mountlist.c (strstr): Remove decl.
1254 * m4/string_h.m4: New file.
1255 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
1256 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
1257 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
1258 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
1259 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
1260 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
1261 Set REPLACE_STRCASECMP if necessary.
1262 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
1263 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
1264 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
1265 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
1266 HAVE_DECL_STRDUP if necessary.
1267 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
1268 since gl_FUNC_STRNDUP does that now.
1269 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
1270 Check for decl here...
1271 (gl_PREREQ_STRNLEN): ... not here.
1272 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
1273 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
1274 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
1275 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
1277 * modules/string: New file.
1278 * modules/memmem (Files): Remove special-purpose include file.
1279 (Depends-on): Add string.
1280 (Include): Include <string.h>, not the removed file.
1281 * modules/mempcpy: Likewise.
1282 * modules/memrchr: Likewise.
1283 * modules/stpcpy: Likewise.
1284 * modules/stpncpy: Likewise.
1285 * modules/strcase: Likewise.
1286 * modules/strchrnul: Likewise.
1287 * modules/strdup: Likewise.
1288 * modules/strndup: Likewise.
1289 * modules/strnlen: Likewise.
1290 * modules/strpbrk: Likewise.
1291 * modules/strsep: Likewise.
1292 * modules/strstr: Likewise.
1293 * modules/strtok_r: Likewise.
1294 * tests/test-dirname.c: Don't include "strdup.h", since
1295 <string.h> now suffices.
1296 * tests/test-memmem.c: Don't include "memmem.h", since
1297 <string.h> now suffices.
1299 2007-01-25 Bruno Haible <bruno@clisp.org>
1301 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
1304 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
1305 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
1306 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
1307 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
1309 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
1310 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
1311 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
1312 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
1313 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
1314 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
1316 2007-01-24 Bruno Haible <bruno@clisp.org>
1318 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
1319 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
1320 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
1321 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
1323 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
1324 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
1325 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
1326 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
1327 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
1328 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
1330 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
1332 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
1333 Reported by Ralf Wildenhues.
1335 2007-01-24 Bruno Haible <bruno@clisp.org>
1337 Drop AC_REQUIRE calls that are redundant with the module dependencies.
1338 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
1340 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
1341 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
1342 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
1344 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
1346 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
1347 Don't use 'exit'; just return from 'main'.
1348 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
1350 * lib/fnmatch_.h: Readjust white space and comments to match
1351 glibc, to avoid spurious diffs.
1353 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
1355 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
1356 2004-12-01 change by Jakub Jelinek, since this code won't compile
1357 if !LIBC. Problem reported by Bob Proulx.
1359 2007-01-23 Bruno Haible <bruno@clisp.org>
1361 * lib/striconveh.c: Include c-strcaseeq.h.
1362 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
1363 * modules/striconveh (Depends-on): Add c-strcaseeq.
1365 2007-01-23 Bruno Haible <bruno@clisp.org>
1367 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
1369 * modules/c-strcaseeq: New file.
1370 * lib/c-strcaseeq.h: New file.
1372 * modules/streq: New file.
1373 * lib/streq.h: New file.
1375 2007-01-23 Bruno Haible <bruno@clisp.org>
1377 * modules/striconveha-tests: New file.
1378 * tests/test-striconveha.c: New file.
1380 * lib/striconveha.h: Include <stdbool.h>.
1381 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
1382 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
1383 (mem_iconveha_notranslit): Renamed from mem_iconveha.
1384 (mem_iconveha): New function.
1385 (str_iconveha_notranslit): Renamed from str_iconveha.
1386 (str_iconveha): New function.
1387 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
1390 2007-01-23 Bruno Haible <bruno@clisp.org>
1392 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
1393 encodings without forgiving before trying any encoding with handler.
1394 (str_iconveha): Try all encodings without forgiving before trying any
1395 encoding with handler.
1397 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
1399 Import the following changes from libc.
1401 2005-10-14 Ulrich Drepper <drepper@redhat.com>
1403 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
1405 2004-12-01 Jakub Jelinek <jakub@redhat.com>
1407 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
1408 normal_bracket label.
1410 2004-09-01 Jakub Jelinek <jakub@redhat.com>
1413 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
1414 to normal_bracket after fetching the next character.
1416 2007-01-22 Bruno Haible <bruno@clisp.org>
1418 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
1420 * lib/striconveh.c (iconv_carefully_1): New function.
1421 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
1423 (str_cd_iconveh): Update.
1424 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
1425 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
1426 * tests/test-striconveh.c (MAGIC): New macro.
1427 (new_offsets): New function.
1428 (main): Test call with and without offsets.
1430 2007-01-22 Bruno Haible <bruno@clisp.org>
1432 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
1433 * modules/sys_select (Makefile.am): Likewise.
1434 * modules/sys_socket (Makefile.am): Likewise.
1435 * modules/sys_time (Makefile.am): Likewise.
1437 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
1439 * modules/gettimeofday (License): Change from GPL to LGPL, since
1440 gettimeofday is a library function.
1442 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1444 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
1446 2007-01-21 Bruno Haible <bruno@clisp.org>
1448 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
1450 2007-01-21 Bruno Haible <bruno@clisp.org>
1452 * modules/striconveha: New file.
1453 * lib/striconveha.h: New file.
1454 * lib/striconveha.c: New file.
1455 * MODULES.html.sh (Internationalization functions): Add striconveha.
1456 * lib/striconv.c (str_iconv): Optimize the case of an empty input
1458 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
1460 2007-01-21 Bruno Haible <bruno@clisp.org>
1462 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
1463 * lib/striconveh.c (str_iconveh): Likewise.
1465 2007-01-21 Bruno Haible <bruno@clisp.org>
1467 * lib/striconveh.h (mem_iconveh): New declaration.
1468 * lib/striconveh.c (mem_iconveh): New function.
1469 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
1471 2007-01-21 Bruno Haible <bruno@clisp.org>
1473 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
1475 * lib/striconveh.h (mem_cd_iconveh): Change specification.
1476 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
1477 original result buffer.
1478 (str_cd_iconveh): Update.
1479 * tests/test-striconveh.c (main): Update.
1481 * lib/striconv.h (mem_cd_iconv): Change specification.
1482 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
1484 (str_cd_iconv): Update.
1485 * tests/test-striconv.c (main): Update.
1487 2007-01-21 Bruno Haible <bruno@clisp.org>
1489 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
1491 2007-01-20 Jim Meyering <jim@meyering.net>
1493 * lib/userspec.c (parse_with_separator): If a user or group string
1494 starts with "+", skip the corresponding name-to-ID look-up, since
1495 such a look-up must fail: user and group names may not include "+".
1497 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
1499 * lib/poll.c: Include sys/time.h and time.h unconditionally,
1500 since we now assume the sys_time module.
1501 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
1502 check for sys/time.h; no longer needed.
1503 * modules/poll (Depends-on): Depend on sys_time.
1505 2007-01-18 Bruno Haible <bruno@clisp.org>
1507 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
1508 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
1510 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
1513 * tests/test-gettimeofday.c: Include <time.h>.
1514 (dummy): Remove variable.
1516 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
1517 gl_HEADER_SYS_TIME_H.
1518 (gl_HEADER_SYS_TIME_H): New macro.
1520 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
1521 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1522 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
1523 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
1524 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1525 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
1526 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
1527 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1528 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
1529 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
1530 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1532 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
1533 last change; it caused a compilation error when cross-compiling to
1536 2007-01-18 Jim Meyering <jim@meyering.net>
1538 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
1539 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
1540 than the race-prone "test -d sys || mkdir sys".
1541 (configure.ac): Use AC_PROG_MKDIR_P.
1542 * modules/sys_select: Likewise.
1543 * modules/sys_socket: Likewise.
1544 * modules/sys_time: Likewise.
1546 2007-01-18 Eric Blake <ebb9@byu.net>
1548 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
1549 replace gettimeofday.
1550 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
1551 name, to avoid infinite recursion.
1553 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
1555 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
1557 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
1558 assume timespec.h defines struct timeval.
1559 * lib/settime.c: Likewise.
1560 * lib/utimens.c: Likewise.
1561 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
1562 since we now assume the gettimeofday module.
1563 * lib/tempname.c (__gen_tempname): Likewise.
1564 * lib/gettimeofday.h: Remove.
1565 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
1566 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
1567 Include <time.h>, for 'time()'.
1568 (localtime_buffer_addr): Also use this workaround if
1569 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
1570 to simplify the uses. All uses changed.
1571 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
1572 that #undef is inside {}, and 'const' follows type name consistently.
1573 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
1574 (gettimeofday): Do not use the maximum possible value for
1575 tv->tv_usec, since that might break usages other than ls.c.
1576 Instead, we'll leave ls.c alone. This undoes today's patch
1577 by Bruno. Add a compile-time warning for 1s-clock resolution;
1578 we've never observed the problem but might as well keep the
1580 * lib/nanosleep.c: Include timespec.h first, for interface check.
1581 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
1582 now assume the sys_time module.
1583 * lib/tempname.c: Likewise.
1584 * lib/timespec.h: Likewise.
1585 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
1587 * lib/strftime.c: Likewise.
1588 * lib/timespec.h: Likewise.
1589 * lib/posixtm.c: Include posixtm.h first, for interface check.
1590 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
1591 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
1592 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
1593 * lib/sys_time_.h: New file.
1594 * lib/timespec.h (struct timespec): Use long int, not long.
1595 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
1596 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
1597 Remove obsolescent call to AC_HEADER_TIME.
1598 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
1599 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
1600 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
1601 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
1603 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
1604 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
1605 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
1606 into the sys_time module. Check for gettimeofday just once.
1607 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
1608 for gettimeofday signature to just check the signature. Merely
1609 compile it, since linking doesn't test signature. Improve test for
1610 whether gettimeofday.o is actually needed.
1611 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
1612 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
1613 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
1614 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1615 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
1616 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
1617 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
1618 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
1619 than worrying about sys/time.h.
1620 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
1621 Don't bother worrying about TIME_WITH_SYS_TIME.
1622 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
1623 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
1624 * m4/sys_time_h.m4: New file.
1625 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
1626 Don't include sys/time.h. Return from main rather than exiting.
1627 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
1629 * modules/gethrxtime (Depends-on): Add sys_time.
1630 * modules/gettime (Depends-on): Likewise.
1631 * modules/gettimeofday (Depends-on): Likewise.
1632 * modules/nanosleep (Depends-on): Likewise.
1633 * modules/settime (Depends-on): Likewise.
1634 * modules/tempname (Depends-on): Likewise.
1635 * modules/utimens (Depends-on): Likewise.
1636 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
1637 (Include:) Change back to <sys/time.h>.
1638 (Maintainer:) Add self.
1639 * modules/sys_time: New file.
1640 * modules/tempname (Depends-on): Add gettimeofday.
1641 * tests/test-gettimeofday.c: Include <sys/time.h>
1642 rather than gettimeofday.h.
1644 2007-01-17 Bruno Haible <bruno@clisp.org>
1646 * gnulib-tool (func_get_license): Revert last patch. Instead, let
1647 the license default to GPL.
1648 (func_create_testdir): Don't complain if a module is LGPL and its
1649 tests module depends on GPLed modules.
1651 2007-01-17 Bruno Haible <bruno@clisp.org>
1653 * lib/gettimeofday.c (gettimeofday): Add code for the case
1654 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
1655 maximum possible value for tv->tv_usec, rather than the minimum one.
1657 2005-10-08 Martin Lambers <marlam@marlam.de>
1658 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
1659 2007-01-16 Bruno Haible <bruno@clisp.org>
1661 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
1662 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
1663 gl_FUNC_GETTIMEOFDAY.
1664 (Include): Add gettimeofday.h.
1665 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
1666 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
1667 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
1668 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
1669 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
1670 * lib/gettimeofday.h: New file.
1671 * lib/gettimeofday.c: Include <sys/timeb.h>.
1672 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
1673 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1674 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
1675 fall back on time().
1677 * tests/test-gettimeofday.c: New file.
1678 * modules/gettimeofday-tests: New file.
1680 2007-01-16 Eric Blake <ebb9@byu.net>
1682 * modules/fnmatch (Depends-on): Depend on wchar.
1683 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
1684 * m4/fnmatch.m4: Likewise.
1685 * modules/mbchar (Makefile.am): Assume <wchar.h>.
1686 * m4/mbchar.m4: Likewise.
1687 * modules/mbswidth (Depends-on): Depend on wchar.
1688 * lib/mbswidth.c: Assume <wchar.h>.
1689 * m4/mbswidth.m4: Likewise.
1690 * modules/quotearg (Depends-on): Depend on wchar.
1691 * lib/quotearg.c: Assume <wchar.h>.
1692 * m4/quotearg.m4: Likewise.
1693 * modules/regex (Depends-on): Depend on wchar.
1694 * lib/regex_internal.h: Assume <wchar.h>.
1695 * m4/regex.m4: Likewise.
1696 * modules/stdint (Depends-on): Depend on wchar.
1697 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
1698 * m4/stdint.m4: Likewise.
1699 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
1700 * modules/strftime (Depends-on): Depend on wchar.
1701 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
1702 * modules/strtol (Depends-on): Depend on wchar.
1703 * lib/strtol.c: Assume <wchar.h>.
1704 * modules/wcwidth (Depends-on): Depend on wchar.
1705 * lib/wcwidth.h: Assume <wchar.h>.
1706 * m4/wcwidth.m4: Likewise.
1708 2007-01-16 Bruno Haible <bruno@clisp.org>
1710 * modules/csharpexec-script: New, created from...
1711 * modules/csharpexec: ... this.
1713 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
1715 * modules/javaexec-script: New, created from...
1716 * modules/javaexec: ... this.
1718 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1720 * modules/poll (Dependencies): Add sys_select.
1722 2007-01-15 Jim Meyering <jim@meyering.net>
1724 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
1725 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
1726 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
1727 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
1729 2007-01-15 Bruno Haible <bruno@clisp.org>
1731 * modules/striconveh: New file.
1732 * lib/striconveh.h: New file.
1733 * lib/striconveh.c: New file.
1734 * MODULES.html.sh (Internationalization functions): Add striconveh.
1736 * modules/striconveh-tests: New file.
1737 * tests/test-striconveh.c: New file.
1739 2007-01-15 Bruno Haible <bruno@clisp.org>
1741 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
1742 not from GNU libiconv or GNU libc.
1744 2007-01-15 Bruno Haible <bruno@clisp.org>
1746 * doc/gnulib-intro.texi (Copyright): Explain the different license
1747 terms for module descriptions, autoconf macros, tests, documentation.
1749 2007-01-14 Bruno Haible <bruno@clisp.org>
1751 * modules/striconv-tests: New file.
1752 * tests/test-striconv.c: New file.
1754 2007-01-14 Bruno Haible <bruno@clisp.org>
1756 * modules/iconv-tests: New file.
1757 * tests/test-iconv.c: New file.
1759 2007-01-14 Bruno Haible <bruno@clisp.org>
1761 * gnulib-tool (func_get_license): For test modules, use the license of
1764 2007-01-14 Bruno Haible <bruno@clisp.org>
1766 * modules/iconv (Include): Clarify that <iconv.h> can only be included
1767 if iconv is found to exist.
1769 2007-01-14 Bruno Haible <bruno@clisp.org>
1771 * modules/c-ctype-tests: New file.
1772 * tests/test-c-ctype.c: New file.
1774 2007-01-14 Bruno Haible <bruno@clisp.org>
1776 * modules/binary-io-tests: New file.
1777 * tests/test-binary-io.sh: New file.
1778 * tests/test-binary-io.c: New file.
1780 2007-01-14 Bruno Haible <bruno@clisp.org>
1782 * modules/array-oset-tests: New file.
1783 * tests/test-array_oset.c: New file.
1785 2007-01-14 Bruno Haible <bruno@clisp.org>
1787 * modules/array-list-tests: New file.
1788 * tests/test-array_list.c: New file.
1790 2007-01-14 Bruno Haible <bruno@clisp.org>
1792 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
1794 Reported by Simon Josefsson in
1795 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
1797 2007-01-14 Bruno Haible <bruno@clisp.org>
1799 * modules/allocsa-tests: New file.
1800 * tests/test-allocsa.c: New file.
1802 2007-01-14 Bruno Haible <bruno@clisp.org>
1804 * modules/fchdir (Depends-on): Add absolute-header.
1805 * modules/unistd (Depends-on): Likewise.
1807 2006-12-30 Bruno Haible <bruno@clisp.org>
1809 * modules/fchdir: New file.
1810 * modules/unistd (Files): Add lib/unistd_.h.
1811 (Makefile.am): Generate unistd.h from unistd_.h.
1812 * lib/fchdir.c: New file.
1813 * lib/dirent_.h: New file.
1814 * lib/unistd_.h: New file.
1815 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
1816 * m4/fchdir.m4: New file.
1817 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
1818 (gl_HEADER_UNISTD): Invoke it.
1819 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
1821 * lib/backupfile.c (opendir, closedir): Undefine.
1822 * lib/chown.c (open, close): Undefine.
1823 * lib/clean-temp.c (open, close): Undefine.
1824 * lib/copy-file.c (open, close): Undefine.
1825 * lib/execute.c (open, close): Undefine.
1826 * lib/fsusage.c (open, close): Undefine.
1827 * lib/gc-gnulib.c (open, close): Undefine.
1828 * lib/getcwd.c (opendir, closedir): Undefine.
1829 * lib/glob.c (opendir, closedir): Undefine.
1830 * lib/javacomp.c (open, close): Undefine.
1831 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
1832 * lib/openat-proc.c (open, close): Undefine.
1833 * lib/pagealign_alloc.c (open, close): Undefine.
1834 * lib/pipe.c (open, close): Undefine.
1835 * lib/progreloc.c (open, close): Undefine.
1836 * lib/savedir.c (opendir, closedir): Undefine.
1837 * lib/utime.c (open, close): Undefine.
1838 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
1840 2007-01-10 Bruno Haible <bruno@clisp.org>
1842 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
1844 2007-01-12 Eric Blake <ebb9@byu.net>
1846 Provide a robust <wchar.h>. Further simplifications are now
1847 possible in other modules, but not included here.
1848 * modules/wchar: New module.
1849 * m4/wchar.m4: New file.
1850 * lib/wchar_.h: Likewise.
1851 * modules/mbchar (Depends-on): Depend on wchar, as the first use
1853 * MODULES.html.sh (Extended multibyte and wide character utilities):
1856 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
1858 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
1859 to a reasonable default for memory allocation.
1860 (xreadlink): Don't allocate a huge buffer, to work around a buggy
1861 file system that reports garbage st_size values for symlinks.
1862 Problem reported by Liyang Hu.
1864 2007-01-11 Simon Josefsson <simon@josefsson.org>
1866 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
1867 Emacs .#* auto-save files).
1869 2007-01-11 Bruno Haible <bruno@clisp.org>
1871 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
1874 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
1876 Use @...@ consistently in lib/wctype_.h.
1877 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
1878 on it being set to 1 or 0.
1879 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
1880 go back to AC_SUBSTing it.
1881 * modules/wctype (Makefile.am): Undo previous change.
1883 2007-01-10 Eric Blake <ebb9@byu.net>
1885 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
1886 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
1887 * modules/wctype (Makefile.am): Likewise.
1888 Reported by Chris McGuire.
1890 2007-01-10 Jim Meyering <jim@meyering.net>
1892 fts.c: a small readability/maintainability improvement
1893 * lib/fts.c (fts_read): Make this code slightly more readable and
1894 maintainable by hoisting the "sp->fts_cur = p" assignments to
1895 immediately follow the statements that set P. Derived from
1896 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
1898 2007-01-10 Eric Blake <ebb9@byu.net>
1900 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
1901 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
1902 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1903 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1904 Reported by Chris McGuire.
1906 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1908 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
1911 2007-01-09 Bruno Haible <bruno@clisp.org>
1913 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
1914 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
1916 (func_module): Use them.
1918 2007-01-09 Bruno Haible <bruno@clisp.org>
1920 * modules/unistr/base: New file.
1921 * lib/unistr.h: New file.
1923 * modules/unistr/u8-to-u16: New file.
1924 * lib/unistr/u8-to-u16.c: New file.
1926 * modules/unistr/u8-to-u32: New file.
1927 * lib/unistr/u8-to-u32.c: New file.
1929 * modules/unistr/u16-to-u8: New file.
1930 * lib/unistr/u16-to-u8.c: New file.
1932 * modules/unistr/u16-to-u32: New file.
1933 * lib/unistr/u16-to-u32.c: New file.
1935 * modules/unistr/u32-to-u8: New file.
1936 * lib/unistr/u32-to-u8.c: New file.
1938 * modules/unistr/u32-to-u16: New file.
1939 * lib/unistr/u32-to-u16.c: New file.
1941 * modules/unistr/u8-check: New file.
1942 * modules/unistr/u16-check: New file.
1943 * modules/unistr/u32-check: New file.
1944 * lib/unistr/u8-check.c: New file.
1945 * lib/unistr/u16-check.c: New file.
1946 * lib/unistr/u32-check.c: New file.
1948 * modules/unistr/u8-chr: New file.
1949 * modules/unistr/u16-chr: New file.
1950 * modules/unistr/u32-chr: New file.
1951 * lib/unistr/u8-chr.c: New file.
1952 * lib/unistr/u16-chr.c: New file.
1953 * lib/unistr/u32-chr.c: New file.
1955 * modules/unistr/u8-cmp: New file.
1956 * modules/unistr/u16-cmp: New file.
1957 * modules/unistr/u32-cmp: New file.
1958 * lib/unistr/u8-cmp.c: New file.
1959 * lib/unistr/u16-cmp.c: New file.
1960 * lib/unistr/u32-cmp.c: New file.
1962 * modules/unistr/u8-cpy: New file.
1963 * modules/unistr/u16-cpy: New file.
1964 * modules/unistr/u32-cpy: New file.
1965 * lib/unistr/u8-cpy.c: New file.
1966 * lib/unistr/u16-cpy.c: New file.
1967 * lib/unistr/u32-cpy.c: New file.
1968 * lib/unistr/u-cpy.h: New file.
1970 * modules/unistr/u8-cpy-alloc: New file.
1971 * modules/unistr/u16-cpy-alloc: New file.
1972 * modules/unistr/u32-cpy-alloc: New file.
1973 * lib/unistr/u8-cpy-alloc.c: New file.
1974 * lib/unistr/u16-cpy-alloc.c: New file.
1975 * lib/unistr/u32-cpy-alloc.c: New file.
1976 * lib/unistr/u-cpy-alloc.h: New file.
1978 * modules/unistr/u8-endswith: New file.
1979 * modules/unistr/u16-endswith: New file.
1980 * modules/unistr/u32-endswith: New file.
1981 * lib/unistr/u8-endswith.c: New file.
1982 * lib/unistr/u16-endswith.c: New file.
1983 * lib/unistr/u32-endswith.c: New file.
1984 * lib/unistr/u-endswith.h: New file.
1986 * modules/unistr/u8-mblen: New file.
1987 * modules/unistr/u16-mblen: New file.
1988 * modules/unistr/u32-mblen: New file.
1989 * lib/unistr/u8-mblen.c: New file.
1990 * lib/unistr/u16-mblen.c: New file.
1991 * lib/unistr/u32-mblen.c: New file.
1993 * modules/unistr/u8-mbtouc: New file.
1994 * modules/unistr/u16-mbtouc: New file.
1995 * modules/unistr/u32-mbtouc: New file.
1996 * lib/unistr/u8-mbtouc.c: New file.
1997 * lib/unistr/u16-mbtouc.c: New file.
1998 * lib/unistr/u32-mbtouc.c: New file.
2000 * modules/unistr/u8-mbtouc-safe: New file.
2001 * modules/unistr/u16-mbtouc-safe: New file.
2002 * modules/unistr/u32-mbtouc-safe: New file.
2003 * lib/unistr/u8-mbtouc-safe.c: New file.
2004 * lib/unistr/u16-mbtouc-safe.c: New file.
2005 * lib/unistr/u32-mbtouc-safe.c: New file.
2007 * modules/unistr/u8-move: New file.
2008 * modules/unistr/u16-move: New file.
2009 * modules/unistr/u32-move: New file.
2010 * lib/unistr/u8-move.c: New file.
2011 * lib/unistr/u16-move.c: New file.
2012 * lib/unistr/u32-move.c: New file.
2013 * lib/unistr/u-move.h: New file.
2015 * modules/unistr/u8-next: New file.
2016 * modules/unistr/u16-next: New file.
2017 * modules/unistr/u32-next: New file.
2018 * lib/unistr/u8-next.c: New file.
2019 * lib/unistr/u16-next.c: New file.
2020 * lib/unistr/u32-next.c: New file.
2022 * modules/unistr/u8-prev: New file.
2023 * modules/unistr/u16-prev: New file.
2024 * modules/unistr/u32-prev: New file.
2025 * lib/unistr/u8-prev.c: New file.
2026 * lib/unistr/u16-prev.c: New file.
2027 * lib/unistr/u32-prev.c: New file.
2029 * modules/unistr/u8-set: New file.
2030 * modules/unistr/u16-set: New file.
2031 * modules/unistr/u32-set: New file.
2032 * lib/unistr/u8-set.c: New file.
2033 * lib/unistr/u16-set.c: New file.
2034 * lib/unistr/u32-set.c: New file.
2035 * lib/unistr/u-set.h: New file.
2037 * modules/unistr/u8-startswith: New file.
2038 * modules/unistr/u16-startswith: New file.
2039 * modules/unistr/u32-startswith: New file.
2040 * lib/unistr/u8-startswith.c: New file.
2041 * lib/unistr/u16-startswith.c: New file.
2042 * lib/unistr/u32-startswith.c: New file.
2043 * lib/unistr/u-startswith.h: New file.
2045 * modules/unistr/u8-stpcpy: New file.
2046 * modules/unistr/u16-stpcpy: New file.
2047 * modules/unistr/u32-stpcpy: New file.
2048 * lib/unistr/u8-stpcpy.c: New file.
2049 * lib/unistr/u16-stpcpy.c: New file.
2050 * lib/unistr/u32-stpcpy.c: New file.
2051 * lib/unistr/u-stpcpy.h: New file.
2053 * modules/unistr/u8-stpncpy: New file.
2054 * modules/unistr/u16-stpncpy: New file.
2055 * modules/unistr/u32-stpncpy: New file.
2056 * lib/unistr/u8-stpncpy.c: New file.
2057 * lib/unistr/u16-stpncpy.c: New file.
2058 * lib/unistr/u32-stpncpy.c: New file.
2059 * lib/unistr/u-stpncpy.h: New file.
2061 * modules/unistr/u8-strcat: New file.
2062 * modules/unistr/u16-strcat: New file.
2063 * modules/unistr/u32-strcat: New file.
2064 * lib/unistr/u8-strcat.c: New file.
2065 * lib/unistr/u16-strcat.c: New file.
2066 * lib/unistr/u32-strcat.c: New file.
2067 * lib/unistr/u-strcat.h: New file.
2069 * modules/unistr/u8-strchr: New file.
2070 * modules/unistr/u16-strchr: New file.
2071 * modules/unistr/u32-strchr: New file.
2072 * lib/unistr/u8-strchr.c: New file.
2073 * lib/unistr/u16-strchr.c: New file.
2074 * lib/unistr/u32-strchr.c: New file.
2076 * modules/unistr/u8-strcmp: New file.
2077 * modules/unistr/u16-strcmp: New file.
2078 * modules/unistr/u32-strcmp: New file.
2079 * lib/unistr/u8-strcmp.c: New file.
2080 * lib/unistr/u16-strcmp.c: New file.
2081 * lib/unistr/u32-strcmp.c: New file.
2083 * modules/unistr/u8-strcpy: New file.
2084 * modules/unistr/u16-strcpy: New file.
2085 * modules/unistr/u32-strcpy: New file.
2086 * lib/unistr/u8-strcpy.c: New file.
2087 * lib/unistr/u16-strcpy.c: New file.
2088 * lib/unistr/u32-strcpy.c: New file.
2089 * lib/unistr/u-strcpy.h: New file.
2091 * modules/unistr/u8-strcspn: New file.
2092 * modules/unistr/u16-strcspn: New file.
2093 * modules/unistr/u32-strcspn: New file.
2094 * lib/unistr/u8-strcspn.c: New file.
2095 * lib/unistr/u16-strcspn.c: New file.
2096 * lib/unistr/u32-strcspn.c: New file.
2097 * lib/unistr/u-strcspn.h: New file.
2099 * modules/unistr/u8-strdup: New file.
2100 * modules/unistr/u16-strdup: New file.
2101 * modules/unistr/u32-strdup: New file.
2102 * lib/unistr/u8-strdup.c: New file.
2103 * lib/unistr/u16-strdup.c: New file.
2104 * lib/unistr/u32-strdup.c: New file.
2105 * lib/unistr/u-strdup.h: New file.
2107 * modules/unistr/u8-strlen: New file.
2108 * modules/unistr/u16-strlen: New file.
2109 * modules/unistr/u32-strlen: New file.
2110 * lib/unistr/u8-strlen.c: New file.
2111 * lib/unistr/u16-strlen.c: New file.
2112 * lib/unistr/u32-strlen.c: New file.
2113 * lib/unistr/u-strlen.h: New file.
2115 * modules/unistr/u8-strmblen: New file.
2116 * modules/unistr/u16-strmblen: New file.
2117 * modules/unistr/u32-strmblen: New file.
2118 * lib/unistr/u8-strmblen.c: New file.
2119 * lib/unistr/u16-strmblen.c: New file.
2120 * lib/unistr/u32-strmblen.c: New file.
2122 * modules/unistr/u8-strmbtouc: New file.
2123 * modules/unistr/u16-strmbtouc: New file.
2124 * modules/unistr/u32-strmbtouc: New file.
2125 * lib/unistr/u8-strmbtouc.c: New file.
2126 * lib/unistr/u16-strmbtouc.c: New file.
2127 * lib/unistr/u32-strmbtouc.c: New file.
2129 * modules/unistr/u8-strncat: New file.
2130 * modules/unistr/u16-strncat: New file.
2131 * modules/unistr/u32-strncat: New file.
2132 * lib/unistr/u8-strncat.c: New file.
2133 * lib/unistr/u16-strncat.c: New file.
2134 * lib/unistr/u32-strncat.c: New file.
2135 * lib/unistr/u-strncat.h: New file.
2137 * modules/unistr/u8-strncmp: New file.
2138 * modules/unistr/u16-strncmp: New file.
2139 * modules/unistr/u32-strncmp: New file.
2140 * lib/unistr/u8-strncmp.c: New file.
2141 * lib/unistr/u16-strncmp.c: New file.
2142 * lib/unistr/u32-strncmp.c: New file.
2144 * modules/unistr/u8-strncpy: New file.
2145 * modules/unistr/u16-strncpy: New file.
2146 * modules/unistr/u32-strncpy: New file.
2147 * lib/unistr/u8-strncpy.c: New file.
2148 * lib/unistr/u16-strncpy.c: New file.
2149 * lib/unistr/u32-strncpy.c: New file.
2150 * lib/unistr/u-strncpy.h: New file.
2152 * modules/unistr/u8-strnlen: New file.
2153 * modules/unistr/u16-strnlen: New file.
2154 * modules/unistr/u32-strnlen: New file.
2155 * lib/unistr/u8-strnlen.c: New file.
2156 * lib/unistr/u16-strnlen.c: New file.
2157 * lib/unistr/u32-strnlen.c: New file.
2158 * lib/unistr/u-strnlen.h: New file.
2160 * modules/unistr/u8-strpbrk: New file.
2161 * modules/unistr/u16-strpbrk: New file.
2162 * modules/unistr/u32-strpbrk: New file.
2163 * lib/unistr/u8-strpbrk.c: New file.
2164 * lib/unistr/u16-strpbrk.c: New file.
2165 * lib/unistr/u32-strpbrk.c: New file.
2166 * lib/unistr/u-strpbrk.h: New file.
2168 * modules/unistr/u8-strrchr: New file.
2169 * modules/unistr/u16-strrchr: New file.
2170 * modules/unistr/u32-strrchr: New file.
2171 * lib/unistr/u8-strrchr.c: New file.
2172 * lib/unistr/u16-strrchr.c: New file.
2173 * lib/unistr/u32-strrchr.c: New file.
2175 * modules/unistr/u8-strspn: New file.
2176 * modules/unistr/u16-strspn: New file.
2177 * modules/unistr/u32-strspn: New file.
2178 * lib/unistr/u8-strspn.c: New file.
2179 * lib/unistr/u16-strspn.c: New file.
2180 * lib/unistr/u32-strspn.c: New file.
2181 * lib/unistr/u-strspn.h: New file.
2183 * modules/unistr/u8-strstr: New file.
2184 * modules/unistr/u16-strstr: New file.
2185 * modules/unistr/u32-strstr: New file.
2186 * lib/unistr/u8-strstr.c: New file.
2187 * lib/unistr/u16-strstr.c: New file.
2188 * lib/unistr/u32-strstr.c: New file.
2189 * lib/unistr/u-strstr.h: New file.
2191 * modules/unistr/u8-strtok: New file.
2192 * modules/unistr/u16-strtok: New file.
2193 * modules/unistr/u32-strtok: New file.
2194 * lib/unistr/u8-strtok.c: New file.
2195 * lib/unistr/u16-strtok.c: New file.
2196 * lib/unistr/u32-strtok.c: New file.
2197 * lib/unistr/u-strtok.h: New file.
2199 * modules/unistr/u8-uctomb: New file.
2200 * modules/unistr/u16-uctomb: New file.
2201 * modules/unistr/u32-uctomb: New file.
2202 * lib/unistr/u8-uctomb.c: New file.
2203 * lib/unistr/u16-uctomb.c: New file.
2204 * lib/unistr/u32-uctomb.c: New file.
2206 * MODULES.html.sh (Unicode string functions): Add the new modules.
2208 2007-01-08 Bruno Haible <bruno@clisp.org>
2210 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
2211 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
2214 2007-01-08 Karl Berry <karl@gnu.org>
2216 * doc/error.texi: mention that main() fns must set program_name
2217 when progname is used.
2219 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
2221 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
2222 WCTYPE_H is empty, for the benefit of builds from non-distclean
2223 directories. Problem reported by Eric Blake in
2224 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
2226 2007-01-08 Bruno Haible <bruno@clisp.org>
2228 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
2229 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
2230 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
2231 PROVIDE_CANONICALIZE_FILENAME_MODE.
2232 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
2234 2007-01-08 Bruno Haible <bruno@clisp.org>
2236 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
2237 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
2238 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
2239 * lib/fts.c: Likewise.
2240 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
2242 2006-12-25 Bruno Haible <bruno@clisp.org>
2244 * modules/utf8-ucs4-safe: New file.
2245 * lib/utf8-ucs4-safe.h: New file.
2246 * lib/unistr/utf8-ucs4-safe.c: New file.
2248 * modules/utf16-ucs4-safe: New file.
2249 * lib/utf16-ucs4-safe.h: New file.
2250 * lib/unistr/utf16-ucs4-safe.c: New file.
2252 * MODULES.html.sh (Unicode string functions): Add the new modules.
2254 2007-01-08 Bruno Haible <bruno@clisp.org>
2256 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
2257 (Depends-on): Add unitypes.
2258 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
2259 (u8_mbtouc_aux): Move out to separate file.
2260 (u8_mbtouc): Use ucs4_t, uint8_t types.
2261 * lib/unistr/utf8-ucs4.c: New file.
2263 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
2264 (Depends-on): Add unitypes.
2265 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
2266 (u16_mbtouc_aux): Move out to separate file.
2267 (u16_mbtouc): Use ucs4_t, uint16_t types.
2268 * lib/unistr/utf16-ucs4.c: New file.
2270 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
2271 (Depends-on): Add unitypes.
2272 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
2273 (u8_uctomb_aux): Move out to separate file.
2274 (u8_uctomb): Use ucs4_t, uint8_t types.
2275 * lib/unistr/ucs4-utf8.c: New file.
2277 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
2278 (Depends-on): Add unitypes.
2279 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
2280 (u16_uctomb_aux): Move out to separate file.
2281 (u16_uctomb): Use ucs4_t, uint16_t types.
2282 * lib/unistr/ucs4-utf16.c: New file.
2284 2006-12-25 Bruno Haible <bruno@clisp.org>
2286 * modules/unitypes: New file.
2287 * lib/unitypes.h: New file.
2288 * MODULES.html.sh (func_all_modules): New section "Unicode string
2289 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
2290 this section. Add unitypes.
2292 2007-01-08 Bruno Haible <bruno@clisp.org>
2294 Avoid variable names that conflict with those from libtool.
2295 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
2296 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
2297 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
2298 library_names_spec to acl_library_names_spec, hardcode_* to
2300 Reported by Ralf Wildenhues.
2302 2007-01-08 Bruno Haible <bruno@clisp.org>
2304 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
2306 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
2308 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
2309 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
2311 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
2313 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
2314 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
2315 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
2316 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
2318 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
2320 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
2321 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
2323 * lib/gc-libgcrypt.c: Likewise.
2324 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
2325 * modules/gc-arctwo (configure.ac): Likewise.
2326 * modules/gc-des (configure.ac): Likewise.
2327 * modules/gc-hmac-md5 (configure.ac): Likewise.
2328 * modules/gc-hmac-sha1 (configure.ac): Likewise.
2329 * modules/gc-md2 (configure.ac): Likewise.
2330 * modules/gc-md4 (configure.ac): Likewise.
2331 * modules/gc-md5 (configure.ac): Likewise.
2332 * modules/gc-random (configure.ac): Likewise.
2333 * modules/gc-rijndael (configure.ac): Likewise.
2334 * modules/gc-sha1 (configure.ac): Likewise.
2336 2007-01-08 Bruno Haible <bruno@clisp.org>
2338 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
2340 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
2342 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
2344 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
2345 * modules/fcntl-safer (configure.ac): Likewise.
2346 * modules/fopen-safer (configure.ac): Likewise.
2347 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
2348 GNULIB_FWRITEERROR macro definition.
2350 2007-01-08 Bruno Haible <bruno@clisp.org>
2352 * m4/gnulib-common.m4: New file.
2353 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
2354 (func_get_filelist): Add m4/gnulib-common.m4.
2356 2007-01-08 Bruno Haible <bruno@clisp.org>
2358 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
2361 2007-01-08 Jim Meyering <jim@meyering.net>
2363 Use a more robust test for a "can't happen" condition.
2364 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
2365 narrowed the st_size value. Presuming the "can't happen" condition
2366 is true, that narrowing could conceivably convert an invalid st_size
2367 value into a valid one. Instead, use a change based on Matthew
2368 Woehlke's original patch.
2370 Slight readability improvement: use an assert-like macro
2371 in place of literal "abort ()" uses.
2372 * lib/fts.c (fts_assert): Define.
2373 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
2374 Use this macro instead of a bare 'abort'.
2376 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
2378 Don't worry about using IRIX 5.3's wctype.h broken definitions;
2379 simply work around them.
2380 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
2381 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
2382 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before declaring.
2383 Don't bother to define as macros, since the standard doesn't require it.
2384 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
2385 longer worry about IRIX 5.3.
2386 (HAVE_WCTYPE_CTMP_BUG): Remove.
2388 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
2390 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
2391 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
2392 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
2393 Problems reported by Georg Schwarz for IRIX 5.3.
2395 * gnulib-tool (autoconf_minversion): Take the maximum version number
2396 found, not the minimum. Problem reported by James Youngman.
2398 2007-01-03 Karl Berry <karl@gnu.org>
2400 * doc/error.texi: new file, explaining interaction with progname.
2401 * doc/gnulib.texi: include it. Update copyright.
2403 2007-01-03 Simon Josefsson <simon@josefsson.org>
2405 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
2406 AC_CANONICAL_HOST, to improve autobuild outputs.
2408 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
2409 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2411 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
2412 sockets, server sockets, and other file descriptors. Count errors
2413 to compute the return value. Reorder the code a bit to be easier
2414 to follow. Don't set event bits that were not requested (except
2415 POLLERR and POLLHUP).
2417 2007-01-01 Bruno Haible <bruno@clisp.org>
2419 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
2421 2007-01-03 Jim Meyering <jim@meyering.net>
2423 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
2425 2007-01-02 Bruno Haible <bruno@clisp.org>
2427 * modules/settime (Include): Require timespec.h.
2428 * modules/nanosleep (Include): Likewise.
2430 2007-01-01 Bruno Haible <bruno@clisp.org>
2432 * gnulib-tool (func_emit_copyright_notice): Bump year.
2433 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
2435 2007-01-01 Bruno Haible <bruno@clisp.org>
2437 Improve support for OpenBSD.
2438 * build-aux/config.rpath (libname_spec): Export.
2439 (library_names_spec): New variable. Export.
2440 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
2441 library_names_spec from the config.rpath output. Locate shared library
2442 through the name pattern in library_names_spec.
2444 2007-01-01 Eric Blake <ebb9@byu.net>
2446 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
2448 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
2450 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
2451 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
2452 assume the C locale, and avoid an "eval" that could cause trouble.
2453 Problem with SORT reported by Bob Proulx.
2455 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
2456 Define. Trivial patch from Henning Nielsen Lund, originally
2457 sent to bug-grep@gnu.org today.
2459 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
2461 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
2462 struct stat. Problem reported by Henning Nielsen Lund.
2463 * lib/acl.c: Include acl.h first, to check interface. Don't
2464 bother to include sys/types.h and sys/stat.h again.
2466 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
2468 Import the following change from libc; problem reported by
2471 2005-10-13 Ulrich Drepper <drepper@redhat.com>
2474 * lib/argp.h: Remove __NTH for __argp_usage inline function.
2476 2006-12-28 Jim Meyering <jim@meyering.net>
2478 * build-aux/announce-gen: Do not assume that the package
2479 builds any of tar.gz, tar.bz2, and .xdelta files.
2480 Suggestion from Simon Josefsson.
2482 2006-12-28 Simon Josefsson <simon@josefsson.org>
2484 * modules/announce-gen: New file.
2486 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
2488 * lib/mbchar.h: Just include <wctype.h>; the wctype module
2489 handles its gotchas now.
2490 * lib/mbswidth.c: Likewise.
2491 * lib/wcwidth.h: Likewise.
2492 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
2493 and iswcntrl; the wctype module does this stuff now.
2494 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
2495 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2496 * modules/mbchar (Depends-on): Add wctype.
2497 * modules/mbswidth (Depends-on): Likewise.
2498 * modules/wcwidth (Depends-on): Likewise.
2500 2006-12-27 Eric Blake <ebb9@byu.net>
2502 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
2503 module uses more than what <wctype.h> is required to provide.
2505 2006-12-26 Eric Blake <ebb9@byu.net>
2507 * gnulib-tool (sed_extract_prog): Avoid space-tab.
2509 2006-12-26 Eric Blake <ebb9@byu.net>
2511 * modules/absolute-header: New module.
2512 * modules/fcntl (Depends-on): Depend on it.
2513 * modules/inttypes (Depends-on): Likewise.
2514 * modules/stdint (Depends-on): Likewise.
2515 * modules/sys_stat (Depends-on): Likewise.
2516 * modules/wctype (Depends-on): Likewise.
2517 * MODULES.html.sh (Support for building libraries and
2518 executables): Document it.
2520 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
2522 * gnulib-tool (SED): Remove, undoing previous change.
2523 The problem was that it broke coreutils on Solaris, because
2524 "sed --posix" leaked into a makefile.
2525 (sed): New alias, if 'alias' and GNU sed.
2527 2006-12-24 Jim Meyering <jim@meyering.net>
2529 Work around an fchownat bug in glibc-2.4:
2530 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
2531 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
2532 in spite of the -P option.
2533 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
2535 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
2536 * modules/openat (Files): Add lib/fchownat.c.
2537 * lib/openat.c (fchownat): Don't define here. Move to...
2538 * lib/fchownat.c: ...this new file.
2540 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
2542 Fix bug reported by Bruno Haible in
2543 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
2544 where quotearg.c didn't compile on Mac OS X 10.2 because it
2545 lacks <wchar.h> and wint_t.
2546 * lib/wctype_.h (__wctype_wint_t): New type.
2547 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
2548 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
2549 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
2550 Arg is now of type __wctype_wint_t, not wint_t.
2551 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
2552 substitute HAVE_WINT_T.
2553 * modules/wctype (Files): Add m4/wint_t.m4.
2554 (wctype.h): Substitute HAVE_WINT_T.
2556 2006-12-23 Bruno Haible <bruno@clisp.org>
2558 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
2560 2006-12-23 Bruno Haible <bruno@clisp.org>
2562 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
2564 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
2567 2006-12-22 Bruno Haible <bruno@clisp.org>
2569 * lib/copy-file.c: Include acl.h.
2570 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
2571 Close the file descriptors only after being done with copy_acl.
2572 * modules/copy-file (Depends-on): Add acl.
2574 2006-12-22 Bruno Haible <bruno@clisp.org>
2576 * gnulib-tool (SED): New variable.
2577 Use $SED instead of sed everywhere.
2579 2006-12-22 Bruno Haible <bruno@clisp.org>
2581 * modules/no-c++: New file.
2582 * m4/no-c++.m4: New file.
2583 * MODULES.html.sh (Support for building libraries and executables):
2586 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
2588 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
2589 Include <limits.h>, and use its INT_MAX to rewrite the
2590 j loop so that it does not overflow 'int'. Problem reported by
2592 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
2593 Play it safe by shifting left by 1 rather than multiplying by 2,
2594 as GCC is less likely to optimize this away when the value
2595 is signed (when it assumes overflow leads to undefined behavior).
2596 Also, don't assume time_t uses two's complement.
2598 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
2600 * MODULES.html.sh: New module wctype.
2601 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
2602 * lib/fnmatch.c: Don't bother to include <wchar.h> before
2603 <wctype.h>, since the new wctype module should fix this.
2604 * lib/quotearg.c: Include <wctype.h> unconditionally, since
2605 the wctype module should arrange for it.
2606 * lib/regex_internal.h: Likewise.
2607 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
2608 since the wctype module should handle this now.
2609 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
2610 * modules/fnmatch (Depends-on): Add wctype.
2611 * modules/quotearg (Depends-on): Likewise.
2612 * modules/regex (Depends-on): Likewise.
2614 2006-12-19 Bruno Haible <bruno@clisp.org>
2616 * lib/strdup.h [C++]: Wrap definitions in extern "C".
2617 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
2619 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2621 * modules/savewd (Depends-on): Fix dependency on fcntl.
2623 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
2625 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
2626 conforms to C99, rather than relying on the user's environment
2627 setting of STDINT_H.
2629 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
2630 and Eric Blake <ebb9@byu.net>
2632 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
2633 This is more consistent with the other defines here.
2634 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
2635 Port to z/OS. Problem reported by Paul Gilmartin.
2636 Change local vars to use gl_ prefix rather than ac_.
2637 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
2639 * modules/double-slash-root: New module.
2640 * modules/dirname (Files): Remove m4/double-slash-root.m4.
2641 (Depends-on): Add double-slash-root.
2642 * MODULES.html.sh (File system functions): Mention new module.
2644 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
2646 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
2647 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
2648 This is for the benefit of gzip, which doesn't do i18n.
2650 2006-12-12 Jim Meyering <jim@meyering.net>
2652 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
2653 Reported by Andreas Schwab <schwab@suse.de>.
2655 2006-12-12 Bruno Haible <bruno@clisp.org>
2657 Merge these changes.
2658 2006-09-05 Bruno Haible <bruno@clisp.org>
2659 * lib/iconvme.c (iconv_string): No need to save and restore errno when
2660 iconv_alloc succeeded.
2661 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
2662 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
2663 test for " && dest " at the end - dest is always != NULL there. Call
2664 iconv with 4xNULL arguments initially, to reset the state. Call iconv
2665 with 2xNULL arguments, also to flush the state storage. Handle the
2666 IRIX iconv behaviour. Realloc the final result, to throw away unused
2669 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
2671 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
2672 and fchmodat unconditionally, since glibc 2.4 has them.
2673 Problem reported by Arkadiusz Miskiewicz.
2675 2006-12-10 Bruno Haible <bruno@clisp.org>
2677 * gnulib-tool (func_import): Show the include files only for those
2678 modules that are copied and specified.
2679 Reported by Karl Berry.
2681 2006-12-08 Jim Meyering <jim@meyering.net>
2683 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
2684 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
2686 * build-aux/announce-gen: Add two new options, both optional:
2687 --bootstrap-tools=TOOL_LIST
2688 a comma-separated list of tools, e.g.,
2689 autoconf,automake,bison,gnulib
2690 --gnulib-snapshot-date=DATE
2691 if gnulib is in the bootstrap tool list,
2692 then report this as the snapshot date.
2693 If not specified, use the current date/time.
2694 If you specify a date here, be sure it's UTC.
2696 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2698 * tests/test-argp-2.sh: Fix test to match actual output.
2699 (func_compare): Fix sed script to be portable.
2701 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
2703 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
2704 workaround for this case. It is not autoconfigured now; offhand
2705 it's hard to see how to autoconfigure it.
2707 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
2709 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
2710 a directory that is about to be chowned. Such a directory's
2711 initial file permissions should permit the owner only and this
2712 should not be changed until after the chown, since the group and
2713 other bits would be incorrect if they granted permission before
2716 Fix porting problem for iswctype reported by Georg Schwarz in:
2717 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
2718 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
2719 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
2720 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
2721 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2723 2006-12-03 Jim Meyering <jim@meyering.net>
2725 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
2726 p->fts_statp may not yet be defined.
2727 (fts_read): Instead, set it in the caller, once p->fts_statp is
2728 sure to be defined, and corresponds to a top-level directory.
2729 This bug made du -x fail. Here's the coreutils test case:
2730 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
2731 Reported by Mike Frysinger.
2733 2006-12-01 Jim Meyering <jim@meyering.net>
2735 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
2736 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
2737 Reported by Simon Josefsson.
2739 2006-11-30 Jim Meyering <jim@meyering.net>
2741 * m4/warning.m4: Use the all-permissive copyright notice
2742 recommended by RMS (rather than LGPL).
2743 * m4/vararrays.m4: Likewise.
2744 * m4/flexmember.m4: Likewise.
2746 2006-11-29 Bruno Haible <bruno@clisp.org>
2748 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
2749 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
2751 Reported by Simon Josefsson <simon@josefsson.org>.
2753 2006-11-28 James Youngman <jay@gnu.org>
2755 * README: Advise users that they might find the bug-gnulib@gnu.org
2756 and autotools-announce@gnu.org mailing lists useful.
2758 2006-11-28 Bruno Haible <bruno@clisp.org>
2760 * m4/ptrdiff_max.m4: Remove file.
2762 2006-11-21 Bruno Haible <bruno@clisp.org>
2764 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
2766 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
2767 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
2769 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
2770 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
2772 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
2774 2006-11-28 Jim Meyering <jim@meyering.net>
2776 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
2777 warning from "gcc -Wshadow" about shadowing the builtin.
2779 2006-11-27 Bruno Haible <bruno@clisp.org>
2781 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
2783 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
2785 2006-11-27 Bruno Haible <bruno@clisp.org>
2786 Paul Eggert <eggert@cs.ucla.edu>
2788 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
2790 2006-11-26 Bruno Haible <bruno@clisp.org>
2792 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
2795 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
2796 Bruno Haible <bruno@clisp.org>
2798 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
2799 if compiling with "gcc -ansi".
2801 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
2803 Fix some incompatibilities with gcc -ansi -pedantic.
2804 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
2805 if compiling pedantically with GCC, unless it's C99 or later.
2806 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
2807 it mishandles gcc -ansi -pedantic as well.
2808 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
2810 * lib/regexec.c (check_node_accept_bytes): Don't use auto
2811 initializers for struct if -pedantic, unless it's C99 or later.
2813 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
2815 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
2816 Don't close an fd more than once. Identical atimes indicate
2817 success, not failure.
2819 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
2821 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
2823 2006-11-23 Jim Meyering <jim@meyering.net>
2825 * build-aux/announce-gen: New file. From coreutils.
2827 2006-11-22 Jim Meyering <jim@meyering.net>
2829 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
2830 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
2831 (fts_read): Use a temporary to narrow the overused st_size member
2832 before using it in a switch statement. Reported by Matthew Woehlke.
2834 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
2835 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
2837 2006-11-20 Bruno Haible <bruno@clisp.org>
2839 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
2840 changequote instead of pairs of brackets.
2841 Reported by Andreas Schwab <schwab@suse.de>.
2843 2006-11-21 Jim Meyering <jim@meyering.net>
2845 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
2846 so as to remain compatible with older compilers.
2847 Patch from Michael Deutschmann.
2849 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
2851 * MODULES.html.sh (File system functions): Add openat.
2853 * lib/openat.h (rpl_fstatat): New macro, if
2854 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
2855 (fstatat): Define to rpl_fstatat under the same conditions,
2856 unless COMPILING_FSTATAT.
2857 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
2858 seems to have the bug.
2859 * lib/fstatat.c: New file.
2860 * modules/openat (Files): Add it.
2862 2006-11-20 Bruno Haible <bruno@clisp.org>
2864 * Makefile: New file.
2866 2006-11-20 Jim Meyering <jim@meyering.net>
2868 The beginnings of syntax-related checks for gnulib.
2869 * lib/Makefile: New file.
2870 * lib/t-idcache: New script. Ensure that the two halves of
2871 idcache.c stay in sync.
2873 * lib/idcache.c: Adjust comments in user- and group- portions to
2874 be more accurate, and to be consistent with one another.
2876 2006-11-20 Jim Meyering <jim@meyering.net>
2878 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
2879 continue using the flexible array member (thus, this module performs
2880 half as many malloc calls), with the addition that...
2881 (getgroup, getuser): Consistently record a non-match via an empty
2882 "name" string, and map an empty string match to a NULL return value.
2883 * modules/idcache (Depends-on): Re-add flexmember.
2885 * lib/idcache.c (getuser): Remove all uses of the register keyword.
2886 (getuidbyname, getgroup, getgidbyname): Likewise.
2888 Use cleaner syntax: NULL rather than 0.
2889 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
2891 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
2893 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
2894 It mishandled the case where the group was missing.
2895 Problem reported by Greg Schafer.
2896 * modules/idcache: Likewise.
2898 2006-11-18 Jim Meyering <jim@meyering.net>
2900 * check-module (%exempt_header): Add exception for some
2901 conditionally-included headers.
2903 * modules/i-ring (Depends-on): Add verify.
2904 (License): Change to LGPL.
2906 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
2908 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
2909 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
2910 and inttostr.h. Use snprintf rather than uinttostr, so that
2911 LGPLed code doesn't depend on GPLed.
2913 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
2915 * modules/inline (License): Change from GPL to LGPL.
2917 2006-11-17 Jim Meyering <jim@meyering.net>
2919 * modules/d-type (License): Switch to LGPL.
2921 2006-11-15 Bruno Haible <bruno@clisp.org>
2923 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
2925 2006-11-15 Eric Blake <ebb9@byu.net>
2927 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
2928 the module dependency.
2930 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2931 Bruno Haible <bruno@clisp.org>
2933 * gnulib-tool (func_create_testdir): Add license consistency check.
2935 2006-11-15 Eric Blake <ebb9@byu.net>
2937 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
2938 random "(cached)" in configure output.
2940 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2942 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
2943 test for conforming inttypes.h is both announced and cached.
2945 * MODULES.html.sh (seen_modules, seen_files): New variables.
2946 (func_module): Rewrite to use a few less gnulib-tool and sed
2947 invocations. Avoid a couple of quadratic algorithms for ...
2948 (missed_modules, missed_files): ... these, with ...
2949 (func_append, func_tmpdir): ... these new functions, from
2950 gnulib-tool. Analogously, install traps for cleanup.
2952 * tests/test-gc.c (main): Remove unused variables.
2953 * tests/test-read-file.c: Include stdlib.h, for 'free'.
2955 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
2957 * modules/inttostr (License): Change to LGPL.
2959 2006-11-14 Eric Blake <ebb9@byu.net>
2961 * modules/tempname (License): Change to LGPL.
2963 2006-11-14 Eric Blake <ebb9@byu.net>
2965 * doc/functions.texi (Function Portability): *printf functions on
2966 Cygwin now understand all POSIX size specifiers.
2968 2006-11-14 Bruno Haible <bruno@clisp.org>
2970 * modules/c-ctype (License): Change to LGPL.
2972 2006-11-12 Bruno Haible <bruno@clisp.org>
2974 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2975 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
2976 for GNOME libraries, for which the include files are installed in
2977 subdirectories of $prefix/include.
2979 2006-11-12 Bruno Haible <bruno@clisp.org>
2981 * m4/lib-link.m4: Require at least autoconf-2.54.
2982 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
2983 name to underscores for the --with option.
2985 2006-11-13 Bruno Haible <bruno@clisp.org>
2987 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
2988 the tests directory.
2989 Reported by Ralf Wildenhues.
2991 2006-11-13 Bruno Haible <bruno@clisp.org>
2993 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
2994 (func_emit_initmacro_end): Undo the override here.
2995 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
2996 Works around the famous automake error in coreutils.
2998 2006-11-13 Eric Blake <ebb9@byu.net>
3000 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
3001 element, not its node.
3003 2006-11-12 Bruno Haible <bruno@clisp.org>
3005 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
3006 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
3008 2006-11-12 Bruno Haible <bruno@clisp.org>
3010 * gnulib-tool: New option --local-symlink.
3011 (func_usage): Document it.
3012 (lsymbolic): New variable.
3013 (func_import, func_create_testdir): If --symlink was not specified,
3014 test whether --local-symlink was specified and the file comes from
3015 the local_gnulib_dir.
3017 2006-11-12 Bruno Haible <bruno@clisp.org>
3019 * gnulib-tool (func_ln): New function.
3020 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
3022 2006-11-12 Bruno Haible <bruno@clisp.org>
3024 Finish support for source files in subdirectories.
3025 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
3026 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
3028 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
3030 2006-11-12 Bruno Haible <bruno@clisp.org>
3032 * gnulib-tool (func_get_automake_snippet): Synthesize also an
3033 EXTRA_lib_SOURCES augmentation.
3034 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
3036 2006-11-12 Jim Meyering <jim@meyering.net>
3038 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
3039 file descriptors. This also averts a failure on systems with
3040 native openat support when a traversed directory lacks "x" access.
3041 * lib/fts_.h: Include "i-ring.h"
3042 (struct FTS) [fts_fd_ring]: New member.
3043 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
3044 (FCHDIR): Add parentheses.
3045 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
3046 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
3047 When descending, rather than simply closing the previous
3048 fts_cwd_fd value, push that file descriptor onto the ring.
3049 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
3050 (fts_open): Initialize the new fd_ring member.
3051 (fts_close): Clear the ring.
3052 (fts_safe_changedir): When possible, use our new fd_ring to skip
3053 the diropen and fstat and dev/ino comparison that would normally
3054 accompany a virtual `chdir ("..")'.
3056 * modules/fts (Depends-on): Add i-ring.
3057 * modules/i-ring: New module.
3058 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
3059 * m4/i-ring.m4: New file.
3061 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3063 * gnulib-tool (func_create_testdir): Fix replacement of
3064 `build-aux' in configure.ac. Run autotools in gltests
3066 (func_create_testdir, func_create_megatestdir, test): There is
3067 no need for '--force' in most autotool invocations in a new
3068 tree. Actually fail the whole test if any of the tools, or the
3069 configure or make stages fail.
3072 * build-aux/gnupload: Revert last change. Add pointer to upload
3073 instructions of the GNU Maintenance Instructions.
3074 Suggestion by Karl Berry.
3076 2006-11-10 Jim Meyering <jim@meyering.net>
3078 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
3080 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
3082 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
3083 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
3084 (bind_textdomain_codeset) [! ENABLE_NLS]:
3085 Evaluate all the arguments. That way, callers get compatible behavior
3086 if the arguments have side effects. Also, it avoids some GCC
3087 diagnostics in some cases; Joel E. Denny reported problems when Bison
3088 was configured with --enable-gcc-warnigs.
3090 2006-11-10 Jim Meyering <jim@meyering.net>
3092 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
3093 relevant options in CFLAGS (like -O, -fno-inline) are taken into
3096 2006-11-10 Jim Meyering <jim@meyering.net>
3098 * modules/inline: New file/module.
3099 * modules/xalloc (Files): Remove m4/inline.m4.
3100 (Depends-on): Add inline, instead.
3101 * modules/oset: Likewise.
3102 * modules/list: Likewise.
3104 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
3106 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
3107 Problem reported by Matthew Woehlke.
3109 2006-11-09 Bruno Haible <bruno@clisp.org>
3111 * lib/tempname.c (gen_tempname): Remove variant that invokes
3113 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
3116 2006-11-08 Bruno Haible <bruno@clisp.org>
3118 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
3119 to 'yes' instead of 'cross-compiling'.
3121 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
3123 * lib/quotearg.h (quotearg_free): New decl.
3124 * lib/quotearg.c (quotearg_free): New function.
3125 (slot0, nslots, slotvec0, slotvec):
3126 Now file-scope so that quotearg_free can get at them.
3128 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3131 * build-aux/gnupload: Add missing 'gnu' to example URL.
3132 Report by Karl Berry.
3134 2006-11-08 Bruno Haible <bruno@clisp.org>
3136 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
3137 Suggested by Paul Eggert.
3139 2006-11-08 Jim Meyering <jim@meyering.net>
3141 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
3142 It's already included if !_LIBC.
3143 (fts_safe_changedir): Add a comment.
3145 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
3147 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
3148 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
3151 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
3152 definitions up, to avoid colliding with change below.
3153 (static_inline) [HAVE_INLINE]: New macro.
3154 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
3155 Provide extern decls when !HAVE_INLINE. Do not define unless
3156 static_inline is defined, either by us or by xmalloc.c. Use
3157 static_inline rather than static inline.
3158 (XCALLOC): Optimize sizeof(T) = 1 case.
3159 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
3161 2006-11-07 Bruno Haible <bruno@clisp.org>
3163 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
3164 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
3166 * modules/xalloc (Files): Add m4/inline.m4.
3168 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3171 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
3172 (Miscellanous Notes): ...from this.
3174 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
3176 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
3177 Mention that offsetof should be used instead of sizeof.
3180 2006-11-07 Bruno Haible <bruno@clisp.org>
3182 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
3184 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
3186 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
3187 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
3188 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
3189 (gl_tree_add_before, gl_tree_add_after):
3190 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
3191 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
3192 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
3193 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
3194 (gl_linked_add_after, gl_linked_add_at): Likewise.
3195 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
3196 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
3197 (gl_tree_add_before, gl_tree_add_after): Likewise.
3198 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
3199 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
3200 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
3202 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3204 * lib/gl_oset.h: Use C comment style, not C++ comment style.
3206 2006-11-06 Bruno Haible <bruno@clisp.org>
3208 * m4/inline.m4: New file.
3209 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
3210 * modules/list (Files): Add m4/inline.m4.
3211 * modules/oset (Files): Likewise.
3213 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
3215 * lib/idcache.c: Include <stddef.h>, for offsetof.
3216 (struct userid.name): Change from char * to a flexible array member.
3218 * modules/idcache (Depends-on): Add flexmember.
3220 * MODULES.html.sh (Core language properties): New module flexmember.
3221 * modules/flexmember, m4/flexmember.m4: New files.
3223 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
3224 inline functions that are identical with the old xnmalloc_inline,
3225 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
3226 that we can avoid some unnecessary integer multiplications and
3227 divisions in the common case where the element size is known at
3229 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
3231 (xnboundedmalloc): Remove.
3232 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
3233 arguments, for consistency with rest of this header.
3234 (xcharalloc): Rewrite using XNMALLOC.
3235 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
3236 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
3237 versions have been moved to lib/xalloc.h and renamed to be the
3238 non-*_inline versions.
3239 (xmalloc, xrealloc): Implement without reference to the xnmalloc
3240 and xnrealloc functions, since those functions are now inline and
3242 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
3243 renaming described above.
3244 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
3245 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
3246 captures the dependency in AC_C_INLINE.
3248 New module canonicalize-lgpl, proposed by Charles Wilson in
3249 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
3250 with a few small changes afterwards.
3251 * MODULES.html.sh (File system functions): New module
3253 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
3254 and canonicalize_file_name.
3255 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
3256 * modules/canonicalize-lgpl: New files.
3258 2006-11-05 Bruno Haible <bruno@clisp.org>
3260 * gnulib-tool (func_import, func_create_testdir): Create directories
3261 also for files in subdirectories of lib/.
3263 2006-11-05 Bruno Haible <bruno@clisp.org>
3265 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
3268 2006-11-03 Bruno Haible <bruno@clisp.org>
3270 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
3271 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
3272 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
3273 (xnboundedmalloc): New inline function.
3274 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
3275 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
3277 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
3279 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
3280 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
3281 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
3283 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
3284 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
3286 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
3287 gl_tree_add_after): Use XMALLOC instead of xmalloc.
3288 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
3290 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
3291 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
3292 gl_tree_add_after): Use XMALLOC instead of xmalloc.
3293 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
3294 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
3295 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
3296 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
3298 2006-11-03 Bruno Haible <bruno@clisp.org>
3300 * lib/c-ctype.h [C++]: Define functions without name mangling.
3301 * lib/fwriteerror.h [C++]: Likewise.
3302 * lib/gcd.h [C++]: Likewise.
3303 * lib/linebreak.h [C++]: Likewise.
3305 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
3307 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
3308 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
3309 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
3310 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
3311 Check for functions and headers just once.
3312 Check for declaration of canonicalize_file_name.
3313 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
3315 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
3317 * gnulib-tool (func_import): Fix typo in actioncmd.
3319 2006-11-02 Bruno Haible <bruno@clisp.org>
3321 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
3322 newline sequence in the Makefile.am snippet as a space, like "make"
3324 Reported by Roger Persson <perrog@gmail.com>.
3326 2006-11-01 Bruno Haible <bruno@clisp.org>
3328 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
3329 already declared in <string.h>.
3330 * lib/strcase.h (strncasecmp): Don't declare it if yes.
3332 2006-11-01 Bruno Haible <bruno@clisp.org>
3334 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
3335 * lib/strcase.h: Include <string.h>.
3336 (strcasecmp): Define to rpl_strcasecmp here.
3338 2006-11-01 Bruno Haible <bruno@clisp.org>
3340 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
3342 2006-11-01 Eric Blake <ebb9@byu.net>
3344 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
3346 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
3348 2006-10-29 Bruno Haible <bruno@clisp.org>
3350 Make it compile in C++ mode.
3351 * lib/full-write.c (full_rw): Add a cast.
3353 2006-11-01 Bruno Haible <bruno@clisp.org>
3355 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
3357 Reported by Roger Persson <perrog@gmail.com>.
3359 2006-11-01 Eric Blake <ebb9@byu.net>
3361 * lib/getopt_.h: Fix comments.
3363 2006-10-31 Eric Blake <ebb9@byu.net>
3365 * modules/tmpdir (Depends-on): Add sys_stat.
3366 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
3367 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
3368 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
3369 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
3372 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
3374 Avoid some C++ diagnostics reported by Bruno Haible.
3375 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
3377 (quotearg_alloc): Use xcharalloc rather than xmalloc.
3378 (struct slotvec): Move to top level.
3379 (quotearg_n_options): Rewrite to avoid xmalloc.
3380 * lib/xalloc.h (xcharalloc): New function.
3381 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
3382 [defined __cplusplus]: Add function template that provides result
3383 type propagation. This part of the change is from Bruno Haible.
3385 2006-10-29 Bruno Haible <bruno@clisp.org>
3387 Make it compile in C++ mode.
3388 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
3389 * lib/strnlen1.c (strnlen1): Cast memchr result.
3390 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
3391 * lib/clean-temp.c (string_equals, string_hash): Add casts.
3392 (create_temp_dir): Rename local variable 'template'.
3393 (compile_csharp_using_sscli): Add cast.
3394 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
3395 * lib/findprog.c (find_in_path): Likewise.
3396 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
3397 * lib/wait-process.c (register_slave_subprocess): Likewise.
3399 2006-10-22 Bruno Haible <bruno@clisp.org>
3401 * modules/tsearch: New file.
3402 * lib/tsearch.h: New file.
3403 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
3404 * m4/tsearch.m4: New file.
3405 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
3407 2006-10-29 Eric Blake <ebb9@byu.net>
3409 * lib/arcfour.c: Assume config.h.
3410 * lib/arctwo.c: Likewise.
3411 * lib/base64.c: Likewise.
3412 * lib/check-version.c: Likewise.
3413 * lib/crc.c: Likewise.
3414 * lib/des.c: Likewise.
3415 * lib/gc-gnulib.c: Likewise.
3416 * lib/gc-libgcrypt.c: Likewise.
3417 * lib/gc-pbkdf2-sha1.c: Likewise.
3418 * lib/getaddrinfo.c: Likewise.
3419 * lib/getdelim.c: Likewise.
3420 * lib/getline.c: Likewise.
3421 * lib/hmac-md5.c: Likewise.
3422 * lib/hmac-sha1.c: Likewise.
3423 * lib/iconvme.c: Likewise.
3424 * lib/md2.c: Likewise.
3425 * lib/md4.c: Likewise.
3426 * lib/memxor.c: Likewise.
3427 * lib/read-file.c: Likewise.
3428 * lib/readline.c: Likewise.
3429 * lib/rijndael-alg-fst.c: Likewise.
3430 * lib/rijndael-api-fst.c: Likewise.
3431 * lib/xgetdomainname.c: Likewise.
3433 2006-10-28 Eric Blake <ebb9@byu.net>
3435 * lib/xstrndup.c: Assume config.h.
3437 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
3439 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
3440 stat-macros.h is now for our own macros, whereas stat_h is for
3441 macros in the <sys/stat.h> name space.
3442 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
3443 (STAT_MACROS_H): Remove.
3444 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
3445 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
3446 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
3447 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
3448 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
3449 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
3450 Move these macros to ...
3451 * lib/stat_.h: here. Don't include stat-macros.h.
3452 * lib/canonicalize.c: Don't include stat-macros.h.
3453 * lib/chown.c: Likewise.
3454 * lib/euidaccess.c: Likewise.
3455 * lib/file-type.c: Likewise.
3456 * lib/filemode.c: Likewise.
3457 * lib/glob.c: Likewise.
3458 * lib/isapipe.c: Likewise.
3459 * lib/lchown.c: Likewise.
3460 * lib/lstat.c: Likewise.
3461 * lib/mkdir-p.c: Likewise.
3462 * lib/rmdir.c: Likewise.
3463 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
3464 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
3465 unless mkdir isn't declared, to speed up 'configure'.
3466 Always create sys/stat.h, since it's unlikely any real sys/stat.h
3467 would define all the S_* symbols.
3468 * modules/canonicalize (Depends-on):
3469 Depend on sys_stat, not stat-macros.
3470 * modules/chown: Likewise.
3471 * modules/euidaccess: Likewise.
3472 * modules/filemode: Likewise.
3473 * modules/file-type: Likewise.
3474 * modules/glob: Likewise.
3475 * modules/isapipe: Likewise.
3476 * modules/lchown: Likewise.
3477 * modules/lstat: Likewise.
3478 * modules/mkancesdirs: Likewise.
3479 * modules/rmdir: Likewise.
3480 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
3481 * modules/modechange: Likewise.
3482 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
3483 (configure.ac): Remove gl_STAT_MACROS.
3484 * modules/sys_stat (Depends-on): Remove stat-macros.
3486 2006-10-27 Bruno Haible <bruno@clisp.org>
3488 * m4/signed.m4: Remove file.
3489 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
3491 * modules/vasnprintf (Files): Remove m4/signed.m4.
3493 2006-10-27 Bruno Haible <bruno@clisp.org>
3495 Update to GNU gettext 0.16.
3496 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
3497 m4/inttypes-h.m4, m4/signed.m4.
3498 * m4/gettext.m4: Update to GNU gettext 0.16.
3499 * m4/intl.m4: New file, from GNU gettext.
3500 * m4/intldir.m4: New file, from GNU gettext.
3501 * config/srclist.txt: Update
3503 2006-10-27 Eric Blake <ebb9@byu.net>
3505 * MODULES.html.sh: Document tempname.
3506 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
3508 (Files): Move lib/tempname.c...
3509 * modules/tempname: ...to this new module.
3510 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
3511 (gl_PREREQ_TEMPNAME): Move...
3512 * m4/tempname.m4: ...to this new file.
3513 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
3514 * modules/sys_stat (Depends-on): Add stat-macros.
3515 * lib/stat_.h (includes): Pick up stat macros.
3516 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
3517 if stat macros are broken.
3518 * lib/tempname.c (includes): No need to include "stat-macros.h".
3519 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
3520 (direxists, __path_search) [!_LIBC]: Don't compile these in
3521 gnulib; the tmpdir module covers that.
3522 * lib/tempname.h: New file.
3524 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
3526 * COPYING: Explain how gnulib-tool converts licence headers.
3527 Almost all wording by Eric Blake.
3529 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
3531 * lib/mbchar.h (is_basic_table): Make read-only.
3532 * lib/mbchar.c (is_basic_table): Likewise.
3533 Reported by John Darrington.
3535 2006-10-25 Bruno Haible <bruno@clisp.org>
3537 * lib/progname.h (set_program_name): Undefine before defining.
3539 2006-10-25 Bruno Haible <bruno@clisp.org>
3541 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
3542 false for non-gcc C++ compilers.
3543 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3545 2006-10-24 Bruno Haible <bruno@clisp.org>
3547 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
3548 iconv implementations like Irix iconv.
3550 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
3552 * modules/vararrays: New file.
3553 * m4/vararrays.m4: New file, taken from diffutils.
3554 * MODULES.html.sh: New module vararrays.
3556 2006-10-24 Karl Berry <karl@gnu.org>
3558 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
3559 Don't call GNU Unix.
3561 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3563 * users.txt: Add Libtool.
3567 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
3569 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
3570 to gnulib's policy of including config.h unconditionally.
3572 2006-10-24 Bruno Haible <bruno@clisp.org>
3574 * modules/wcwidth (Files): Add m4/wint_t.m4.
3575 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
3576 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
3578 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
3580 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
3581 to pacify GCC with some -W flags enabled. Problem reported by
3584 2006-10-24 Jim Meyering <jim@meyering.net>
3586 * MODULES.html.sh: Remove uinttostr. It's not a module.
3587 Reported by Karl Berry.
3589 2006-10-23 Bruno Haible <bruno@clisp.org>
3591 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
3593 2006-10-24 Bruno Haible <bruno@clisp.org>
3595 * lib/gl_list.h: Use C comment style, not C++ comment style.
3597 2006-10-23 Eric Blake <ebb9@byu.net>
3599 * lib/getaddrinfo.c (includes): Add missing include.
3601 2006-10-23 Bruno Haible <bruno@clisp.org>
3602 Paul Eggert <eggert@cs.ucla.edu>
3604 Ability to rename obstack_free.
3605 * lib/obstack.h (__obstack_free): New macro. Declare instead of
3607 (obstack_free): Invoke the __obstack_free macro.
3608 * lib/obstack.c (obstack_free): Use __obstack_free macro.
3610 2006-10-23 Bruno Haible <bruno@clisp.org>
3611 Paul Eggert <eggert@cs.ucla.edu>
3613 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
3614 __argc, __argv from the declaration. (They are defined as macros on
3617 2006-10-22 Bruno Haible <bruno@clisp.org>
3619 * doc/gnulib-intro.texi: New file.
3620 * doc/gnulib.texi: Include it.
3622 2006-10-21 Bruno Haible <bruno@clisp.org>
3624 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
3625 "Introduction", "Miscellanous Notes", "Particular Modules".
3627 2006-10-21 Bruno Haible <bruno@clisp.org>
3629 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3630 Change mostlyclean-local rule to avoid sh syntax error from bash
3631 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
3633 2006-10-23 Jim Meyering <jim@meyering.net>
3635 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
3636 in place of snprintf.
3638 * modules/inttostr (Files): Add lib/uinttostr.c.
3639 * lib/uinttostr.c (inttostr): New file/function.
3640 * lib/inttostr.h (uinttostr): Declare.
3641 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
3642 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
3644 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
3646 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
3648 * lib/canonicalize.c (ELOOP): Define if not already defined.
3649 Problem reported by Bruno Haible in
3650 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
3652 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
3654 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
3655 Problem reported by Perry Smith and Ville Laurikari.
3657 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
3660 2006-10-19 Bruno Haible <bruno@clisp.org>
3662 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
3665 2006-10-19 Bruno Haible <bruno@clisp.org>
3667 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
3670 2006-10-19 Bruno Haible <bruno@clisp.org>
3672 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
3674 2006-10-19 Bruno Haible <bruno@clisp.org>
3676 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
3679 2006-10-19 Bruno Haible <bruno@clisp.org>
3681 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
3684 2006-10-19 Bruno Haible <bruno@clisp.org>
3686 * gnulib-tool (func_create_testdir): Don't include ftruncate and
3687 mountlist by default.
3689 2006-10-16 Bruno Haible <bruno@clisp.org>
3691 * lib/c-strstr.c: Include c-strstr.h.
3693 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
3695 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
3698 2006-10-18 Bruno Haible <bruno@clisp.org>
3700 * lib/lock.h [C++]: Wrap definitions in extern "C".
3702 2006-10-18 Bruno Haible <bruno@clisp.org>
3704 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
3707 2006-10-18 Bruno Haible <bruno@clisp.org>
3709 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
3711 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
3713 * lib/xstrtol.h: Include gettext.h.
3714 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
3715 Problem reported by Eric Blake.
3716 * modules/xstrtol (Depends-on): Add gettext-h.
3718 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
3720 * lib/strftime.c (advance): New macro.
3721 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
3722 incomplete type, so you can't add 0 to it. Problem and patch
3723 reported by Eelco Dolstra for dietlibc.
3725 2006-10-18 Jim Meyering <jim@meyering.net>
3727 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
3728 type for a local, and rename it: s/up/user_proc/.
3730 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
3732 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
3733 READ_UTMP_USER_PROCESS.
3734 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
3736 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
3738 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
3739 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
3741 2006-10-17 Eric Blake <ebb9@byu.net>
3743 * lib/sigprocmask.c (sigprocmask): Fix typo.
3745 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
3747 * modules/clean-temp (Makefile.am): Don't add to make output...
3748 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
3751 2006-10-17 Bruno Haible <bruno@clisp.org>
3753 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
3754 differently if DEFAULT_TEXT_DOMAIN is set.
3756 2006-10-16 Bruno Haible <bruno@clisp.org>
3758 * lib/clean-temp.c: Include fwriteerror.h.
3760 2006-10-16 Bruno Haible <bruno@clisp.org>
3762 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
3764 2006-10-16 Bruno Haible <bruno@clisp.org>
3766 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
3767 * lib/sigprocmask.h: Include <sys/types.h>.
3768 (sigset_t): Use the system's definition if present.
3770 2006-10-17 Eric Blake <ebb9@byu.net>
3772 * lib/xvasprintf.c (includes): Assume config.h.
3773 * lib/xasprintf.c (includes): Likewise.
3775 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
3777 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
3778 at least as wide as intmax_t.
3780 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
3782 (Imported from Automake.)
3783 * build-aux/gnupload: Update to version 1.1 of directive file.
3785 2006-10-16 Eric Blake <ebb9@byu.net>
3787 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
3788 match Automake 1.10a.
3790 2006-10-14 Bruno Haible <bruno@clisp.org>
3792 * modules/sigprocmask: New file.
3793 * lib/sigprocmask.h: New file.
3794 * lib/sigprocmask.c: New file.
3795 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
3796 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
3797 request sigprocmask.o.
3798 (gl_PREREQ_SIGPROCMASK): New macro.
3799 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
3800 (Depends-on): Add sigprocmask.
3801 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
3802 gt_SIGNALBLOCKING. Test for 'raise' only once.
3803 * lib/fatal-signal.c: Include sigprocmask.h.
3804 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
3805 unblock_fatal_signals): Define always.
3806 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
3809 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
3812 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
3813 which incorrectly sets the mode of an existing destination
3814 directory. In some cases the unpatched install-sh could do the
3815 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
3816 system. We hope this is rare in practice, but it's clearly worth
3817 fixing. Problem reported by Alex Unleashed in
3818 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
3819 Also, don't bother to check for -m bugs unless we're using -m;
3820 suggested by Stepan Kasal.
3822 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3825 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
3826 `-c' flag, so they appear at the same position as in %FASTDEP%
3827 mode in depend2.am. Fixes build failure for FreeBSD's c89,
3828 which ignores unknown options only after the first non-option.
3829 Bug report against M4 by Nelson H. F. Beebe.
3831 2006-10-13 Jim Meyering <jim@meyering.net>
3833 Fix a bug in yesterday's change.
3834 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
3835 p->fts_statp->st_dev would be used uninitialized.
3836 Ensures that we always call fts_stat on the very first entry.
3837 Miklos Szeredi reported that find -xdev stopped working.
3839 2006-10-12 Bruno Haible <bruno@clisp.org>
3841 * gnulib-tool (func_get_automake_snippet): Append an automatically
3842 computed EXTRA_DIST augmentation.
3843 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
3844 * modules/alloca-opt (Makefile.am): Likewise.
3845 * modules/allocsa (Makefile.am): Likewise.
3846 * modules/arcfour (Makefile.am): Likewise.
3847 * modules/arctwo (Makefile.am): Likewise.
3848 * modules/argmatch (Makefile.am): Likewise.
3849 * modules/argz (Makefile.am): Likewise.
3850 * modules/atexit (Makefile.am): Likewise.
3851 * modules/backupfile (Makefile.am): Likewise.
3852 * modules/byteswap (Makefile.am): Likewise.
3853 * modules/c-strtod (Makefile.am): Likewise.
3854 * modules/c-strtold (Makefile.am): Likewise.
3855 * modules/calloc (Makefile.am): Likewise.
3856 * modules/canon-host (Makefile.am): Likewise.
3857 * modules/canonicalize (Makefile.am): Likewise.
3858 * modules/chdir-long (Makefile.am): Likewise.
3859 * modules/chdir-safer (Makefile.am): Likewise.
3860 * modules/check-version (Makefile.am): Likewise.
3861 * modules/chown (Makefile.am): Likewise.
3862 * modules/cloexec (Makefile.am): Likewise.
3863 * modules/close-stream (Makefile.am): Likewise.
3864 * modules/closeout (Makefile.am): Likewise.
3865 * modules/crc (Makefile.am): Likewise.
3866 * modules/csharpexec (Makefile.am): Likewise.
3867 * modules/cycle-check (Makefile.am): Likewise.
3868 * modules/des (Makefile.am): Likewise.
3869 * modules/dev-ino (Makefile.am): Likewise.
3870 * modules/dirfd (Makefile.am): Likewise.
3871 * modules/dirname (Makefile.am): Likewise.
3872 * modules/dup2 (Makefile.am): Likewise.
3873 * modules/eealloc (Makefile.am): Likewise.
3874 * modules/error (Makefile.am): Likewise.
3875 * modules/euidaccess (Makefile.am): Likewise.
3876 * modules/exclude (Makefile.am): Likewise.
3877 * modules/exitfail (Makefile.am): Likewise.
3878 * modules/fcntl-safer (Makefile.am): Likewise.
3879 * modules/fcntl (Makefile.am): Likewise.
3880 * modules/file-type (Makefile.am): Likewise.
3881 * modules/fileblocks (Makefile.am): Likewise.
3882 * modules/filemode (Makefile.am): Likewise.
3883 * modules/filenamecat (Makefile.am): Likewise.
3884 * modules/fnmatch (Makefile.am): Likewise.
3885 * modules/fopen-safer (Makefile.am): Likewise.
3886 * modules/fpending (Makefile.am): Likewise.
3887 * modules/fprintftime (Makefile.am): Likewise.
3888 * modules/free (Makefile.am): Likewise.
3889 * modules/fsusage (Makefile.am): Likewise.
3890 * modules/ftruncate (Makefile.am): Likewise.
3891 * modules/fts (Makefile.am): Likewise.
3892 * modules/gc-arcfour (Makefile.am): Likewise.
3893 * modules/gc-des (Makefile.am): Likewise.
3894 * modules/gc-hmac-md5 (Makefile.am): Likewise.
3895 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
3896 * modules/gc-md4 (Makefile.am): Likewise.
3897 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
3898 * modules/gc-sha1 (Makefile.am): Likewise.
3899 * modules/gc (Makefile.am): Likewise.
3900 * modules/getaddrinfo (Makefile.am): Likewise.
3901 * modules/getcwd (Makefile.am): Likewise.
3902 * modules/getdelim (Makefile.am): Likewise.
3903 * modules/getdomainname (Makefile.am): Likewise.
3904 * modules/getgroups (Makefile.am): Likewise.
3905 * modules/gethostname (Makefile.am): Likewise.
3906 * modules/gethrxtime (Makefile.am): Likewise.
3907 * modules/getline (Makefile.am): Likewise.
3908 * modules/getloadavg (Makefile.am): Likewise.
3909 * modules/getlogin_r (Makefile.am): Likewise.
3910 * modules/getndelim2 (Makefile.am): Likewise.
3911 * modules/getopt (Makefile.am): Likewise.
3912 * modules/getpagesize (Makefile.am): Likewise.
3913 * modules/getpass-gnu (Makefile.am): Likewise.
3914 * modules/getpass (Makefile.am): Likewise.
3915 * modules/getsubopt (Makefile.am): Likewise.
3916 * modules/gettime (Makefile.am): Likewise.
3917 * modules/gettimeofday (Makefile.am): Likewise.
3918 * modules/getugroups (Makefile.am): Likewise.
3919 * modules/getusershell (Makefile.am): Likewise.
3920 * modules/glob (Makefile.am): Likewise.
3921 * modules/group-member (Makefile.am): Likewise.
3922 * modules/hard-locale (Makefile.am): Likewise.
3923 * modules/hash (Makefile.am): Likewise.
3924 * modules/hmac-md5 (Makefile.am): Likewise.
3925 * modules/hmac-sha1 (Makefile.am): Likewise.
3926 * modules/human (Makefile.am): Likewise.
3927 * modules/idcache (Makefile.am): Likewise.
3928 * modules/imaxabs (Makefile.am): Likewise.
3929 * modules/imaxdiv (Makefile.am): Likewise.
3930 * modules/inet_ntop (Makefile.am): Likewise.
3931 * modules/inet_pton (Makefile.am): Likewise.
3932 * modules/intprops (Makefile.am): Likewise.
3933 * modules/inttostr (Makefile.am): Likewise.
3934 * modules/inttypes (Makefile.am): Likewise.
3935 * modules/isapipe (Makefile.am): Likewise.
3936 * modules/javaversion (Makefile.am): Likewise.
3937 * modules/lchmod (Makefile.am): Likewise.
3938 * modules/lchown (Makefile.am): Likewise.
3939 * modules/localcharset (Makefile.am): Likewise.
3940 * modules/long-options (Makefile.am): Likewise.
3941 * modules/lstat (Makefile.am): Likewise.
3942 * modules/malloc (Makefile.am): Likewise.
3943 * modules/mathl (Makefile.am): Likewise.
3944 * modules/mbchar (Makefile.am): Likewise.
3945 * modules/md2 (Makefile.am): Likewise.
3946 * modules/md4 (Makefile.am): Likewise.
3947 * modules/md5 (Makefile.am): Likewise.
3948 * modules/memcasecmp (Makefile.am): Likewise.
3949 * modules/memchr (Makefile.am): Likewise.
3950 * modules/memcmp (Makefile.am): Likewise.
3951 * modules/memcoll (Makefile.am): Likewise.
3952 * modules/memcpy (Makefile.am): Likewise.
3953 * modules/memmem (Makefile.am): Likewise.
3954 * modules/memmove (Makefile.am): Likewise.
3955 * modules/mempcpy (Makefile.am): Likewise.
3956 * modules/memrchr (Makefile.am): Likewise.
3957 * modules/memset (Makefile.am): Likewise.
3958 * modules/memxor (Makefile.am): Likewise.
3959 * modules/mkancesdirs (Makefile.am): Likewise.
3960 * modules/mkdir-p (Makefile.am): Likewise.
3961 * modules/mkdir (Makefile.am): Likewise.
3962 * modules/mkdtemp (Makefile.am): Likewise.
3963 * modules/mkstemp (Makefile.am): Likewise.
3964 * modules/mktime (Makefile.am): Likewise.
3965 * modules/modechange (Makefile.am): Likewise.
3966 * modules/mountlist (Makefile.am): Likewise.
3967 * modules/nanosleep (Makefile.am): Likewise.
3968 * modules/obstack (Makefile.am): Likewise.
3969 * modules/openat (Makefile.am): Likewise.
3970 * modules/pagealign_alloc (Makefile.am): Likewise.
3971 * modules/pathmax (Makefile.am): Likewise.
3972 * modules/physmem (Makefile.am): Likewise.
3973 * modules/poll (Makefile.am): Likewise.
3974 * modules/posixtm (Makefile.am): Likewise.
3975 * modules/posixver (Makefile.am): Likewise.
3976 * modules/putenv (Makefile.am): Likewise.
3977 * modules/quote (Makefile.am): Likewise.
3978 * modules/quotearg (Makefile.am): Likewise.
3979 * modules/raise (Makefile.am): Likewise.
3980 * modules/read-file (Makefile.am): Likewise.
3981 * modules/readline (Makefile.am): Likewise.
3982 * modules/readlink (Makefile.am): Likewise.
3983 * modules/readtokens (Makefile.am): Likewise.
3984 * modules/readutmp (Makefile.am): Likewise.
3985 * modules/realloc (Makefile.am): Likewise.
3986 * modules/regex (Makefile.am): Likewise.
3987 * modules/rename-dest-slash (Makefile.am): Likewise.
3988 * modules/rename (Makefile.am): Likewise.
3989 * modules/rijndael (Makefile.am): Likewise.
3990 * modules/rmdir (Makefile.am): Likewise.
3991 * modules/rpmatch (Makefile.am): Likewise.
3992 * modules/safe-read (Makefile.am): Likewise.
3993 * modules/safe-write (Makefile.am): Likewise.
3994 * modules/same-inode (Makefile.am): Likewise.
3995 * modules/same (Makefile.am): Likewise.
3996 * modules/save-cwd (Makefile.am): Likewise.
3997 * modules/savedir (Makefile.am): Likewise.
3998 * modules/setenv (Makefile.am): Likewise.
3999 * modules/settime (Makefile.am): Likewise.
4000 * modules/sha1 (Makefile.am): Likewise.
4001 * modules/sig2str (Makefile.am): Likewise.
4002 * modules/snprintf (Makefile.am): Likewise.
4003 * modules/stat-macros (Makefile.am): Likewise.
4004 * modules/stat-time (Makefile.am): Likewise.
4005 * modules/stdbool (Makefile.am): Likewise.
4006 * modules/stdint (Makefile.am): Likewise.
4007 * modules/stdlib-safer (Makefile.am): Likewise.
4008 * modules/stpcpy (Makefile.am): Likewise.
4009 * modules/stpncpy (Makefile.am): Likewise.
4010 * modules/strcase (Makefile.am): Likewise.
4011 * modules/strcasestr (Makefile.am): Likewise.
4012 * modules/strchrnul (Makefile.am): Likewise.
4013 * modules/strcspn (Makefile.am): Likewise.
4014 * modules/strdup (Makefile.am): Likewise.
4015 * modules/strerror (Makefile.am): Likewise.
4016 * modules/strftime (Makefile.am): Likewise.
4017 * modules/strndup (Makefile.am): Likewise.
4018 * modules/strnlen (Makefile.am): Likewise.
4019 * modules/strpbrk (Makefile.am): Likewise.
4020 * modules/strsep (Makefile.am): Likewise.
4021 * modules/strstr (Makefile.am): Likewise.
4022 * modules/strtod (Makefile.am): Likewise.
4023 * modules/strtoimax (Makefile.am): Likewise.
4024 * modules/strtok_r (Makefile.am): Likewise.
4025 * modules/strtol (Makefile.am): Likewise.
4026 * modules/strtoll (Makefile.am): Likewise.
4027 * modules/strtoul (Makefile.am): Likewise.
4028 * modules/strtoull (Makefile.am): Likewise.
4029 * modules/strtoumax (Makefile.am): Likewise.
4030 * modules/strverscmp (Makefile.am): Likewise.
4031 * modules/sys_socket (Makefile.am): Likewise.
4032 * modules/sys_stat (Makefile.am): Likewise.
4033 * modules/sysexits (Makefile.am): Likewise.
4034 * modules/time_r (Makefile.am): Likewise.
4035 * modules/timegm (Makefile.am): Likewise.
4036 * modules/timespec (Makefile.am): Likewise.
4037 * modules/tmpfile-safer (Makefile.am): Likewise.
4038 * modules/trim (Makefile.am): Likewise.
4039 * modules/unistd-safer (Makefile.am): Likewise.
4040 * modules/unlinkdir (Makefile.am): Likewise.
4041 * modules/unlocked-io (Makefile.am): Likewise.
4042 * modules/userspec (Makefile.am): Likewise.
4043 * modules/utime (Makefile.am): Likewise.
4044 * modules/utimecmp (Makefile.am): Likewise.
4045 * modules/utimens (Makefile.am): Likewise.
4046 * modules/vasnprintf (Makefile.am): Likewise.
4047 * modules/vasprintf (Makefile.am): Likewise.
4048 * modules/vsnprintf (Makefile.am): Likewise.
4049 * modules/xalloc (Makefile.am): Likewise.
4050 * modules/xgetcwd (Makefile.am): Likewise.
4051 * modules/xnanosleep (Makefile.am): Likewise.
4052 * modules/xreadlink (Makefile.am): Likewise.
4053 * modules/xstrtod (Makefile.am): Likewise.
4054 * modules/xstrtol (Makefile.am): Likewise.
4055 * modules/xstrtold (Makefile.am): Likewise.
4056 * modules/yesno (Makefile.am): Likewise.
4057 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
4059 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
4061 * modules/error (Makefile.am): Distribute files through
4062 EXTRA_DIST, not lib_SOURCES.
4064 2006-10-12 Eric Blake <ebb9@byu.net>
4066 * modules/error (Makefile.am): Distribute files in /lib.
4067 * modules/obstack (Makefile.am): Likewise.
4069 2006-10-12 Bruno Haible <bruno@clisp.org>
4071 * modules/acl (Makefile.am): Distribute all files in lib/ through
4073 * modules/arcfour (Makefile.am): Likewise.
4074 * modules/arctwo (Makefile.am): Likewise.
4075 * modules/argmatch (Makefile.am): Likewise.
4076 * modules/argz (Makefile.am): Likewise.
4077 * modules/atexit (Makefile.am): Likewise.
4078 * modules/backupfile (Makefile.am): Likewise.
4079 * modules/c-strtod (Makefile.am): Likewise.
4080 * modules/c-strtold (Makefile.am): Likewise.
4081 * modules/calloc (Makefile.am): Likewise.
4082 * modules/canon-host (Makefile.am): Likewise.
4083 * modules/canonicalize (Makefile.am): Likewise.
4084 * modules/chdir-long (Makefile.am): Likewise.
4085 * modules/chdir-safer (Makefile.am): Likewise.
4086 * modules/check-version (Makefile.am): Likewise.
4087 * modules/chown (Makefile.am): Likewise.
4088 * modules/cloexec (Makefile.am): Likewise.
4089 * modules/close-stream (Makefile.am): Likewise.
4090 * modules/closeout (Makefile.am): Likewise.
4091 * modules/crc (Makefile.am): Likewise.
4092 * modules/cycle-check (Makefile.am): Likewise.
4093 * modules/des (Makefile.am): Likewise.
4094 * modules/dirfd (Makefile.am): Likewise.
4095 * modules/dirname (Makefile.am): Likewise.
4096 * modules/dup2 (Makefile.am): Likewise.
4097 * modules/euidaccess (Makefile.am): Likewise.
4098 * modules/exclude (Makefile.am): Likewise.
4099 * modules/exitfail (Makefile.am): Likewise.
4100 * modules/fcntl-safer (Makefile.am): Likewise.
4101 * modules/file-type (Makefile.am): Likewise.
4102 * modules/fileblocks (Makefile.am): Likewise.
4103 * modules/filemode (Makefile.am): Likewise.
4104 * modules/filenamecat (Makefile.am): Likewise.
4105 * modules/fnmatch (Makefile.am): Likewise.
4106 * modules/fopen-safer (Makefile.am): Likewise.
4107 * modules/fpending (Makefile.am): Likewise.
4108 * modules/fprintftime (Makefile.am): Likewise.
4109 * modules/free (Makefile.am): Likewise.
4110 * modules/fsusage (Makefile.am): Likewise.
4111 * modules/ftruncate (Makefile.am): Likewise.
4112 * modules/fts (Makefile.am): Likewise.
4113 * modules/gc (Makefile.am): Likewise.
4114 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
4115 * modules/getaddrinfo (Makefile.am): Likewise.
4116 * modules/getcwd (Makefile.am): Likewise.
4117 * modules/getdelim (Makefile.am): Likewise.
4118 * modules/getdomainname (Makefile.am): Likewise.
4119 * modules/getgroups (Makefile.am): Likewise.
4120 * modules/gethostname (Makefile.am): Likewise.
4121 * modules/gethrxtime (Makefile.am): Likewise.
4122 * modules/getline (Makefile.am): Likewise.
4123 * modules/getloadavg (Makefile.am): Likewise.
4124 * modules/getlogin_r (Makefile.am): Likewise.
4125 * modules/getopt (Makefile.am): Likewise.
4126 * modules/getpass (Makefile.am): Likewise.
4127 * modules/getpass-gnu (Makefile.am): Likewise.
4128 * modules/getsubopt (Makefile.am): Likewise.
4129 * modules/gettime (Makefile.am): Likewise.
4130 * modules/gettimeofday (Makefile.am): Likewise.
4131 * modules/getugroups (Makefile.am): Likewise.
4132 * modules/getusershell (Makefile.am): Likewise.
4133 * modules/glob (Makefile.am): Likewise.
4134 * modules/group-member (Makefile.am): Likewise.
4135 * modules/hard-locale (Makefile.am): Likewise.
4136 * modules/hash (Makefile.am): Likewise.
4137 * modules/hmac-md5 (Makefile.am): Likewise.
4138 * modules/hmac-sha1 (Makefile.am): Likewise.
4139 * modules/human (Makefile.am): Likewise.
4140 * modules/idcache (Makefile.am): Likewise.
4141 * modules/imaxabs (Makefile.am): Likewise.
4142 * modules/imaxdiv (Makefile.am): Likewise.
4143 * modules/inet_ntop (Makefile.am): Likewise.
4144 * modules/inet_pton (Makefile.am): Likewise.
4145 * modules/inttostr (Makefile.am): Likewise.
4146 * modules/isapipe (Makefile.am): Likewise.
4147 * modules/lchown (Makefile.am): Likewise.
4148 * modules/long-options (Makefile.am): Likewise.
4149 * modules/lstat (Makefile.am): Likewise.
4150 * modules/malloc (Makefile.am): Likewise.
4151 * modules/mathl (Makefile.am): Likewise.
4152 * modules/mbchar (Makefile.am): Likewise.
4153 * modules/md2 (Makefile.am): Likewise.
4154 * modules/md4 (Makefile.am): Likewise.
4155 * modules/md5 (Makefile.am): Likewise.
4156 * modules/memcasecmp (Makefile.am): Likewise.
4157 * modules/memchr (Makefile.am): Likewise.
4158 * modules/memcmp (Makefile.am): Likewise.
4159 * modules/memcoll (Makefile.am): Likewise.
4160 * modules/memcpy (Makefile.am): Likewise.
4161 * modules/memmem (Makefile.am): Likewise.
4162 * modules/memmove (Makefile.am): Likewise.
4163 * modules/mempcpy (Makefile.am): Likewise.
4164 * modules/memrchr (Makefile.am): Likewise.
4165 * modules/memset (Makefile.am): Likewise.
4166 * modules/memxor (Makefile.am): Likewise.
4167 * modules/mkancesdirs (Makefile.am): Likewise.
4168 * modules/mkdir (Makefile.am): Likewise.
4169 * modules/mkdir-p (Makefile.am): Likewise.
4170 * modules/mkdtemp (Makefile.am): Likewise.
4171 * modules/mkstemp (Makefile.am): Likewise.
4172 * modules/mktime (Makefile.am): Likewise.
4173 * modules/modechange (Makefile.am): Likewise.
4174 * modules/mountlist (Makefile.am): Likewise.
4175 * modules/nanosleep (Makefile.am): Likewise.
4176 * modules/openat (Makefile.am): Likewise.
4177 * modules/pagealign_alloc (Makefile.am): Likewise.
4178 * modules/physmem (Makefile.am): Likewise.
4179 * modules/poll (Makefile.am): Likewise.
4180 * modules/posixtm (Makefile.am): Likewise.
4181 * modules/posixver (Makefile.am): Likewise.
4182 * modules/putenv (Makefile.am): Likewise.
4183 * modules/quote (Makefile.am): Likewise.
4184 * modules/quotearg (Makefile.am): Likewise.
4185 * modules/raise (Makefile.am): Likewise.
4186 * modules/read-file (Makefile.am): Likewise.
4187 * modules/readline (Makefile.am): Likewise.
4188 * modules/readlink (Makefile.am): Likewise.
4189 * modules/readtokens (Makefile.am): Likewise.
4190 * modules/readutmp (Makefile.am): Likewise.
4191 * modules/realloc (Makefile.am): Likewise.
4192 * modules/regex (Makefile.am): Likewise.
4193 * modules/rename (Makefile.am): Likewise.
4194 * modules/rename-dest-slash (Makefile.am): Likewise.
4195 * modules/rijndael (Makefile.am): Likewise.
4196 * modules/rmdir (Makefile.am): Likewise.
4197 * modules/rpmatch (Makefile.am): Likewise.
4198 * modules/safe-read (Makefile.am): Likewise.
4199 * modules/safe-write (Makefile.am): Likewise.
4200 * modules/same (Makefile.am): Likewise.
4201 * modules/save-cwd (Makefile.am): Likewise.
4202 * modules/savedir (Makefile.am): Likewise.
4203 * modules/setenv (Makefile.am): Likewise.
4204 * modules/settime (Makefile.am): Likewise.
4205 * modules/sha1 (Makefile.am): Likewise.
4206 * modules/sig2str (Makefile.am): Likewise.
4207 * modules/snprintf (Makefile.am): Likewise.
4208 * modules/stdlib-safer (Makefile.am): Likewise.
4209 * modules/stpcpy (Makefile.am): Likewise.
4210 * modules/stpncpy (Makefile.am): Likewise.
4211 * modules/strcase (Makefile.am): Likewise.
4212 * modules/strcasestr (Makefile.am): Likewise.
4213 * modules/strchrnul (Makefile.am): Likewise.
4214 * modules/strcspn (Makefile.am): Likewise.
4215 * modules/strdup (Makefile.am): Likewise.
4216 * modules/strerror (Makefile.am): Likewise.
4217 * modules/strftime (Makefile.am): Likewise.
4218 * modules/strndup (Makefile.am): Likewise.
4219 * modules/strnlen (Makefile.am): Likewise.
4220 * modules/strpbrk (Makefile.am): Likewise.
4221 * modules/strsep (Makefile.am): Likewise.
4222 * modules/strstr (Makefile.am): Likewise.
4223 * modules/strtod (Makefile.am): Likewise.
4224 * modules/strtoimax (Makefile.am): Likewise.
4225 * modules/strtok_r (Makefile.am): Likewise.
4226 * modules/strtol (Makefile.am): Likewise.
4227 * modules/strtoll (Makefile.am): Likewise.
4228 * modules/strtoul (Makefile.am): Likewise.
4229 * modules/strtoull (Makefile.am): Likewise.
4230 * modules/strtoumax (Makefile.am): Likewise.
4231 * modules/strverscmp (Makefile.am): Likewise.
4232 * modules/time_r (Makefile.am): Likewise.
4233 * modules/timegm (Makefile.am): Likewise.
4234 * modules/tmpfile-safer (Makefile.am): Likewise.
4235 * modules/unistd-safer (Makefile.am): Likewise.
4236 * modules/unlinkdir (Makefile.am): Likewise.
4237 * modules/userspec (Makefile.am): Likewise.
4238 * modules/utime (Makefile.am): Likewise.
4239 * modules/utimecmp (Makefile.am): Likewise.
4240 * modules/utimens (Makefile.am): Likewise.
4241 * modules/vasnprintf (Makefile.am): Likewise.
4242 * modules/vasprintf (Makefile.am): Likewise.
4243 * modules/vsnprintf (Makefile.am): Likewise.
4244 * modules/xalloc (Makefile.am): Likewise.
4245 * modules/xgetcwd (Makefile.am): Likewise.
4246 * modules/xnanosleep (Makefile.am): Likewise.
4247 * modules/xreadlink (Makefile.am): Likewise.
4248 * modules/xstrtod (Makefile.am): Likewise.
4249 * modules/xstrtol (Makefile.am): Likewise.
4250 * modules/xstrtold (Makefile.am): Likewise.
4251 * modules/yesno (Makefile.am): Likewise.
4253 2006-10-12 Jim Meyering <jim@meyering.net>
4255 * m4/getloadavg.m4: Revert the change below.
4257 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
4258 lib/getloadavg.c using "ls -L", not "test -f". The latter would
4259 fail with a symlink, which is what coreutils' ./bootstrap now
4262 2006-10-12 Bruno Haible <bruno@clisp.org>
4264 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
4266 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
4267 MSVC and mingw explicitly.
4269 2006-10-11 Simon Josefsson <jas@extundo.com>
4270 Bruno Haible <bruno@clisp.org>
4272 Add support for multiple gnulib-tool invocations in the scope of a
4273 single configure.ac file.
4274 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
4275 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
4276 with the same contents as the _LIBADD variable.
4277 (func_emit_initmacro_start, func_emit_initmacro_end,
4278 func_emit_initmacro_done): New functions.
4279 (func_import, func_create_testdir): Invoke them. Allow the identifiers
4280 gl_LIBOBJS and gl_LTLIBOBJS.
4282 2006-10-11 Bruno Haible <bruno@clisp.org>
4284 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
4285 (func_create_testdir): Don't create po/Makefile.am, don't invoke
4286 autoreconf. Instead, invoke autopoint explicitly but move back the
4287 *.m4 files from gnulib.
4289 2006-10-11 Bruno Haible <bruno@clisp.org>
4291 * gnulib-tool (func_usage): Make module names after --create-testdir
4293 (func_create_testdir): If no module was specified, use nearly all
4296 2006-10-12 Jim Meyering <jim@meyering.net>
4298 Big performance improvement for fts-based tools that use FTS_NOSTAT.
4299 Avoid spurious inode-mismatch problems on non-POSIX file systems.
4300 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
4301 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
4302 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
4303 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
4304 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
4305 (fts_set_stat_required): New function.
4306 (fts_open): Defer the calls to fts_stat, if possible or requested.
4307 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
4308 into fts_stat itself.
4309 (fts_read): Perform any required (deferred) fts_stat call.
4310 (fts_build): Likewise, for the directory we're about to open and read.
4311 In the readdir loop, carefully decide whether each entry will require
4312 an eventual call to fts_stat, using dirent.d_type info if available.
4313 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
4314 a command line argument into this function. Update all callers.
4315 Map a return value of FTS_DOT to FTS_D for a command line argument.
4316 * modules/fts (Depends-on): Add d-type. Alphabetize.
4317 Thanks to Miklos Szeredi for his tenacity and for the initial
4318 bug report about "find" failing on a FUSE-based file system.
4320 * lib/fts.c (fts_open): Use consistent indentation.
4322 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
4324 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
4325 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
4326 reported by Jim Meyering. All uses of cache variables renamed
4327 to match Autoconf's.
4328 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
4331 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
4332 Fix misspelling in diagnostic.
4334 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
4336 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
4337 defined. Problem reported by Matthew Woehlke.
4339 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
4340 Add support for Tandem NonStop R series.
4341 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
4344 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
4345 (has_trailing_slash): Omit size arg; all callers changed.
4346 Omit 'inline', since it doesn't help performance and we'd
4347 need to configure it.
4348 Don't count //, ///, etc. as having a trailing slash.
4349 As a side effect, this removes a C99ism reported by Matthew Woehlke.
4350 (rpl_rename_dest_slash): On failure, use rename's errno rather
4351 than (in some cases) an incorrect or junk errno.
4352 Simplify code by removing need to compute length; this does
4353 cause it to make two passes instead of one over the file name,
4356 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
4357 change, since Autoconf's version may no longer be appropriate now
4358 that we are using CVS Autoconf's version. Add support for Tandem.
4360 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
4361 Bruno Haible <bruno@clisp.org>
4363 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
4364 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
4365 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
4366 gl_AC_TYPE_LONG_LONG.
4368 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
4369 instead of HAVE_LONG_LONG.
4370 * lib/printf-args.c (printf_fetchargs): Likewise.
4371 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
4372 * lib/vasnprintf.c (VASNPRINTF): Likewise.
4373 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
4374 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
4375 gl_AC_TYPE_LONG_LONG.
4377 2006-10-11 Bruno Haible <bruno@clisp.org>
4379 * m4/longlong.m4: Add comments.
4380 * m4/ulonglong.m4: Likewise.
4382 2006-10-10 Bruno Haible <bruno@clisp.org>
4384 Make it possible to #define stpcpy, strdup to aliases.
4385 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
4386 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
4388 2006-10-10 Bruno Haible <bruno@clisp.org>
4390 Make it possible to #define gcd to an alias.
4391 * lib/gcd.c: Include config.h.
4393 2006-10-10 Bruno Haible <bruno@clisp.org>
4395 Make it possible to #define c_isascii to an alias.
4396 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
4397 defined. Undefine the macros before defining them, to avoid gcc
4399 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
4400 define NO_C_CTYPE_MACROS early.
4402 2006-10-10 Bruno Haible <bruno@clisp.org>
4404 Make it possible to #define set_program_name to an alias.
4405 * lib/progname.c: Don't undefine set_program_name; instead, undefine
4406 ENABLE_RELOCATABLE early.
4408 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
4410 Port to Tandem NSK OSS, which has 64-bit signed int but at most
4411 32-bit unsigned int. Problem reported by Matthew Woehlke in:
4412 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
4413 More generally, don't assume that 64-bit signed int is available
4414 if unsigned int is, and vice versa.
4415 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
4416 unsigned symbols, not on their signed counterparts.
4417 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
4418 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
4419 (UINT64_C, UINTMAX_C):
4421 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
4422 unsigned counterparts.
4423 (Have_long_long, Unsigned): New macros.
4424 (Int): Renamed from INT.
4425 (strtoimax): Use the new macros.
4426 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
4427 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
4428 * modules/inttypes (inttypes.h): Substitute
4429 HAVE_UNSIGNED_LONG_LONG_INT.
4430 * modules/stdint (stdint.h): Likewise.
4431 (Files): Add m4/ulonglong.m4.
4433 2006-10-10 Bruno Haible <bruno@clisp.org>
4435 Fix a gcc -Wshadow warning.
4436 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
4438 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
4439 gl_linked_indexof_from_to): Likewise.
4440 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
4442 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
4444 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
4445 Reported by Eric Blake.
4447 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
4449 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
4450 for NetBSD. Problem reported by Bruno Haible.
4452 2006-10-09 Jim Meyering <jim@meyering.net>
4454 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
4455 Patch from Bruno Haible.
4457 2006-10-09 Jim Meyering <jim@meyering.net>
4459 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
4460 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
4461 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
4463 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
4465 Don't include <config.h> twice; this doesn't work in some cases,
4466 e.g., when config.h has "#define intmax_t long long int" and
4467 we include <config.h>, <inttypes.h>, <config.h> in that order.
4468 Problem reported by Matthew Woehlke in:
4469 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
4470 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
4471 * lib/fts-cycle.c: Don't include config.h.
4472 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
4473 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
4474 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
4475 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
4477 * lib/xstrtoumax.c: Likewise.
4478 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
4479 __strtol and the like, so that this module is more like its siblings.
4480 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
4481 Remove; no longer needed now that we assume gnulib inttypes.h.
4483 2006-10-08 Bruno Haible <bruno@clisp.org>
4485 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
4488 2006-10-07 Jim Meyering <jim@meyering.net>
4490 * modules/inttypes (inttypes.h): Revert what seems to have been
4491 an inadvertent part of today's change: use "|", not "/" in the
4492 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
4494 2006-10-07 Bruno Haible <bruno@clisp.org>
4496 * modules/sublist: New file.
4498 2006-10-07 Bruno Haible <bruno@clisp.org>
4500 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
4501 * modules/argz (argz.h): Likewise.
4502 * modules/arpa_inet (arpa/inet.h): Likewise.
4503 * modules/byteswap (byteswap.h): Likewise.
4504 * modules/configmake (configmake.h): Likewise.
4505 * modules/fcntl (fcntl.h): Likewise.
4506 * modules/fnmatch (fnmatch.h): Likewise.
4507 * modules/getopt (getopt.h): Likewise.
4508 * modules/glob (glob.h): Likewise.
4509 * modules/inttypes (inttypes.h): Likewise.
4510 * modules/netinet_in (netinet/in.h): Likewise.
4511 * modules/poll (poll.h): Likewise.
4512 * modules/stdbool (stdbool.h): Likewise.
4513 * modules/stdint (stdint.h): Likewise.
4514 * modules/sys_select (sys/select.h): Likewise.
4515 * modules/sys_socket (sys/socket.h): Likewise.
4516 * modules/sys_stat (sys/stat.h): Likewise.
4517 * modules/sysexits (sysexits.h): Likewise.
4518 * modules/unistd (unistd.h): Likewise.
4519 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4520 Add a "DO NOT EDIT" comment to the generated file.
4521 (func_import): Likewise for gnulib-comp.m4.
4523 2006-10-07 Bruno Haible <bruno@clisp.org>
4525 * lib/gl_sublist.h: New file.
4526 * lib/gl_sublist.c: New file.
4528 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
4530 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
4531 name (relative to the original working directory) and the file
4532 name component (relative to the temporary working directory). All
4534 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
4535 * lib/mkdir-p.c (make_dir_parents): Likewise.
4536 * lib/mkdir-p.h (make_dir_parents): Likewise.
4538 2006-10-06 Eric Blake <ebb9@byu.net>
4540 Define several macros for use by the clean-temp module.
4541 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
4542 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
4543 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
4545 * lib/clean-temp.h (close_stream_temp): New declaration.
4546 * lib/clean-temp.c (includes): Pull in headers according to what
4547 other modules are in use.
4548 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
4550 2006-10-06 Bruno Haible <bruno@clisp.org>
4552 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
4553 instead of fopen, fwriteerror.
4555 2006-10-06 Bruno Haible <bruno@clisp.org>
4557 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
4558 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
4560 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
4561 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
4562 Return an error indicator.
4563 Suggested by Eric Blake.
4565 2006-10-06 Bruno Haible <bruno@clisp.org>
4567 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
4568 Reported by Eric Blake.
4570 2006-10-06 Bruno Haible <bruno@clisp.org>
4572 * modules/closeout (Description): Mention stderr too.
4574 2006-10-06 Bruno Haible <bruno@clisp.org>
4575 and Paul Eggert <eggert@cs.ucla.edu>
4577 * lib/closeout.c (close_stdout): Also close stderr.
4578 * lib/closeout.h: Update comment.
4580 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
4582 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
4583 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
4584 * lib/dirchownmod.c: Include lchown.h.
4585 * lib/lchown.c: Don't include files that lchown.h now includes.
4586 Don't declare chown, since lchown.h now does that.
4587 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
4588 (lchown): Define to rpl_chown if lchown is declared but
4589 does not exist. Declare using a prototype if lchown is not
4590 declared. Add a copyright notice.
4591 * lib/mkstemp.h: Include <unistd.h>.
4592 * lib/openat.c: Include lchown.h.
4594 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
4595 we now test for that separately.
4596 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
4597 rather than O_NOFOLLOW, when testing whether it's possible to
4598 avoid a race condition reliably.
4599 * lib/savewd.c (savewd_chdir): Likewise.
4601 Remove macros that are no longer needed now that stdint.h is
4603 * lib/fsusage.c (UINTMAX_MAX): Remove.
4604 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
4605 * lib/utimecmp.c (SIZE_MAX): Remove.
4607 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
4609 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
4610 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
4613 2006-10-05 Bruno Haible <bruno@clisp.org>
4615 * lib/gl_list.h (gl_sortedlist_search_from_to,
4616 gl_sortedlist_indexof_from_to): New declarations.
4617 (gl_list_implementation): New fields sortedlist_search_from_to,
4618 sortedlist_indexof_from_to.
4619 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
4621 * lib/gl_list.c (gl_sortedlist_search_from_to,
4622 gl_sortedlist_indexof_from_to): New functions.
4623 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
4625 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
4626 (gl_array_sortedlist_search_from_to): New function.
4627 (gl_array_list_implementation): Update.
4628 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
4630 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
4631 (gl_carray_sortedlist_search_from_to): New function.
4632 (gl_carray_list_implementation): Update.
4633 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
4634 gl_linked_sortedlist_indexof_from_to): New functions.
4635 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
4636 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
4637 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
4638 gl_tree_sortedlist_indexof_from_to): New functions.
4639 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
4640 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4642 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
4643 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
4646 2006-10-05 Bruno Haible <bruno@clisp.org>
4648 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
4649 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
4650 (struct gl_list_implementation): Add fields search_from_to,
4651 indexof_from_to. Remove fields search, indexof.
4652 (gl_list_search): Use the search_from_to method.
4653 (gl_list_search_from, gl_list_search_from_to): New functions.
4654 (gl_list_indexof): Use the indexof_from_to method.
4655 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
4656 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
4657 (gl_list_search_from, gl_list_search_from_to): New functions.
4658 (gl_list_indexof): Use the indexof_from_to method.
4659 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
4660 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
4661 gl_array_indexof. Add start_index, end_index arguments.
4662 (gl_array_search_from_to): Renamed from gl_array_search. Add
4663 start_index, end_index arguments.
4664 (gl_array_remove, gl_array_list_implementation): Update.
4665 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
4666 gl_carray_indexof. Add start_index, end_index arguments.
4667 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
4668 start_index, end_index arguments.
4669 (gl_carray_remove, gl_carray_list_implementation): Update.
4670 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
4671 gl_linked_search. Add start_index, end_index arguments.
4672 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
4673 start_index, end_index arguments.
4674 (gl_linked_remove): Update.
4675 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
4676 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
4677 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
4679 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
4680 gl_tree_search. Add start_index, end_index arguments.
4681 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
4682 start_index, end_index arguments.
4683 (gl_tree_remove): Update.
4684 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
4685 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
4686 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
4688 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
4689 gl_tree_search. Add start_index, end_index arguments.
4690 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
4691 start_index, end_index arguments.
4692 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4694 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
4696 2006-10-05 Bruno Haible <bruno@clisp.org>
4698 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
4700 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
4701 fwriteerror_temp): New declarations.
4702 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
4703 (descriptors): New variable.
4704 (cleanup): First, close the descriptors.
4705 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
4706 fclose_temp, fwriteerror_temp): New functions.
4708 2006-10-04 Jim Meyering <jim@meyering.net>
4710 * lib/fts.c (fts_open): Tiny comment change.
4712 2006-10-04 Bruno Haible <bruno@clisp.org>
4714 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
4715 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
4717 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
4718 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
4720 (gl_LOCK): Require gl_LOCK_BODY.
4722 2006-10-04 Bruno Haible <bruno@clisp.org>
4724 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
4725 (gl_oset_search_atleast): New declaration.
4726 (struct gl_oset_implementation): Add field 'search_atleast'.
4727 (gl_oset_search_atleast): New inline function.
4728 * lib/gl_oset.c (gl_oset_search_atleast): New function.
4729 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
4730 (gl_array_oset_implementation): Update.
4731 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
4732 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
4733 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
4735 2006-10-04 Bruno Haible <bruno@clisp.org>
4737 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
4739 2006-10-03 Bruno Haible <bruno@clisp.org>
4741 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
4742 from gl_avltreehash_list_implementation.
4744 2006-10-03 Bruno Haible <bruno@clisp.org>
4746 * lib/gl_oset.c (gl_oset_add): Fix return type.
4748 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
4750 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
4752 2006-10-02 Eric Blake <ebb9@byu.net>
4754 * modules/strnlen (Depends-on): Add extensions.
4756 2006-10-02 Eric Blake <ebb9@byu.net>
4758 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
4759 definition in 2.60+.
4761 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
4763 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
4766 2006-10-02 Bruno Haible <bruno@clisp.org>
4768 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
4769 to the AUTOMAKE_OPTIONS.
4770 Reported by Jim Meyering.
4772 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
4774 Work around bug in Solaris 10 /proc file system:
4775 /proc/self/fd/NNN/.. isn't the parent directory of
4776 the directory whose file descriptor is NNN. This needs to
4777 be worked around at run time, not compile time, since a
4778 program might be built on Solaris 8, where things work, and
4780 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
4781 to use the following interface instead:
4782 (OPENAT_BUFFER_SIZE): New macro.
4783 (openat_proc_name): New function.
4784 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
4785 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
4787 * lib/openat-proc.c: New file.
4788 * modules/openat (Files): Add lib/openat-proc.c.
4789 (Depends-on): Add same-inode, stdbool.
4790 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
4792 2006-09-29 Bruno Haible <bruno@clisp.org>
4794 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
4795 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
4796 argument. Set stdout_closed before testing for ferror, not after.
4797 (fwriteerror, fwriteerror_no_ebadf): New functions.
4799 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4801 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
4803 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
4805 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
4806 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
4808 2006-09-28 Jim Meyering <jim@meyering.net>
4810 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
4813 2006-09-28 Bruno Haible <bruno@clisp.org>
4815 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
4816 * modules/linkedhash-list (Depends-on): Likewise.
4817 * modules/rbtreehash-list (Depends-on): Likewise.
4819 2006-09-28 Bruno Haible <bruno@clisp.org>
4821 * lib/strndup.h: Simplify the redefinition of strndup.
4822 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
4823 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
4825 2006-09-28 Bruno Haible <bruno@clisp.org>
4827 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
4828 * lib/gl_linkedhash_list.c: Likewise.
4829 * lib/gl_rbtreehash_list.c: Likewise.
4831 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
4833 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
4836 * lib/__fpending.h: Don't include <stdio_ext.h> unless
4837 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
4838 it causes <stdio_ext.h> to cause a compile-time error.
4839 Problem reported by Nelson H. F. Beebe.
4840 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
4841 of HAVE_DECL___PENDING.
4843 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
4844 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
4847 2006-09-27 Jim Meyering <jim@meyering.net>
4849 This file could end up with a definition for a function
4850 named __strndup, rather than rpl_strndup on a system with
4851 incomplete weak_alias support.
4852 * lib/strndup.c (strndup): Rename from __strndup.
4853 Remove #defines that used to map __strndup to strndup.
4854 Don't use K&R prototypes.
4855 Remove LIBC-related code, since this file is not sync'd with glibc.
4856 * lib/strndup.h: Revamp, accordingly.
4857 * m4/strndup.m4: Modernize.
4859 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
4861 * modules/savewd (Depends-on): Add 'raise'.
4862 * lib/savewd.c: Include <signal.h>, for 'raise'.
4864 2006-09-26 Jim Meyering <jim@meyering.net>
4866 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
4867 when we detect Darwin 8.7.0's acl_get_file bug.
4868 Rearrange to perform the new (below) run-test while $LIBS
4869 contains any acl-related library. Set USE_ACL at the end.
4870 (gl_ACL_GET_FILE): New function.
4872 2006-09-26 Eric Blake <ebb9@byu.net>
4874 * lib/verror.c: Include <config.h> unconditionally.
4876 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
4878 * modules/clock-time (Maintainer): Add self.
4879 * modules/getlogin_r (Depends-on): Add extensions.
4881 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4883 * modules/clock-time: New module.
4884 * modules/nanosleep (Depends-on): Add clock-time.
4885 * modules/gethrxtime (Depends-on): Likewise.
4886 * modules/gettime (Depends-on): Likewise.
4887 * modules/settime (Depends-on): Likewise.
4889 * modules/fts-lgpl: Depend on openat.
4890 * modules/mkancesdirs: Depend on savewd.
4891 * modules/mkdir-p: Likewise.
4893 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4895 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
4897 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
4898 `gl_have_arbitrary_file_name_length_limit' to
4899 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
4900 actually works between configure runs.
4902 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4903 Bruno Haible <bruno@clisp.org>
4905 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
4907 2006-09-25 Jim Meyering <jim@meyering.net>
4909 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
4910 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
4912 2006-09-25 Eric Blake <ebb9@byu.net>
4914 * gnulib-tool (func_import, func_create_testdir): Fix typos in
4915 exec's in 2006-09-18 patch when shuffling fds.
4917 2006-09-25 Bruno Haible <bruno@clisp.org>
4919 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
4920 Reported by Jim Meyering.
4922 2006-09-24 Jim Meyering <jim@meyering.net>
4924 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
4925 compare a pointer against a literal "0". That caused failures with
4926 at least HP-UX's hpcc.
4928 2006-09-22 Simon Josefsson <jas@extundo.com>
4932 * modules/gc-hmac-sha1:
4933 * modules/gc-hmac-md5:
4935 * modules/gc-arcfour: Distribute more files.
4937 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4939 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
4940 (gl_linked_iterator_from_to): Initialize struct completely.
4941 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
4942 (gl_tree_iterator_from_to): Likewise
4943 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
4944 * lib/gl_array_list.c [lint] (gl_array_iterator)
4945 (gl_array_iterator_from_to): Likewise.
4946 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
4947 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
4948 (gl_carray_iterator_from_to): Likewise.
4950 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
4951 * lib/md4.c (md4_process_block): Remove unused variable.
4952 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
4953 parentheses for clarity.
4955 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4957 * modules/bison-i18n (Depends-on): Add gettext.
4959 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4961 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
4962 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
4963 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
4964 also add missing comma that caused broken test.
4965 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
4966 stdlib.h, for `abort'.
4967 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
4969 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
4970 include unistd.h if present, for `rmdir'.
4971 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
4973 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
4974 in the process include standard headers for prototypes.
4975 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
4976 gets declared on GNU/Linux.
4977 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
4978 unistd.h, for `rmdir'.
4979 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
4981 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
4983 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
4985 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
4987 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4989 * gnulib-tool (func_version): Create output all at once. This
4990 may help avoid triggering unnecessary SIGPIPEs, and at any
4991 rate it doesn't hurt.
4993 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4994 Bruno Haible <bruno@clisp.org>
4996 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
4997 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
4998 * m4/signed.m4 (bh_C_SIGNED): Likewise.
5000 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
5001 (gl_FUNC_VASPRINTF): Invoke it.
5003 2006-09-22 Bruno Haible <bruno@clisp.org>
5005 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
5006 getloadavg.c as first argument.
5008 2006-09-22 Bruno Haible <bruno@clisp.org>
5010 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
5011 at the beginning of the gl_INIT macro.
5012 * modules/getloadavg (configure.ac): Pass $gl_source_base to
5015 2006-09-22 Bruno Haible <bruno@clisp.org>
5017 * gnulib-tool (func_create_megatestdir): Don't include the config-h
5019 Suggested by Ralf Wildenhues.
5021 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
5023 Import this patch from libc:
5025 2006-09-06 Jakub Jelinek <jakub@redhat.com>
5027 * lib/regex_internal.c (re_string_reconstruct): Handle
5028 offset < pstr->valid_raw_len && pstr->offsets_needed case.
5029 Ensure no bytes read before raw_mbs array. Pass a saved copy of
5030 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
5031 re_string_context_at.
5033 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
5035 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
5036 gl_REGEX now does it for us.
5037 (gl_REGEX): Add test taken from
5038 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
5040 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
5041 Check that large offsets work. Modernize Autoconf usages.
5042 Prefer "yes" to mean a good thing rather than a bad.
5043 Don't put "#define mkstemp" in config.h, as this might interfere
5044 with standard system headers that "#define mkstemp mkstemp64".
5046 * modules/mkstemp (Depends-on): Add extensions, so that
5047 mkstemp is visible on some platforms.
5048 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
5049 (Include): Change to "mkstemp.h" from <stdlib.h>.
5050 (Files): Add mkstemp.h.
5052 * lib/mkstemp.h: New file, since some standard headers
5054 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
5055 Include "mkstemp.h".
5056 Make the _LIBC code resemble glibc original more,
5057 e.g., use K&R style.
5058 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
5059 (mkstemp): Remove, since mkstemp.h does this for us.
5060 * lib/stdlib--.h: Include mkstemp.h.
5062 Import this patch from libc:
5064 2006-04-07 Ulrich Drepper <drepper@redhat.com>
5066 * lib/tempname.c (__gen_tempname): Change attempts_min
5067 into a macro. Use preprocessor to decide how to initialize
5068 attempts [Coverity CID 67].
5070 2006-09-20 Bruno Haible <bruno@clisp.org>
5072 * lib/mkdtemp.c: Import from libc.
5073 2006-04-07 Ulrich Drepper <drepper@redhat.com>
5074 * sysdeps/posix/tempname.c (__gen_tempname): Change
5075 attempts_min into a macro. Use preprocessor to decide how to
5076 initialize attempts [Coverity CID 67].
5077 2001-11-27 Paul Eggert <eggert@twinsun.com>
5078 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
5079 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
5081 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5083 * gnulib-tool (func_exit): New function, to allow to pass the
5084 exit status portably through the trap. Use everywhere.
5085 (--help, --version): Signal a write error.
5086 (trap): catch SIGPIPE, for write errors.
5087 Exit at the end of the trap, with the correct exit status.
5089 2006-09-19 Karl Berry <karl@gnu.org>
5091 * doc/gnulib.texi: note about the license texinfo files.
5093 2006-09-19 Eric Blake <ebb9@byu.net>
5095 * gnulib-tool: Avoid space-tab.
5097 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
5099 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
5100 that prevented coreutils 6.1 from building. Problem reported
5101 by Petter Reinholdtsen.
5103 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
5105 * gnulib-tool (avoidlist): Fix typo that broke options like
5106 --avoid=lock that are used by coreutils bootstrap.
5108 2006-09-18 Mark D. Baushke <mdb@gnu.org>
5110 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
5111 more systematically.
5113 2006-09-18 Jim Meyering <jim@meyering.net>
5115 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
5117 2006-09-18 Bruno Haible <bruno@clisp.org>
5119 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
5121 2006-09-18 Bruno Haible <bruno@clisp.org>
5123 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
5124 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
5125 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
5126 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
5127 * m4/gettext.m4: Require autoconf >= 2.52.
5128 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
5129 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
5130 of gl_cv_header_inttypes_h.
5132 2006-09-18 Bruno Haible <bruno@clisp.org>
5134 * lib/javaversion.c: Include configmake.h.
5136 2006-09-18 Bruno Haible <bruno@clisp.org>
5138 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
5139 avoid that the while loops be executed in a subshell.
5141 2006-09-18 Bruno Haible <bruno@clisp.org>
5143 * MODULES.html.sh (func_module): Break long lines.
5144 Suggested by Bruce Korb <bkorb@gnu.org>.
5146 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5148 Speed up by a factor of 1.12.
5149 * gnulib-tool (nl): New variable.
5150 (func_import): Rewrite include directive extraction to only read each
5153 2006-09-17 Bruno Haible <bruno@clisp.org>
5155 * modules/javaversion (Makefile.am): Remove DEFS setting.
5156 (Depends-on): Add configmake, for PKGDATADIR definition.
5158 2006-09-17 Bruno Haible <bruno@clisp.org>
5160 * gnulib-tool (func_create_testdir): Rewrite all files at once.
5162 2006-09-17 Bruno Haible <bruno@clisp.org>
5164 * gnulib-tool (func_append): New function, stolen from libtool.m4.
5165 (func_modules_transitive_closure, func_modules_add_dummy,
5166 func_modules_to_filelist, func_import, func_create_testdir,
5167 func_create_megatestdir, ...): Use it wherever possible.
5168 Suggested by Ralf Wildenhues.
5170 2006-09-16 Karl Berry <karl@gnu.org>
5172 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
5173 to avoid sectioning errors.
5174 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
5175 [ifinfo]: blank line after @center-ed titles.
5176 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
5177 Spell FSF address consistently with others.
5178 (These changes approved by rms.)
5180 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5182 Speed up by a factor of 1.61.
5183 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
5184 already checked module names again.
5186 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5188 Speed up by a factor of 1.13.
5189 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
5190 for new_files, and the input to func_add_or_update.
5192 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5194 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
5195 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
5197 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
5199 * modules/mkancesdirs (Depends-on): Add fcntl.
5200 * modules/savewd: New file.
5201 * MODULES.html.sh (File system functions): Add savewd.
5203 * modules/configmake (Makefile.am): Add support for the
5204 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
5206 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
5208 * m4/savewd.m4: New file.
5210 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
5212 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
5213 (dirchownmod): New arg FD. All callers changed.
5214 Use FD rather than opening the directory ourself, as opening is
5215 now the caller's responsibility.
5216 * lib/dirchownmod.h: Likewise.
5217 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
5218 hosts that require <sys/types.h> before <sys/stat.h>. Include
5219 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
5221 (mkancesdirs): Return length of prefix of FILE that has already
5222 been made, or -2 if there is a child doing the work. Redo
5223 algorithm so that it is O(N) rather than O(N**2). Optimize away
5224 ".", and treat ".." specially since it might stray back into
5225 already-created areas. Use a subprocess if necessary. New arg
5226 WD; all users changed. MAKE_DIR function should now return 1
5227 if it creates a directory that is not readable. Return -2 if
5228 a child process is spun off.
5229 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
5230 Adjust signature to match code.
5231 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
5232 (make_dir_parents): Use a subprocess if necessary. New arg WD;
5234 * lib/savewd.c, lib/savewd.h: New files.
5236 2006-09-15 Jim Meyering <jim@meyering.net>
5238 * modules/rename-dest-slash: New module.
5239 * MODULES.html.sh (posix_compat): Add it here.
5241 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
5243 2006-09-15 Jim Meyering <jim@meyering.net>
5245 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
5248 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
5250 2006-09-15 Jim Meyering <jim@meyering.net>
5252 * lib/rename-dest-slash.c (has_trailing_slash): Use
5253 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
5254 (rpl_rename_dest_slash): Perform the cheaper trailing slash
5255 test before testing whether SRC is a directory.
5256 Suggestions from Bruno Haible.
5258 Avoid a warning about an unused variable.
5259 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
5260 into the #ifdef block where it's used.
5262 * lib/rename-dest-slash.c: New file.
5264 2006-09-14 Bruno Haible <bruno@clisp.org>
5266 * lib/allocsa.c: Include <config.h> unconditionally.
5267 * lib/asnprintf.c: Likewise.
5268 * lib/asprintf.c: Likewise.
5269 * lib/c-strcasecmp.c: Likewise.
5270 * lib/c-strcasestr.c: Likewise.
5271 * lib/c-strncasecmp.c: Likewise.
5272 * lib/c-strstr.c: Likewise.
5273 * lib/classpath.c: Likewise.
5274 * lib/clean-temp.c: Likewise.
5275 * lib/concatpath.c: Likewise.
5276 * lib/copy-file.c: Likewise.
5277 * lib/csharpcomp.c: Likewise.
5278 * lib/csharpexec.c: Likewise.
5279 * lib/execute.c: Likewise.
5280 * lib/fatal-signal.c: Likewise.
5281 * lib/findprog.c: Likewise.
5282 * lib/fwriteerror.c: Likewise.
5283 * lib/gl_array_list.c: Likewise.
5284 * lib/gl_array_oset.c: Likewise.
5285 * lib/gl_avltree_list.c: Likewise.
5286 * lib/gl_avltree_oset.c: Likewise.
5287 * lib/gl_avltreehash_list.c: Likewise.
5288 * lib/gl_carray_list.c: Likewise.
5289 * lib/gl_linked_list.c: Likewise.
5290 * lib/gl_linkedhash_list.c: Likewise.
5291 * lib/gl_list.c: Likewise.
5292 * lib/gl_oset.c: Likewise.
5293 * lib/gl_rbtree_list.c: Likewise.
5294 * lib/gl_rbtree_oset.c: Likewise.
5295 * lib/gl_rbtreehash_list.c: Likewise.
5296 * lib/imaxabs.c: Likewise.
5297 * lib/imaxdiv.c: Likewise.
5298 * lib/javacomp.c: Likewise.
5299 * lib/javaexec.c: Likewise.
5300 * lib/javaversion.c: Likewise.
5301 * lib/linebreak.c: Likewise.
5302 * lib/localcharset.c: Likewise.
5303 * lib/lock.c: Likewise.
5304 * lib/mbchar.c: Likewise.
5305 * lib/mbswidth.c: Likewise.
5306 * lib/mkdtemp.c: Likewise.
5307 * lib/pipe.c: Likewise.
5308 * lib/printf-args.c: Likewise.
5309 * lib/printf-parse.c: Likewise.
5310 * lib/progname.c: Likewise.
5311 * lib/progreloc.c: Likewise.
5312 * lib/readlink.c: Likewise.
5313 * lib/sh-quote.c: Likewise.
5314 * lib/stpcpy.c: Likewise.
5315 * lib/stpncpy.c: Likewise.
5316 * lib/strcasecmp.c: Likewise.
5317 * lib/strcasestr.c: Likewise.
5318 * lib/strcspn.c: Likewise.
5319 * lib/striconv.c: Likewise.
5320 * lib/strncasecmp.c: Likewise.
5321 * lib/strnlen1.c: Likewise.
5322 * lib/strstr.c: Likewise.
5323 * lib/strtok_r.c: Likewise.
5324 * lib/tls.c: Likewise.
5325 * lib/tmpdir.c: Likewise.
5326 * lib/unicodeio.c: Likewise.
5327 * lib/unsetenv.c: Likewise.
5328 * lib/vasnprintf.c: Likewise.
5329 * lib/vasprintf.c: Likewise.
5330 * lib/wait-process.c: Likewise.
5331 * lib/xallocsa.c: Likewise.
5332 * lib/xsetenv.c: Likewise.
5333 * lib/xstriconv.c: Likewise.
5335 2006-09-13 Simon Josefsson <jas@extundo.com>
5337 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
5338 that internally, suggested by Ralf Wildenhues
5339 <Ralf.Wildenhues@gmx.de>.
5341 2006-09-13 Simon Josefsson <jas@extundo.com>
5343 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
5345 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5347 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
5349 * lib/_fpending.c: Include <config.h> unconditionally, since we no
5350 longer worry about uses that don't define HAVE_CONFIG_H.
5351 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
5352 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
5353 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
5354 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
5355 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
5356 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
5357 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
5358 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
5359 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
5360 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
5361 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
5362 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
5363 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
5364 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
5365 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
5366 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
5367 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
5368 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
5369 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
5370 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
5371 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
5372 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
5373 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
5374 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
5375 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
5376 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
5377 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
5378 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
5379 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
5380 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
5381 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
5382 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
5383 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
5384 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
5385 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
5386 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
5387 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
5388 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
5389 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
5390 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
5391 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
5394 2006-09-13 Eric Blake <ebb9@byu.net>
5396 * lib/getopt.c: Fix typo in last commit.
5398 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
5400 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
5403 2006-09-12 Jim Meyering <jim@meyering.net>
5405 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
5406 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
5407 Reported by Nelson H. F. Beebe.
5409 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
5411 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
5412 program_invocation_name and program_invocation_short_name are
5414 * lib/argp-namefrob.h: Move declarations of program_invocation_name
5415 and program_invocation_short_name to argp.h, so they are visible
5417 * lib/argp.h: Likewise
5419 2006-09-10 Bruno Haible <bruno@clisp.org>
5421 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
5422 m4/inttypes_h.m4, m4/uintmax_t.m4.
5424 2006-09-10 Bruno Haible <bruno@clisp.org>
5426 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
5427 gl_AC_TYPE_UINTMAX_T.
5429 2006-09-10 Bruno Haible <bruno@clisp.org>
5431 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
5433 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
5435 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
5436 convention. Text proposed by Bruno Haible.
5437 (struct argp_option): Document the use of N_() wrappers.
5439 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
5440 '\v', and translate the two parts separately, instead of feeding
5441 the whole string to gettext. This allows to exclude
5442 '\v' from the strings visible to the translator by writing doc
5443 strings as N_("..") "\v" N_("..").
5445 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
5447 * config/srclist.txt: Undo latest change; the bug was fixed.
5449 2006-09-09 Bruno Haible <bruno@clisp.org>
5451 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
5452 assignments if building a library without libtool.
5453 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
5454 in func_emit_lib_Makefile_am.
5455 (func_import): When building a static library libfoo.a, arrange to
5456 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
5457 (func_create_testdir): Likewise.
5458 * modules/gc (configure.ac, Makefile.am): If building statically,
5459 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
5460 * modules/iconvme (configure.ac, Makefile.am): Likewise.
5461 * modules/striconv (configure.ac, Makefile.am): Likewise.
5462 Based on a suggestion by Ralf Wildenhues.
5464 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
5466 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
5467 Check for unistd.h too, since Autoconf doesn't assume POSIX.
5470 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
5471 Add year_2050_test to catch glibc bug 2821
5472 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
5474 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
5475 Prefer #ifdef to #if.
5477 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
5478 Return from 'main' instead of calling 'exit'.
5480 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
5482 * lib/mktime.c (guess_time_tm): Fix bug where mktime
5483 returned the maximum time_t value rather than (time_t) -1.
5484 Problem originally reported by William Bardwell
5485 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
5487 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
5489 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
5492 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
5494 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
5497 2006-09-08 Jim Meyering <jim@meyering.net>
5499 Don't make generated files read-only. That would bother too many
5500 people. However, do retain the ability to work when targets are
5501 read-only: remove the destination and temporary files before writing
5502 them (when generated via sed or echo), or by using the -f option for
5503 both cp and mv commands. Suggestion to use -f from Paul Eggert.
5504 * modules/alloca-opt, modules/argz, modules/arpa_inet:
5505 * modules/byteswap, modules/configmake, modules/fcntl:
5506 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
5507 * modules/localcharset, modules/netinet_in, modules/poll:
5508 * modules/stdbool, modules/stdint, modules/sys_select:
5509 * modules/sys_socket, modules/sys_stat, modules/sysexits:
5511 2006-09-08 Jim Meyering <jim@meyering.net>
5513 Avoid new build failure on FreeBSD 6.0.
5514 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
5515 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
5516 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
5518 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5520 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
5522 2006-09-07 Jim Meyering <jim@meyering.net>
5524 Fix global typo in last change: use chmod u-w, not chmod u-x.
5525 Spotted by Paul Eggert and Bruce Korb.
5526 * modules/alloca-opt, modules/argz, modules/arpa_inet:
5527 * modules/byteswap, modules/configmake, modules/fcntl:
5528 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
5529 * modules/localcharset, modules/netinet_in, modules/poll:
5530 * modules/stdbool, modules/stdint, modules/sys_select:
5531 * modules/sys_socket, modules/sys_stat, modules/sysexits:
5533 2006-09-06 Jim Meyering <jim@meyering.net>
5535 Make generated files be read-only.
5536 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
5537 Ensure that each generated file is now read-only.
5538 * modules/argz: Likewise.
5539 * modules/arpa_inet: Likewise.
5540 * modules/byteswap: Likewise.
5541 * modules/configmake: Likewise.
5542 * modules/fcntl: Likewise.
5543 * modules/fnmatch: Likewise.
5544 * modules/getopt: Likewise.
5545 * modules/glob: Likewise.
5546 * modules/inttypes: Likewise.
5547 * modules/netinet_in: Likewise.
5548 * modules/poll: Likewise.
5549 * modules/stdbool: Likewise.
5550 * modules/stdint: Likewise.
5551 * modules/sys_select: Likewise.
5552 * modules/sys_socket: Likewise.
5553 * modules/sys_stat: Likewise.
5554 * modules/sysexits: Likewise.
5555 * modules/localcharset: Same as above, but continue using temporary
5556 file named "t-$@" (why different?) rather than the "$@-t" used
5559 * modules/sysexits (Makefile.am): Replace literal occurrences
5560 of "sysexit.h" more readable, and more consistent, "$@".
5562 2006-09-06 Bruno Haible <bruno@clisp.org>
5564 * modules/striconv: New file.
5565 * modules/xstriconv: New file.
5566 * MODULES.html.sh (Internationalization functions): Add striconv,
5569 2006-09-06 Bruno Haible <bruno@clisp.org>
5571 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
5572 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
5573 not using libtool correctly.
5575 2006-09-06 Bruno Haible <bruno@clisp.org>
5577 * lib/striconv.h: New file.
5578 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
5580 * lib/xstriconv.h: New file.
5581 * lib/xstriconv.c: New file.
5583 2006-09-06 Bruno Haible <bruno@clisp.org>
5585 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
5588 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5590 * lib/argz_.h: Sync from Libtool.
5592 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
5593 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5595 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
5597 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
5599 * modules/trim: New file.
5601 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
5603 * lib/trim.h: New file.
5604 * lib/trim.c: New file.
5606 2006-09-05 Bruno Haible <bruno@clisp.org>
5608 * MODULES.html.sh (String handling): Add trim.
5610 2006-09-04 Karl Berry <karl@gnu.org>
5612 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
5615 2006-09-03 Bruno Haible <bruno@clisp.org>
5617 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
5620 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
5622 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
5623 not gl_GETLOADAVG. Omit unneeded semicolons.
5624 Problems reported by Ralf Wildenhues in
5625 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
5626 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
5627 at the end, which is the usual gnulib style.
5629 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
5630 of doing all the work ourselves.
5631 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
5632 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
5634 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
5636 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
5637 Problem reported by Ralf Wildenhues in
5638 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
5640 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
5641 HAVE_STRUCT_STATFS_F_FSTYPENAME.
5643 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
5645 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
5646 yesterday's patch by changing test -n to test -z.
5648 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
5650 * modules/getloadavg (Files): Add m4/getloadavg.m4.
5651 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
5652 the former is now obsolescent.
5654 * modules/chdir-long (Depends-on): Add fcntl.
5656 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
5658 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
5659 obsolescent, and programs should use gnulib instead.
5660 * m4/getloadavg.m4: New file, with contents taken from Autoconf
5661 but with prefixes changed.
5663 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
5665 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
5666 or stdbool.h, because they might not exist while configuring.
5668 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
5669 Don't include unistd.h or limits.h; not needed, since chdir-long.h
5671 (O_DIRECTORY): Remove.
5673 2006-08-31 Eric Blake <ebb9@byu.net>
5675 * gnulib-tool: Don't let emacs change spaces to TAB.
5677 2006-08-31 Bruno Haible <bruno@clisp.org>
5679 * gnulib-tool: When calling func_import more than once, do it in a
5681 Reported by Eric Blake <ebb9@byu.net>.
5683 2006-08-31 Bruno Haible <bruno@clisp.org>
5685 * gnulib-tool (nl): Remove variable.
5686 (sed_transform_lib_file): Use more robust test for config-h module.
5687 (func_import): Fix typo in 2006-08-25 patch.
5689 2006-08-31 Bruno Haible <bruno@clisp.org>
5691 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
5692 specified, augment Makefile.am variables instead of assigning them.
5694 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
5696 Work around a bug in both the Linux and SunOS 64-bit kernels:
5697 nanosleep mishandles sleeps for longer than 2**31 seconds.
5698 Problem reported by Frank v Waveren in
5699 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
5700 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
5701 Check for nanosleep bug.
5702 (LIB_NANOSLEEP): Append clock_gettime library if needed.
5704 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
5706 Work around a bug in both the Linux and SunOS 64-bit kernels:
5707 nanosleep mishandles sleeps for longer than 2**31 seconds.
5708 Problem reported by Frank v Waveren in
5709 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
5710 * lib/nanosleep.c (BILLION): New constant.
5711 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
5712 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
5715 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
5717 * modules/nanosleep (Depends-on): Add gettime.
5719 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
5720 and Simon Josefsson <jas@extundo.com>
5721 and Oskar Liljeblad <oskar@osk.mine.nu>
5723 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
5724 * gnulib-tool (func_import): New license type 'unmodifiable license
5726 * modules/fdl: Use it. Longer description.
5727 * module/gpl, module/lgpl: New files.
5729 2006-08-30 Jim Meyering <jim@meyering.net>
5731 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
5732 shadowing the parameter.
5734 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5738 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5740 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
5741 sharing with gnulib. Report by Eric Blake.
5743 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
5745 * modules/isapipe: New file.
5746 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
5748 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
5750 * modules/configmake (Makefile.am): Add a comment, and omit
5751 the CONFIGMAKE_ prefix from generated macro names. Suggested
5754 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
5756 * m4/isapipe.m4: New file.
5758 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
5760 * lib/isapipe.c, lib/isapipe.h: New files.
5762 2006-08-29 Jim Meyering <jim@meyering.net>
5764 * modules/configmake (Makefile.am): Make configmake.h depend on
5765 Makefile. Otherwise, a stale configmake.h could hang around.
5767 2006-08-29 Eric Blake <ebb9@byu.net>
5769 * lib/error.c (error_at_line, print_errno_message): Match libc, after
5770 resolution of upstream bug 3044.
5772 2006-08-29 Bruno Haible <bruno@clisp.org>
5774 * modules/localcharset (Depends-on): Add configmake.
5775 (Makefile.am): Remove setting of LIBDIR through DEFS.
5777 2006-08-29 Bruno Haible <bruno@clisp.org>
5779 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
5782 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
5784 * modules/fcntl: New file.
5785 * modules/chdir-safer (Depends-on): Add fcntl.
5786 * modules/fts: Likewise.
5787 * modules/mkdir-p: Likewise.
5789 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
5790 This undoes the most recent change, since we're now addressing the
5791 problem in a different way.
5793 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
5794 into output, since the output might be called Makefile.am even
5795 if $makefile_name is something different.
5796 (func_import): Use $makefile_am rather than
5797 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
5800 * modules/inttypes (Files): Add m4/inttypes-h.m4.
5802 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
5804 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
5805 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
5806 recent change to stdint.m4, since we're now addressing the problem in a
5809 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
5811 * m4/fcntl_h.m4: New file.
5813 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
5815 * lib/fcntl_.h: New file.
5816 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
5818 * lib/dirchownmod.c: Likewise.
5819 * lib/fts.c: Likewise.
5821 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
5822 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
5823 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
5824 just before including <inttypes.h>, to avoid circular inclusion.
5826 2006-08-28 Jim Meyering <jim@meyering.net>
5828 * doc/visibility.texi: Actually read and correct the grammar of the
5829 sentence affected by yesterday's change.
5831 2006-08-28 Eric Blake <ebb9@byu.net>
5833 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
5836 2006-08-28 Eric Blake <ebb9@byu.net>
5838 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
5840 2006-08-28 Eric Blake <ebb9@byu.net>
5842 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
5844 2006-08-28 Bruno Haible <bruno@clisp.org>
5846 * modules/c-strstr: New file, from GNU gettext.
5847 * MODULES.html.sh (String handling): Add c-strstr.
5849 2006-08-28 Bruno Haible <bruno@clisp.org>
5851 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
5853 Reported by Eric Blake.
5855 2006-08-28 Bruno Haible <bruno@clisp.org>
5857 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
5858 (VASNPRINTF): Return a string of length > INT_MAX without failing.
5859 * lib/vasprintf.c: Include errno.h, limits.h.
5860 (EOVERFLOW): New fallback definition.
5861 (vasprintf): Test here whether the string length is > INT_MAX.
5862 * lib/vsnprintf.c: Include errno.h, limits.h.
5863 (EOVERFLOW): New fallback definition.
5864 (vsnprintf): Fix bug when generated string was too long for the buffer.
5865 Test here whether the string length is > INT_MAX.
5867 2006-08-28 Bruno Haible <bruno@clisp.org>
5869 * lib/inttypes_.h (SCNX*): Remove definitions.
5870 Reported by Eric Blake.
5872 2006-08-28 Bruno Haible <bruno@clisp.org>
5874 * lib/c-strstr.h: New file, from GNU gettext.
5875 * lib/c-strstr.c: New file, from GNU gettext.
5877 2006-08-28 Bruno Haible <bruno@clisp.org>
5879 * gnulib-tool: Reorder some statements.
5881 2006-08-28 Bruno Haible <bruno@clisp.org>
5883 * gnulib-tool: New option --makefile-name.
5884 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
5886 (func_import): Write $makefile_name to the cache file, and read it from
5887 there unless explicitly specified. Use $makefile_name as file name
5888 instead of Makefile.am. Adjust the recommendations accordingly.
5890 2006-08-28 Bruno Haible <bruno@clisp.org>
5892 * gnulib-tool (func_verify_module): Check against misapplying patch.
5894 2006-08-28 Bruno Haible <bruno@clisp.org>
5896 * gnulib-tool (func_relativize, func_relconcat): New functions.
5897 Give an error if --local-dir is given with --update.
5898 Remove trailing slashes from $local_gnulib_dir.
5899 (func_import): Store the relativized $local_gnulib_dir in
5900 gnulib-cache.m4, and read it from there if not specified explicitly.
5902 2006-08-28 Bruno Haible <bruno@clisp.org>
5904 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
5905 is the current directory. Respect also $local_gnulib_dir.
5907 2006-08-28 Bruno Haible <bruno@clisp.org>
5908 Simon Josefsson <jas@extundo.com>
5911 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
5913 2006-08-27 Jim Meyering <jim@meyering.net>
5915 * doc/visibility.texi: Remove duplicate word: "pointer".
5917 2006-08-26 Bruno Haible <bruno@clisp.org>
5919 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
5920 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
5921 (Makefile.am): Create inttypes.h from inttypes_.h.
5922 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
5924 * modules/imaxabs: New file.
5926 * modules/imaxdiv: New file.
5928 2006-08-26 Bruno Haible <bruno@clisp.org>
5930 * m4/inttypes.m4: New file.
5931 * m4/_inttypes_h.m4: Remove file.
5932 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
5934 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
5936 * m4/imaxabs.m4: New file.
5938 * m4/imaxdiv.m4: New file.
5940 2006-08-26 Bruno Haible <bruno@clisp.org>
5942 * lib/inttypes_.h: New file.
5943 * lib/inttypes.h: Remove file.
5944 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
5946 * lib/imaxabs.c: New file.
5948 * lib/imaxdiv.c: New file.
5950 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
5952 New config-h module, so that "make" output needn't be cluttered
5954 * MODULES.html.sh (Support for building libraries and executables):
5956 * modules/config-h: New file.
5957 * gnulib-tool (nl, sed_transform_lib_file): New vars.
5958 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
5959 the config-h module is used.
5961 New configmake module, so that "make" output needn't be cluttered
5962 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
5963 * MODULES.html.sh (Support for building libraries and executables):
5965 * modules/configmake: New file.
5967 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
5969 * m4/config-h.m4: New file.
5971 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
5973 * config/srclist.txt: Add elisp-comp.
5975 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
5977 * MODULES.html.sh (Support for building libraries and executables):
5979 * build-aux/elisp-comp: New file.
5980 * modules/elisp-comp: New file.
5982 2006-08-24 Bruno Haible <bruno@clisp.org>
5984 * gnulib-tool (func_create_testdir): Use non-default values of
5985 sourcebase and m4base.
5987 2006-08-24 Bruno Haible <bruno@clisp.org>
5989 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
5992 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
5994 * modules/openat (Depends-on): Add lchown.
5996 2006-08-23 Bruno Haible <bruno@clisp.org>
5998 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
5999 of gl_LOCK_EARLY instead of gl_LOCK.
6001 2006-08-23 Bruno Haible <bruno@clisp.org>
6003 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
6005 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
6007 2006-08-23 Bruno Haible <bruno@clisp.org>
6009 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
6012 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
6013 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
6014 (gl_LOCK): New macro.
6016 2006-08-22 Simon Josefsson <jas@extundo.com>
6018 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
6021 2006-08-22 Simon Josefsson <jas@extundo.com>
6023 * MODULES.html.sh: Add "Support for maintaining and release
6026 * build-aux/gnupload: New file, from coreutils.
6028 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
6030 Avoid the need for AC_LIBSOURCES in m4 macros.
6031 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
6032 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
6033 * modules/check-version (EXTRA_DIST): Add check-version.h.
6034 * modules/crc (EXTRA_DIST): Add crc.h.
6035 * modules/des (EXTRA_DIST): Add des.h.
6036 * modules/gc (EXTRA_DIST): Add gc.h.
6037 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
6038 * modules/getline (EXTRA_DIST): Add getline.h.
6039 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
6040 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
6041 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
6042 * modules/md2 (EXTRA_DIST): Add md2.h.
6043 * modules/md4 (EXTRA_DIST): Add md4.h.
6044 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
6045 * modules/read-file (EXTRA_DIST): Add read-file.h.
6046 * modules/readline (EXTRA_DIST): Add readline.h.
6047 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
6050 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
6052 * m4/rijndael.m4 (gl_ARCFOUR):
6053 * m4/arctwo.m4 (gl_ARCTWO):
6054 * m4/check-version.m4 (gl_CHECK_VERSION):
6055 * m4/crc.m4 (gl_CRC):
6056 * m4/des.m4 (gl_DES):
6057 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
6059 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
6060 * m4/getline.m4 (gl_FUNC_GETLINE):
6061 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
6062 * m4/hmac-md5.m4 (gl_HMAC_MD5):
6063 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
6064 * m4/md2.m4 (gl_MD2):
6065 * m4/md4.m4 (gl_MD4):
6066 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
6067 * m4/read-file.m4 (gl_FUNC_READ_FILE):
6068 * m4/readline.m4 (gl_FUNC_READLINE):
6069 * m4/rijndael.m4 (gl_RIJNDAEL):
6070 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
6071 to get the necessary .h files and whatnot.
6073 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
6075 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
6076 gnulib rather than the other way around.
6077 * config/srclistvars.sh (COREUTILS): Remove.
6079 2006-08-22 Jim Meyering <jim@meyering.net>
6081 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
6083 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
6085 2006-08-22 Eric Blake <ebb9@byu.net>
6087 * modules/regexprops-generic: New file.
6088 * MODULES.html.sh (Support for building documentation): List it.
6090 2006-08-22 Eric Blake <ebb9@byu.net>
6092 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
6093 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
6094 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
6095 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
6097 2006-08-22 Bruno Haible <bruno@clisp.org>
6099 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
6100 and lib_LTLIBRARIES like the other lib_* variables.
6102 2006-08-22 Bruno Haible <bruno@clisp.org>
6104 * build-aux/x-to-1.in: New file, from GNU gettext.
6106 2006-08-22 Bruno Haible <bruno@clisp.org>
6108 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
6111 2006-08-22 Bruno Haible <bruno@clisp.org>
6113 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
6116 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
6119 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
6121 Problem reported by Bruno Haible.
6123 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
6125 Avoid the need for AC_LIBSOURCES in m4 macros.
6126 * modules/acl (EXTRA_DIST): Add acl.h.
6127 * modules/argmatch (Files): Add m4/argmatch.m4.
6128 (configure.ac): Add gl_ARGMATCH.
6129 (EXTRA_DIST): Renamed from lib_SOURCES, for
6130 consistency with the other modules. Remove argmatch.c.
6131 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
6132 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
6133 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
6134 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
6135 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
6136 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
6137 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
6138 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
6139 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
6140 * modules/closeout (EXTRA_DIST): Add closeout.h.
6141 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
6142 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
6143 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
6144 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
6145 dirname.h; remove basename.c and stripslash.c.
6146 * modules/exclude (EXTRA_DIST): Add exclude.h.
6147 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
6148 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
6149 * modules/file-type (EXTRA_DIST): Add file-type.h.
6150 * modules/filemode (EXTRA_DIST): Add filemode.h.
6151 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
6152 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
6153 * modules/fpending (EXTRA_DIST): Add __fpending.h.
6154 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
6155 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
6156 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
6157 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
6158 * modules/getdate (EXTRA_DIST): Add getdate.c.
6159 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
6160 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
6161 * modules/getpass (EXTRA_DIST): Add getpass.h.
6162 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
6163 * modules/group-member (EXTRA_DIST): Add group-member.h.
6164 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
6165 * modules/hash (EXTRA_DIST): Add hash.h.
6166 * modules/human (EXTRA_DIST): Add human.h.
6167 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
6168 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
6169 * modules/lchown (EXTRA_DIST): Add lchown.h.
6170 * modules/long-options (EXTRA_DIST): Add long-options.h.
6171 * modules/lstat (EXTRA_DIST): Add lstat.h.
6172 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
6173 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
6174 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
6175 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
6176 * modules/memxor (EXTRA_DIST): Add memxor.h.
6177 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
6178 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
6179 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
6180 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
6181 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
6182 * modules/physmem (EXTRA_DIST): Add physmem.h.
6183 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
6184 * modules/posixver (EXTRA_DIST): Add posixver.h.
6185 * modules/quote (EXTRA_DIST): Add quote.h.
6186 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
6187 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
6188 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
6189 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
6190 regex_internal.h regexec.c.
6191 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
6192 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
6193 * modules/same (EXTRA_DIST): Add same.h.
6194 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
6195 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
6196 * modules/savedir (EXTRA_DIST): Add savedir.h.
6197 * modules/sha1 (EXTRA_DIST): Add sha1.h.
6198 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
6199 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
6200 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
6201 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
6202 * modules/strdup (EXTRA_DIST): Add strdup.h.
6203 * modules/strftime (EXTRA_DIST): Add strftime.h.
6204 * modules/strndup (EXTRA_DIST): Add strndup.h.
6205 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
6206 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
6207 * modules/time_r (EXTRA_DIST): Add time_r.h.
6208 * modules/timespec (EXTRA_DIST): Add timespec.h.
6209 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
6210 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
6211 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
6212 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
6213 * modules/userspec (EXTRA_DIST): Add userspec.h.
6214 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
6215 * modules/utimens (EXTRA_DIST): Add utimens.h.
6216 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
6217 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
6218 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
6219 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
6220 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
6221 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
6222 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
6223 * modules/yesno (EXTRA_DIST): Add yesno.h.
6225 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
6227 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
6229 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
6230 * m4/dev-ino.m4, same-inode.m4: Remove.
6232 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
6233 * m4/acl.m4 (AC_FUNC_ACL):
6234 * m4/backupfile.m4 (gl_BACKUPFILE):
6235 * m4/c-strtod.m4 (gl_C99_STRTOLD):
6236 * m4/canon-host.m4 (gl_CANON_HOST):
6237 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
6238 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
6239 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
6240 * m4/cloexec.m4 (gl_CLOEXEC):
6241 * m4/close-stream.m4 (gl_CLOSE_STREAM):
6242 * m4/closeout.m4 (gl_CLOSEOUT):
6243 * m4/dirfd.m4 (gl_FUNC_DIRFD):
6244 * m4/dirname.m4 (gl_DIRNAME):
6245 * m4/exclude.m4 (gl_EXCLUDE):
6246 * m4/exitfail.m4 (gl_EXITFAIL):
6247 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
6248 * m4/file-type.m4 (gl_FILE_TYPE):
6249 * m4/filemode.m4 (gl_FILEMODE):
6250 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
6251 * m4/fpending.m4 (gl_FUNC_FPENDING):
6252 * m4/fprintftime.m4 (gl_FPRINTFTIME):
6253 * m4/fts.m4 (gl_FUNC_FTS):
6254 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
6255 * m4/getdate.m4 (gl_GETDATE):
6256 * m4/gethrxtime.m4 (gl_GETHRXTIME):
6257 * m4/getpagesize.m4 (gl_GETPAGESIZE):
6258 * m4/getpass.m4 (gl_FUNC_GETPASS):
6259 * m4/gettime.m4 (gl_GETTIME):
6260 * m4/getugroups.m4 (gl_GETUGROUPS):
6261 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
6262 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
6263 * m4/hard-locale.m4 (gl_HARD_LOCALE):
6264 * m4/hash.m4 (gl_HASH):
6265 * m4/idcache.m4 (gl_IDCACHE):
6266 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
6267 * m4/lchown.m4 (gl_FUNC_LCHOWN):
6268 * m4/long-options.m4 (gl_LONG_OPTIONS):
6269 * m4/lstat.m4 (gl_FUNC_LSTAT):
6270 * m4/md5.m4 (gl_MD5):
6271 * m4/memcasecmp.m4 (gl_MEMCASECMP):
6272 * m4/memcoll.m4 (gl_MEMCOLL):
6273 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
6274 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
6275 * m4/memxor.m4 (gl_MEMXOR):
6276 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
6277 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
6278 * m4/modechange.m4 (gl_MODECHANGE):
6279 * m4/mountlist.m4 (gl_MOUNTLIST):
6280 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
6281 * m4/openat.m4 (gl_FUNC_OPENAT):
6282 * m4/pathmax.m4 (gl_PATHMAX):
6283 * m4/physmem.m4 (gl_PHYSMEM):
6284 * m4/posixtm.m4 (gl_POSIXTM):
6285 * m4/posixver.m4 (gl_POSIXVER):
6286 * m4/quote.m4 (gl_QUOTE):
6287 * m4/quotearg.m4 (gl_QUOTEARG):
6288 * m4/readtokens.m4 (gl_READTOKENS):
6289 * m4/readutmp.m4 (gl_READUTMP):
6290 * m4/regex.m4 (gl_REGEX):
6291 * m4/safe-read.m4 (gl_SAFE_READ):
6292 * m4/safe-write.m4 (gl_SAFE_WRITE):
6293 * m4/same.m4 (gl_SAME):
6294 * m4/save-cwd.m4 (gl_SAVE_CWD):
6295 * m4/savedir.m4 (gl_SAVEDIR):
6296 * m4/settime.m4 (gl_SETTIME):
6297 * m4/sha1.m4 (gl_SHA1):
6298 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
6299 * m4/stat-macros.m4 (gl_STAT_MACROS):
6300 * m4/stat-time.m4 (gl_STAT_TIME):
6301 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
6302 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
6303 * m4/strdup.m4 (gl_FUNC_STRDUP):
6304 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
6305 * m4/strndup.m4 (gl_FUNC_STRNDUP):
6306 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
6307 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
6308 * m4/time_r.m4 (gl_TIME_R):
6309 * m4/timespec.m4 (gl_TIMESPEC):
6310 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
6311 * m4/unlinkdir.m4 (gl_UNLINKDIR):
6312 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
6313 * m4/userspec.m4 (gl_USERSPEC):
6314 * m4/utimecmp.m4 (gl_UTIMECMP):
6315 * m4/utimens.m4 (gl_UTIMENS):
6316 * m4/xalloc.m4 (gl_XALLOC):
6317 * m4/xgetcwd.m4 (gl_XGETCWD):
6318 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
6319 * m4/xreadlink.m4 (gl_XREADLINK):
6320 * m4/xstrtod.m4 (gl_XSTRTOD):
6321 * m4/yesno.m4 (gl_YESNO):
6322 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
6323 to get the necessary .h files and whatnot.
6325 2006-08-21 Mark D. Baushke <mdb@gnu.org>
6326 Bruno Haible <bruno@clisp.org>
6328 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
6329 /bin/sh understanding of '!' conditional negation.
6331 2006-08-21 Jim Meyering <jim@meyering.net>
6333 * modules/openat (Depends-on): Really alphabetize.
6335 * modules/acl (Depends-on): Add error and quote.
6337 * check-module (find_included_lib_files): Add at-func.c to the
6338 ok-to-include-more-than-once white list.
6340 * modules/openat (Depends-on): Add lstat. Alphabetize.
6342 2006-08-21 Bruno Haible <bruno@clisp.org>
6344 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6345 Emit a pkgdata_DATA variable only if some snippets add contents to it.
6346 Reported by Martin Lambers <marlam@marlam.de>.
6348 2006-08-21 Bruno Haible <bruno@clisp.org>
6350 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
6351 specify an installation location, don't emit a noinst_LIBRARIES or
6352 noinst_LTLIBRARIES assignment.
6354 2006-08-21 Bruno Haible <bruno@clisp.org>
6357 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
6358 BeOS has mbrtowc() but no <wctype.h>.
6360 2006-08-21 Bruno Haible <bruno@clisp.org>
6363 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
6366 2006-08-21 Bruno Haible <bruno@clisp.org>
6369 * lib/mbchar.h: Include <wctype.h> only if it exists.
6371 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
6373 Remove files that are no longer needed by their respective modules.
6374 * m4/obstack.m4: Remove.
6375 * m4/strerror_r.m4: Remove.
6376 * m4/uint32_t.m4: Remove.
6377 * m4/uintptr_t.m4: Remove.
6378 * m4/ullong_max.m4: Remove.
6379 * m4/xstrtoimax.m4: Remove.
6380 * m4/xstrtoumax.m4: Remove.
6382 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
6383 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
6384 dependencies now capture this.
6386 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
6387 Do not use AC_LIBSOURCES, since gnulib modules now do this.
6388 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
6389 * m4/human.m4 (gl_HUMAN): Likewise.
6390 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
6391 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
6393 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
6395 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
6396 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
6398 * m4/human.m4 (gl_HUMAN): Likewise.
6399 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
6400 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
6401 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
6402 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
6403 * m4/xstrtol (gl_XSTRTOL): Likewise.
6405 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
6406 AC_TYPE_LONG_LONG_INT.
6407 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
6408 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
6409 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
6410 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
6412 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
6415 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
6416 (gl_PREREQ_XSTRTOUL): Remove.
6418 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
6420 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
6423 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
6425 Add and change modules to make it easier for coreutils to use
6427 * modules/backupfile (Files): Remove m4/d-ino.m4.
6428 (Depends-on): Add d-ino.
6429 * modules/cycle-check (Depends-on): Add stdint.
6430 (lib_SOURCES): Add cycle-check.h.
6431 * modules/d-ino: New module.
6432 * modules/d-type: New module.
6433 * modules/error (Files): Remove m4/strerror_r.m4.
6434 * modules/filemode (Files): Add m4/st_dm_mode.m4.
6435 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
6436 m4/inttypes_h.m4, m4/uintmax_t.m4.
6437 (Depends-on): Add stdint.
6438 (lib_SOURCES): Add fsusage.h.
6439 * modules/getcwd (Files): Remove d-ino.m4.
6440 (Depends-on): Add d-ino.
6441 * modules/getndelim2 (Depends-on): Add stdint.
6442 * modules/glob (Files): Remove m4/d-type.m4.
6443 (Depends-on): Add d-type.
6444 * modules/host-os: New module.
6445 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
6446 m4/inttypes_h.m4, m4/uintmax_t.m4.
6447 * Depends-on: Add stdint.
6448 (lib_SOURCES): Add human.h.
6449 * modules/inttostr (Files): Remove m4/intmax_t.m4,
6450 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
6451 m4/uintmax_t.m4, m4/ulonglong.m4.
6452 (Depends-on): Add stdint.
6453 (EXTRA_DIST): Add inttostr.h.
6454 * modules/lchmod: New module.
6455 * modules/link-follow: New module.
6456 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
6457 (Depends-on): Add lchmod.
6458 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
6459 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
6460 (Depends-on): Add stdint.
6461 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
6462 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
6463 (Depends-on): Add stdint.
6464 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
6465 * modules/perl: New module.
6466 * modules/regex (Depends-on): Add stdint.
6467 * modules/rmdir-errno: New module.
6468 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
6470 (Depends-on): Add stdint.
6471 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
6473 (Depends-on): Add stdint.
6474 * modules/unlink-busy: New module.
6475 * modules/utimecmp (Depends-on): Add stdint.
6476 * modules/uptime: New module.
6477 * modules/winsz-ioctl: New module.
6478 * modules/winsz-termios: New module.
6479 * modules/xnanosleep (Depends-on): Add nanosleep.
6480 * modules/ullong_max: Remove.
6481 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
6482 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
6483 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
6484 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
6485 (Depends-on): Add inttypes.
6486 (lib_SOURCES): Add xstrtol.h.
6487 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
6488 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
6489 * MODULES.html.sh: Move 'assert' into the assert section.
6490 Move 'dummy' into the linking section.
6492 Add section for compatibility checks for POSIX:2001 functions,
6493 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
6494 winsz-ioctl, and winsz-termios into it.
6496 Add top-level Misc section and put host-os, perl, and uptime
6499 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
6501 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
6502 now assume the stdint module. Do not include inttypes.h.
6503 * lib/fsusage.h: Likewise.
6504 * lib/getndelim2.c: Likewise.
6505 * lib/human.h: Likewise.
6506 * lib/inttostr.h: Likewise.
6507 * lib/obstack.c: Likewise.
6508 * lib/regex_internal.h: Likewise.
6509 * lib/tempname.c: Likewise.
6510 * lib/utimecmp.c: Likewise.
6511 * lib/xstrtol.h: Likewise.
6513 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
6515 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
6516 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
6517 * lib/xtime.h: Likewise.
6519 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
6521 * modules/openat (Files): Add lib/fchmodat.c.
6522 Fixes problem reported by Jay Youngman.
6524 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
6526 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
6527 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
6529 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
6530 Bruno Haible <bruno@clisp.org>
6532 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
6533 and is a script that invokes bison. Tighten the code. Add comments.
6535 2006-08-18 Jim Meyering <jim@meyering.net>
6537 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
6538 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
6539 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
6540 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
6542 2006-08-18 Bruno Haible <bruno@clisp.org>
6544 * modules/bison-i18n: New file.
6545 * MODULES.html.sh (Internationalization functions): Add it.
6547 2006-08-18 Bruno Haible <bruno@clisp.org>
6549 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
6550 sys/statvfs.h. When getmntinfo was found, check its declaration and
6551 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
6553 2006-08-18 Bruno Haible <bruno@clisp.org>
6555 * m4/bison-i18n.m4: New file, from bison.
6557 2006-08-18 Bruno Haible <bruno@clisp.org>
6559 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
6560 (ME_DUMMY): Treat "kernfs" as a dummy.
6561 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
6563 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
6565 Update from coreutils.
6567 2006-08-15 Jim Meyering <jim@meyering.net>
6569 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
6571 2006-01-17 Jim Meyering <jim@meyering.net>
6573 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
6575 2006-01-11 Jim Meyering <jim@meyering.net>
6577 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
6578 Check for the lchmod function.
6580 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
6582 Update from coreutils.
6584 * lib/__fpending.h: Add copyright notice.
6585 * lib/fprintftime.h: Likewise.
6586 * lib/savedir.c: Use (C) in copyright notice.
6587 * lib/savedir.h: Likewise.
6589 2006-08-15 Jim Meyering <jim@meyering.net>
6591 * lib/at-func.c: New file, with the logic of all emulated at-functions.
6592 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
6593 in support of the EXPECTED_ERRNO macro.
6594 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
6595 definitions. Instead, define the appropriate symbols and include
6597 * lib/mkdirat.c (mkdirat): Likewise.
6598 * lib/fchmodat.c (fchmodat): Likewise.
6599 (ENOSYS): Remove definition.
6600 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
6601 it. Don't include "unistd--.h" -- it wasn't ever used.
6603 2006-01-17 Jim Meyering <jim@meyering.net>
6605 Rewrite fts.c not to change the current working directory,
6606 by using openat, fstatat, fdopendir, etc..
6608 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
6609 (HAVE_OPENAT_SUPPORT): Define.
6610 [_LIBC] (fchdir): Don't undef or define; no longer used.
6611 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
6612 Now, this `function' always succeeds, and consumes its file descriptor
6613 parameter -- so callers must not close such FDs. Update callers.
6614 (diropen_fd, opendirat, cwd_advance_fd): New functions.
6615 (diropen): Add parameter, SP. Adjust all callers.
6616 Implement using diropen_fd, rather than open.
6617 (fts_open): Initialize new member, fts_cwd_fd.
6618 Remove fts_rft-setting code.
6619 (fts_close): Close fts_cwd_fd, if necessary.
6620 (__opendir2): Define in terms of opendir or opendirat,
6621 depending on whether the FST_NOCHDIR flag is set.
6622 (fts_build): Since fts_safe_changedir consumes its FD, and since
6623 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
6624 and close the dup'd file descriptor upon failure.
6625 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
6626 (fts_safe_changedir): Tweak semantics to reflect that this function
6627 now calls cwd_advance_fd and hence consumes its FD argument.
6628 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
6629 [struct FTS] (fts_rft): Remove now-unused member.
6630 [struct FTS] (fts_cycle.state): Improve comment.
6632 * lib/openat.c (openat_needs_fchdir): New function.
6633 * lib/openat.h (openat_needs_fchdir): Declare it.
6635 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
6637 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
6638 Problem and fix reported by Pádraig Brady in
6639 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
6641 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
6643 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
6645 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
6647 * lib/memcoll.c (memcoll): Optimize for the common case where the
6648 arguments are bytewise equal.
6650 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
6652 * doc/regexprops-generic.texi: Add a copyright notice.
6654 2006-08-15 Bruno Haible <bruno@clisp.org>
6656 * modules/tmpdir (License): Change to LGPL.
6658 2006-08-15 Bruno Haible <bruno@clisp.org>
6660 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
6663 2006-08-14 Simon Josefsson <jas@extundo.com>
6665 * config/srclist.txt: Add gnupload.
6667 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
6669 Change copyright notice from LGPL 2 to GPL 2, since that's the
6670 standard form used in the gnulib repository.
6671 * tests/test-lock.c: Likewise.
6672 * tests/test-stdint.c: Likewise.
6673 * tests/test-tls.c: Likewise.
6675 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
6676 prelude-manager. User shorter URLs for GNU projects, without '?'.
6677 Add copyright notice.
6679 * check-module: Add copyright notice. Output a copyright
6680 notice if "--version" is specified.
6681 * modules/COPYING: New file.
6682 * tests/test-getaddrinfo.c: Add copyright notice.
6683 * tests/test-verify.c: Likewise.
6685 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
6687 Change copyright notice from LGPL 2 to GPL 2, since that's the
6688 standard form used in the gnulib repository.
6689 * lib/lock.c: LGPL -> GPL.
6690 * lib/lock.h: Likewise.
6691 * lib/strnlen1.c: Likewise.
6692 * lib/strnlen1.h: Likewise.
6693 * lib/tls.c: Likewise.
6694 * lib/tls.h: Likewise.
6695 * lib/tmpdir.c: Likewise.
6697 * lib/TODO: Remove; this belongs only in coreutils.
6699 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
6701 Add copyright notices to long-enough files that lack them, since
6702 otherwise the files aren't clearly free. Use the same notice that
6703 getdate.texi already uses.
6704 * doc/alloca-opt.texi: Add copyright notice.
6705 * doc/alloca.texi: Likewise.
6706 * doc/ctime.texi: Likewise.
6707 * doc/functions.texi: Likewise.
6708 * doc/gcd.texi: Likewise.
6709 * doc/gnulib-tool.texi: Likewise.
6710 * doc/inet_ntoa.texi: Likewise.
6711 * doc/visibility.texi: Likewise.
6713 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
6714 * doc/quote.texi: Add copyright notice.
6716 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
6717 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
6718 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
6719 Mention SunOS 5.11. Mention that everything before SunOS 5.7
6720 is now obsolete, and give a pointer to the Sun list.
6721 Add copyright notice.
6723 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
6725 * config/srclistvars.sh: Add copyright notice.
6727 2006-08-14 Eric Blake <ebb9@byu.net>
6729 Import the following change from libc:
6731 2006-08-12 Ulrich Drepper <drepper@redhat.com>
6734 * lib/misc/error.c: Add space between program name and message if file
6737 2006-08-12 Karl Berry <karl@gnu.org>
6739 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
6740 remove, these originate in gnulib now.
6742 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6744 * doc/Makefile (standards.info standards.html standards.dvi):
6745 Also depend on make-stds.texi.
6747 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
6749 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
6750 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
6752 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
6753 in wchar_t. Problem reported by Eric Blake.
6755 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
6756 LEN is smaller than SIZE. Suggested by Bruno Haible.
6757 Also, help the compiler to keep LEN in a register.
6759 2006-08-11 Eric Blake <ebb9@byu.net>
6761 * users.txt: Sort. Add tar.
6763 2006-08-11 Bruno Haible <bruno@clisp.org>
6765 * users.txt: New file.
6767 2006-08-11 Bruno Haible <bruno@clisp.org>
6769 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
6770 before <wchar.h>. Needed for OSF/1 and BSD/OS.
6772 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
6774 * modules/snprintf (Depends-on): Remove minmax.
6775 (Maintainer): Add self and Bruno.
6777 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
6779 * lib/.cppi-disable: Add snprintf.h, socket_.h.
6780 * lib/snprintf.c: Include <errno.h> and <limits.h>.
6781 (EOVERFLOW): Define if the system does not.
6782 Do not include "minmax.h"; it wasn't used.
6783 (snprintf): Don't assume size_t promotes to an unsigned type.
6784 Fix bug when generated string was too long for the buffer: the
6785 buffer's contents are supposed to be the initial prefix of the
6786 output. Don't assume vasnprintf returns EOVERFLOW if the size
6787 exceeds INT_MAX; do the check ourselves.
6789 Import the following changes from libc:
6791 2006-06-02 Jakub Jelinek <jakub@redhat.com>
6793 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
6794 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
6795 set wc to the byte which couldn't be converted.
6796 (re_string_reconstruct): Don't clear valid_raw_len before calling
6797 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
6798 tip_context using re_string_context_at.
6800 2006-05-02 Ulrich Drepper <drepper@redhat.com>
6802 * lib/posix/regex.h: g++ still cannot handled [restrict].
6804 2006-04-21 Ulrich Drepper <drepper@redhat.com>
6806 * lib/posix/regex.h: Remove special handling for VMS.
6808 2006-08-10 Jim Meyering <jim@meyering.net>
6810 * modules/same-inode: New module.
6811 * modules/dev-ino: New module.
6812 * modules/cycle-check: Depend on these modules, rather than simply
6813 including their .h files.
6814 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
6815 required via m4/cycle-check.m4.
6816 * modules/same: Depend on new same-inode module, rather than
6817 including same-inode.h.
6818 * modules/chdir-safer: New file.
6820 * modules/chown (Depends-on): Add stat-macros.
6822 2006-08-10 Jim Meyering <jim@meyering.net>
6824 * m4/cycle-check.m4: New file.
6825 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
6826 * m4/dev-ino.m4, m4/same-inode.m4: New files.
6828 2006-08-10 Eric Blake <ebb9@byu.net>
6830 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
6831 in from original proposal.
6833 2006-08-10 Eric Blake <ebb9@byu.net>
6834 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6836 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
6839 2006-08-10 Bruno Haible <bruno@clisp.org>
6841 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
6844 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
6846 Sync from coreutils.
6848 2006-07-19 Mike Frysinger <vapier@gentoo.org>
6850 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
6851 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
6853 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
6855 * modules/restrict: Remove; no longer needed now that we assume
6856 Autoconf 2.59 or later.
6857 * MODULES.html.sh: Remove 'restrict'.
6858 * modules/argp (Depends-on): Remove 'restrict'.
6859 * modules/base64 (Depends-on): Likewise.
6860 * modules/gc (Depends-on): Likewise.
6861 * modules/getaddrinfo (Depends-on): Likewise.
6862 * modules/glob (Depends-on): Likewise.
6863 * modules/inet_ntop (Depends-on): Likewise.
6864 * modules/inet_pton (Depends-on): Likewise.
6865 * modules/memxor (Depends-on): Likewise.
6866 * modules/regex (Depends-on): Likewise.
6867 * modules/strtok_r (Depends-on): Likewise.
6868 * modules/time_r (Depends-on): Likewise.
6870 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
6872 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
6873 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
6874 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
6875 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
6876 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
6877 * m4/memxor.m4 (gl_MEMXOR): Likewise.
6878 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
6879 gl_C_RESTRICT replaced by AC_C_RESTRICT.
6881 Merge from coreutils.
6882 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
6883 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
6884 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6885 * m4/time_r.m4 (gl_TIME_R): Likewise.
6887 2006-08-09 Karl Berry <karl@gnu.org>
6889 * config/srclist.txt: no more gettext-tools, per Bruno.
6891 2006-08-08 Eric Blake <ebb9@byu.net>
6893 * modules/verror: New module.
6894 * MODULES.html.sh: Document it.
6896 2006-08-08 Eric Blake <ebb9@byu.net>
6898 * lib/verror.h, lib/verror.c: New files.
6900 2006-08-08 Eric Blake <ebb9@byu.net>
6902 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
6903 verror_at_line output complies with GNU Coding Standards even when
6906 2006-08-07 Bruno Haible <bruno@clisp.org>
6908 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
6910 Reported by Ralf Wildenhues.
6912 2006-08-07 Bruno Haible <bruno@clisp.org>
6914 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
6915 in an AC_DEFUN. Needed so that the autoconf snippets can use
6918 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6920 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6921 Initialize pkgdata_DATA.
6922 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
6925 2006-08-06 Eric Blake <ebb9@byu.net>
6927 * lib/error.h: Fold in some upstream changes from glibc.
6928 * lib/error.c: Likewise.
6930 2006-08-04 Bruno Haible <bruno@clisp.org>
6932 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6933 Make the mostlyclean-local rule depend on mostlyclean-generic.
6934 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
6936 2006-07-31 Bruno Haible <bruno@clisp.org>
6938 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
6939 <stdlib.h>, <string.h>.
6941 2006-07-30 Bruno Haible <bruno@clisp.org>
6943 * modules/readlink (License): Change to LGPL.
6945 2006-07-30 Bruno Haible <bruno@clisp.org>
6947 * modules/javaversion (Makefile.am): Distribute javaversion.java and
6948 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
6949 set PKGDATADIR to point to it.
6951 2006-07-30 Bruno Haible <bruno@clisp.org>
6953 * modules/csharpexec (configure.ac): Comment out macro invocation.
6954 * modules/javaexec (configure.ac): Likewise.
6955 * modules/javacomp-script (configure.ac): Likewise.
6957 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
6959 2006-07-30 Bruno Haible <bruno@clisp.org>
6961 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
6964 2006-07-30 Bruno Haible <bruno@clisp.org>
6966 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
6968 2006-07-30 Bruno Haible <bruno@clisp.org>
6970 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6971 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
6974 2006-07-29 Bruno Haible <bruno@clisp.org>
6976 Make it possible for gnulib-tool to work with locally modified or
6977 augmented gnulib repositories.
6978 * gnulib-tool (func_usage): Document --local-dir option.
6979 (local_gnulib_dir): New variable.
6980 Handle --local-dir option.
6981 (func_lookup_file): New function.
6982 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
6983 (func_get_description, func_get_filelist, func_get_description,
6984 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
6985 func_get_automake_snippet, func_get_include_directive,
6986 func_get_license, func_get_maintainer): Use func_lookup_file.
6987 (func_import, func_create_testdir): Use func_lookup_file.
6989 2006-07-29 Bruno Haible <bruno@clisp.org>
6991 * modules/setenv (Depends-on): Add unistd.
6993 2006-07-29 Bruno Haible <bruno@clisp.org>
6995 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
6997 2006-07-29 Bruno Haible <bruno@clisp.org>
6999 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
7001 2006-07-29 Bruno Haible <bruno@clisp.org>
7003 * gnulib-tool (import, update): If there is no Makefile.am, look at
7004 aclocal.m4, instead of bailing out.
7006 2006-07-29 Bruno Haible <bruno@clisp.org>
7008 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
7009 Categorize the options by when they are useful.
7011 2006-07-29 Bruno Haible <bruno@clisp.org>
7013 * gnulib-tool (func_usage): Document option --no-libtool.
7014 Handle option --no-libtool.
7015 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
7016 for changed semantics of $libtool variable.
7017 (func_import): Likewise. If libtool is not used, show this through
7018 an option --no-libtool.
7019 (func_create_testdir): Update.
7021 2006-07-29 Bruno Haible <bruno@clisp.org>
7023 * gnulib-tool (func_import): Extend error message about missing
7026 2006-07-29 Bruno Haible <bruno@clisp.org>
7028 * gnulib-tool (func_import): Don't create the $docbase directory if
7029 there is no file to store there.
7031 2006-07-29 Bruno Haible <bruno@clisp.org>
7033 * gnulib-tool (autoconf_minversion): If a --dir option is given and
7034 relevant, look for configure.ac there, not in the current directory.
7035 Also use a simple search for AC_PREREQ, not "autoconf --trace".
7037 2006-07-29 Bruno Haible <bruno@clisp.org>
7039 * gnulib-tool (SORT): New variable.
7040 (func_usage): Undocument --assume-autoconf option.
7041 Remove --assume-autoconf option handling.
7042 (autoconf_minversion): Determine from the contents of configure.ac.
7043 (func_import): Remove autoconf_minversion handling.
7044 Suggested by Eric Blake.
7046 2006-07-29 Bruno Haible <bruno@clisp.org>
7048 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
7050 2006-07-29 Bruno Haible <bruno@clisp.org>
7052 * config/srclist.txt (*setenv.[ch]): Remove rules.
7054 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7056 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
7058 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7060 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
7063 2006-07-28 Simon Josefsson <jas@extundo.com>
7065 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
7066 * modules/inet_pton (Depends-on): Likewise.
7068 2006-07-28 Simon Josefsson <jas@extundo.com>
7070 * m4/netinet_in_h.m4: New file.
7072 2006-07-28 Simon Josefsson <jas@extundo.com>
7074 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
7077 2006-07-28 Simon Josefsson <jas@extundo.com>
7079 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
7082 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
7084 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
7085 setgid on directories only if they set these bits.
7086 * lib/modechange.h: Remove obsolete comment about masks.
7088 2006-07-28 Eric Blake <ebb9@byu.net>
7090 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
7093 2006-07-28 Bruno Haible <bruno@clisp.org>
7095 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
7097 2006-07-28 Bruno Haible <bruno@clisp.org>
7099 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
7101 2006-07-28 Bruno Haible <bruno@clisp.org>
7103 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
7104 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
7106 Avoids link error on FreeBSD 4.x.
7107 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7109 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
7111 * lib/mbswidth.c (iswcntrl): Likewise.
7113 2006-07-27 Bruno Haible <bruno@clisp.org>
7115 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
7118 2006-07-27 Bruno Haible <bruno@clisp.org>
7120 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
7121 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
7124 2006-07-26 Eric Blake <ebb9@byu.net>
7126 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
7128 2006-07-26 Eric Blake <ebb9@byu.net>
7130 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
7131 like mingw that lack mkstemp.
7132 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
7133 avoid compilation warning on mingw.
7135 2006-07-26 Bruno Haible <bruno@clisp.org>
7137 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
7138 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
7139 INT_FAST*_MIN, INTPTR_MIN.
7141 2006-07-25 Bruno Haible <bruno@clisp.org>
7143 * modules/version-etc (Depends-on): Add stdarg.
7145 2006-07-25 Bruno Haible <bruno@clisp.org>
7147 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
7150 2006-07-25 Bruno Haible <bruno@clisp.org>
7152 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
7153 defined in <stdarg.h> or config.h.
7155 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
7157 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
7158 (gl_STDIO_SAFER): Remove.
7160 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
7162 * MODULES.html.sh (File stream based Input/Output):
7163 Add fopen-safer, tmpfile-safer; remove stdio-safer.
7164 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
7165 * modules/fopen-safer, modules/tmpfile-safer: New files.
7166 * modules/stdio-safer: Remove.
7168 2006-07-24 Bruno Haible <bruno@clisp.org>
7170 * modules/tmpdir: New file.
7171 * MODULES.html.sh (File system functions): Add it.
7173 2006-07-24 Bruno Haible <bruno@clisp.org>
7175 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
7176 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
7178 2006-07-24 Bruno Haible <bruno@clisp.org>
7180 * modules/clean-temp: New file.
7182 2006-07-24 Bruno Haible <bruno@clisp.org>
7184 * m4/tmpdir.m4: New file, from GNU gettext.
7186 2006-07-24 Bruno Haible <bruno@clisp.org>
7188 * lib/tmpdir.h: New file, from GNU gettext.
7189 * lib/tmpdir.c: New file, from GNU gettext.
7191 2006-07-24 Bruno Haible <bruno@clisp.org>
7193 * lib/clean-temp.h: New file, from GNU gettext.
7194 * lib/clean-temp.c: New file, from GNU gettext.
7196 2006-07-23 Eric Blake <ebb9@byu.net>
7198 * modules/stdio-safer (Files): Add tmpfile-safer.c.
7199 (Depends-on): Add binary-io.
7201 2006-07-23 Eric Blake <ebb9@byu.net>
7203 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
7205 2006-07-23 Eric Blake <ebb9@byu.net>
7207 * lib/tmpfile-safer.c: New file.
7208 * lib/stdio-safer.h (fopen_safer): Add prototype.
7209 * lib/stdio--.h (tmpfile): Make safer.
7211 2006-07-23 Bruno Haible <bruno@clisp.org>
7213 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
7214 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
7215 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
7216 gl_linked_remove_at): Use it.
7218 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7219 and Simon Josefsson <jas@extundo.com>
7221 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
7223 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
7225 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
7227 * modules/close-stream: New file.
7228 * modules/closeout (Description): Make it clear that it exits
7229 with a diagnostic on error.
7230 (Depends-on): Add close-stream. Remove fpending, stdbool.
7231 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
7233 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
7235 * m4/close-stream.m4: New file.
7237 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
7239 * lib/close-stream.c, lib/close-stream.h: New files.
7241 2006-07-22 Bruno Haible <bruno@clisp.org>
7243 Merge from GNU gettext 0.15.
7245 2006-05-01 Bruno Haible <bruno@clisp.org>
7247 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
7249 2006-07-22 Bruno Haible <bruno@clisp.org>
7251 * modules/javaversion: New file.
7252 * MODULES.html.sh (Java): Add javaversion.
7254 2006-03-12 Bruno Haible <bruno@clisp.org>
7256 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
7258 2005-12-04 Bruno Haible <bruno@clisp.org>
7260 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
7263 2006-06-21 Bruno Haible <bruno@clisp.org>
7265 Avoid warnings from recent versions of mcs.
7266 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
7267 -o, -L, -r any more. Use options documented since mcs-1.0
7268 instead. Similarly for -g.
7270 2005-12-04 Bruno Haible <bruno@clisp.org>
7272 * build-aux/csharpcomp.sh.in: Suffix for resources is
7273 .resources, not .resource.
7275 2005-07-09 Bruno Haible <bruno@clisp.org>
7277 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
7279 Reported by Mark Junker <mjscod@gmx.de>.
7281 2006-07-22 Bruno Haible <bruno@clisp.org>
7283 * modules/gettext: Upgrade to gettext-0.15.
7284 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
7286 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
7288 2006-07-22 Bruno Haible <bruno@clisp.org>
7290 Merge from GNU gettext 0.15.
7292 2006-03-25 Bruno Haible <bruno@clisp.org>
7294 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
7296 2006-07-21 Bruno Haible <bruno@clisp.org>
7298 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
7301 2006-05-09 Bruno Haible <bruno@clisp.org>
7303 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
7304 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
7305 for the conftestver execution.
7307 2006-05-01 Bruno Haible <bruno@clisp.org>
7309 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
7310 optional target-version argument. Verify that the compiler
7311 groks source of the specified source-version, or add -source
7312 option as necessary. Verify that the compiler produces
7313 bytecode in the specified target-version, or add -target and
7314 -source options as necessary. Make the result of the test
7315 available as variable CONF_JAVAC. Also log error output in
7318 2006-03-11 Bruno Haible <bruno@clisp.org>
7320 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
7322 2006-05-09 Bruno Haible <bruno@clisp.org>
7324 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
7325 CLASSPATH_SEPARATOR to a semicolon.
7327 2006-03-12 Bruno Haible <bruno@clisp.org>
7329 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
7330 available as variable CONF_JAVA, for subsequent autoconf
7331 tests. Also log error output in config.log.
7333 2006-07-19 Bruno Haible <bruno@clisp.org>
7335 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
7336 that getline works on glibc2 systems. Needed to avoid trouble
7338 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
7340 2005-12-04 Bruno Haible <bruno@clisp.org>
7342 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
7343 launcher (untested).
7345 2005-12-04 Bruno Haible <bruno@clisp.org>
7347 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
7349 2006-07-22 Bruno Haible <bruno@clisp.org>
7351 * gettext.m4: Update from GNU gettext-0.15.
7354 * inttypes-pri.m4: Likewise.
7355 * inttypes-h.m4: Renamed from inttypes.m4.
7356 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
7358 2006-07-22 Bruno Haible <bruno@clisp.org>
7360 Merge from GNU gettext 0.15.
7362 2005-07-05 Bruno Haible <bruno@clisp.org>
7364 * printf-args.c (printf_fetchargs): Work around broken
7365 definition of wint_t on mingw.
7367 2005-02-12 Bruno Haible <bruno@clisp.org>
7369 * xallocsa.h: Add extern "C" for C++.
7371 2006-05-17 Bruno Haible <bruno@clisp.org>
7374 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
7376 2006-04-30 Bruno Haible <bruno@clisp.org>
7378 * progreloc.c: Include <mach-o/dyld.h> if available.
7379 (find_executable): Use _NSGetExecutablePath when possible.
7381 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
7383 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
7386 2005-12-29 Bruno Haible <bruno@clisp.org>
7388 * progreloc.c (set_program_name_and_installdir): Fix
7391 2005-12-04 Bruno Haible <bruno@clisp.org>
7394 * progreloc.c: Include <windows.h> also on Cygwin.
7395 (find_executable): Add support for Cygwin.
7396 (set_program_name_and_installdir): Handle also platforms with
7399 2006-07-11 Bruno Haible <bruno@clisp.org>
7401 * javacomp.c: Fix a comment.
7402 Reported by Jim Meyering.
7404 2006-04-30 Bruno Haible <bruno@clisp.org>
7406 * javacomp.h (compile_java_class): Add source_version,
7407 target_version arguments.
7408 * javacomp.c: Rewritten to choose only a compiler that
7409 respects the specified source_version and target_version.
7411 2006-06-27 Bruno Haible <bruno@clisp.org>
7413 Assume correct S_ISDIR macro.
7414 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
7416 2006-07-22 Bruno Haible <bruno@clisp.org>
7418 * javaversion.h: New file, from GNU gettext.
7419 * javaversion.c: New file, from GNU gettext.
7420 * javaversion.java: New file, from GNU gettext.
7421 * javaversion.class: New file, from GNU gettext.
7423 2006-05-17 Bruno Haible <bruno@clisp.org>
7426 * javaexec.c (execute_java_class): Test for jview program
7429 2006-04-09 Bruno Haible <bruno@clisp.org>
7431 * fatal-signal.c: Don't include string.h.
7432 (at_fatal_signal): Use a copying loop instead of memcpy.
7434 2005-12-04 Bruno Haible <bruno@clisp.org>
7436 * csharpexec.c: Add support for 'clix' launcher (untested).
7437 (execute_csharp_using_sscli): New function.
7438 (execute_csharp_program): Call it.
7440 2006-06-21 Bruno Haible <bruno@clisp.org>
7442 Avoid warnings from recent versions of mcs.
7443 * csharpcomp.c (compile_csharp_using_mono): Don't use options
7444 -o, -L, -r any more. Use options documented since mcs-1.0
7445 instead. Similarly for -g.
7447 2005-07-09 Bruno Haible <bruno@clisp.org>
7449 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
7451 Reported by Mark Junker <mjscod@gmx.de>.
7453 2006-06-17 Bruno Haible <bruno@clisp.org>
7455 * config.charset: Update for NetBSD 3.0.
7457 2006-05-17 Bruno Haible <bruno@clisp.org>
7460 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
7462 2006-05-16 Bruno Haible <bruno@clisp.org>
7464 * localcharset.c [CYGWIN]: Include <windows.h>.
7465 (get_charset_aliases): For Cygwin, return the same CPxxx
7466 aliases list as under WIN32.
7467 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
7468 the environment variables. Fall back to GetACP().
7470 2006-04-05 Bruno Haible <bruno@clisp.org>
7472 * config.charset: Update Juan Manuel Guerrero's address.
7474 2005-02-12 Bruno Haible <bruno@clisp.org>
7476 * allocsa.h: Add extern "C" for C++.
7478 2005-02-10 Bruno Haible <bruno@clisp.org>
7480 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
7481 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
7483 2006-07-22 Bruno Haible <bruno@clisp.org>
7485 * gettext.h: Update to GNU gettext-0.15.
7487 2006-07-22 Bruno Haible <bruno@clisp.org>
7489 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
7490 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
7491 lib-prefix.m4, longdouble.m4, ssize_t.m4.
7493 2006-07-21 Eric Blake <ebb9@byu.net>
7495 * modules/stdlib-safer: New file.
7496 * MODULES.html.sh (File stream based Input/Output): Add
7499 2006-07-21 Eric Blake <ebb9@byu.net>
7501 * lib/stdlib-safer.h: New file from coreutils, required by
7504 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
7506 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
7508 2006-07-20 Bruno Haible <bruno@clisp.org>
7510 * gnulib-tool: Recognize new option --assume-autoconf.
7511 (autoconf_minversion): New variable.
7512 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
7514 2006-07-20 Bruno Haible <bruno@clisp.org>
7516 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
7518 2006-07-19 Derek R. Price <derek@ximbiot.com>
7520 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
7521 Reindent and repaginate.
7523 2006-07-19 Derek Price <derek@ximbiot.com>
7525 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
7528 2006-07-17 Bruno Haible <bruno@clisp.org>
7530 * modules/list: New file.
7531 * modules/array-list: New file.
7532 * modules/carray-list, modules/carray-list-tests: New files.
7533 * modules/linked-list, modules/linked-list-tests: New files.
7534 * modules/avltree-list, modules/avltree-list-tests: New files.
7535 * modules/rbtree-list, modules/rbtree-list-tests: New files.
7536 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
7537 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
7538 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
7539 * modules/oset: New file.
7540 * modules/array-oset: New file.
7541 * modules/avltree-oset, modules/avltree-oset-tests: New files.
7542 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
7543 * tests/test-carray_list.c: New file.
7544 * tests/test-linked_list.c: New file.
7545 * tests/test-avltree_list.c: New file.
7546 * tests/test-rbtree_list.c: New file.
7547 * tests/test-linkedhash_list.c: New file.
7548 * tests/test-avltreehash_list.c: New file.
7549 * tests/test-rbtreehash_list.c: New file.
7550 * tests/test-avltree_oset.c: New file.
7551 * tests/test-rbtree_oset.c: New file.
7552 * MODULES.html.sh (Container data structures): New section.
7554 2006-07-17 Bruno Haible <bruno@clisp.org>
7556 * m4/gl_list.m4: New file.
7558 2006-07-17 Bruno Haible <bruno@clisp.org>
7560 * lib/gl_list.h: New file.
7561 * lib/gl_list.c: New file.
7562 * lib/gl_array_list.h: New file.
7563 * lib/gl_array_list.c: New file.
7564 * lib/gl_carray_list.h: New file.
7565 * lib/gl_carray_list.c: New file.
7566 * lib/gl_linked_list.h: New file.
7567 * lib/gl_linked_list.c: New file.
7568 * lib/gl_anylinked_list1.h: New file.
7569 * lib/gl_anylinked_list2.h: New file.
7570 * lib/gl_avltree_list.h: New file.
7571 * lib/gl_avltree_list.c: New file.
7572 * lib/gl_anyavltree_list1.h: New file.
7573 * lib/gl_anyavltree_list2.h: New file.
7574 * lib/gl_rbtree_list.h: New file.
7575 * lib/gl_rbtree_list.c: New file.
7576 * lib/gl_anyrbtree_list1.h: New file.
7577 * lib/gl_anyrbtree_list2.h: New file.
7578 * lib/gl_anytree_list1.h: New file.
7579 * lib/gl_anytree_list2.h: New file.
7580 * lib/gl_linkedhash_list.h: New file.
7581 * lib/gl_linkedhash_list.c: New file.
7582 * lib/gl_anyhash_list1.h: New file.
7583 * lib/gl_anyhash_list2.h: New file.
7584 * lib/gl_avltreehash_list.h: New file.
7585 * lib/gl_avltreehash_list.c: New file.
7586 * lib/gl_rbtreehash_list.h: New file.
7587 * lib/gl_rbtreehash_list.c: New file.
7588 * lib/gl_anytreehash_list1.h: New file.
7589 * lib/gl_anytreehash_list2.h: New file.
7591 * lib/gl_oset.h: New file.
7592 * lib/gl_oset.c: New file.
7593 * lib/gl_array_oset.h: New file.
7594 * lib/gl_array_oset.c: New file.
7595 * lib/gl_avltree_oset.h: New file.
7596 * lib/gl_avltree_oset.c: New file.
7597 * lib/gl_rbtree_oset.h: New file.
7598 * lib/gl_rbtree_oset.c: New file.
7599 * lib/gl_anytree_oset.h: New file.
7601 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
7603 * m4/mkancesdirs.m4: New file.
7604 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
7605 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
7606 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
7609 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
7611 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
7612 * lib/mkancesdirs.h: New files.
7613 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
7614 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
7615 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
7616 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
7617 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
7618 callers changed. Revamp internals significantly, by not
7619 attempting to create directories that are temporarily more
7620 permissive than the final results. Do not attempt to use
7621 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
7622 This removes some race conditions, fixes some bugs, and simplifies
7623 things. Use new dirchownmod function to do owner and mode changes.
7624 * lib/mkdir-p.h: Likewise.
7625 * lib/modechange.c (octal_to_mode): New function.
7626 (struct mode_change): New member mentioned.
7627 (make_node_op_equals): New arg mentioned. All callers changed.
7628 (mode_compile): Keep track of which mode bits the user has explicitly
7630 (mode_adjust): New arg DIR, so that we implement the X op correctly.
7631 New arg PMODE_BITS, to keep track of which mode bits the user
7632 mentioned; it treats S_ISUID and S_ISGID speciall.
7633 All callers changed.
7634 * lib/modechange.h: Likewise.
7636 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
7638 * MODULES.html.sh: Add mkancestors.
7639 * modules/mkancesdirs: New module.
7640 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
7641 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
7642 The chdir-safer and afs files are now orphans; I'll remove them
7643 unless someone speaks up.
7644 Add lib/dirchownmod.c, lib/dirchownmod.h.
7645 (Depends-on): Remove alloca, chown, save-cwd, dirname.
7646 Add lchown, mkancesdirs.
7647 (Maintainer): Add self.
7649 2006-07-15 Karl Berry <karl@gnu.org>
7651 * gnulib-tool: help message wording/arrangement.
7653 2006-07-14 Simon Josefsson <jas@extundo.com>
7655 * doc/gnulib.texi (Libtool and Windows): New section.
7657 2006-07-12 Simon Josefsson <jas@extundo.com>
7659 * modules/gendocs (License): Fix license, approved by Karl.
7661 2006-07-12 Eric Blake <ebb9@byu.net>
7663 * MODULES.html.sh: Add gendocs.
7665 2006-07-11 Eric Blake <ebb9@byu.net>
7667 * modules/fdl: New module, to install doc/fdl.texi.
7668 * MODULES.html.sh: Add new section for documentation modules.
7669 * gnulib-tool: Avoid space-tab.
7670 (--doc-base): New option, to manage files from doc.
7672 2006-07-11 Eric Blake <ebb9@byu.net>
7674 * m4/absolute-header.m4: Fix comments to match recent change.
7676 2006-07-11 Eric Blake <ebb9@byu.net>
7678 * gnulib-tool: List --doc-base before --tests-base.
7680 2006-07-11 Derek R. Price <derek@ximbiot.com>
7682 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
7684 2006-07-11 Bruno Haible <bruno@clisp.org>
7686 * README: Mention where to put documentation.
7688 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7690 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
7692 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
7694 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
7697 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
7699 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
7700 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
7701 "no/such/file/stdint.h" when there is no such file, so that
7702 the resulting C code can be parsed by dodgy compilers.
7703 Problems reported by Bob Proulx.
7705 2006-07-10 Derek R. Price <derek@ximbiot.com>
7707 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
7708 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
7709 macros into the GNU _D_EXACT_NAMLEN.
7710 * lib/savedir.c: Likewise.
7711 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
7713 2006-07-10 Derek R. Price <derek@ximbiot.com>
7714 and Paul Eggert <eggert@cs.ucla.edu>
7716 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
7718 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
7719 macros into the GNU _D_EXACT_NAMLEN.
7721 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
7723 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
7724 around the absolute name, to work around a problem with the HP-UX
7725 11.23 native C compiler, reported by Bob Proulx.
7727 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
7729 * doc/maintain.texi, make-stds.texi: Sync from
7730 <http://savannah.gnu.org/projects/gnustandards>.
7732 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
7734 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
7736 2006-07-09 Jim Meyering <jim@meyering.net>
7738 * m4/glob.m4: Remove a doubled word in a comment.
7740 2006-07-09 Jim Meyering <jim@meyering.net>
7742 * lib/argp-pv.c: Remove a doubled word in a comment.
7743 * lib/check-version.c (check_version): Likewise.
7744 * lib/javacomp.c (compile_java_class): Likewise.
7746 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
7748 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
7749 for the benefit of people using Autoconf 2.60. If you want to
7750 support older Autoconf versions you can copy m4/onceonly_2_57.m4
7751 (or m4/onceonly.m4, if pre-2.57) manually.
7753 2006-07-08 Jim Meyering <jim@meyering.net>
7755 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
7757 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
7758 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
7761 2006-07-08 Jim Meyering <jim@meyering.net>
7763 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
7765 2006-07-07 Simon Josefsson <jas@extundo.com>
7767 * tests/test-crc.c: Change expected crc value, the test vector
7768 were probably computed using the old broken crc.c?
7770 2006-07-06 Simon Josefsson <jas@extundo.com>
7772 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
7773 now the canonical place for the M4 file).
7775 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
7776 from the sys_socket dependency now.
7778 * modules/inet_pton (Files): Ditto.
7780 * modules/inet_ntop (Files): Ditto.
7782 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
7784 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
7785 not gl_PREREQ_GETUSERSHELL.
7787 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7789 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
7790 with only one argument, for Autoconf 2.60.
7791 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
7792 expand to nothing, so add a shell command to avoid syntax error.
7793 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
7795 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7797 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
7799 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
7801 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
7802 no longer needed. Check for isblank decl.
7803 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
7804 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
7807 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
7809 * lib/getloadavg.c: Use __VMS, not VMS.
7810 * lib/getopt.c: Likewise.
7811 * lib/getpagesize.h: Likewise.
7812 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
7813 and probably does not work.
7815 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
7817 * lib/.cppi-disable: Add wcwidth.
7818 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
7819 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
7820 (ISGRAPH): Remove. All uses changed to isgraph.
7821 (FOLD) [!defined _LIBC]: Remove special case.
7822 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
7823 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
7825 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
7828 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
7830 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
7831 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
7832 brackets. Other minor changes to suppress some compiler
7835 2006-07-06 Derek R. Price <derek@ximbiot.com>
7836 and Paul Eggert <eggert@cs.ucla.edu>
7838 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
7839 of invoking obsolescent AC_HEADER_DIRENT macro.
7840 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7841 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
7842 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7843 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
7844 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
7845 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
7846 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
7847 * m4/readdir.m4: Remove; no longer needed.
7849 2006-07-06 Derek R. Price <derek@ximbiot.com>
7850 and Paul Eggert <eggert@cs.ucla.edu>
7852 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
7853 Don't worry about this obsolete case any more.
7854 (HAVE_DIR): Remove. All uses removed; we now assume you can read
7856 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
7857 worry about this obsolete case any more.
7858 * lib/fts.c: Likewise.
7859 * lib/getcwd.c: Likewise.
7860 * lib/glob.h: Likewise.
7861 * lib/savedir.c: Likewise.
7863 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
7865 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
7866 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
7867 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
7870 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
7871 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
7872 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
7874 * m4/getdate.m4 (gl_GETDATE): Likewise.
7875 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
7876 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
7877 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7878 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
7879 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
7880 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
7881 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
7884 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
7886 * lib/memcasecmp.c: Include <limits.h>.
7887 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
7888 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
7889 Don't assume isdigit succeeds only on '0' through '9'.
7891 2006-07-05 Eric Blake <ebb9@byu.net>
7893 * modules/getaddrinfo (Depends-on): Add snprintf.
7895 2006-07-05 Eric Blake <ebb9@byu.net>
7897 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
7898 to avoid 'header present but could not be compiled' on cygwin.
7900 2006-07-05 Eric Blake <ebb9@byu.net>
7902 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
7903 missing from netdb.h.
7904 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
7906 2006-07-05 Derek R. Price <derek@ximbiot.com>
7908 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
7910 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
7911 * m4/getdate.m4 (gl_GETDATE): Likewise.
7912 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
7913 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
7914 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7915 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
7916 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
7918 2006-07-05 Derek R. Price <derek@ximbiot.com>
7920 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
7921 All uses of is_space replaced by isspace.
7922 * lib/exit.h: Don't talk about STDC_HEADERS.
7923 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
7924 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
7925 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
7926 replaced by isprint etc.
7927 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
7928 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
7929 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
7930 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
7931 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
7932 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
7934 2006-07-05 Bruno Haible <bruno@clisp.org>
7936 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
7937 the function exists, before testing against AIX.
7938 Reported by Martin Lambers <marlam@marlam.de>.
7940 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
7942 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
7943 From Mark D. Baushke.
7945 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
7947 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
7948 to the absolute name, not just one, to bypass Sun C 5.8's
7949 "warning: #include of /usr/include/... may be non-portable".
7951 2006-07-04 Eric Blake <ebb9@byu.net>
7953 * modules/dirname-tests: New test module.
7954 * tests/test-dirname.c: New file, replacing dirname.c
7955 TEST_DIRNAME section that was recently deleted.
7957 2006-07-04 Bruno Haible <bruno@clisp.org>
7959 Assume ANSI C header files and <ctype.h> functions.
7960 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
7961 (mbsnwidth): Use isprint, iscntrl instead.
7963 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
7965 Merge from coreutils.
7966 * MODULES.html.sh: Add xstrtold.
7967 * modules/xstrtold: New file.
7968 * modules/cycle-check (Files): Add lib/same-inode.h.
7969 * modules/dirname (Files): Add m4/double-slash-root.m4.
7970 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
7971 * modules/mkdir-p (Files): Add lib/same-inode.h.
7972 * modules/same (Files): Add lib/same-inode.h.
7974 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
7976 * m4/absolute-header.m4: Renamed from full-header-path.m4.
7977 This is to keep the terminology clean; POSIX talks about
7978 "absolute pathnames", not "full pathnames", but the GNU
7979 Coding Standards say to use "path" for something else;
7980 so use "absolute" to keep both sides happy.
7981 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
7982 Set gl_absolute_header, not gl_full_header_path.
7983 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
7984 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
7987 Merge from coreutils.
7989 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
7991 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
7992 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
7993 want to require the building of c-strtod.o.
7994 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
7996 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
7998 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
8000 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
8001 --as-needed option if available. Problem reported by Albert Chin in
8002 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
8003 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
8004 cc merely issues a bunch of annoying warnings for --as-needed
8005 (this problem was reported by Bob Proulx). Also, try linking with
8006 -lm to detect a bug in binutils 2.16 (this problem was reported
8007 by Ralf Wildenhues).
8009 2006-06-18 Jim Meyering <jim@meyering.net>
8011 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
8012 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
8014 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
8015 also check for glibc-2.4's abort-inducing bug.
8017 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
8018 Low-probability clean-up should be to use rmdir to get rid of
8019 the just-created directory, not unlink.
8021 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
8022 configure fail, and request a bug report to inform us about it.
8023 Add a comment that, barring reports to the contrary, in 2007 we'll
8024 assume ftruncate is universally available.
8026 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
8028 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
8030 2006-03-12 Jim Meyering <jim@meyering.net>
8032 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
8033 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
8034 * m4/same.m4 (gl_SAME): Likewise.
8035 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
8037 2006-03-11 Eric Blake <ebb9@byu.net>
8039 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
8040 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
8041 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
8042 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
8044 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
8046 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
8047 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
8048 reported by Mark D. Baushke, one in
8049 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
8051 Merge from coreutils.
8053 * lib/.cppi-disable: Add stdint_.h.
8054 * lib/.cvsignore: Add stdint.h.
8056 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
8058 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
8059 both double and long double versions.
8060 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
8061 * lib/xstrtold.c: New file.
8062 * lib/xstrtod.h (xstrtold): New decl.
8064 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
8066 * lib/filemode.c (setst): Remove.
8067 (strmode): Rewrite to avoid setst. This makes the code shorter,
8068 (arguably) clearer, and the generated code is a bit smaller on my
8069 Debian GNU/Linux stable x86 host.
8071 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
8073 * lib/filemode.c: Include "filemode.h" first, to test the interface.
8074 Assume that filemode.h includes sys/types.h and sys/stat.h.
8075 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
8076 (ftypelet): Reorder to put common cases first, for efficiency.
8077 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
8079 (strmode): Renamed from mode_string, and now stores 12 bytes instead
8080 of 10, for compatibility with FreeBSD. All callers changed.
8081 (filemodestring): Now stores 12 bytes instead of 10, and sets file
8082 types that can't be deduced solely from st_mode. First arg is now a
8084 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
8085 (strmode): Renamed from mode_string.
8086 (filemodestring): New decl.
8087 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
8088 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
8090 (S_ISPORT, S_ISWHT): New macros, if not already defined.
8092 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
8094 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
8095 fsusage.h now does that. Include fsusage.h first, to test interface.
8096 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
8097 at most one method (the old code could have generated decls that
8098 didn't conform to C89, not that this was ever exercised).
8099 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
8101 2006-03-19 Jim Meyering <jim@meyering.net>
8103 Work even in a chroot where d_ino values for entries in "/"
8104 don't match the stat.st_ino values for the same names.
8105 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
8106 number, iterate through all entries again, using lstat instead.
8107 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
8108 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
8110 * lib/getcwd.c (__getcwd): Clarify a comment.
8111 Use memcpy in place of a call to strcpy.
8113 2006-03-12 Jim Meyering <jim@meyering.net>
8115 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
8116 matches that of the current directory (which we're about to chdir ".."
8117 out of), then save the dev-ino of the parent, instead.
8119 * lib/same-inode.h (SAME_INODE): New file/macro.
8120 * lib/chdir-safer.c (SAME_INODE): Remove definition.
8121 Include "same-inode.h", instead.
8122 * lib/same.c: Likewise.
8123 * lib/cycle-check.h: Include "same-inode.h".
8124 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
8125 * lib/cycle-check.c (SAME_INODE): Remove definition.
8126 * lib/root-dev-ino.h: Include "same-inode.h".
8128 2006-03-11 Eric Blake <ebb9@byu.net>
8130 * lib/same.c (same_name): s/base_name/last_component/
8131 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
8132 * lib/filenamecat.c (file_name_concat): Likewise.
8134 2006-03-11 Eric Blake <ebb9@byu.net>,
8135 Paul Eggert <eggert@cs.ucla.edu>
8137 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
8138 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
8140 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
8141 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
8142 (last_component): New method.
8143 * lib/dirname.c (dir_len): Determine when drive letters need a
8144 subsequent slash. Preserve // when it is special.
8145 (dir_name): Don't append dot when drive letter is absolute.
8146 [TEST_DIRNAME]: Move into a full-blown gnulib test.
8147 * lib/basename.c (base_name): New semantics - malloc the result.
8148 Preserve // when it is special. Preserve relative files that look
8150 (base_len): Preserve // when it is special.
8151 (last_component): New method, similar to old base_name semantics.
8152 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
8153 base_name. Strip redundant slashes from ///.
8155 2006-07-03 Jim Meyering <jim@meyering.net>
8157 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
8158 macro is used before the first cycle_check call.
8160 2006-07-03 Eric Blake <ebb9@byu.net>
8162 * modules/dirname (Depends-on): Add xstrndup.
8164 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
8166 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
8167 test cases, so that config.log is a bit easier to follow.
8169 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
8171 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
8172 both are 64 bits, since this seems to be the tradition, and this
8173 prevents gcc -Wformat from warning about usages with PRIuMAX. If
8174 we ever run into a host that prefers long long to long in this
8175 case, we'll need another configure-time test. Problem reported by
8178 2006-07-02 Eric Blake <ebb9@byu.net>
8180 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
8182 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
8184 * modules/inttypes (Depends-on): No longer depends on stdint.
8185 * modules/stdint (Description): Say more about assumptions.
8186 Say that the fast types might differ. Say macros are used.
8187 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
8188 (Makefile.am): Revise list of substituted symbols to match
8190 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
8191 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
8192 * tests/test-stdint.c (verify_same_types)
8193 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
8194 the code conforms to C99/C89.
8195 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
8196 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
8198 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
8200 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
8201 but fix a bug, by requiring at least 64 bits.
8202 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
8203 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
8204 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
8205 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
8207 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
8208 changes. Make 2.59 a prerequisite. Check and substitute for
8209 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
8210 inttypes.h. Do not use special include files; just use the
8211 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
8212 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
8213 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
8214 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
8215 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
8216 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
8217 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
8218 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
8219 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
8220 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
8221 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
8222 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
8223 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
8224 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
8225 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
8226 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
8227 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
8228 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
8229 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
8230 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
8231 WINT_MAX. Check for C99 conformance more strictly, by detecting
8232 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
8233 not check for things that C99 does not require, e.g., int8_t. If
8234 a test isn't needed unless <stdint.h> isn't working, and is
8235 unlikely to be needed for any other reason, then don't do it
8236 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
8237 size_t, since we assume C89 freestanding at least. Do not check
8238 for sig_atomic_t, wchar_t, or wint_t, since the code now does
8239 the right thing even if the types are not defined. Instead use:
8240 (gl_STDINT_TYPE_PROPERTIES): New macro.
8241 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
8242 testing whether <sys/types.h> clashes, as Autoconf does this for
8243 us now. All uses removed.
8244 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
8245 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
8246 (gl_CHECK_TYPE_SAME):
8247 Remove; no longer needed.
8248 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
8249 exists, since we'll return 0 anyway in that case.
8250 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
8252 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
8254 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
8255 possible collision with system files.
8256 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
8257 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
8258 WCHAR_MIN and WCHAR_MAX in this case.
8259 (<stddef.h>): Do not include; no longer needed.
8260 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
8261 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
8262 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
8263 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
8264 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
8265 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
8266 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
8267 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
8268 !defined(__c99))]: Include in this case too, since it's harmless
8270 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
8272 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
8273 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
8274 (_STDINT_MIN, _STDINT_MAX): New macros.
8275 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
8276 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
8277 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
8278 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
8279 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
8280 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
8281 macros, not typedefs; this simplifies things quite a bit.
8282 Use long int for all types narrower than int64_t.
8283 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
8284 Define in terms of long long int or int64_t or long int,
8285 not int64_t or int32_t. This saves some compile-time testing.
8286 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
8287 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
8288 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
8289 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
8290 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
8291 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
8292 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
8293 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
8294 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
8295 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
8296 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
8297 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
8298 undef any previous version and define our own version, for
8299 simplicity and consistency with the new macros for types.
8300 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
8301 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
8302 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
8303 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
8304 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
8305 @WINT_T_SUFFIX@ to keep things simple here.
8306 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
8307 Simplify by assuming typical 8/16/32/64 host, since we're
8308 already doing that elsewhere anyway.
8309 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
8310 and assume long long int is 64 bits if available. This
8311 speeds up 'configure'.
8313 2006-07-01 Eric Blake <ebb9@byu.net>
8315 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
8316 Reported by Andreas Buening.
8318 2006-07-01 Eric Blake <ebb9@byu.net>
8320 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
8322 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
8324 * lib/getaddrinfo.c: fixed typo
8326 2006-06-29 Jim Meyering <jim@meyering.net>
8328 * modules/strftime (Maintainer): Add my name, since with the
8329 FPRINTFTIME changes strftime.c has forked from glibc.
8331 2006-06-29 Eric Blake <ebb9@byu.net>
8333 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
8335 2006-06-29 Eric Blake <ebb9@byu.net>
8337 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
8339 2006-06-29 Eric Blake <ebb9@byu.net>
8341 * lib/stat_.h: New file.
8343 2006-06-29 Eric Blake <ebb9@byu.net>
8345 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
8346 unused static function.
8348 2006-06-29 Eric Blake <ebb9@byu.net>
8350 * doc/functions.texi (Function Portability): Document missing lstat
8353 2006-06-29 Eric Blake <ebb9@byu.net>
8355 * MODULES.html.sh: Add sys_stat.
8356 * modules/sys_stat: New module.
8357 * modules/mkstemp (Depends-on): Add sys_stat.
8359 2006-06-29 Derek R. Price <derek@ximbiot.com>
8361 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
8363 2006-06-29 Derek R. Price <derek@ximbiot.com>
8365 * m4/c-bs-a.m4: Removed.
8367 2006-06-29 Derek R. Price <derek@ximbiot.com>
8369 * lib/strftime.c: Assume strftime() exists.
8371 2006-06-29 Derek Price <derek@ximbiot.com>
8373 * modules/c-bs-a: Removed - \a is C89.
8374 * MODULES.html.sh: Remove c-bs-a.
8376 2006-06-29 Bruno Haible <bruno@clisp.org>
8378 * modules/wcwidth (License): Change to LGPL.
8380 2006-06-28 Simon Josefsson <jas@extundo.com>
8382 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
8385 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
8388 2006-06-28 Simon Josefsson <jas@extundo.com>
8390 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
8392 2006-06-28 Simon Josefsson <jas@extundo.com>
8394 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
8395 functions there. It will succeed on Windows XP, but on Windows
8396 2000 and (presumably) earlier, it will fail, and use the internal
8398 (use_win32_p): New function.
8399 (getaddrinfo): Use strtoul on servname, to support numeric ports.
8400 Support AI_NUMERICSERV to disable getservbyname.
8401 (getnameinfo): New function, only supports
8402 NI_NUMERICHOST|NI_NUMERICSERV for now.
8404 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
8405 only have some of them. Add AI_NUMERICSERV. Add prototype for
8408 2006-06-28 Eric Blake <ebb9@byu.net>
8410 * modules/wcwidth: New file.
8411 * modules/mbchar (Depends-on): Add wcwidth.
8412 * modules/mbswidth (Depends-on): Add wcwidth.
8413 * MODULES.html.sh: Add wcwidth.
8415 2006-06-28 Eric Blake <ebb9@byu.net>
8417 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
8418 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
8420 2006-06-28 Eric Blake <ebb9@byu.net>
8422 * lib/xvasprintf.h: Fix comments.
8424 2006-06-28 Eric Blake <ebb9@byu.net>
8426 * lib/mbchar.h (wcwidth): Include wcwidth.h.
8427 * lib/mbswidth.c (wcwidth): Move from here...
8428 * lib/wcwidth.h: ...to this new file.
8430 2006-06-28 Derek R. Price <derek@ximbiot.com>
8432 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
8434 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
8436 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
8438 2006-06-28 Derek R. Price <derek@ximbiot.com>
8440 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
8441 Autoconf 2.60 says this stuff was obsolete.
8443 2006-06-28 Bruno Haible <bruno@clisp.org>
8445 * modules/wcwidth (Files): Add m4/wchar_t.m4.
8447 2006-06-28 Bruno Haible <bruno@clisp.org>
8449 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
8452 2006-06-28 Bruno Haible <bruno@clisp.org>
8454 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
8455 declaration for wcwidth.
8456 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
8458 2006-06-28 Bruno Haible <bruno@clisp.org>
8460 * lib/mkdtemp.c [MINGW]: Include <io.h>.
8461 (mkdir): Define using _mkdir.
8463 2006-06-28 Bruno Haible <bruno@clisp.org>
8465 * lib/getaddrinfo.h: Fix POSIX URL.
8466 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
8468 (use_win32_p): Make static.
8469 (getaddrinfo): Reject service name if it is empty or does not consist
8470 solely of decimal digits, or if its value is > 65535.
8471 (getnameinfo): Remove useless casts.
8473 2006-06-27 Simon Josefsson <jas@extundo.com>
8475 * modules/sys_select: New file, suggested by Bruno Haible, Paul
8476 Eggert and Martin Lambers.
8478 2006-06-27 Simon Josefsson <jas@extundo.com>
8480 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
8481 Eggert and Martin Lambers.
8483 2006-06-27 Bruno Haible <bruno@clisp.org>
8485 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
8486 result to 0, not to empty.
8487 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
8489 2006-06-27 Bruno Haible <bruno@clisp.org>
8491 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
8493 2006-06-26 Simon Josefsson <jas@extundo.com>
8495 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
8498 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
8500 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
8501 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
8502 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
8504 2006-06-26 Mark D. Baushke <mdb@gnu.org>
8506 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
8508 2006-06-26 Bruno Haible <bruno@clisp.org>
8510 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
8512 2006-06-26 Bruno Haible <bruno@clisp.org>
8514 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
8516 2006-06-26 Bruno Haible <bruno@clisp.org>
8518 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
8519 SGI C compiler in pre-C99 mode.
8520 Suggested by Mark D. Baushke and Larry Jones.
8522 2006-06-26 Bruno Haible <bruno@clisp.org>
8524 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
8526 Reported by Mark D. Baushke and Larry Jones.
8528 2006-06-26 Bruno Haible <bruno@clisp.org>
8530 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
8532 Suggested by Mark D. Baushke and Larry Jones.
8534 2006-06-23 Simon Josefsson <jas@extundo.com>
8535 Bruno Haible <bruno@clisp.org>
8537 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
8538 Emit mostlyclean-local rule.
8539 (func_emit_tests_Makefile_am): Likewise.
8540 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
8542 2006-06-23 Mark D. Baushke <mdb@gnu.org>
8544 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
8546 2006-06-23 Bruno Haible <bruno@clisp.org>
8548 * tests/test-stdint.c: Update to match ISO C 99 Technical
8551 2006-06-23 Bruno Haible <bruno@clisp.org>
8553 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
8555 2006-06-23 Bruno Haible <bruno@clisp.org>
8557 * lib/stdint_.h: Treat IRIX like OpenBSD.
8559 2006-06-23 Bruno Haible <bruno@clisp.org>
8561 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
8562 ISO C 99 Technical Corrigendum 1.
8564 2006-06-22 Simon Josefsson <jas@extundo.com>
8566 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
8569 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
8571 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
8572 needed. Some compiler complained about some of them. Problem reported
8574 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
8576 2006-06-21 Simon Josefsson <jas@extundo.com>
8578 * tests/test-getaddrinfo.c: New file.
8580 * modules/getaddrinfo-tests: New file.
8582 * MODULES.html.sh: Add inet_pton.
8584 * modules/inet_pton: New file.
8586 2006-06-21 Simon Josefsson <jas@extundo.com>
8588 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
8589 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
8590 of using the (limited) gnulib implementation on Windows XP.
8592 * m4/inet_pton.m4: New file.
8594 2006-06-21 Simon Josefsson <jas@extundo.com>
8596 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
8599 * lib/socket_.h: Don't define WINVER.
8601 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
8602 slightly modified to work in gnulib.
8604 2006-06-21 Simon Josefsson <jas@extundo.com>
8606 * doc/gnulib.texi (Windows sockets): Add.
8608 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
8610 * lib/read-file.c (fread_file): Start with buffer allocation of
8611 0 bytes rather than 1 byte; this simplifies the code.
8612 Don't invoke feof; it's not needed. Refactor to avoid duplicate
8613 code to free buffer and save/restore errno.
8614 (internal_read_file): Remove unused local.
8616 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
8618 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
8619 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
8620 Problem reported by Denis Excoffier in
8621 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
8623 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8625 * modules/sys_socket, modules/socklen: Include sys/types since
8626 FreeBSD 4.x's sys/socket.h needs it.
8628 2006-06-19 Simon Josefsson <jas@extundo.com>
8630 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
8632 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
8634 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
8636 2006-06-19 Bruno Haible <bruno@clisp.org>
8638 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
8639 and FULL_PATH_INTTYPES_H in angle brackets.
8640 Reported by Mark D. Baushke <mdb@gnu.org>.
8642 2006-06-17 Eric Blake <ebb9@byu.net>
8644 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
8647 2006-06-17 Bruno Haible <bruno@clisp.org>
8649 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
8652 2006-06-17 Bruno Haible <bruno@clisp.org>
8654 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
8655 whether errno is declared. Assume <errno.h> declares errno.
8657 2006-06-17 Bruno Haible <bruno@clisp.org>
8659 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
8661 2006-06-17 Bruno Haible <bruno@clisp.org>
8663 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
8664 problem on Solaris 2.5.1.
8666 2006-06-16 Eric Blake <ebb9@byu.net>
8668 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
8669 * lib/unicodeio.c [!defined errno]: Likewise.
8670 * lib/strtol.c [!defined errno]: Likewise.
8671 * lib/strtod.c [!defined errno]: Likewise.
8673 2006-06-15 Eric Blake <ebb9@byu.net>
8675 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
8677 2006-06-15 Eric Blake <ebb9@byu.net>
8679 * config/srclist.txt (ssize_t.m4): Lose sync.
8681 2006-06-15 Bruno Haible <bruno@clisp.org>
8683 * modules/stdint (Files): Include m4/full-header-path.m4,
8684 m4/size_max.m4, m4/wchar_t.m4.
8685 (Makefile.am): Many more substitutions.
8686 * modules/stdint-tests: New file.
8687 * tests/test-stdint.c: New file.
8689 2006-06-15 Bruno Haible <bruno@clisp.org>
8691 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
8692 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
8693 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
8694 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
8695 gl_CHECK_TYPE_SAME): New macros.
8697 2006-06-15 Bruno Haible <bruno@clisp.org>
8699 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
8701 2006-06-15 Bruno Haible <bruno@clisp.org>
8703 * lib/stdint_.h: Rewritten to be fully auto-configured.
8704 Fixes bug on HP-UX/IA64.
8706 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
8708 * lib/getdate.y (__attribute__): Don't define if already defined.
8709 Problem reported by Larry Jones.
8710 * lib/utimens.c (__attribute__): Likewise.
8712 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
8714 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
8715 reported by Andreas Schwab.
8717 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8718 Bruno Haible <bruno@clisp.org>
8720 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
8721 check for the declaration of strnlen and a run test that exposes the
8722 AIX 5.1 strnlen bug. In the failure case, #define strndup to
8725 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8726 Bruno Haible <bruno@clisp.org>
8728 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
8730 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8732 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
8733 compile test, for Tru64 4.0D.
8735 2006-05-28 Karl Berry <karl@gnu.org>
8737 * config/srclist.txt (printf-args.c): lose sync.
8739 2006-05-26 Martin Lambers <marlam@marlam.de>
8741 * lib/getpass.c: Updates the test for the native W32 API, and adds
8742 missing includes, thus fixing compilation warnings.
8744 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
8746 * lib/exclude.c (exclude_fnmatch): New function.
8747 (excluded_file_name): Call exclude_fnmatch.
8748 * lib/exclude.h (excluded_file_name): New prototype
8750 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
8752 * lib/tempname.c (small_open, large_open): New macros.
8753 (__open, __open64) [!_LIBC]: Remove.
8754 (__gen_tempname): Use small_open and large_open instead of __open
8755 and __open64. This fixes a portability bug on HP-UX 11.11i
8756 reported by Simon Wing-Tang in
8757 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
8759 2006-05-24 Bruno Haible <bruno@clisp.org>
8761 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
8762 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
8763 Reported by Thorsten Maerz <torte@netztorte.de> via
8764 Aaron Stone <aaron@serendipity.cx>.
8766 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
8768 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
8769 gl_ rather than jm_. Link, don't run, so that cross-compiles are
8770 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
8771 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
8772 not really conditional on the cache.
8773 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
8775 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
8777 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
8778 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
8779 (my_usleep): Don't mishandle maximum value.
8781 2006-05-19 Jim Meyering <jim@meyering.net>
8783 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
8785 2006-05-17 Bruno Haible <bruno@clisp.org>
8788 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
8790 2006-05-17 Bruno Haible <bruno@clisp.org>
8792 * lib/stdint_.h: Fix recognition of Cygwin.
8794 2006-05-15 Bruno Haible <bruno@clisp.org>
8796 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
8797 on libtool patch by Ralf Wildenhues.
8799 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
8801 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
8802 test for C99 conformance; (bool) 0.5 is an integer constant
8803 expression, but (bool) -0.5 is not. Problem reported by Fedor
8804 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
8806 2006-05-11 Simon Josefsson <jas@extundo.com>
8808 * m4/xvasprintf.m4: Fix obvious typo.
8810 2006-05-11 Jim Meyering <jim@meyering.net>
8812 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
8815 2006-05-10 Simon Josefsson <jas@extundo.com>
8817 * lib/md4.c: Typo fix, update copyright years.
8818 (K1, K2): Don't use L because it turn computations into 64-bit on
8821 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
8823 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
8824 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
8825 unwanted sign propagation, e.g., on hosts with 64-bit int.
8826 There still are some problems with reeelly weird theoretical hosts
8827 (e.g., 33-bit int) but it's not worth worrying about now.
8828 * lib/sha1.c (rol): Likewise.
8829 (K1, K2, K3, K4): Remove unnecessary L suffix.
8831 2006-05-10 Bruno Haible <bruno@clisp.org>
8833 * lib/des.c: Cast to avoid warnings.
8835 2006-05-09 Bruno Haible <bruno@clisp.org>
8837 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
8838 (Depends-on): Depend also on xsize, stdarg.
8839 (configure.ac): Add gl_XVASPRINTF.
8841 2006-05-09 Bruno Haible <bruno@clisp.org>
8843 * m4/xvasprintf.m4: New file.
8845 2006-05-09 Bruno Haible <bruno@clisp.org>
8847 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
8848 (EOVERFLOW): Define fallback value.
8849 (xstrcat): New function.
8850 (xvasprintf): Recognize the special case of a string concatenation.
8852 2006-05-08 Eric Blake <ebb9@byu.net>
8854 * gnulib-tool (func_version): Base copyright year on CVS date.
8855 (func_emit_copyright_notice): New function.
8856 (func_emit_lib_Makefile_am): Use it.
8857 (func_emit_tests_Makefile_am): Likewise.
8858 (func_import): Likewise.
8860 2006-05-08 Bruno Haible <bruno@clisp.org>
8862 * modules/stdarg: New file.
8863 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
8865 2006-05-08 Bruno Haible <bruno@clisp.org>
8867 * m4/stdarg.m4: New file, from GNU gettext.
8869 2006-05-08 Bruno Haible <bruno@clisp.org>
8871 * config/srclist.txt (build-aux/config.rpath): different from latest
8874 2006-05-08 Bruno Haible <bruno@clisp.org>
8876 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
8878 2006-05-05 Jim Meyering <jim@meyering.net>
8880 * m4/warning.m4: New file, derived from bison's file by the same name.
8882 2006-05-03 Bruno Haible <bruno@clisp.org>
8884 * lib/stdint_.h: Shorter URL.
8885 * lib/inttypes.h: Likewise.
8887 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
8889 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
8891 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
8893 * lib/verify.h: Document the internals better. Most of this change
8894 was written by Bruno Haible.
8896 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
8898 * doc/verify.texi: New file, partly based on a proposal by
8901 2006-05-02 Bruno Haible <bruno@clisp.org>
8903 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
8905 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
8907 2006-04-29 Bruno Haible <bruno@clisp.org>
8909 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
8910 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
8912 2006-04-29 Bruno Haible <bruno@clisp.org>
8914 * gnulib-tool: Make --update option actually work.
8916 2006-04-29 Bruno Haible <bruno@clisp.org>
8918 * doc/gcd.texi: New file.
8919 * doc/gnulib.texi: Include it.
8921 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
8923 * lib/getdate.y (get_date): When adding relative date, start with the
8924 initial time, not with the result of the first mktime call.
8926 2006-04-25 Bruno Haible <bruno@clisp.org>
8928 * gnulib-tool (func_import): Output the include directives in three
8929 blocks, sorted separately.
8930 Reported by Ben Pfaff <blp@cs.stanford.edu>.
8932 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
8934 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
8935 to define main with arguments, for C++. Reported by Eric Blake.
8936 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
8937 Prefer 'int main ()' to 'int main (void)', for C++.
8938 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8939 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
8940 for 'main', for C99 and C++.
8942 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
8944 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
8945 Don't assume that exit status -1 is valid.
8946 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8947 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8948 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
8949 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
8950 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
8951 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
8952 not AC_TRY_RUN. Use return, not exit. Don't assume that
8953 functions can be used without declaring them, or that you can
8954 exit with status -1.
8955 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
8957 2006-04-24 Karl Berry <karl@gnu.org>
8959 * config/srclist.txt (longdouble.m4): sync lost.
8961 2006-04-24 Eric Blake <ebb9@byu.net>
8963 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
8965 2006-04-24 Bruno Haible <bruno@clisp.org>
8967 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
8968 poll() implementation in AIX.
8969 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8971 2006-04-24 Bruno Haible <bruno@clisp.org>
8973 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
8974 assigned exactly once.
8976 2006-04-23 Claudio Fontana <claudio@gnu.org>
8977 Bruno Haible <bruno@clisp.org>
8979 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
8980 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
8983 2006-04-23 Bruno Haible <bruno@clisp.org>
8985 * modules/copy-file: Depend on unistd.
8986 * modules/execute: Likewise.
8987 * modules/fatal-signal: Likewise.
8988 * modules/findprog: Likewise.
8989 * modules/mkdtemp : Likewise.
8990 * modules/pipe: Likewise.
8991 * modules/wait-process: Likewise.
8993 2006-04-23 Bruno Haible <bruno@clisp.org>
8995 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
8996 condition was already detected.
8997 Reported by Ben Pfaff <blp@cs.stanford.edu>.
8999 2006-04-23 Bruno Haible <bruno@clisp.org>
9001 * lib/copy-file.c: Include <unistd.h> unconditionally.
9002 * lib/execute.c: Likewise.
9003 * lib/fatal-signal.c: Likewise.
9004 * lib/findprog.c: Likewise.
9005 * lib/mkdtemp.c: Likewise.
9006 * lib/pipe.h: Likewise.
9007 * lib/pipe.c: Likewise.
9008 * lib/wait-process.h: Likewise.
9010 2006-04-23 Bruno Haible <bruno@clisp.org>
9012 * gnulib-tool (func_usage): Fix --import description. Document
9014 (func_import): Create temporary file in a temporary directory, if
9015 --dry-run is specified. Silence errors from 'grep' when there are no
9017 (func_create_testdir): Silence errors from 'grep' when there are no
9019 Reported by Karl Berry <karl@freefriends.org>.
9021 2006-04-20 Bruno Haible <bruno@clisp.org>
9023 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
9024 one argument, so that the code will be portable to Autoconf 2.60.
9025 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
9026 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9027 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
9029 2006-04-19 Derek Price <derek@ximbiot.com>
9030 Eric Blake <ebb9@byu.net>
9032 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
9033 rather than "/full/path.h". Update comment to match. Shorten &
9034 generalize m4_translit call via AS_TR_CPP.
9036 2006-04-19 Derek Price <derek@ximbiot.com>
9037 Eric Blake <ebb9@byu.net>
9039 * lib/inttypes.h: Correct grammar in comment.
9041 2006-04-18 Derek Price <derek@ximbiot.com>
9042 Paul Eggert <eggert@cs.ucla.edu>
9044 * modules/inttypes: New file.
9045 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
9047 2006-04-18 Derek Price <derek@ximbiot.com>
9048 Paul Eggert <eggert@cs.ucla.edu>
9050 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
9053 2006-04-18 Derek Price <derek@ximbiot.com>
9054 Paul Eggert <eggert@cs.ucla.edu>
9056 * lib/inttypes.h: New file.
9057 * lib/strtoimax.c: Assume <inttypes.h>.
9059 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
9061 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
9062 isn't mounted. Problem reported by Kir Kolyshkin.
9064 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
9066 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
9067 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
9069 * lib/regex.h (RE_DUP_MAX): Update comment to match current
9072 2006-04-12 Eric Blake <ebb9@byu.net>
9074 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
9075 is now done automatically by the corresponding Autoconf macro.
9077 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
9079 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
9082 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
9084 Merge regex changes from libc, removing some of our
9085 POSIX-conformance changes that were rejected and redoing them in a
9088 * lib/regcomp.c (re_compile_internal, init_dfa):
9089 Length arg is now size_t, not Idx. All uses changed.
9090 (peek_token): Forward decl now says internal_function.
9091 (__re_error_msgid, __re_error_msgid_idx):
9092 Now static rather than extern with attribute_hidden.
9093 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
9094 For some reason libc prefers K&R style defns for external functions.
9095 (regerror) [!defined _LIBC]: Likewise.
9096 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
9097 (seek_collating_symbol_entry, lookup_collation_sequence_value):
9098 (build_range_exp, build_collating_symbol):
9100 (re_compile_fastmap): Use '\0' to memset, not 0.
9101 (utf8_sb_map): Make the calculations more obvious.
9102 (init_dfa, parse_bracket_exp, build_charclass_op):
9103 Call calloc and cast result, as glibc does.
9104 (init_word_char, fetch_token, peek_token, peek_token_bracket):
9105 (build_range_exp, build_collating_symbol):
9106 Now internal functions.
9108 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
9110 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
9111 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
9112 Don't depend on VMS; depend on __VMS instead, for POSIX
9113 namespace cleanness.
9114 (regoff_t): Define to ssize_t, not long int.
9116 Remove the REG_ macros named below. Instead, make the old names
9117 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
9119 (REG_BACKSLASH_ESCAPE_IN_LISTS):
9120 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
9121 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
9122 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
9123 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
9124 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
9125 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
9126 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
9127 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
9128 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
9129 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
9130 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
9131 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
9132 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
9133 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
9134 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
9135 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
9137 Remove. All uses replaced by the old RE_* names.
9138 (RE_BACKSLASH_ESCAPE_IN_LISTS):
9139 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
9140 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
9141 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
9142 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
9143 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
9144 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
9145 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
9146 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
9147 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
9148 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
9149 Don't bother having these macros be independent of each others'
9150 values, since they no longer exist in the POSIX name space.
9152 Rename the following member names back to their old names,
9153 unless !__USE_GNU_REGEX. All uses changed back.
9154 (buffer): Renamed from re_buffer.
9155 (allocated): Renamed from re_allocated.
9156 (used): Renamed from re_used.
9157 (syntax): Renamed from re_syntax.
9158 (fastmap): Renamed from re_fastmap.
9159 (translate): Renamed from re_translate.
9160 (can_be_null): Renamed from re_can_be_null.
9161 (regs_allocated): Renamed from re_regs_allocated.
9162 (fastmap_accurate): Renamed from re_fastmap_accurate.
9163 (no_sub): Renamed from re_no_sub.
9164 (not_bol): Renamed from re_not_bol.
9165 (not_eol): Renamed from re_not_eol.
9166 (newline_anchor): Renamed from re_newline_anchor.
9167 (num_regs): Renamed from rm_num_regs.
9168 (start): Renamed from rm_start.
9169 (end): Renamed from rm_end.
9171 (free_state): Move up a bit.
9173 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
9174 #define to be empty.
9175 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
9176 when that is what is intended.
9177 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
9178 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
9180 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
9181 All uses changed back to re_malloc, etc. It's now the caller's
9182 responsibility to check for overflow; all callers changed.
9183 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
9184 (re_x2nrealloc): Remove.
9185 (free_state): Remove decl.
9187 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
9188 (re_set_registers, re_exec):
9191 2006-01-31 Roland McGrath <roland@redhat.com>
9193 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
9194 Reported by Mike Frysinger <vapier@gentoo.org>.
9196 2006-01-15 Andreas Jaeger <aj@suse.de>
9199 * lib/regex_internal.c (re_string_reconstruct): Adjust for
9200 build_wcs_upper_buffer change.
9201 (build_wcs_upper_buffer): Change return type.
9203 2005-12-10 Ulrich Drepper <drepper@redhat.com>
9205 * lib/regex_internal.h: Include <stdint.h> if available.
9207 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
9209 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
9211 2005-10-14 Ulrich Drepper <drepper@redhat.com>
9213 * lib/regcomp.c: Adjust for changed secondary hash function.
9215 2005-09-30 Ulrich Drepper <drepper@redhat.com>
9217 * lib/regex.h: Pretty printing.
9218 Clean up namespace a bit.
9220 2005-09-30 Jakub Jelinek <jakub@redhat.com>
9222 * lib/regexec.c (update_cur_sifted_state, check_arrival,
9223 check_arrival_add_next_nodes): Avoid using uninitialized variable.
9225 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
9226 Ulrich Drepper <drepper@redhat.com>
9229 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
9231 (bitset_word_t): Renamed from bitset_word. All uses changed.
9233 2005-09-22 Ulrich Drepper <drepper@redhat.com>
9236 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
9237 * lib/regcomp.c: Remove unnecessary uses of
9238 unsigned RE_TRANSLATE_TYPE.
9239 * lib/regex_internal.h: Likewise.
9240 * lib/regex_internal.c: Likewise.
9241 * lib/regexec.c: Likewise.
9242 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
9244 2005-09-07 Ulrich Drepper <drepper@redhat.com>
9246 * lib/regexec.c (find_recover_state): Remove unnecessary
9248 (transit_state_bkref): Make DFA a const pointer.
9249 (get_subexp): Likewise.
9250 (check_arrival): Likewise.
9251 (update_cur_sifted_state): Likewise.
9252 (re_search_internal): Likewise.
9253 (prune_impossible_nodes): Likewise.
9254 (acquire_init_state_context): Likewise.
9255 (proceed_next_node): Likewise.
9256 (set_regs): Likewise.
9257 (free_fail_stack_return): Likewise.
9258 (check_arrival_expand_ecl): Mark DFA parameter as const.
9259 (check_arrival_expand_ecl_sub): Likewise.
9260 (check_subexp_limits): Likewise.
9261 (sub_epsilon_src_nodes): Likewise.
9262 (add_epsilon_src_nodes): Likewise.
9263 (merge_state_array): Likewise.
9264 (update_regs): Likewise.
9265 (build_trtable): Likewise.
9266 (sift_states_backward): Mark MCTX parameter as const.
9267 (build_sifted_states): Likewise.
9268 (update_cur_sifted_state): Likewise.
9269 (sift_states_mkref): Likewise.
9270 (check_arrival_expand_ecl): Mark eclosure as const.
9271 (check_dst_limits_calc_pos_1): Likewise.
9272 * lib/regex_internal.h (re_match_context_t): Make dfa a const
9275 2005-09-06 Ulrich Drepper <drepper@redhat.com>
9277 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
9278 (transit_state_sb): Likewise.
9279 (transit_state_mb): Likewise.
9280 (sift_states_iter_mb): Likewise.
9281 (check_arrival_add_next_nodes): Likewise.
9282 (check_node_accept_bytes): Change first parameter to pointer-to-const.
9283 [_LIBC] (re_search_2_stub): Use mempcpy.
9285 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
9286 mbrtowc for very simple UTF-8 case.
9288 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
9290 (re_acquire_state_context): Likewise.
9291 * lib/regex_internal.h: Adjust prototypes.
9293 * lib/regex.c: Prevent using C++ compilers.
9295 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
9296 (re_acquire_state_context): Likewise.
9298 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
9300 * modules/regex (Depends-on): Add ssize_t.
9302 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
9304 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
9307 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
9309 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
9311 2006-03-29 Mark D. Baushke <mdb@gnu.org>
9312 Bruno Haible <bruno@clisp.org>
9314 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
9315 <sys/types.h> and <inttypes.h>.
9317 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9319 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
9320 `__error_t_defined', so argp.h will not typedef the former.
9322 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
9324 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
9325 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
9326 glibc names. Even if glibc is changed to conform to POSIX, the
9327 traditional names will be available anyway, since regex depends on
9328 the extensions module. Also, fix a longstanding typo in the
9329 implementation of Spencer ERE test #75 from grep 2.3. Problems
9330 reported by Emanuele Giaquinta. Also, change sense of cached
9331 variable, so that the message makes sense.
9333 2006-03-24 Simon Josefsson <jas@extundo.com>
9335 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
9336 including some doc fixes.
9337 (base64_encode_alloc): Fix +1 bug on allocation failures.
9339 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9341 * lib/base64.c (base64_encode): Do not read past end of array with
9342 unsanitized input on systems with CHAR_BIT > 8.
9344 2006-03-24 Eric Blake <ebb9@byu.net>
9346 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
9348 2006-03-22 Karl Berry <karl@gnu.org>
9350 * config/srclist.txt (*setenv.[ch]): get from coreutils.
9351 * config/srclistvars.sh (COREUTILS): new var.
9353 2006-03-17 Jim Meyering <jim@meyering.net>
9355 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
9356 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
9358 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
9360 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
9361 no longer needs it. Instead, check that regoff_t is as least
9362 as wide as ptrdiff_t.
9364 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
9365 so that our regex.h stays compatible with the installed regex.
9366 This is helpful for installers who configure --without-included-regex.
9367 Problem reported by Emanuele Giaquinta.
9369 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
9371 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
9372 Typedef to long int, not to off_, as POSIX will likely change
9375 2006-03-15 Eric Blake <ebb9@byu.net>
9377 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
9379 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
9381 * lib/argp-help.c (validate_uparams): Fix typo
9382 * lib/argp-parse.c (argp_default_options): Consistently begin help
9383 messages with a lowercase letter.
9385 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
9387 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
9388 overrun buffers and shouldn't be used (much as gets shouldn't be
9390 * lib/time_r.c (asctime_r, ctime_r): Likewise.
9392 2006-03-08 Simon Josefsson <jas@extundo.com>
9394 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
9395 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9397 2006-03-08 Simon Josefsson <jas@extundo.com>
9399 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
9400 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9402 2006-03-08 Simon Josefsson <jas@extundo.com>
9404 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
9405 signal that configure disabled the device.
9407 2006-03-08 Simon Josefsson <jas@extundo.com>
9409 * build-aux/maint.mk: Fix refresh-po, to handle no translated
9412 2006-03-07 Simon Josefsson <jas@extundo.com>
9414 * modules/getopt (Depends-on): Add unistd.
9416 * modules/unistd: New file.
9418 2006-03-07 Simon Josefsson <jas@extundo.com>
9420 * modules/gc-random: New file.
9422 2006-03-07 Simon Josefsson <jas@extundo.com>
9424 * m4/unistd_h.m4: New file.
9426 2006-03-07 Simon Josefsson <jas@extundo.com>
9428 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
9429 test to be side-effect free by storing the result in the cache
9430 variable gl_cv_lib_readline, and moving the assignment of
9431 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
9432 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9434 2006-03-07 Simon Josefsson <jas@extundo.com>
9436 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
9437 error on missing devices (the functions will return an error).
9439 * m4/gc.m4: Move random stuff to gc-random.m4
9441 2006-03-07 Simon Josefsson <jas@extundo.com>
9443 * lib/unistd_.h: New file.
9445 2006-03-07 Simon Josefsson <jas@extundo.com>
9447 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
9449 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
9451 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
9452 Problem reported by Juan Manuel Guerrero.
9454 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
9456 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
9458 * lib/getlogin_r.c: Likewise.
9459 * lib/getlogin_r.h: Likewise.
9460 * lib/glob.c: Likewise.
9461 * lib/pagealign_alloc.c: Likewise.
9462 * lib/unistd_.h: Remove; no longer needed.
9464 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
9466 * MODULES.html.sh (Support for systems lacking POSIX:2001):
9468 * modules/c-stack (Depends-on): Add unistd.
9469 * modules/getlogin_r: Likewise.
9470 * modules/glob: Likewise.
9471 * modules/pagealign_alloc: Likewise.
9472 * modules/unistd (Files): Remove lib/unistd_.h.
9473 (EXTRA_DIST): Remove.
9474 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
9476 (MOSTLYCLEANFILES): Remove unistd.h-t.
9478 2006-03-03 Simon Josefsson <jas@extundo.com>
9480 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
9482 2006-03-03 Simon Josefsson <jas@extundo.com>
9484 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
9487 2006-03-03 Simon Josefsson <jas@extundo.com>
9489 * build-aux/maint.mk: Add indent target.
9491 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
9493 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
9494 our replacement poll.h in any case, to avoid a differing
9495 declaration from a system header. Seen on AIX.
9497 2006-03-01 Simon Josefsson <jas@extundo.com>
9499 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
9502 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
9504 * modules/gettime (Depends-on): Add extensions module.
9505 * modules/nanosleep (Depends-on): Likewise.
9506 * modules/settime (Depends-on): Likewise.
9508 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
9510 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
9511 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
9513 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9514 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
9516 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
9517 not "==". Reported by Ralf Wildenhues.
9519 2006-03-01 Karl Berry <karl@gnu.org>
9521 * doc/Copyright/request-*: new files, synced from gnuorg.
9523 2006-03-01 Karl Berry <karl@gnu.org>
9525 * config/srclist.txt (Copyright/*): new entries.
9527 2006-02-28 Simon Josefsson <jas@extundo.com>
9529 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
9531 2006-02-27 Simon Josefsson <jas@extundo.com>
9533 * lib/base64.h: Indent #define's. From Jim Meyering
9536 2006-02-27 Jim Meyering <jim@meyering.net>
9538 Revert the change of 2006-02-24, so these files can continue
9539 to be sync'd from gettext.
9540 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
9543 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
9545 * modules/intprops: New file.
9546 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
9548 * modules/getloadavg (Files): Remove lib/intprops.h.
9549 (Depends-on): Add intprops.
9550 * modules/human: Likewise.
9551 * modules/inttostr: Likewise.
9552 * modules/openat: Likewise.
9553 * modules/sig2str: Likewise.
9554 * modules/userspec: Likewise.
9555 * modules/utimecmp: Likewise.
9556 * modules/xnanosleep: Likewise.
9557 * modules/xstrtol: Likewise.
9559 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
9561 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
9562 * modules/lock-tests (TESTS): Use $(EXEEXT).
9563 * modules/tls-tests: Likewise.
9564 * modules/argp-tests: Likewise.
9565 (check_PROGRAMS): New var, replacing...
9566 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
9568 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9570 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
9573 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
9575 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
9577 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9579 Sync from coreutils.
9580 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
9583 2006-02-22 Jim Meyering <jim@meyering.net>
9585 Sync from coreutils.
9586 * m4/chdir-safer.m4: New file.
9588 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
9590 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
9591 AT_FDCWD exceeds INT_MAX.
9592 * lib/openat.h (AT_FDCWD): Likewise.
9594 2006-02-17 Eric Blake <address@hidden>
9596 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
9598 2006-02-16 Simon Josefsson <jas@extundo.com>
9600 * modules/getaddrinfo (Depends-on): Add sys_socket.
9602 2006-02-15 Simon Josefsson <jas@extundo.com>
9604 * build-aux/maint.mk: Add dsyntax-check rule.
9606 2006-02-15 Eric Blake <ebb9@byu.net>
9608 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
9609 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
9610 'present but cannot compile' warnings on cygwin.
9611 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
9612 use ws2tcpip.h if sys/socket.h works.
9613 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
9614 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
9616 2006-02-14 Simon Josefsson <jas@extundo.com>
9618 * modules/maintainer-makefile (Files): Rename.
9620 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
9621 and (the local) Makefile.cfg to maint-cfg.mk.
9623 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
9626 * modules/maintainer-makefile: New module.
9628 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
9629 severaly stripped to make it possible to build it up from scratch
9630 with reliable tests.
9632 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
9633 fixes to permit overriding the default actions when configure and
9634 makefile are not available.
9636 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
9638 Sync from coreutils.
9639 * modules/lstat (Depends-on): Don't depend on xalloc.
9640 (License): Change from GPL to LGPL, since this is now simply a
9641 replacement for a libc function.
9643 2006-02-14 Jim Meyering <jim@meyering.net>
9645 Sync from coreutils.
9647 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
9648 failure on deficient systems, and simplify gnulib lgpl dependencies.
9649 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
9650 xmalloc/lstat combination. Based on a patch from Bruno Haible.
9652 * lib/xalloc-die.c: Remove unused definition of N_.
9654 2006-02-14 Jim Meyering <jim@meyering.net>
9656 Sync from coreutils.
9657 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
9658 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
9659 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
9660 double-quote uses of that variable, to accommodate the rare case in
9661 which getmntent is available in none of the libraries checked. This
9662 happens at least on FreeBSD 5.0.
9664 2006-02-13 Simon Josefsson <jas@extundo.com>
9666 * gnulib-tool (Usage): Fix --import, from
9667 karl@freefriends.org (Karl Berry).
9669 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
9671 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
9673 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
9675 * lib/argp-namefrob.h: Restore changes accidentally lost during the
9676 "autoupdate" on 2005-12-12.
9678 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
9680 * modules/closeout (Depends-on): Remove atexit.
9682 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
9684 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
9685 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
9687 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
9689 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
9690 __EXTENSIONS__ if this causes compilation to fail. Problem
9691 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
9692 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
9694 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
9696 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
9697 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
9698 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
9701 2006-01-26 Simon Josefsson <jas@extundo.com>
9703 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
9704 prototype is visible on mingw32.
9706 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
9709 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
9712 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
9714 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
9715 attempt to open for write; this always fails, at least on POSIX
9716 hosts. This reinstates the 2006-01-09 change, which was
9717 inadvertently removed.
9719 2006-01-26 Bruno Haible <bruno@clisp.org>
9721 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
9722 Reported by Paul Eggert.
9724 2006-01-26 Bruno Haible <bruno@clisp.org>
9725 Paul Eggert <eggert@cs.ucla.edu>
9727 * lib/stdbool_.h (_Bool)
9728 [(! (defined __cplusplus || defined __BEOS__)
9729 && !defined __GNUC__
9730 && !(defined __HP_cc || defined __xlc__
9731 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
9732 || defined __sgi))]:
9733 #define to signed char in these cases too; this simplifies
9734 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
9735 etc., separately) and makes it more conservative.
9737 2006-01-25 Simon Josefsson <jas@extundo.com>
9739 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
9740 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
9741 ws2tcpip.h with WINVER=0x0501. All for mingw32.
9743 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
9745 * lib/argp-namefrob.h: Bugfix. Remove stray #
9747 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
9749 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
9750 so that we test the test.
9751 Check for yet another HP-UX cc bug involving *bool |= bool.
9753 2006-01-25 Karl Berry <karl@gnu.org>
9755 * config/srclist.txt (vasnprintf.c): sync lost.
9757 2006-01-25 Jim Meyering <jim@meyering.net>
9759 Sync from the stable (b5) branch of coreutils:
9761 * lib/fts.c (fts_children): Don't let close() clobber errno from
9764 * lib/fts.c (fts_stat): When following a symlink-to-directory,
9765 don't necessarily interpret stat-fails+lstat-succeeds as indicating
9766 a dangling symlink. That can also happen at least for ELOOP.
9767 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
9768 FYI, this bug predates the inclusion of fts.c in coreutils.
9770 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
9771 in their own block, so pre-c99 compilers don't object.
9773 Avoid the double-free (first in fts_read, second in fts_close) that
9774 would occur when an `active' directory is made inaccessible (e.g.,
9775 via chmod a-x) during a traversal.
9776 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
9777 before returning. Reproduce this failure by
9778 mkdir -p a/b; cd a; chmod a-x . b
9779 Reported by Stavros Passas.
9781 2006-01-25 Jim Meyering <jim@meyering.net>
9783 * lib/fileblocks.c: Remove more useless parentheses.
9784 * lib/readutmp.h: Likewise.
9786 2006-01-25 Bruno Haible <bruno@clisp.org>
9788 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
9790 Reported by Paul Eggert.
9792 2006-01-25 Bruno Haible <bruno@clisp.org>
9794 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
9795 rid of a trap command. For Solaris sh.
9796 Reported by Mark D. Baushke <mdb@gnu.org>.
9798 2006-01-24 Simon Josefsson <jas@extundo.com>
9800 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
9803 2006-01-24 Karl Berry <karl@gnu.org>
9805 * config/srclist.txt (argp-namefrob.h): sync lost.
9807 2006-01-24 Jim Meyering <jim@meyering.net>
9809 * modules/openat (Files): Add lib/intprops.h.
9810 From Mark D. Baushke.
9812 2006-01-24 Jim Meyering <jim@meyering.net>
9814 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
9815 Reported by Mark D. Baushke.
9817 2006-01-24 Jim Meyering <jim@meyering.net>
9819 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
9821 2006-01-24 Bruno Haible <bruno@clisp.org>
9823 * modules/strnlen (Maintainer): Change from glibc to all.
9825 2006-01-24 Bruno Haible <bruno@clisp.org>
9827 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
9828 Patch by Paul Eggert.
9830 2006-01-24 Bruno Haible <bruno@clisp.org>
9832 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
9834 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
9837 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
9838 'signed char' to avoid problems with the built-in _Bool type.
9839 Reported by Paul Eggert on 2005-11-26.
9841 2006-01-24 Bruno Haible <bruno@clisp.org>
9843 * gnulib-tool (func_import): Avoid constructing complicated sed
9844 expressions inside backquote.
9845 Report and solution by Mark D. Baushke <mdb@gnu.org>.
9847 2006-01-23 Ulrich Drepper <drepper@redhat.com>
9849 These changes imported from libc.
9850 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
9851 test and two separate function calls.
9852 * lib/strndup.c (__strndup): Add libc_hidden_def.
9854 2006-01-23 Simon Josefsson <jas@extundo.com>
9856 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
9857 Remove the test_*_SOURCES variable: automake infers it by default.
9858 * modules/tls-tests: Likewise.
9860 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
9862 Work around porting bugs reported by Dieter in
9863 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
9864 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
9865 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
9866 Include "getopt.h" first, to check interface.
9867 (getenv): Declare only if defined HAVE_DECL_GETENV &&
9869 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
9870 (__strndup): Revert to K&R-style function dfns, the glibc style.
9871 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
9872 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
9873 Include strnlen.h first, to get prototype properly.
9874 (strnlen): Renamed from __strnlen.
9877 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
9879 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
9881 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
9883 * config/srclist.txt: Adjust to reflect glibc reorganization.
9884 This affects only comments.
9886 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
9888 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
9889 Reported by Bruce Korb <bkorb@gnu.org>.
9891 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
9893 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
9894 to pacify gcc -Wswitch-default.
9896 2006-01-22 Bruno Haible <bruno@clisp.org>
9898 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
9899 temporary buffer for sprintf, take into account the precision also
9900 for 'd', 'i', 'u', 'o', 'x', 'X'.
9902 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
9904 * modules/argp-tests: New module
9905 * tests/test-argp.c: New file
9906 * tests/test-argp-2.sh: New file
9908 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
9910 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
9911 (__argp_base_name): Removed
9912 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
9914 (__argp_base_name): Provide macro definition or extern declaration
9915 depending on the configuration
9917 2006-01-20 Simon Josefsson <jas@extundo.com>
9919 * modules/inet_ntop (Depends-on): Depend on sys_socket.
9921 2006-01-20 Simon Josefsson <jas@extundo.com>
9923 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
9925 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
9927 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
9928 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
9929 Suggested by Bruno Haible.
9931 2006-01-20 Karl Berry <karl@gnu.org>
9933 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
9934 until changes propagate, I guess.
9936 2006-01-19 Simon Josefsson <jas@extundo.com>
9938 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
9940 2006-01-19 Simon Josefsson <jas@extundo.com>
9942 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
9944 2006-01-19 Simon Josefsson <jas@extundo.com>
9946 * gnulib-tool: Set check_PROGRAMS.
9948 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
9949 modules/des-tests, modules/gc-arcfour-tests,
9950 modules/gc-arctwo-tests, modules/gc-des-tests,
9951 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
9952 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
9953 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
9954 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
9955 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
9956 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
9957 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
9960 2006-01-18 Simon Josefsson <jas@extundo.com>
9962 * modules/socklen (Depends-on): Depend on sys_socket.
9964 2006-01-18 Simon Josefsson <jas@extundo.com>
9966 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
9967 modules/des-tests, modules/gc-arcfour-tests,
9968 modules/gc-arctwo-tests, modules/gc-des-tests,
9969 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
9970 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
9971 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
9972 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
9973 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
9974 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
9975 $(EXEEXT) to automake TESTS variable, for mingw32.
9977 2006-01-17 Simon Josefsson <jas@extundo.com>
9979 * modules/socklen (Include): Need sys/socket.h.
9981 2006-01-17 Bruno Haible <bruno@clisp.org>
9983 * modules/ssize_t (Include): Add <sys/types.h>.
9985 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
9987 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
9988 it's not portable and it doesn't work with cross-compiles.
9989 Problem reported by Bruno Haible. Fix missing-$ typo in
9990 'test "gl_cv_ignore_unused_libraries" ...' that prevented
9991 -zignore from being used with Sun's C compiler.
9993 2006-01-12 Simon Josefsson <jas@extundo.com>
9995 * lib/base64.c: Fix warning, reported by Bruno Haible
9996 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
9998 2006-01-12 Bruno Haible <bruno@clisp.org>
10000 * modules/ldd: New file.
10001 * build-aux/ldd.sh.in: New file.
10002 * MODULES.html.sh (Support for building libraries and executables): Add
10005 2006-01-12 Bruno Haible <bruno@clisp.org>
10007 * m4/ldd.m4: New file.
10009 2006-01-12 Bruno Haible <bruno@clisp.org>
10011 * gnulib-tool (func_import, func_create_testdir): Don't go into an
10012 endless loop while replacing $auxdir with build-aux.
10014 2006-01-11 Simon Josefsson <jas@extundo.com>
10016 * lib/stdint_.h (SIZE_MAX): Add missing (.
10018 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
10020 Sync from coreutils.
10021 * lib/md5.c: Fix commentary typos.
10022 (alignof, UNALIGNED_P): No need for a GCC-specific version.
10023 * lib/md5.h (__attribute__): Remove; unused.
10024 * lib/sha1.c: Fix commentary to match md5 better.
10025 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
10026 so that we don't need to worry about alignment. All uses changed.
10027 This merges the 2005-10-28 md5 change into sha1.
10029 2006-01-11 Jim Meyering <jim@meyering.net>
10031 Sync from coreutils.
10032 * lib/md5.c (OP): Fix spacing.
10034 2006-01-11 Bruno Haible <bruno@clisp.org>
10036 Ensure automatic ordering between gl_LOCK and gl_ARGP.
10037 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
10038 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
10040 2006-01-11 Bruno Haible <bruno@clisp.org>
10042 Ensure automatic ordering between gl_LOCK and gl_ARGP.
10043 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
10044 the "early" section as well.
10046 2006-01-11 Bruno Haible <bruno@clisp.org>
10048 Avoid "ar: no archive members specified" error on MacOS X.
10049 * gnulib-tool (func_modules_add_dummy): New function.
10050 (func_import, func_create_testdir): Invoke it.
10052 2006-01-11 Bruno Haible <bruno@clisp.org>
10054 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
10055 with $auxdir in AC_CONFIG_FILES statements.
10057 2006-01-11 Bruno Haible <bruno@clisp.org>
10059 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10060 Initialize also noinst_HEADERS to empty.
10062 2006-01-11 Bruno Haible <bruno@clisp.org>
10064 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
10066 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
10069 2006-01-11 Bruno Haible <bruno@clisp.org>
10071 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
10072 overridable by the user.
10073 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10075 2006-01-10 Simon Josefsson <jas@extundo.com>
10077 * modules/sys_socket: New file.
10079 2006-01-10 Simon Josefsson <jas@extundo.com>
10081 * m4/sys_socket_h.m4: New file.
10083 2006-01-10 Simon Josefsson <jas@extundo.com>
10085 * lib/socket_.h: New file.
10087 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
10089 * modules/readutmp (Maintainer): Add myself.
10091 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
10093 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
10094 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
10095 People who are still concerned with buggy memcmp implementations
10096 can invoke gl_FUNC_MEMCMP themselves.
10098 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
10100 * lib/regex_internal.h (BITSET_WORD_BITS):
10101 Work around a bug in 64-bit PGC (before version 6.1-2), where the
10102 preprocessor mishandles large unsigned values as if they were signed.
10103 Problem reported by Claudio Fontana in
10104 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
10106 2006-01-10 Jim Meyering <jim@meyering.net>
10108 Avoid the double-free (first in fts_read, second in fts_close) that
10109 would occur when an `active' directory is made inaccessible (e.g.,
10110 via chmod a-x) during a traversal.
10111 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
10112 before returning. Reproduce this failure by
10113 mkdir -p a/b; cd a; chmod a-x . b
10114 Reported by Stavros Passas.
10116 Sync from coreutils.
10117 * lib/sha1.c: Tweak grammar in a comment.
10119 2006-01-10 Jim Meyering <jim@meyering.net>
10121 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
10122 Patch by Joerg Sonnenberger.
10124 2006-01-10 Bruno Haible <bruno@clisp.org>
10126 * modules/readutmp: Depend on module free.
10127 * modules/strtok_r: Depend on module restrict.
10129 2006-01-10 Bruno Haible <bruno@clisp.org>
10131 * modules/gettext (configure.ac): Add an invocation of
10132 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
10134 2006-01-10 Bruno Haible <bruno@clisp.org>
10136 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
10137 Reported by Werner Lemberg <wl@gnu.org>.
10139 2006-01-10 Bruno Haible <bruno@clisp.org>
10141 * lib/localcharset.c: Update from GNU gettext.
10143 2006-01-10 Bruno Haible <bruno@clisp.org>
10145 * lib/argp.h (__const): Remove macro. Use const instead.
10146 * lib/argp-fmtstream.h (__const): Likewise.
10147 * lib/glob_.h (__const): Remove macro.
10148 * lib/glob-libc.h: Use const instead of __const.
10150 2006-01-10 Bruno Haible <bruno@clisp.org>
10152 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
10154 Needed to avoid an automake error regarding the 'gettext' module.
10156 2006-01-09 Simon Josefsson <jas@extundo.com>
10158 * modules/inet_ntop (Depends-on): Add restrict.
10160 2006-01-09 Simon Josefsson <jas@extundo.com>
10162 * modules/gc-rijndael-tests (License): Put under LGPL.
10164 * modules/gc-des-tests (License): Likewise.
10166 * modules/gc-arcfour-tests (License): Likewise.
10168 * modules/gc-arctwo-tests (License): Likewise.
10170 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
10172 * modules/gc-hmac-sha1-tests (Files): Likewise.
10174 * modules/gc-hmac-md5-tests (License): Likewise.
10176 * modules/gc-sha1-tests (License): Likewise.
10178 * modules/gc-md5-tests (License): Likewise.
10180 * modules/gc-md4-tests (License): Likewise.
10182 * modules/gc-md2-tests (License): Likewise.
10184 * modules/gc-tests (License): Likewise.
10186 * modules/des-tests (License): Likewise.
10188 * modules/md4-tests (License): Likewise.
10190 * modules/md2-tests (License): Likewise.
10192 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
10194 Sync from coreutils:
10196 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
10197 * modules/lib-ignore: New file.
10198 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
10199 chdir-safer.m4, lchmod.m4.
10200 * modules/openat: Add mkdirat.c, openat-priv.h.
10202 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
10204 Sync from coreutils.
10205 * m4/lib-ignore.m4: New file.
10206 * m4/lchmod.m4: New file.
10208 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
10210 Sync from coreutils.
10211 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
10212 for write access: POSIX says that must fail.
10213 * lib/fts.c (diropen): Likewise.
10214 * lib/save-cwd.c (save_cwd): Likewise.
10215 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
10216 well, for minor improvements on hosts that lack O_DIRECTORY.
10217 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
10218 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
10219 Fall back on chown if open failed with EACCES.
10221 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
10222 Report an error at compile-time if only a 1-second nominal clock
10223 resolution is found.
10225 * lib/lchmod.h: New file.
10226 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
10227 (make_dir_parents): Use lchown rather than chown, and
10228 lchmod rather than chmod.
10230 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
10231 dummies too. Problem with "none" reported by Bob Proulx. Problem with
10232 "proc" reported by n0dalus.
10234 * lib/mountlist.c: Include <limits.h>.
10235 (dev_from_mount_options)
10236 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
10237 New function. It no longer assumes "dev=" has the System V meaning
10238 on Linux (since it doesn't). It also parses "dev=" more carefully.
10239 (read_file_system_list)
10240 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
10241 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
10244 * lib/posixtm.h (PDS_PRE_2000): New macro.
10245 * lib/posixtm.c (year): Arg is now syntax_bits rather than
10246 allow_century. All usages changed. Reject dates outside the range
10247 1969-1999 if PDS_PRE_2000 is used.
10249 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
10251 Sync from coreutils.
10252 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
10253 (Time of day items): Mention the possibility of leap seconds.
10254 Problem reported by Dr. David Alan Gilbert.
10256 2006-01-09 Jim Meyering <jim@meyering.net>
10258 Sync from coreutils.
10260 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
10262 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
10264 * lib/modechange.c (mode_compile): Reject an invalid mode string
10265 that starts with an octal digit. From Andreas Gruenbacher.
10267 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
10268 and dup to open_safer and dup_safer, respectively.
10269 (openat_permissive): Fix typo in comment.
10271 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
10272 "gettext.h"; either no longer needed or are guaranteed by openat.h.
10273 (_): Remove; no longer needed.
10274 (openat): Renamed from rpl_openat; no need for rpl_openat
10275 since openat.h renames openat for us.
10276 Replace most of the body with a call to openat_permissive,
10277 to avoid duplicate code.
10278 Port to (probably hypothetical) environments were mode_t is
10280 (openat_permissive): Require mode arg, so that we can check
10281 types better. Put it just after flags. Change cwd failure
10282 indicator from pointer-to-bool to pointer-to-errno-value.
10283 All callers changed.
10284 Invoke openat_save_fail and/or openat_restore_fail if
10285 cwd_errno is null, so that openat can call us.
10286 (openat_permissive, fdopendir, fstatat, unlinkat):
10287 Simplify errno handling to avoid some duplicate code,
10288 as it's OK to set errno on success.
10289 * lib/openat.h: Revamp code so that function macros depend on
10290 __OPENAT_PREFIX only, not also on AT_FDCWD.
10291 (openat_ro): Remove. Caller changed to use openat_permissive.
10292 (openat_permissive): Now a macro, if not a function.
10293 (openat_restore_fail, openat_save_fail): Now always functions,
10294 since mkdirat needs them even if __OPENAT_PREFIX is defined.
10296 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
10298 * lib/mkdirat.c: Include openat-priv.h.
10299 Remove definitions of macros defined therein.
10300 * lib/openat.c: Likewise.
10302 * lib/mkdirat.c (mkdirat): New file and function.
10303 * lib/openat.h (mkdirat): Declare.
10305 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
10307 * lib/openat.h (openat_permissive): Declare.
10308 (openat_ro): Define.
10310 * lib/openat.c (EXPECTED_ERRNO): New macro.
10311 (openat_permissive): New function -- used in remove.c rewrite.
10312 (all functions): Set errno just before returning, only if there
10313 was an actual failure.
10314 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
10316 Emulate openat-family functions using Linux's procfs, if possible.
10317 Idea and some code based on Ulrich Drepper's glibc changes.
10319 * lib/openat.c: (BUILD_PROC_NAME): New macro.
10320 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
10321 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
10322 before falling back on save_cwd and restore_cwd.
10323 (fdopendir, fstatat, unlinkat): Likewise.
10325 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
10326 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
10328 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
10329 as second argument to va_arg. Otherwise, some versions of gcc
10330 warn that `if this code is reached, the program will abort'.
10332 2006-01-09 Jim Meyering <jim@meyering.net>
10334 Sync from coreutils.
10335 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
10336 Require openat-priv.h.
10338 2006-01-09 Bruno Haible <bruno@clisp.org>
10340 * modules/strnlen (Include): Use strnlen.h.
10342 2006-01-09 Bruno Haible <bruno@clisp.org>
10344 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
10346 2006-01-09 Bruno Haible <bruno@clisp.org>
10348 * lib/sysexit_.h (EX_OK): New macro.
10349 Suggested by Martin Lambers <marlam@marlam.de>.
10351 2006-01-09 Bruno Haible <bruno@clisp.org>
10353 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
10354 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
10356 2006-01-09 Bruno Haible <bruno@clisp.org>
10358 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
10361 2006-01-09 Bruno Haible <bruno@clisp.org>
10363 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
10364 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
10365 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
10366 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
10368 2006-01-09 Bruno Haible <bruno@clisp.org>
10370 * build-aux/javacomp.sh.in: New file, moved from lib/.
10371 * modules/javacomp-script (Files): Update.
10372 (configure.ac): Add AC_CONFIG_FILES invocation.
10373 (EXTRA_DIST): Remove variable.
10375 * build-aux/javaexec.sh.in: New file, moved from lib/.
10376 * modules/javaexec (Files): Update.
10377 (configure.ac): Add AC_CONFIG_FILES invocation.
10378 (EXTRA_DIST): Remove javaexec.sh.in.
10380 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
10381 * modules/csharpcomp-script (Files): Update.
10382 (configure.ac): Add AC_CONFIG_FILES invocation.
10383 (EXTRA_DIST): Remove variable.
10385 * build-aux/csharpexec.sh.in: New file, moved from lib/.
10386 * modules/csharpexec (Files): Update.
10387 (configure.ac): Add AC_CONFIG_FILES invocation.
10388 (EXTRA_DIST): Remove csharpexec.sh.in.
10390 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
10392 Sync from coreutils.
10394 Add POSIX ACL support
10395 * lib/acl.h (copy_acl, set_acl): Add declarations.
10396 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
10397 systems other than Linux.
10398 (chmod_or_fchmod): New function: use fchmod when possible,
10399 and chmod otherwise.
10400 (file_has_acl): Add a POSIX ACL implementation, with a
10401 Linux-specific subcase.
10402 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
10403 S_ISVTX from one file to another. Fall back to fchmod/chmod when
10404 acls are unsupported.
10405 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
10406 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
10409 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
10411 Sync from coreutils.
10412 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
10414 2006-01-07 Bruno Haible <bruno@clisp.org>
10416 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
10419 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
10421 * lib/strftime.c (tzname): Don't declare if it is already #defined.
10422 Problem reported for Mingw by Mark Junker.
10424 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
10426 * README: Gnulib normally doesn't generate a tarball.
10428 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
10430 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
10431 long int, not int, for nanosecond counts, so that people who are
10432 used to POSIX struct timespec won't be surprised. Reported by Jim
10435 2005-12-28 Bruno Haible <bruno@clisp.org>
10437 * build-aux/config.rpath: Update from GNU gettext.
10439 2005-12-16 Jim Meyering <jim@meyering.net>
10441 * modules/fprintftime: New module.
10442 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
10444 2005-12-16 Jim Meyering <jim@meyering.net>
10446 * m4/fprintftime.m4: New file.
10448 2005-12-16 Jim Meyering <jim@meyering.net>
10450 * lib/fprintftime.c, lib/fprintftime.h: New files.
10452 2005-12-15 Simon Josefsson <jas@extundo.com>
10454 * modules/socklen (configure.ac): Fix M4 macro name, to align with
10457 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
10459 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
10460 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
10462 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
10464 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
10465 * lib/argp-help.c (fill_in_uparams): Check if the constructed
10466 struct uparams is valid. Fall back to the default values if it is
10469 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
10471 * modules/argp (Files): Add argp-pin.c
10472 (Depends-on): dirname
10473 (lib_SOURCES): Add argp-pin.c
10475 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
10477 * m4/argp.m4: Check if program_invocation_name and
10478 program_invocation_short_name are declared and define appropriate
10479 macros if they are not.
10481 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
10483 * lib/argp-help.c (__argp_base_name): New function
10484 (__argp_short_program_name): Rewrite using __argp_base_name
10485 * lib/argp-namefrob.h: Define program_invocation_name and
10486 program_invocation_short_name if requested
10487 (__argp_base_name): Add prototype
10488 * lib/argp-parse.c (argp_def): Use gettext wrappers
10489 (argp_default_parser): Use __argp_base_name
10490 * lib/argp-pin.c: New file. Defines program_invocation_name and
10491 program_invocation_short_name on systems that lack them.
10493 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
10495 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
10496 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
10497 porting problem reported by Georg Schwarz in
10498 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
10500 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
10502 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
10503 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
10504 porting problem reported by Georg Schwarz in
10505 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
10507 2005-12-05 Bruno Haible <bruno@clisp.org>
10509 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
10510 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
10511 Reported by Mark Junker <mjscod@gmx.de>.
10513 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
10515 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
10516 Use implementation from Albert Chin, with some
10517 comments/corrections by Stepan Kasal and myself.
10519 2005-12-02 Bruno Haible <bruno@clisp.org>
10521 * gnulib-tool (func_import): Accept GPLed build tool modules when
10523 * modules/csharpcomp-script: New file.
10524 * modules/csharpcomp: Depend on it.
10525 * modules/javacomp-script: New file.
10526 * modules/javacomp: Depend on it.
10527 Suggested by Simon Josefsson.
10529 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
10531 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
10532 statement, to work around an HP-UX 10.20 compiler bug reported by
10535 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
10537 * modules/savedir (Depends-on): Add openat.
10539 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
10541 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
10542 (uintmax_t) [defined uintmax_t]: Do not declare.
10543 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
10544 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
10545 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
10546 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
10547 sake of portability to weird hosts that C allows (though we don't
10548 know of any practical examples).
10550 * lib/savedir.h (fdsavedir): New decl.
10551 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
10552 contains most of the former guts of savedir.
10553 (savedir): Use savedirstream.
10554 Include "openat.h".
10556 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
10558 * modules/obstack (Files): Add m4/ulonglong.m4.
10559 Problem reported by Davide Angelocola.
10561 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
10563 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
10564 coreutils no longer futzes with rounding modes.
10566 2005-11-14 Jim Meyering <jim@meyering.net>
10568 * lib/mkstemp-safer.c: Include <config.h>, required for possible
10569 replacement of mkstemp.
10571 2005-11-10 Simon Josefsson <jas@extundo.com>
10573 * lib/readline.c: Remove EOL.
10575 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
10577 * modules/gethrxtime (Depends-on): Add gettime.
10579 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
10581 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
10582 or gettimeofday; no longer needed.
10584 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
10586 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
10588 (gethrxtime) [! (HAVE_NANOUPTIME
10589 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
10590 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
10591 our own approximation.
10593 2005-11-08 Eric Blake <ebb9@byu.net>
10595 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
10597 2005-11-08 Eric Blake <ebb9@byu.net>
10599 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
10601 2005-11-04 Bruno Haible <bruno@clisp.org>
10603 * gnulib-tool: Implement --update mode.
10605 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
10607 Fix porting problem reported by Theodoros V. Kalamatianos.
10608 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
10609 Don't assume that futimes failing means we must fail.
10611 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
10613 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
10614 variables to suggest the intended function of the PATH_MAX check.
10616 2005-10-30 Kean Johnston <jkj@sco.com>
10618 Trivial changes to support SCO systems.
10619 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
10621 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
10622 where __ptr is null when no I/O is pending.
10624 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
10626 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
10627 leave errno alone. Problem reported by Dmitry V. Levin.
10629 2005-10-28 Simon Josefsson <jas@extundo.com>
10631 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
10634 * tests/test-gc-md2.c, tests/test-md2.c: New files.
10636 * modules/md2, modules/md2-tests: New files.
10638 2005-10-28 Simon Josefsson <jas@extundo.com>
10640 * m4/inet_ntop.m4: More tests.
10642 * m4/gc-md2.m4, md2.m4: New file.
10644 2005-10-28 Simon Josefsson <jas@extundo.com>
10646 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
10647 "restrict" keywords, as per POSIX. Protect the function
10648 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
10649 Don't use K&R prototypes. Check the sprintf return values.
10650 Re-define EAFNOSUPPORT if not present. Indent.
10652 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
10653 suggested by Bruno Haible <bruno@clisp.org>.
10655 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
10657 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
10659 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
10662 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
10664 * lib/md2.h, lib/md2.c: New files.
10666 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
10668 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
10669 errno alone. Problem reported by Frederic Jolliton.
10671 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
10673 * modules/verify (License): Change from GPL to LGPL. This is a
10674 tiny module and there are apparently near-equivalents that are
10675 under the BSD license.
10677 2005-10-24 Simon Josefsson <jas@extundo.com>
10679 * modules/sha1: Relicense to LGPL.
10681 2005-10-24 Simon Josefsson <jas@extundo.com>
10683 * lib/md4.h: Shrink buffer size, now that we changed the type.
10685 2005-10-23 Simon Josefsson <jas@extundo.com>
10687 * gnulib-tool (func_import): Fix --tests-base.
10689 2005-10-22 Simon Josefsson <jas@extundo.com>
10691 * modules/arcfour (Depends-on): Need stdint.
10693 2005-10-22 Simon Josefsson <jas@extundo.com>
10695 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
10696 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
10698 2005-10-22 Simon Josefsson <jas@extundo.com>
10700 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
10701 suggested by Bruno Haible <bruno@clisp.org>.
10703 2005-10-22 Simon Josefsson <jas@extundo.com>
10705 * lib/crc.h: Include stddef.h, for size_t.
10707 2005-10-22 Simon Josefsson <jas@extundo.com>
10709 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
10710 arcfour_context struct (simplify test vector testing in GNU
10713 2005-10-21 Simon Josefsson <jas@extundo.com>
10715 * modules/des, modules/des-tests: New files.
10717 * modules/gc-des, modules/gc-des-tests: New files.
10719 * tests/test-des.c, tests/test-gc-des.c: New file.
10721 2005-10-21 Simon Josefsson <jas@extundo.com>
10723 * modules/arctwo, modules/arctwo-tests: New files.
10725 * tests/test-arctwo.c: New file.
10727 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
10729 * tests/test-gc-arctwo.c: New file.
10731 2005-10-21 Simon Josefsson <jas@extundo.com>
10733 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
10734 Bruno Haible <bruno@clisp.org>.
10736 * m4/gc-des.m4: New file.
10738 2005-10-21 Simon Josefsson <jas@extundo.com>
10740 * m4/arctwo.m4: New file.
10742 * m4/gc-arctwo.m4: New file.
10744 2005-10-21 Simon Josefsson <jas@extundo.com>
10746 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
10749 2005-10-21 Simon Josefsson <jas@extundo.com>
10751 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
10754 * lib/hmac-sha1.c (hmac_sha1): Likewise.
10756 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
10757 Bruno Haible <bruno@clisp.org>.
10759 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
10762 2005-10-21 Simon Josefsson <jas@extundo.com>
10764 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
10766 2005-10-21 Simon Josefsson <jas@extundo.com>
10768 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
10770 2005-10-21 Simon Josefsson <jas@extundo.com>
10772 * lib/des.h, lib/des.c: New files.
10774 * lib/gc-gnulib.c: Support DES.c
10776 2005-10-21 Simon Josefsson <jas@extundo.com>
10778 * lib/arctwo.h, lib/arctwo.c: New files.
10780 * lib/gc-gnulib.c: Support ARCTWO.
10782 2005-10-21 Simon Josefsson <jas@extundo.com>
10784 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
10785 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10787 2005-10-21 Simon Josefsson <jas@extundo.com>
10789 * gnulib-tool (func_import, func_create_testdir): Define automake
10790 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
10791 Makefile.am snippet),
10792 suggested by Bruno Haible <bruno@clisp.org>.
10794 * modules/gc (Makefile.am): Use it.
10796 2005-10-21 Bruno Haible <bruno@clisp.org>
10798 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
10801 2005-10-19 Simon Josefsson <jas@extundo.com>
10803 * tests/test-gc-rijndael.c: New file.
10805 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
10807 2005-10-19 Simon Josefsson <jas@extundo.com>
10809 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
10812 2005-10-19 Simon Josefsson <jas@extundo.com>
10814 * tests/test-gc-arcfour.c: New file.
10816 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
10818 2005-10-19 Simon Josefsson <jas@extundo.com>
10820 * modules/gc-md4, modules/gc-md4-tests: New file.
10822 * tests/test-gc-md4.c: New file.
10824 2005-10-19 Simon Josefsson <jas@extundo.com>
10826 * m4/gc-md4.m4: New file.
10828 2005-10-19 Simon Josefsson <jas@extundo.com>
10830 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
10831 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
10834 2005-10-19 Simon Josefsson <jas@extundo.com>
10836 * m4/gc-arcfour.m4: New file.
10838 * m4/gc-rijndael.m4: New file.
10840 2005-10-19 Simon Josefsson <jas@extundo.com>
10842 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
10844 2005-10-19 Simon Josefsson <jas@extundo.com>
10846 * lib/gc-gnulib.c: Support ARCFOUR.
10848 2005-10-19 Simon Josefsson <jas@extundo.com>
10850 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
10853 * lib/gc.h: Add ECB enum type.
10855 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
10857 2005-10-18 Simon Josefsson <jas@extundo.com>
10859 * tests/test-md5.c: New file.
10861 * modules/md5-tests: New file.
10863 2005-10-18 Simon Josefsson <jas@extundo.com>
10865 * tests/test-md4.c: New file.
10867 * modules/md4, modules/md4-tests: New files.
10869 2005-10-18 Simon Josefsson <jas@extundo.com>
10871 * m4/md4.m4: New file.
10873 2005-10-18 Simon Josefsson <jas@extundo.com>
10875 * lib/md4.h, lib/md4.c: New files, based on md5.?.
10877 2005-10-17 Stepan Kasal <kasal@ucw.cz>
10879 * gnulib-tool (func_create_testdir): Omit the second check whether
10880 BUILT_SOURCES in nonempty.
10882 2005-10-17 Simon Josefsson <jas@extundo.com>
10884 * tests/test-rijndael.c: New file.
10886 2005-10-17 Simon Josefsson <jas@extundo.com>
10888 * modules/sha1: Depend on stdint instead of md5.
10890 * modules/md5: Depend on stdint, remove uint32_t.
10892 2005-10-17 Simon Josefsson <jas@extundo.com>
10894 * modules/gc-sha1-tests: New file.
10896 * tests/test-gc-sha1.c: New file.
10898 2005-10-17 Simon Josefsson <jas@extundo.com>
10900 * m4/md5.m4: Remove call to uint32_t.m4.
10902 2005-10-17 Simon Josefsson <jas@extundo.com>
10904 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
10906 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
10909 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
10911 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
10913 2005-10-17 Simon Josefsson <jas@extundo.com>
10915 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
10917 2005-10-17 Simon Josefsson <jas@extundo.com>
10919 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
10921 2005-10-17 Simon Josefsson <jas@extundo.com>
10923 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
10925 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
10927 2005-10-17 Bruno Haible <bruno@clisp.org>
10929 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
10930 that it can also be used in a test.
10932 2005-10-16 Bruno Haible <bruno@clisp.org>
10934 * gnulib-tool (func_emit_tests_Makefile_am): Also define
10935 TESTS_ENVIRONMENT, so that individual tests can augment it.
10937 * gnulib-tool (func_create_testdir): Use an intermediate target for
10938 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
10939 macros, like $(ALLOCA_H), which cannot be passed through the command
10942 2005-10-15 Simon Josefsson <jas@extundo.com>
10944 * modules/rijndael-tests: New file.
10946 * modules/rijndael: New file.
10948 2005-10-15 Simon Josefsson <jas@extundo.com>
10950 * m4/rijndael.m4: New file.
10952 2005-10-15 Simon Josefsson <jas@extundo.com>
10954 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
10956 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
10958 2005-10-14 Simon Josefsson <jas@extundo.com>
10960 * tests/test-arcfour.c: New file.
10962 * modules/arcfour, modules/arcfour-tests: New files.
10964 2005-10-14 Simon Josefsson <jas@extundo.com>
10966 * m4/arcfour.m4: New file.
10968 2005-10-14 Simon Josefsson <jas@extundo.com>
10970 * lib/arcfour.h, lib/arcfour.c: New files.
10972 2005-10-14 Roland McGrath <roland@redhat.com>
10974 Import from libc. [BZ #1331]
10975 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
10977 Reported by Matej Vela <vela@debian.org>.
10979 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
10981 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
10982 include <wchar.h>; no longer needed.
10984 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
10986 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
10988 2005-10-14 Jakub Jelinek <jakub@redhat.com>
10989 and Ulrich Drepper <drepper@redhat.com>
10992 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
10993 instead of inline stream orientation test and two separate
10994 function calls. Pay no attention to USE_IN_LIBIO.
10996 2005-10-13 Simon Josefsson <jas@extundo.com>
10998 * modules/gc-hmac-md5-tests: New file.
11000 * tests/test-gc-hmac-sha1.c: New file.
11002 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
11004 * modules/gc-hmac-md5-tests: New file.
11006 * tests/test-gc-md5.c: New file.
11008 * modules/gc-md5-tests: New file.
11010 2005-10-13 Simon Josefsson <jas@extundo.com>
11012 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
11013 Move memory allocation outside of loop.
11015 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
11017 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
11018 intermediate directory is in a read-only file system. Problem
11019 reported by Eric Blake.
11021 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
11023 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
11025 2005-10-12 Simon Josefsson <jas@extundo.com>
11027 * tests/test-hmac-sha1.c: New file.
11029 * modules/hmac-sha1-tests: New file.
11031 * modules/hmac-sha1: New file.
11033 2005-10-12 Simon Josefsson <jas@extundo.com>
11035 * modules/gc-sha1: New file.
11037 2005-10-12 Simon Josefsson <jas@extundo.com>
11039 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
11041 * tests/test-gc-pbkdf2-sha1.c: New file.
11043 2005-10-12 Simon Josefsson <jas@extundo.com>
11045 * modules/gc-md5, modules/gc-hmac-md5: New files.
11047 * modules/gc (Files): Remove md5, memxor and hmac files.
11049 2005-10-12 Simon Josefsson <jas@extundo.com>
11051 * m4/gc-pbkdf2-sha1.m4: New file.
11053 * m4/gc-hmac-sha1.m4: New file.
11055 * m4/gc-sha1: New file.
11057 * m4/hmac-sha1.m4: New file.
11059 2005-10-12 Simon Josefsson <jas@extundo.com>
11061 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
11063 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
11065 2005-10-12 Simon Josefsson <jas@extundo.com>
11067 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
11068 suggested by Bruno Haible <bruno@clisp.org>.
11070 2005-10-12 Simon Josefsson <jas@extundo.com>
11072 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
11074 2005-10-12 Simon Josefsson <jas@extundo.com>
11076 * lib/gc-pbkdf2-sha1.c: New file.
11078 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
11080 2005-10-12 Simon Josefsson <jas@extundo.com>
11082 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
11084 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
11086 2005-10-12 Simon Josefsson <jas@extundo.com>
11088 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
11089 GC_USE_HMAC_MD5, respectively.
11091 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
11092 (gc_md5): Fix typo.
11094 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
11096 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
11098 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
11100 2005-10-12 Bruno Haible <bruno@clisp.org>
11102 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
11103 Reported by Stepan Kasal <kasal@ucw.cz>.
11105 2005-10-11 Simon Josefsson <jas@extundo.com>
11107 * tests/test-crc.c: New file.
11109 * modules/crc, modules/crc-tests: New files.
11111 2005-10-11 Simon Josefsson <jas@extundo.com>
11113 * m4/crc.m4: New file.
11115 2005-10-11 Simon Josefsson <jas@extundo.com>
11117 * lib/gc.h: Add gc_hash and gc_hash_buffer.
11119 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
11121 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
11123 2005-10-11 Simon Josefsson <jas@extundo.com>
11125 * lib/crc.h, lib/crc.c: New files.
11127 * lib/gc.h (gc_hash_buffer): Add doc.
11129 2005-10-11 Bruno Haible <bruno@clisp.org>
11131 * modules/c-strcasestr: New file.
11132 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
11134 2005-10-11 Bruno Haible <bruno@clisp.org>
11136 * modules/c-strcase: New file.
11137 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
11139 2005-10-11 Bruno Haible <bruno@clisp.org>
11141 * lib/strcasecmp.c: Include limits.h.
11142 (strcasecmp): Avoid integer overflow on exotic platforms.
11143 * lib/strncasecmp.c: Include limits.h.
11144 (strncasecmp): Avoid integer overflow on exotic platforms.
11145 Reported by Paul Eggert.
11147 2005-10-11 Bruno Haible <bruno@clisp.org>
11149 * lib/c-strcasestr.h: New file, from GNU gettext.
11150 * lib/c-strcasestr.c: New file, from GNU gettext.
11152 2005-10-11 Bruno Haible <bruno@clisp.org>
11154 * lib/c-strcase.h: New file, from GNU gettext.
11155 * lib/c-strcasecmp.c: New file, from GNU gettext.
11156 * lib/c-strncasecmp.c: New file, from GNU gettext.
11158 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
11160 * modules/mempcpy (License): GPL -> LGPL.
11161 * modules/strchrnul (License): Likewise.
11162 * modules/sysexits (License): Likewise.
11164 2005-10-08 Simon Josefsson <jas@extundo.com>
11166 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
11168 2005-10-07 Simon Josefsson <jas@extundo.com>
11170 * m4/memxor.m4: Remove gl_C_RESTRICT call.
11172 2005-10-06 Simon Josefsson <jas@extundo.com>
11174 * tests/test-hmac-md5.c: New file.
11176 * modules/hmac-md5-tests: New file.
11178 * modules/hmac-md5: New file.
11180 2005-10-06 Simon Josefsson <jas@extundo.com>
11182 * m4/hmac-md5.m4: New file.
11184 * m4/memxor.m4: Require gl_C_RESTRICT.
11186 2005-10-06 Simon Josefsson <jas@extundo.com>
11188 * lib/memxor.c (memxor): Avoid casts and warnings.
11190 2005-10-06 Simon Josefsson <jas@extundo.com>
11192 * lib/hmac-md5.c: New file.
11194 * lib/hmac.h: New file.
11196 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
11198 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
11199 promotes to int, not unsigned int, to catch the AIX 5.3
11202 2005-10-05 Simon Josefsson <jas@extundo.com>
11204 * modules/memxor: New file.
11206 * modules/iconv (Files): Move config.rpath to havelib, it is used
11209 * modules/havelib (Files): Add config.rpath.
11211 2005-10-05 Simon Josefsson <jas@extundo.com>
11213 * m4/memxor.m4: New file.
11215 2005-10-05 Simon Josefsson <jas@extundo.com>
11217 * lib/memxor.c (memxor): Fix compiler error.
11219 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
11220 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
11222 * lib/memxor.h, lib/memxor.c: New files.
11224 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
11225 we assume all systems have it, suggested by Jim Meyering
11226 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
11227 any systems lack sys/socket.h; mingw32 is known to lack it, but we
11228 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
11231 2005-10-05 Simon Josefsson <jas@extundo.com>
11233 * config/srclist.txt: Add glibc bug 1423 for md5.h.
11235 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
11237 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
11238 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
11239 needed, since the source code now assumes these .h files.
11241 2005-10-05 Derek Price <derek@ximbiot.com>
11243 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
11245 2005-10-05 Bruno Haible <bruno@clisp.org>
11247 * modules/stdint (License): Change to LGPL.
11249 2005-10-04 Simon Josefsson <jas@extundo.com>
11251 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
11252 D. Baushke" <mdb@gnu.org>.
11254 2005-10-04 Bruno Haible <bruno@clisp.org>
11256 * lib/verify.h (verify_true): Provide alternative definition for C++.
11258 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
11260 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
11261 (SSIZE_MAX): New macro, if not already defined.
11262 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
11265 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
11267 Sync from coreutils.
11268 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
11269 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
11270 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
11271 ULLONG_MAX doesn't work with 2.7.2.1.
11273 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
11275 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
11278 * modules/exclude (Depends-on): Depend on verify.
11279 * modules/strtoimax (Depends-on): Likewise.
11280 * modules/utimecmp (Depends-on): Likewise.
11282 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
11284 * lib/exclude.c: Include verify.h.
11285 (verify): Remove. All callers changed to use verify.h's version.
11286 * lib/strtoimax.c: Likewise.
11287 * lib/utimecmp.c: Likewis.e
11289 Sync from coreutils.
11290 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
11291 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
11292 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
11293 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
11294 bother returning ENOSYS if settimeofday or stime fails; just let
11295 them return whatever errno they want to return.
11296 * lib/utimens.c: Include unistd.h, for dup2.
11297 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
11298 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
11300 2005-10-02 Jim Meyering <jim@meyering.net>
11302 Sync from coreutils.
11303 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
11304 from glibc-2.2.5 that fails for read-only files.
11306 2005-10-02 Jim Meyering <jim@meyering.net>
11308 Sync from coreutils.
11309 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
11310 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
11311 `#if HAVE_CONFIG_H'.
11312 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
11313 Remove AT_FDCWD test.
11314 Do not consume the fd unless successful.
11315 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
11316 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
11317 block, so that we don't even try to compile it if settimeofday is
11318 available. This works around a compilation failure on OSF1 V5.1,
11319 due to stime requiring a `long int*' while tv_sec is `int'.
11321 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
11323 Sync from coreutils.
11324 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
11325 against `yes', rather than just testing for nonempty.
11327 2005-10-01 Simon Josefsson <jas@extundo.com>
11329 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
11332 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
11333 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
11334 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
11335 freeaddrinfo and gai_strerror are declared by the POSIX headers.
11336 Check if struct addrinfo is declared.
11338 2005-10-01 Simon Josefsson <jas@extundo.com>
11340 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
11341 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
11342 AI_* and EAI_* definitions. Protect function declarations.
11344 2005-10-01 Jim Meyering <jim@meyering.net>
11346 Sync from coreutils.
11348 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
11349 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
11350 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
11351 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
11352 in the inet and nsl libraries. Required on Solaris 5.7.
11354 2005-10-01 Jim Meyering <jim@meyering.net>
11356 Sync from coreutils.
11357 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
11358 in the inet and nsl libraries. Required on Solaris 5.7.
11360 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
11362 * lib/getdelim.c (getdelim): Remove unused variables.
11364 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
11366 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
11367 so that the code works even with ancient cpp. Portability problem
11368 with GCC 2.7.2.1 reported by Thomas M.Ott.
11370 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
11372 * modules/regex (Depends-on): Add strcase.
11374 * modules/gethostname (Licence): Change from GPL to LGPL, since
11375 gethostname.c is a trivial implementation of a standard library
11377 * modules/poll (License): Change from GPL to LGPL, since it's
11378 derived from LGPL code.
11380 2005-09-27 Jim Meyering <jim@meyering.net>
11382 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
11385 * lib/intprops.h (signed_type_or_expr__): Define.
11386 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
11387 for unsigned types.
11389 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
11391 * lib/verify.h (verify_expr): Remove, replacing with:
11392 (verify_true): New macro that returns true instead of void.
11393 (verify_type__): Remove.
11394 (verify): Use verify_true rather than verify_type__.
11396 2005-09-26 Bruno Haible <bruno@clisp.org>
11398 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
11400 (lib_SOURCES): Remove mbchar.c.
11401 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
11402 (Files): Add m4/mbrtowc.m4.
11403 * modules/mbiter: Likewise.
11404 * modules/mbuiter: Likewise.
11406 2005-09-26 Bruno Haible <bruno@clisp.org>
11408 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
11409 compile mbchar.c if they are not both present.
11410 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
11411 * m4/mbiter.m4 (gl_MBITER): Likewise.
11412 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
11413 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
11414 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
11416 2005-09-25 Jim Meyering <jim@meyering.net>
11418 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
11419 also uses socklen_t.
11421 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
11423 * lib/utimens.c (ENOSYS): Define if not already defined.
11424 (futimens): Support having a null PATH if the file descriptor
11427 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
11429 (__attribute): Define to empty unless GCC 3.1 or later.
11430 This works around a core dump on OpenBSD 3.4, which has GCC
11431 2.95.3, which dumps core when given __attribute__(()). It also
11432 simplifies other tests, since we really don't want to bother with
11433 worrying about which ancient version of GCC supported what.
11434 Original problem reported by Yoann Vandoorselaere, with part of
11435 the fix suggested by Derek Price.
11437 2005-09-24 Jim Meyering <jim@meyering.net>
11439 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
11440 so we can once again use a positive bitfield width of 1 -- now we
11441 don't have to explain why we were using a bitfield width of 2.
11443 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
11445 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
11446 and similarly for the other external symbols. Problem reported
11449 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
11450 bug reported by Jim Meyering.
11452 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
11453 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
11454 not needed, since socklen is a prerequisite module.
11456 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
11458 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
11459 Problem reported by Eric Blake.
11460 (getaddrinfo): Initialize se so that it's not garbage.
11461 Redo internal storage allocation so that it doesn't make unportable
11462 assumptions about alignment.
11465 * lib/utimens.c (futimens): Use futimesat if available.
11466 Prefer it to futimes since it doesn't have the futimes bug.
11468 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
11469 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
11470 Instead, declare a function that returns a pointer to an array,
11471 and use verify_type__ to declare the size of the array.
11472 Problem and germ of a solution reported by Bruno Haible.
11473 (verify_type__): Use 2, not 1, for bitfield size, to avoid
11474 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
11476 2005-09-23 Jim Meyering <jim@meyering.net>
11478 Sync from coreutils.
11479 Correct build failure (socklen_t not defined) on at least
11480 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
11481 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
11483 2005-09-23 Jim Meyering <jim@meyering.net>
11485 * modules/getaddrinfo (Depends-on): Add socklen.
11487 2005-09-23 Bruno Haible <bruno@clisp.org>
11489 * tests/test-verify.c: New file.
11491 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
11493 Sync from coreutils.
11495 * modules/argmatch (Depends-on): Add verify.
11496 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
11498 * modules/save-cwd (Depends-on): Likewise.
11500 * modules/openat (Files): Add lib/openat-die.c.
11501 (Depends-on): Remove error, exitfail.
11504 * modules/verify: New file.
11505 * MODULES.html.sh (Diagnostics <assert.h>): New section,
11506 with "verify" module.
11508 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
11510 Sync from coreutils.
11512 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
11513 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
11514 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
11515 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
11516 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
11517 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
11518 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
11519 Don't bother checking for string.h, stdlib.h, unistd.h.
11520 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
11521 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
11523 * m4/jm-macros.m4 (gl_MACROS): Likewise.
11524 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
11526 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
11527 (gl_GETDATE): Use it.
11529 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
11531 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
11533 Sync from coreutils.
11535 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
11537 * lib/argmatch.h: Include verify.h
11538 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
11539 (ARGMATCH_ASSERT): Remove; unused.
11540 * lib/canonicalize.c: Assume STDC_HEADERS.
11541 * lib/exclude.c: Include "strcase.h".
11542 * lib/regex_internal.h [!defined _LIBC]: Likewise.
11543 * lib/getusershell.c: Include stdio--.h rather than stdio.h
11545 (getusershell): Call fopen, not fopen_safer.
11546 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
11547 Do not include unistd-safer.h.
11548 (save_cwd): Don't call fd_safer; no longer needed
11549 now that we include fcntl--.h.
11551 * lib/getdate.y (relative_time): New type.
11552 (RELATIVE_TIME_0): New constant.
11553 (parser_control): Use relative_time instead of doing it ourselves.
11554 (%union): Add new relative_time rel member.
11555 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
11557 (relunit, relunit_snumber): Now of type rel.
11558 (zone, rel, relunit, get_date): Adjust to above changes.
11560 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
11561 Do not include unistd-safer.h.
11562 (getloadavg): Don't call fd_safer; no longer needed
11563 now that we include fcntl--.h.
11565 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
11566 (make_dir_parents): Treat ENOSYS like EEXIST.
11568 Improve quality of diagnostics on restore_cwd failure.
11569 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
11570 (make_dir_parents): Last arg is now int * (for errno), not bool *.
11571 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
11572 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
11573 each time through the loop. Do not diagnose restore_cwd failure;
11574 that is the caller's job (and perhaps the caller does not care).
11576 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
11577 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
11578 If the file already exists but is not a directory, don't bother
11579 to try to make its parents.
11580 Close potential file descriptor leak if we can't chdir("/") (!).
11581 Don't always return true if chdir($PWD) fails; return true only
11582 if the requested action was done successfully (except for the
11584 Don't log final directory unless we actually made it.
11585 Refactor to avoid duplicate code to fix up permissions.
11586 Don't attempt to fix up parent permissions if chdir($PWD) fails.
11588 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
11589 to make it a bit faster and (I hope) clearer.
11590 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
11591 Fix bug in formats like %2N.
11593 * lib/verify.h: New file.
11595 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
11597 Sync from coreutils.
11598 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
11600 2005-09-22 Jim Meyering <jim@meyering.net>
11602 Sync from coreutils.
11604 * m4/lstat.m4 (gl_FUNC_LSTAT):
11605 Use AC_LIBSOURCES to require lstat.c and lstat.h.
11606 Remove obsolete comment.
11607 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
11608 * m4/xstrtod.m4: Likewise.
11610 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
11612 2005-09-22 Jim Meyering <jim@meyering.net>
11614 Sync from coreutils.
11616 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
11618 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
11619 the .tm_year member, since otherwise gcc-4.0 would now warn about
11620 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
11622 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
11623 order to avoid an unsuppressible warning from gcc on 64-bit systems.
11625 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
11626 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
11627 when run in a time zone for which daylight savings time is in effect
11628 for the starting date.
11630 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
11631 stop us from restricting permissions of just-created absolute-named
11633 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
11634 to restore initial working directory.
11635 * lib/mkdir-p.c (make_dir_parents): New parameter:
11636 different_working_dir, to tell caller if/when we change the working
11637 directory and are unable to return to the initial one.
11638 * lib/mkdir-p.h (make_dir_parents): Update prototype.
11639 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
11640 `return false'. This fixes a bug introduced on 2004-07-30.
11642 * lib/openat.c (fdopendir): Be sure to close the supplied
11643 file descriptor before returning. This makes our replacement
11644 implementation a little closer to Solaris's, where fdopendir
11645 ties the file descriptor to the returned DIR* pointer.
11646 * lib/openat.c (unlinkat): New function.
11647 * lib/openat.h (unlinkat): Add prototype.
11648 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
11649 (openat_restore_fail): Rename from openat_restore_die.
11650 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
11652 Provide an alternative to exiting immediately upon save_cwd or
11653 restore_cwd failure. Now, an application can arrange e.g.,
11654 to perform a longjump in that case.
11655 * lib/openat.c: Include dirname.h.
11656 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
11657 (rpl_openat, fdopendir, fstatat): Call openat_save_die
11658 and openat_restore_die rather than calling error directly.
11659 Don't include "error.h" or "exitfail.h"; they're no longer needed.
11661 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
11662 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
11665 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
11666 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
11667 int utc, int nanoseconds);
11669 date should not have to allocate a megabyte of virtual memory to
11670 handle a format argument like +%1048575T. When implemented with
11671 strftime, it must allocate such a buffer, use strftime to fill it
11672 in, print it, then free it.
11673 With fprintftime, it simply prints everything and exits.
11674 With no need for memory allocation, that's one fewer way to fail.
11675 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
11676 optional field width, not before, so we accept %9:z, not %:9z.
11677 (my_strftime): Be sure to use L_('x') for literals.
11679 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
11680 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
11681 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
11682 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
11683 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
11684 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
11685 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
11686 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
11687 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
11688 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
11689 * lib/xgethostname.c, lib/xreadlink.c:
11690 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
11692 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
11693 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
11694 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
11695 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
11696 and don't include <sys/file.h>).
11698 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
11700 Sync from coreutils.
11702 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
11703 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
11704 [!LDAV_DONE]: Avoid unused variable warning.
11706 2005-09-21 Bruno Haible <bruno@clisp.org>
11708 * lib/unicodeio.h (unicode_to_mb): New declaration.
11710 2005-09-20 Derek Price <derek@ximbiot.com>
11712 * lib/getaddrinfo.c: Don't include <netdb.h> included from
11715 2005-09-20 Bruno Haible <bruno@clisp.org>
11717 * gnulib-tool: Remove trailing slashes from the values specified for
11718 --source-base, --m4-base, --tests-base, --aux-dir.
11719 Suggested by Simon Josefsson <jas@extundo.com>.
11721 2005-09-20 Bruno Haible <bruno@clisp.org>
11723 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
11724 func_modules_to_filelist, func_import, func_create_testdir): Make all
11725 sorting results locale-independent, so that gnulib-cache.m4 doesn't
11726 change when gnulib-tool is invoked in a different locale.
11728 2005-09-19 Simon Josefsson <jas@extundo.com>
11730 * m4/socklen.m4: Fix typo.
11732 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11734 Use a consistent style for including <config.h>.
11735 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
11736 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
11737 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
11738 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
11739 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
11740 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
11741 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
11742 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
11743 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
11744 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
11745 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
11746 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
11747 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
11748 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
11749 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
11750 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
11751 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
11752 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
11753 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
11754 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
11755 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
11756 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
11757 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
11758 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
11759 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
11760 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
11761 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
11762 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
11763 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
11764 lib/xstrtoumax.c, lib/yesno.c:
11765 Standardize inclusion of config.h.
11766 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
11767 lib/inttostr.h: Removed inclusion of config.h from header files.
11768 * lib/inttostr.c: Adjusted in-tree users.
11769 * lib/timespec.h: Remove superfluous warning to include config.h.
11770 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
11771 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
11772 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
11773 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
11774 config.h with HAVE_CONFIG_H.
11776 2005-09-19 Jim Meyering <jim@meyering.net>
11778 * modules/pathmax (License): Change to LGPL.
11780 2005-09-19 Derek Price <derek@ximbiot.com>
11782 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
11784 2005-09-19 Bruno Haible <bruno@clisp.org>
11786 * gnulib-tool (import): Provide default for --tests-base.
11788 2005-09-19 Bruno Haible <bruno@clisp.org>
11790 * doc/quote.texi: New file, extracted from gnulib.texi.
11791 * doc/ctime.texi: New file, extracted from gnulib.texi.
11792 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
11793 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
11794 * doc/gnulib.texi: Include them.
11796 2005-09-18 Bruno Haible <bruno@clisp.org>
11799 * gnulib-tool (func_readlink): New function.
11800 (func_ln_if_changed): Use it.
11802 2005-09-18 Bruno Haible <bruno@clisp.org>
11804 * gnulib-tool: Support --with-tests also with --import.
11805 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
11806 (func_import): Use variables $testsbase and $inctests. Emit a
11807 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
11808 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
11809 SUBDIRS += $testsdir.
11810 (func_create_testdir): Update.
11812 2005-09-18 Bruno Haible <bruno@clisp.org>
11814 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
11815 instead of $dry_run.
11816 (func_cp_if_changed, func_mv_if_changed): Remove functions.
11817 (func_ln_if_changed): Don't handle dry-run here.
11818 (func_import): In dry-run mode, detect more precisely which actions
11819 would be performed, and don't use "...ing" verbs.
11821 2005-09-18 Bruno Haible <bruno@clisp.org>
11823 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
11824 (func_import): Use join on two temporary files instead of three nested
11825 loops, in order to determine which files are new or old.
11827 2005-09-18 Bruno Haible <bruno@clisp.org>
11829 * gnulib-tool (func_import): Comment out code that spits out the
11830 new files with --dry-run.
11832 2005-09-18 Bruno Haible <bruno@clisp.org>
11834 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
11836 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
11838 * lib/stat-time.h: New file.
11839 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
11840 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
11841 in a different way.
11842 (timespec_cmp): New function.
11843 * lib/utimecmp.c: Include stat-time.h.
11844 (SYSCALL_RESOLUTION): Depend on whether various struct stat
11845 members exist, not on the obsolescent ST_MTIM_NSEC.
11846 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
11848 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
11850 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
11852 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
11854 * MODULES.html.sh (File system functions): Add stat-time.
11855 * modules/stat-time: New file.
11856 * modules/timespec (Files): Remove m4/st_mtim.m4; this
11857 is now done in a different way, by the stat-time module.
11858 * modules/utimecmp (Depends-on): Add stat-time.
11860 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
11862 * m4/st_mtim.m4: Remove. Superseded by...
11863 * m4/stat-time.m4: New file.
11864 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
11865 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
11867 2005-09-15 Derek Price <derek@ximbiot.com>
11869 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
11871 2005-09-15 Derek Price <derek@ximbiot.com>
11873 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
11874 * lib/regex_internal.c: Ditto, using this...
11875 (__GNUC_PREREQ): ...new macro.
11876 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
11878 (__GNUC_PREREQ): ...this new macro.
11880 * lib/strstr.h: Include string.h. Define strstr as a macro here.
11882 2005-09-15 Derek Price <derek@ximbiot.com>
11883 Paul Eggert <eggert@cs.ucla.edu>
11885 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
11886 changes, consolidating in...
11887 * lib/regex_internal.h: ...this file.
11889 2005-09-13 Jim Meyering <jim@meyering.net>
11891 * lib/canon-host.c: Filter through gnu indent and reword comments
11893 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
11895 2005-09-13 Derek Price <derek@ximbiot.com>
11897 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
11899 Reported by Jim Meyering <jim@meyering.net>.
11901 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
11903 * lib/base64.c: Typo.
11904 (base64_encode): Put b64str in initialized data section.
11906 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
11908 Merge glibc and coreutils changes into gnulib, plus a few
11910 * lib/md5.c: Use #error rather than a string.
11911 (CYCLIC): New macro, from glibc source. Use it instead of rol.
11912 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
11913 (__attribute__): Define to empty for non recent-GCC.
11914 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
11915 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
11916 Renamed from their non-__ counterparts, with new macros replacing
11917 them if not _LIBC. Add __THROW attribute.
11919 (struct md5_ctx): Align buffer if using GCC.
11920 * lib/sha1.h (struct sha1_ctx): Likewise.
11921 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
11922 The old name was backwards.
11923 (NOTSWAP): Remove; not used.
11924 (rol): New macro, moved here from md5.h.
11925 (sha1_process_block): Remove a FIXME that doesn't make sense.
11927 2005-09-12 Derek Price <derek@ximbiot.com>
11929 Return usable errors from canon-host.
11930 * lib/canon-host.h: New file.
11931 * lib/canon-host.c (canon_host): Wrap...
11932 (canon_host_r): ...this new function, which now relies exclusively on
11934 (ch_strerror): New function.
11935 (last_cherror): New global.
11936 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
11938 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
11940 (freeaddrinfo): Free ai->ai_canonname when set.
11942 2005-09-12 Derek Price <derek@ximbiot.com>
11944 Make canon-host require getaddrinfo.
11945 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
11946 AC_LIBSOURCE canon-host.h. Call...
11947 (gl_PREREQ_CANON_HOST): ...this new function, which requires
11949 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
11951 2005-09-12 Derek Price <derek@ximbiot.com>
11953 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
11955 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
11957 2005-09-12 Derek Price <derek@ximbiot.com>
11959 * lib/gai_strerror.c: Include config.h when available. Include
11960 getaddrinfo.h before other headers to test interface.
11961 Reported by Larry Jones <lawrence.jones@ugs.com>.
11963 2005-09-12 Derek Price <derek@ximbiot.com>
11964 Paul Eggert <eggert@cs.ucla.edu>
11966 * modules/glob (Files): Add glob-libc.h.
11968 2005-09-12 Derek Price <derek@ximbiot.com>
11969 Paul Eggert <eggert@cs.ucla.edu>
11971 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
11972 glob_.h, glob-libc.h.
11973 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
11975 2005-09-12 Derek Price <derek@ximbiot.com>
11976 Paul Eggert <eggert@cs.ucla.edu>
11978 * lib/glob-libc.h: Renamed from glob_.h. The new version is
11979 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
11980 protecting things that should be done only in gnulib contexts.
11981 * lib/glob_.h: New file, containing only the glob things needed for
11983 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
11984 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
11985 (glob, globfree, glob_pattern_p): Now defined simply in terms of
11986 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
11987 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
11988 and to respect the namespace rules better.
11990 2005-09-08 Simon Josefsson <jas@extundo.com>
11992 * modules/socklen: New file.
11994 2005-09-08 Simon Josefsson <jas@extundo.com>
11996 * m4/socklen.m4: New file.
11998 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
12000 * modules/utimens (Files): Add m4/utimbuf.m4, since
12001 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
12002 Reported by Sergey Poznyakoff.
12004 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
12006 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
12007 definitions, since that's the preferred style in glibc.
12008 Fix a minor spacing issue, and update copyright notice to match
12011 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
12013 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
12015 2005-09-06 Simon Josefsson <jas@extundo.com>
12017 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
12018 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
12020 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
12022 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
12025 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
12027 * config/srclist.txt: Add glibc bug 1302.
12029 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
12031 Change bitset word type from unsigned int to unsigned long int,
12032 as this has better performance on typical 64-bit hosts.
12033 Port bitset code to hosts with unusual word sizes.
12034 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
12035 (build_collating_symbol):
12036 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
12037 argument is a bitset. This is merely a style issue, but it makes
12038 it clearer that an entire array is expected.
12039 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
12040 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
12041 Port to the case where bitset_word is not the same as unsigned int.
12042 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
12043 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
12045 * lib/regexec.c (check_dst_limits_calc_pos_1,
12046 check_subexp_matching_top):
12047 (build_trtable, group_nodes_into_DFAstates):
12049 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
12050 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
12051 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
12052 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
12053 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
12054 * lib/regcomp.c (optimize_subexps, lower_subexp):
12055 Work even if bitset_word has holes in its bitwise representation.
12056 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
12057 * lib/regexec.c (check_dst_limits_calc_pos_1,
12058 check_subexp_matching_top):
12060 * lib/regex_internal.c (re_string_reconstruct):
12061 Don't assume UCHAR_MAX == 255.
12062 * lib/regex_internal.h (bitset_set_all): Likewise.
12063 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
12065 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
12066 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
12068 (BITSET_WORD_MAX): New macro.
12069 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
12070 (bitset_set_all, bitset_copy): Now inline functions, not macros.
12071 (bitset_empty, bitset_copy):
12072 Prefer sizeof (bitset) to multiplying it out ourselves.
12073 (bitset_not_merge): Remove; unused.
12074 (bitset_contain): Return bool, not unsigned int with one bit on.
12075 All callers changed.
12076 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
12077 alignment than re_node_set; do this by defining a new internal
12078 type struct dests_alloc and using it to allocate memory.
12080 2005-09-05 Bruno Haible <bruno@clisp.org>
12082 * gnulib-tool (func_import): Fix comparison in handling of symbolic
12085 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
12087 * modules/size_max (Makefile.am): Add size_max.h
12089 2005-09-04 Derek Price <derek@ximbiot.com>
12091 * gnulib-tool (func_import): Fix reversed $symbolic logic.
12093 2005-09-03 Simon Josefsson <jas@extundo.com>
12095 * gnulib-tool: Fix typo.
12097 2005-09-03 Simon Josefsson <jas@extundo.com>
12099 * config/srclist.txt: Add glibc bug 1293.
12101 2005-09-03 Derek Price <derek@ximbiot.com>
12103 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
12104 From Larry Jones <lawrence.jones@ugs.com>.
12106 2005-09-02 Simon Josefsson <jas@extundo.com>
12108 * modules/socklen: New file.
12110 2005-09-02 Simon Josefsson <jas@extundo.com>
12112 * modules/havelib: New module.
12114 * modules/gettext, modules/iconv, modules/lock, modules/readline:
12117 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
12119 Check for arithmetic overflow when calculating sizes, to prevent
12120 some buffer-overflow issues. These patches are conservative, in the
12121 sense that when I couldn't determine whether an overflow was possible,
12122 I inserted a run-time check.
12123 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
12125 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
12126 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
12127 (re_xnrealloc, re_x2nrealloc): New inline functions.
12128 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
12129 parse_bracket_exp):
12130 (build_equiv_class, build_charclass): Check for arithmetic overflow
12131 in size expression calculations.
12132 * lib/regex_internal.c (re_string_realloc_buffers):
12133 (build_wcs_upper_buffer, re_node_set_add_intersect):
12134 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
12135 (re_dfa_add_node, register_state): Likewise.
12136 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
12137 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
12138 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
12139 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
12141 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
12143 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
12144 m4/ulonglong.m4. Problem reported by Martin Lambers.
12146 2005-09-02 Bruno Haible <bruno@clisp.org>
12148 Support for lib vs. lib64 distinction on biarch platforms.
12149 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
12150 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
12151 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
12153 2005-09-02 Bruno Haible <bruno@clisp.org>
12155 * gnulib-tool (import): In the other first-use case, provide defaults
12158 2005-09-02 Bruno Haible <bruno@clisp.org>
12160 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
12161 patches not yet found in the latest gettext release.
12163 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
12165 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
12166 to avoid a collision with bits/local_lim.h in glibc.
12167 All uses changed. Problem reported by Dmitry V. Levin in
12168 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
12170 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
12171 bugs in int versus size_t comparisons.
12172 (re_string_context_at): Fix bug where the code assumed that
12175 Use bool where appropriate.
12176 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
12177 All callers changed.
12178 (calc_eclosure_iter): Likewise, for ROOT arg.
12179 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
12180 (build_charclass_op): Likewise, for NON_MATCH arg.
12181 * lib/regex_internal.c (re_string_allocate, re_string_construct):
12182 (re_string_construct_common): Likewise, for ICASE arg.
12183 * lib/regexec.c (re_search_2_stub, re_search_stub):
12184 Likewise, for RET_LEN arg.
12185 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
12186 (set_regs): Likewise, for FL_BACKTRACK arg.
12187 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
12188 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
12189 (calc_eclosure_iter, parse_bracket_exp):
12190 Use bool for internal variables that are booleans.
12191 * lib/regexec.c (re_search_internal, check_matching,
12192 proceed_next_node):
12193 (set_regs, build_sifted_states, sift_states_bkref):
12194 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
12195 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
12196 (find_collation_sequence_value):
12198 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
12199 (re_node_set_compare):
12200 Return bool, not int. All callers changed.
12201 * lib/regexec.c (check_halt_node_context, check_dst_limits):
12202 (build_trtable, check_node_accept): Likewise.
12203 * lib/regex_internal.h: Include stdbool.h.
12205 Fix bugs uncovered when converting to bool.
12206 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
12207 failure instead of charging ahead blindly.
12208 * lib/regex_internal.c (register_state): Likewise.
12209 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
12210 for freeing internal storage.
12211 (group_nodes_into_DFA_states): Use unsigned int, not int, for
12212 bitset pieces used as boolean, to avoid undefined behavior
12213 on hosts that do int overflow checking.
12215 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
12217 * config/srclist.txt: Add glibc bugs 1285-1287.
12219 2005-09-01 Jim Meyering <jim@meyering.net>
12221 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
12222 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
12223 Require gl_STAT_MACROS, too.
12225 2005-09-01 Bruno Haible <bruno@clisp.org>
12227 * gnulib-tool (import): In the first-use case, provide defaults.
12229 2005-09-01 Bruno Haible <bruno@clisp.org>
12231 * gnulib-tool (func_import): Remove the .tmp files.
12233 2005-09-01 Bruno Haible <bruno@clisp.org>
12235 * gnulib-tool (func_import): Fix handling of symbolic links.
12237 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
12239 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
12240 old glibc regex code mishandles strings longer than 2**31 bytes.
12241 This patch fixes this when the regex code is used in gnulib
12242 (i.e., outside glibc).
12244 This patch should not affect the use of the regex code inside
12245 glibc. No doubt this problem also needs to be handled for glibc
12246 as well, but the result will be an incompatible change to the
12247 glibc ABI, and the old ABI will have to be supported too. That
12248 can be the the subject for another patch.
12250 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
12251 governing whether the rest of this patch is active. By default,
12252 the macro is disabled and the patch has no effect.
12253 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
12254 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
12255 (struct re_pattern_buffer, re_search, re_search_2, re_match):
12256 (re_match_2, re_set_registers): Use the new types.
12257 * lib/regex_internal.h (Idx, re_hashval_t): New types.
12258 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
12260 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
12261 (re_string_context_at, bin_tree_t, re_dfastate_t):
12262 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
12263 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
12264 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
12265 (re_string_char_size_at, re_string_wchar_at):
12266 (re_string_elem_size_at):
12267 Use the new types and macros to port to 64-bit hosts.
12268 Use unsigned types for internal values, so that the code
12269 mostly works even for arrays larger than SSIZE_MAX.
12270 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
12271 (search_duplicated_node, calc_eclosure_iter, fetch_number):
12272 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
12273 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
12274 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
12275 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
12276 (calc_inveclosure, parse_dup_op, build_range_exp):
12277 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
12278 (fetch_number, create_token_tree, mark_opt_subexp):
12280 * lib/regex_internal.c (re_string_construct_common,
12281 create_ci_newstate):
12282 (create_cd_newstate, re_string_allocate, re_string_construct):
12283 (re_string_realloc_buffers, build_wcs_upper_buffer):
12284 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
12285 (re_string_reconstruct, re_string_peek_byte_case):
12286 (re_string_fetch_byte_case, re_string_context_at):
12287 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
12288 (re_node_set_init_copy, re_node_set_add_intersect):
12289 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
12290 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
12291 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
12292 (re_acquire_state, re_acquire_state_context, register_state):
12294 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
12295 search_cur_bkref_entry):
12296 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
12297 (re_search_internal, re_search_2_stub, re_search_stub)
12298 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
12299 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
12300 (update_cur_sifted_state, check_dst_limits):
12301 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
12302 (check_subexp_limits, sift_states_bkref, merge_state_array):
12303 (check_subexp_matching_top, get_subexp, get_subexp_sub):
12304 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
12305 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
12306 (expand_bkref_cache, check_node_accept_bytes):
12307 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
12308 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
12309 (acquire_init_state_context, check_halt_node_context):
12310 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
12311 (sift_states_backward, clean_state_log_if_needed):
12312 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
12313 (find_recover_state, transit_state_sb, transit_state_mb):
12314 (transit_state_bkref, build_trtable, match_ctx_clean):
12316 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
12317 to work around an assumption that REG_MISSING is negative.
12319 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
12320 (seek_collating_symbol_entry) [defined _LIBC]:
12321 (lookup_collation_sequence_value) [defined _LIBC]:
12322 (build_range_exp, build_collating_symbol) [defined _LIBC]:
12323 Use prototypes rather than old-style function definitions.
12324 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
12325 (transit_state_sb) [0]:
12326 (find_collation_sequence_value) [defined _LIBC]: Likewise.
12328 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
12331 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
12332 (optimize_subexps, lower_subexp):
12333 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
12334 since the signed shift might overflow. Use 1u<<31 instead.
12335 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
12337 * lib/regexec.c (check_dst_limits_calc_pos_1,
12338 check_subexp_matching_top): Likewise.
12340 * lib/regcomp.c (optimize_subexps, lower_subexp):
12341 Use CHAR_BIT rather than 8, for clarity.
12342 * lib/regexec.c (check_dst_limits_calc_pos_1):
12343 (check_subexp_matching_top): Likewise.
12344 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
12345 have to worry about portability issues when shifting it left.
12346 Remove no-longer-needed test for table_size > 0.
12347 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
12348 in a word, as the resulting behavior is undefined.
12349 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
12350 in one case, a <= should have been an <, and in another case the
12351 whole test was missing.
12352 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
12353 the standard name CHAR_BIT.
12354 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
12355 this is not true on one's complement and signed-magnitude hosts.
12357 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
12359 (struct re_dfa_t): Remove unused member states_alloc.
12360 * lib/regcomp.c (init_dfa): Don't initialize unused members.
12362 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
12364 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
12365 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
12366 and large-file glibc and in 32-bit large-file Solaris.
12368 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
12370 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
12371 lengths fit in regoff_t; this isn't true if regoff_t is the same
12373 * lib/regex.c (re_search_internal): 5th arg is LAST_START
12374 (= START + RANGE) instead of RANGE. This avoids overflow
12375 problems when regoff_t is the same width as size_t.
12376 All callers changed.
12377 (re_search_2_stub): Check for overflow when adding the
12378 sizes of the two strings.
12379 (re_search_stub): Check for overflow when adding START
12380 to RANGE; if it occurs, substitute the extreme value.
12382 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
12384 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
12386 2005-08-31 Jim Meyering <jim@meyering.net>
12388 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
12389 a pointer-to-const.
12390 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
12391 (register_state): Likewise.
12392 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
12393 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
12394 (group_nodes_into_DFAstates): Likewise.
12396 2005-08-31 Jim Meyering <jim@meyering.net>
12398 * check-module: Add a FIXME comment.
12400 2005-08-31 Eric Blake <ebb9@byu.net>
12402 * modules/unistd-safer (Files): Add unistd--.h.
12403 * modules/stdio-safer (Files): Add stdio--.h.
12405 2005-08-31 Derek Price <derek@ximbiot.com>
12407 * lib/getdelim.c (getdelim): Return EOF on EOF.
12408 Reported by Larry Jones <lawrence.jones@ugs.com>.
12410 2005-08-31 Bruno Haible <bruno@clisp.org>
12412 Avoid unnecessary diffs in the generated lib/Makefile.am.
12413 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
12414 the generated files.
12415 (func_import): Don't set cmd.
12417 2005-08-31 Bruno Haible <bruno@clisp.org>
12419 * lib/strstr.c: Include <stddef.h>, for NULL.
12420 * lib/strcasestr.c: Likewise.
12421 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
12423 2005-08-31 Bruno Haible <bruno@clisp.org>
12425 * gnulib-tool: New option --macro-prefix.
12426 (func_import): Use macro_prefix.
12427 (import): Handle option --macro-prefix.
12429 2005-08-31 Bruno Haible <bruno@clisp.org>
12431 * gnulib-tool (import): Rename most ac_* variables to cached_*.
12432 Also use new variables cached_lgpl, cached_libtool.
12434 2005-08-31 Bruno Haible <bruno@clisp.org>
12436 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
12437 always instantiating them.
12439 2005-08-31 Bruno Haible <bruno@clisp.org>
12441 * gnulib-tool (func_import): Read the previous cached settings
12442 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
12443 earlier added by gnulib but are now dropped. Warn when a gnulib file
12444 overwrites a non-gnulib file.
12446 2005-08-31 Bruno Haible <bruno@clisp.org>
12448 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
12449 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
12450 projects that don't keep autogenerated files in CVS. Put into
12451 actioncmd only the specified modules, not the transitive closure.
12453 2005-08-31 Bruno Haible <bruno@clisp.org>
12455 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
12456 Create directories that shall be filled.
12457 (import): Don't look for gl_* macros in configure.ac. Recurse across
12458 all directories containing a gnulib-cache.m4 files, if meaningful.
12460 2005-08-31 Bruno Haible <bruno@clisp.org>
12462 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
12463 (import): Set seen_libtool when we see gl_LIBTOOL.
12465 2005-08-31 Bruno Haible <bruno@clisp.org>
12467 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
12468 declaration macro definitions from generated gnulib.m4.
12470 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
12472 * lib/iconvme.h: Add prototype for iconv_alloc.
12474 2005-08-29 Simon Josefsson <jas@extundo.com>
12476 * lib/iconvme.c: Fix errno.
12478 2005-08-29 Bruno Haible <bruno@clisp.org>
12480 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
12481 that it works when the directory contains spaces.
12483 2005-08-29 Bruno Haible <bruno@clisp.org>
12485 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
12487 2005-08-29 Bruno Haible <bruno@clisp.org>
12489 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
12492 2005-08-29 Bruno Haible <bruno@clisp.org>
12493 and Stepan Kasal <kasal@ucw.cz>
12495 * check-module: If more parameters are given, check each of them
12496 separately; add more exceptions, as noted by Jim Meyering.
12497 (check_module): New procedure.
12498 (%exempt_header): Now contains all exceptions.
12500 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
12502 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
12504 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
12506 * lib/iconvme.c: Split iconv_string into iconv_alloc.
12508 2005-08-28 Bruno Haible <bruno@clisp.org>
12510 * m4/gnulib-tool.m4: New file.
12512 2005-08-27 Jim Meyering <jim@meyering.net>
12514 * modules/unistd-safer (Files): Add pipe-safer.c.
12515 * modules/fcntl-safer (Files): Add creat-safer.c.
12517 2005-08-27 Jim Meyering <jim@meyering.net>
12519 * m4/stdlib-safer.m4: New file. From coreutils.
12520 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
12521 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
12522 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
12523 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
12524 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
12526 2005-08-27 Jim Meyering <jim@meyering.net>
12528 * lib/fopen-safer.c: Merge minor changes from coreutils.
12529 * lib/dup-safer.c: Likewise.
12530 * lib/fd-safer.c: Likewise.
12532 Merge from coreutils.
12533 * lib/stdio--.h: New file.
12534 * lib/stdlib--.h: New file.
12535 * lib/mkstemp-safer.c: New file.
12537 GNU tar needs these.
12538 * lib/pipe-safer.c: New file.
12539 * lib/creat-safer.c: New file.
12540 * lib/fcntl--.h (creat): Define to creat_safer.
12541 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
12542 * lib/unistd--.h (pipe): Define to pipe_safer.
12543 * lib/unistd-safer.h: Declare pipe_safer.
12545 2005-08-26 Simon Josefsson <jas@extundo.com>
12547 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
12548 Haible <bruno@clisp.org>.
12550 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
12552 * lib/regex_internal.h: Remove all references to
12553 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
12555 (bitset_not, bitset_merge, bitset_not_merge):
12556 (bitset_mask, re_string_allocate, re_string_construct):
12557 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
12558 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
12559 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
12560 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
12561 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
12562 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
12563 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
12564 (re_acquire_state_context):
12565 Remove unnecessary forward decls.
12566 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
12567 Put __attribute at function definition,
12568 now that the function decl has been removed.
12569 * lib/regex_internal.c (re_string_peek_byte_case):
12570 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
12573 2005-08-25 Stepan Kasal <kasal@ucw.cz>
12575 * m4/regex.m4: Add AC_PREREQ(2.50).
12576 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
12578 2005-08-25 Simon Josefsson <jas@extundo.com>
12580 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
12583 2005-08-25 Simon Josefsson <jas@extundo.com>
12585 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
12586 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
12587 GLIBC specific code.
12589 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
12591 Make regex safe for g++. This fixes one real bug (an "err"
12592 that should have been "*err"). g++ problem reported by
12594 * lib/regex_internal.h (re_calloc): New macro, consistent with
12595 re_malloc etc. All callers of calloc changed to use re_calloc.
12596 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
12597 not int. All callers changed.
12598 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
12599 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
12600 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
12601 (find_recover_state): Change "err" to "*err"; this fixes what
12602 appears to be a real bug.
12603 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
12606 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
12608 * modules/regex (Depends-on): Add malloc, since the code
12609 assumes that !malloc(0) means failure.
12611 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
12613 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
12615 alloca modernization/simplification for regex.
12616 * lib/regex.c: Remove portability cruft for alloca. This no longer
12617 needs to be at the start of the file, and can be moved into
12618 regex_internal.h and simplified.
12619 * lib/regex_internal.h: Include <alloca.h>.
12620 (__libc_use_alloca) [!defined _LIBC]: New macro.
12621 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
12622 now works outside glibc.
12624 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
12626 * config/srclist.txt: Add glibc bugs 1241, 1245.
12628 2005-08-25 Jim Meyering <jim@meyering.net>
12630 * lib/open-safer.c: Include <config.h>.
12631 Otherwise, we'd lose LARGEFILE support in any file using
12634 2005-08-25 Bruno Haible <bruno@clisp.org>
12636 * m4/minmax.m4: Require autoconf 2.52.
12637 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
12638 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
12639 alternatives of translit over the alphabet.
12640 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
12642 2005-08-24 Simon Josefsson <jas@extundo.com>
12644 * tests/test-getpass.c: New file.
12646 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
12648 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
12649 for GNU regex features.
12651 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
12653 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
12654 * lib/regex.h (regerror): Likewise.
12656 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
12657 requires this. (The code never needed it.)
12659 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
12660 All uses of recently-renamed identifiers changed to use the new,
12661 POSIX-compliant names. The code will build and run just fine
12662 without these changes, but it's better to eat our own dog food
12663 and use the standard-conforming names.
12665 * lib/regex.h: Fix a multitude of POSIX name space violations.
12666 These changes have an effect only for programs that define
12667 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
12668 do not change anything for programs compiled in the normal way.
12669 Also, there is no effect on the ABI.
12671 (_REGEX_SOURCE): New macro.
12672 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
12673 defined and _GNU_SOURCE is not; this fixes a name space violation.
12675 Rename the following macros to obey POSIX requirements.
12676 The old names are still visible as macros if _REGEX_SOURCE is defined.
12677 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
12678 RE_BACKSLASH_ESCAPE_IN_LISTS.
12679 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
12680 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
12681 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
12682 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
12683 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
12684 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
12685 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
12686 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
12687 (REG_INTERVALS): renamed from RE_INTERVALS.
12688 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
12689 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
12690 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
12691 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
12692 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
12693 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
12694 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
12695 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
12696 RE_UNMATCHED_RIGHT_PAREN_ORD.
12697 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
12698 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
12699 (REG_DEBUG): renamed from RE_DEBUG.
12700 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
12701 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
12702 unusual, since we can't clash with the POSIX REG_ICASE.
12703 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
12704 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
12705 (REG_NO_SUB): renamed from RE_NO_SUB.
12706 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
12707 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
12708 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
12709 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
12710 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
12711 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
12712 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
12713 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
12714 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
12715 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
12716 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
12717 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
12718 RE_SYNTAX_POSIX_MINIMAL_BASIC.
12719 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
12720 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
12721 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
12722 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
12723 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
12724 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
12725 (REG_FIXED): Renamed from REGS_FIXED.
12726 (REG_NREGS): Renamed from RE_NREGS.
12728 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
12729 of other REG_* macros, since POSIX says the user is allowed to
12730 #undef these macros selectively.
12732 (reg_errcode_t): Update comment stating what other tables need
12735 Rename the following enum values to obey POSIX requirements.
12736 The old names are still visible as macros.
12737 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
12738 is not defined, since GNU is supposed to be a superset of POSIX as
12739 much as possible, and since we want reg_errcode_t to be a signed
12740 type for implementation consistency.
12741 (_REG_NOERROR): Renamed from REG_NOERROR.
12742 (_REG_NOMATCH): Renamed from REG_NOMATCH.
12743 (_REG_BADPAT): Renamed from REG_BADPAT.
12744 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
12745 (_REG_ECTYPE): Renamed from REG_ECTYPE.
12746 (_REG_EESCAPE): Renamed from REG_EESCAPE.
12747 (_REG_ESUBREG): Renamed from REG_ESUBREG.
12748 (_REG_EBRACK): Renamed from REG_EBRACK.
12749 (_REG_EPAREN): Renamed from REG_EPAREN.
12750 (_REG_EBRACE): Renamed from REG_EBRACE.
12751 (_REG_BADBR): Renamed from REG_BADBR.
12752 (_REG_ERANGE): Renamed from REG_ERANGE.
12753 (_REG_ESPACE): Renamed from REG_ESPACE.
12754 (_REG_BADRPT): Renamed from REG_BADRPT.
12755 (_REG_EEND): Renamed from REG_EEND.
12756 (_REG_ESIZE): Renamed from REG_ESIZE.
12757 (_REG_ERPAREN): Renamed from REG_ERPAREN.
12758 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
12759 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
12760 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
12761 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
12763 (_REG_RE_NAME, _REG_RM_NAME): New macros.
12764 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
12765 changed. But support the old name if the new one is not defined
12766 and if _REGEX_SOURCE.
12768 Change the following member names in struct re_pattern_buffer.
12769 The old names are still supported if !_REGEX_SOURCE.
12770 The new names are always supported, regardless of _REGEX_SOURCE.
12771 (re_buffer): Renamed from buffer.
12772 (re_allocated): Renamed from allocated.
12773 (re_used): Renamed from used.
12774 (re_syntax): Renamed from syntax.
12775 (re_fastmap): Renamed from fastmap.
12776 (re_translate): Renamed from translate.
12777 (re_can_be_null): Renamed from can_be_null.
12778 (re_regs_allocated): Renamed from regs_allocated.
12779 (re_fastmap_accurate): Renamed from fastmap_accurate.
12780 (re_no_sub): Renamed from no_sub.
12781 (re_not_bol): Renamed from not_bol.
12782 (re_not_eol): Renamed from not_eol.
12783 (re_newline_anchor): Renamed from newline_anchor.
12785 Change the following member names in struct re_registers.
12786 The old names are still supported if !_REGEX_SOURCE.
12787 The new names are always supported, regardless of _REGEX_SOURCE.
12788 (rm_num_regs): Renamed from num_regs.
12789 (rm_start): Renamed from start.
12790 (rm_end): Renamed from end.
12792 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
12793 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
12794 Prepend __ to parameter names.
12796 Undo yesterday's changes.
12798 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
12800 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
12801 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
12804 2005-08-24 Jim Meyering <jim@meyering.net>
12806 Sync from coreutils.
12807 * m4/fcntl-safer.m4: New file.
12809 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
12810 and object files for this module.
12812 2005-08-24 Jim Meyering <jim@meyering.net>
12814 Sync from coreutils.
12815 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
12817 2005-08-24 Jim Meyering <jim@meyering.net>
12819 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
12820 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
12822 2005-08-24 Jim Meyering <jim@meyering.net>
12824 * modules/fcntl-safer: New module.
12825 * modules/fts (Depends-on): Add fcntl-safer.
12826 * MODULES.html.sh (File descriptor based Input/Output):
12829 2005-08-24 Bruno Haible <bruno@clisp.org>
12831 Support for unit test modules.
12832 * modules/README: Mention tests modules.
12833 * modules/TEMPLATE-TESTS: New file.
12834 * gnulib-tool: New options --extract-tests-module, --with-tests and
12835 --tests-base (unused for the moment).
12836 (testsbase, inctests): New variables.
12837 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
12838 (func_verify_module): Exclude TEMPLATE-TESTS.
12839 (func_verify_nontests_module, func_verify_tests_module): New functions.
12840 (func_get_dependencies): Add implicit dependency for tests modules.
12841 (func_get_tests_module): New function.
12842 (func_modules_transitive_closure): When --with-tests was specified,
12843 include the unit tests as well, unless explicitly avoided.
12844 (func_emit_lib_Makefile_am): Ignore the tests modules here.
12845 (func_emit_tests_Makefile_am): New function.
12846 (func_create_testdir): When --with-tests was specified, emit a
12848 * MODULES.html.sh (Future developments): Update.
12850 2005-08-24 Bruno Haible <bruno@clisp.org>
12852 * modules/tls-tests: New file.
12853 * tests/test-tls.c: New file, from GNU gettext.
12855 2005-08-24 Bruno Haible <bruno@clisp.org>
12857 * modules/lock-tests: New file.
12858 * tests/test-lock.c: New file, from GNU gettext.
12860 2005-08-24 Bruno Haible <bruno@clisp.org>
12862 * lib/lock.h: Add multiple inclusion guard.
12863 * lib/tls.h: Add multiple inclusion guard.
12865 2005-08-24 Bruno Haible <bruno@clisp.org>
12867 * gnulib-tool: Add support for the --aux-dir option to
12868 --create-testdir, --create-megatestdir, --test, --megatest.
12869 (func_create_testdir, func_create_megatestdir): Optionally emit a
12870 AC_CONFIG_AUX_DIR directive.
12871 (create-testdir, create-megatestdir, test, megatest): Provide a
12872 default value for $auxdir.
12874 2005-08-24 Bruno Haible <bruno@clisp.org>
12876 * gnulib-tool (import): Use compound statement instead of subshell
12879 2005-08-24 Bruno Haible <bruno@clisp.org>
12881 * gnulib-tool (import): Change --aux-dir default to "build-aux".
12883 2005-08-24 Bruno Haible <bruno@clisp.org>
12885 * gnulib-tool (func_version): Update.
12887 2005-08-24 Bruno Haible <bruno@clisp.org>
12889 * gnulib-tool (func_import, func_create_testdir,
12890 func_create_megatestdir): Quote all autoconf macro arguments.
12892 2005-08-24 Bruno Haible <bruno@clisp.org>
12894 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
12895 option --force, because --force causes the aclocal.m4 of each
12896 subdirectory to be newer than the corresponding config.h.in.
12898 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
12900 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
12901 All contents moved to gl_REGEX.
12902 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
12903 assume that it does.
12905 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
12907 * lib/regex.h (REG_NOSYS)
12908 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
12909 Define, since POSIX requires it as of 2001.
12911 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
12912 New private symbol, used to keep the enum signed in all cases.
12913 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
12915 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
12917 * lib/regex_internal.c (re_string_skip_chars, register_state):
12919 Remove forward decls; no longer needed now that we use prototypes.
12920 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
12921 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
12922 (clean_state_log_if_needed): Likewise.
12924 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
12926 * config/srclist.txt: Add glibc bugs 1231-1233.
12928 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
12930 Fix problems reported by Sam Steingold in
12931 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
12932 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
12933 assumed that reg_errcode_t is a signed type, which is not
12934 necessarily true if _XOPEN_SOURCE is not defined.
12935 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
12936 since some compilers warn about it otherwise.
12938 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
12940 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
12941 (init_word_char, create_initial_state, duplicate_node_closure):
12942 (fetch_token, peek_token_bracket, build_range_exp):
12943 (build_collating_symbol): Remove forward decls; no longer needed
12944 now that we use prototypes.
12947 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
12948 (re_compile_fastmap_iter, regcomp, regerror, regfree):
12949 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
12950 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
12951 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
12952 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
12953 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
12954 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
12955 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
12956 (build_range_exp, build_collating_symbol, parse_bracket_exp):
12957 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
12958 (build_charclass, build_charclass_op, fetch_number, create_tree):
12959 (create_token_tree, mark_opt_subexp, duplicate_tree):
12960 Use prototypes rather than old-style definitions.
12962 * lib/regex_internal.c:
12963 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
12964 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
12965 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
12966 (re_string_reconstruct, re_string_peek_byte_case):
12967 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
12968 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
12969 (re_node_set_init_copy, re_node_set_add_intersect):
12970 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
12971 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
12972 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
12973 (re_acquire_state, re_acquire_state_context, register_state):
12974 (create_ci_newstate, create_cd_newstate, free_state):
12976 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
12978 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
12979 (re_search_internal, prune_impossible_nodes):
12980 (acquire_init_state_context, check_matching, static):
12981 (check_halt_node_context, check_halt_state_context, proceed_next_node):
12982 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
12983 (update_regs, sift_states_backward, build_sifted_states):
12984 (clean_state_log_if_needed, merge_state_array):
12985 (update_cur_sifted_state, add_epsilon_src_nodes):
12986 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
12987 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
12988 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
12989 (find_recover_state, check_subexp_matching_top, transit_state_mb):
12990 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
12991 (check_arrival, check_arrival_add_next_nodes):
12992 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
12993 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
12994 (check_node_accept_bytes, check_node_accept, extend_buffers):
12995 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
12996 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
13000 * lib/regex_internal.h:
13001 (re_string_allocate, re_string_construct, re_string_reconstruct):
13002 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
13003 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
13004 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
13005 (re_string_context_at, re_string_peek_byte_case):
13006 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
13007 is defined, since we now use prototypes always.
13009 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
13010 C89 or better. All uses removed.
13012 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
13014 * config/srclist.txt: Add glibc bugs 1220-1227.
13016 2005-08-20 Jim Meyering <jim@meyering.net>
13018 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
13019 of unused local, dfa.
13021 2005-08-20 Bruno Haible <bruno@clisp.org>
13023 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
13025 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
13027 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
13028 (re_node_set_insert_last, re_dfa_add_node):
13029 Rename local variables to avoid GCC shadowing warnings.
13031 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
13033 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
13034 [defined lint]: Suppress bogus uninitialized-variable warnings.
13036 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
13037 and let the caller return REG_ESPACE if out of space. This
13038 removes an uninitialied-variable warning with GCC 4.0.1, and also
13039 avoids taking the address of a local variable. All callers
13042 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
13044 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
13045 $LIBCSRC/posix/regexec.c.
13046 Add glibc bug 1217 for regcomp.c.
13048 2005-08-19 Jim Meyering <jim@meyering.net>
13050 * lib/regexec.c (proceed_next_node): Redo local variables to
13051 avoid GCC shadowing warnings.
13053 2005-08-18 Bruno Haible <bruno@clisp.org>
13055 * lib/strstr.c (strstr): Fix return value in multibyte case.
13056 * lib/strcasestr.c (strcasestr): Likewise.
13058 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
13060 * lib/regex.h: Remove useless space-before-tab. From coreutils.
13062 2005-08-17 Jim Meyering <jim@meyering.net>
13064 Make the %s format (seconds since the epoch) work for a negative
13065 number and when used with a zero-padded field width, e.g. %015s.
13067 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
13068 label so that it precedes the code to set `digits'. Otherwise,
13069 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
13070 print `00-22'. Now, it prints `-0022', as it should.
13072 2005-08-17 Bruno Haible <bruno@clisp.org>
13074 * modules/strstr (Files): Add m4/mbrtowc.m4.
13075 (Depends-on): Add mbuiter.
13077 2005-08-17 Bruno Haible <bruno@clisp.org>
13079 * modules/strcasestr: New file.
13080 * MODULES.html.sh (String handling, based on ANSI C 89): Add
13083 2005-08-17 Bruno Haible <bruno@clisp.org>
13085 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
13087 2005-08-17 Bruno Haible <bruno@clisp.org>
13089 * modules/mbuiter: New file.
13090 * MODULES.html.sh (Extended multibyte and wide character utilities):
13093 2005-08-17 Bruno Haible <bruno@clisp.org>
13095 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
13096 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
13098 2005-08-17 Bruno Haible <bruno@clisp.org>
13100 * m4/strcasestr.m4: New file.
13102 2005-08-17 Bruno Haible <bruno@clisp.org>
13104 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
13105 * lib/strstr.c: Completely rewritten, with multibyte locale support.
13107 2005-08-17 Bruno Haible <bruno@clisp.org>
13109 * lib/strcasestr.h: New file.
13110 * lib/strcasestr.c: New file.
13112 2005-08-17 Bruno Haible <bruno@clisp.org>
13114 * lib/strcasecmp.c: Use mbuiter.h.
13116 2005-08-17 Bruno Haible <bruno@clisp.org>
13118 * lib/mbuiter.h: New file.
13120 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
13122 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
13123 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
13124 and gl_GETOPT are both invoked via different paths (as happens
13125 with GNU tar CVS because it uses both argp and getopt), the former
13128 2005-08-16 Bruno Haible <bruno@clisp.org>
13130 * modules/tls: New file.
13131 * MODULES.html.sh (Multithreading): Add tls.
13133 2005-08-16 Bruno Haible <bruno@clisp.org>
13135 * modules/strnlen1: New file.
13136 * MODULES.html.sh (String handling): Add strnlen1.
13138 2005-08-16 Bruno Haible <bruno@clisp.org>
13140 * modules/strcase (Files): Add m4/mbrtowc.m4.
13141 (Depends-on): Add strnlen1, mbchar.
13143 2005-08-16 Bruno Haible <bruno@clisp.org>
13145 * modules/mbiter: New file.
13146 * MODULES.html.sh (Extended multibyte and wide character utilities):
13149 2005-08-16 Bruno Haible <bruno@clisp.org>
13151 * modules/mbfile: New file.
13152 * MODULES.html.sh (Extended multibyte and wide character utilities):
13155 2005-08-16 Bruno Haible <bruno@clisp.org>
13157 * modules/mbchar: New file.
13158 * MODULES.html.sh (Extended multibyte and wide character utilities):
13161 2005-08-16 Bruno Haible <bruno@clisp.org>
13163 * m4/tls.m4: New file, from GNU gettext.
13165 2005-08-16 Bruno Haible <bruno@clisp.org>
13167 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
13169 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
13171 2005-08-16 Bruno Haible <bruno@clisp.org>
13173 * m4/mbiter.m4: New file.
13175 2005-08-16 Bruno Haible <bruno@clisp.org>
13177 * m4/mbfile.m4: New file.
13179 2005-08-16 Bruno Haible <bruno@clisp.org>
13181 * m4/mbchar.m4: New file.
13183 2005-08-16 Bruno Haible <bruno@clisp.org>
13185 * lib/tls.h: New file, from GNU gettext.
13186 * lib/tls.c: New file, from GNU gettext.
13188 2005-08-16 Bruno Haible <bruno@clisp.org>
13190 * lib/strnlen1.h: New file.
13191 * lib/strnlen1.c: New file.
13193 2005-08-16 Bruno Haible <bruno@clisp.org>
13195 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
13196 (mbi_init): Update.
13197 (mbi_avail, mbi_advance): Let the iteration end before the terminating
13198 NUL byte, not after it.
13200 2005-08-16 Bruno Haible <bruno@clisp.org>
13202 * lib/strcase.h (strcasecmp): Add note in comments.
13203 * lib/strncasecmp.c: Use code from strcasecmp.c.
13204 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
13205 (strcasecmp): Work correctly in multibyte locales.
13207 2005-08-16 Bruno Haible <bruno@clisp.org>
13209 * lib/mbiter.h: New file.
13211 2005-08-16 Bruno Haible <bruno@clisp.org>
13213 * lib/mbfile.h: New file.
13215 2005-08-16 Bruno Haible <bruno@clisp.org>
13217 * lib/mbchar.h: New file.
13218 * lib/mbchar.c: New file.
13220 2005-08-16 Bruno Haible <bruno@clisp.org>
13222 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
13223 the valid ones. Makes the comparison operations transitive:
13224 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
13225 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
13227 2005-08-15 Simon Josefsson <jas@extundo.com>
13229 * modules/ssize_t (License): Change to 'unlimited'.
13231 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
13233 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
13235 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
13236 Add comments for each pending glibc patch.
13238 2005-08-15 Bruno Haible <bruno@clisp.org>
13240 * lib/regex.h (__restrict_arr): Don't define to __restrict if
13241 __cplusplus is defined.
13243 2005-08-14 Jim Meyering <jim@meyering.net>
13245 Sync from coreutils.
13247 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
13248 Use the hash-table-based cycle-detection code not just when
13249 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
13250 Reported by James Youngman in
13251 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
13252 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
13253 FTS_TIGHT_CYCLE_CHECK.
13254 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
13255 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
13257 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
13258 * lib/fts.c (fd_safer): Remove decl.
13259 Include fcntl--.h rather than unistd-safer.h
13260 (fts_safe_changedir): Don't call fd_safer; no longer needed
13261 now that we include fcntl--.h.
13263 2005-08-12 Simon Josefsson <jas@extundo.com>
13265 * modules/getndelim2: Use ssize_t module.
13266 * modules/getnline: Likewise.
13267 * modules/safe-read: Likewise.
13268 * modules/xreadlink: Likewise.
13270 * modules/ssize_t: New file.
13272 2005-08-12 Simon Josefsson <jas@extundo.com>
13274 * m4/readline.m4: Look for termcap, curses or ncurses if required.
13276 2005-08-12 Simon Josefsson <jas@extundo.com>
13278 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13281 2005-08-12 Simon Josefsson <jas@extundo.com>
13283 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
13284 readline, getdelim and check_version.
13285 (Support for systems lacking ISO C 99: Sizes of integer types):
13288 2005-08-12 Bruno Haible <bruno@clisp.org>
13290 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
13292 2005-08-11 Simon Josefsson <jas@extundo.com>
13294 * modules/readline: New file.
13296 * modules/strnlen (Files): Add strnlen.h.
13298 2005-08-11 Simon Josefsson <jas@extundo.com>
13300 * m4/readline.m4: New file.
13302 2005-08-11 Simon Josefsson <jas@extundo.com>
13304 * lib/readline.h, readline.c: New file.
13306 2005-08-11 Simon Josefsson <jas@extundo.com>
13308 * doc/gnulib.texi (Initial import, Finishing touches): Mention
13311 2005-08-11 Bruno Haible <bruno@clisp.org>
13313 * lib/strnlen.h (strnlen): Change parameter name to match comment.
13315 2005-08-10 Stepan Kasal <kasal@ucw.cz>
13317 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
13319 2005-08-10 Simon Josefsson <jas@extundo.com>
13321 * tests/test-iconvme.c: New file.
13323 2005-08-10 Simon Josefsson <jas@extundo.com>
13325 * m4/strnlen.m4: New file.
13327 * m4/strndup.m4: Don't check for strnlen declaration, done in
13330 2005-08-10 Simon Josefsson <jas@extundo.com>
13332 * lib/strndup.c: Use strnlen.h.
13334 * lib/strnlen.h: New file.
13336 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
13340 2005-08-02 Simon Josefsson <jas@extundo.com>
13342 * modules/readline: New file.
13344 2005-08-02 Simon Josefsson <jas@extundo.com>
13346 * modules/getdelim: New file.
13348 * modules/getline: Rewrite, don't use getndelim2.
13350 2005-08-02 Simon Josefsson <jas@extundo.com>
13352 * m4/getline.m4: Separate out getdelim stuff into separate module.
13354 * m4/getdelim.m4: New file.
13356 2005-08-02 Simon Josefsson <jas@extundo.com>
13358 * lib/getline.h, getline.c: Rewrite.
13360 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
13362 2005-07-31 Bruno Haible <bruno@clisp.org>
13364 * lib/lock.h (gl_lock_initializer): New macro.
13365 (gl_lock_define_initialized): Use it.
13366 (gl_rwlock_initializer): New macro.
13367 (gl_rwlock_define_initialized): Use it.
13368 (gl_recursive_lock_initializer): New macro.
13369 (gl_recursive_lock_define_initialized): Use it.
13371 2005-07-30 Karl Berry <karl@gnu.org>
13373 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
13374 Report from Ben Pfaff, regarding getopt.
13376 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
13378 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
13380 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
13381 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
13382 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
13383 (gl_GETOPT): Use the new macros. Most of the implementation
13384 is moved to the new macros. This is for programs like Emacs
13385 that don't want all the functionality of gl_GETOPT.
13387 2005-07-26 Bruno Haible <bruno@clisp.org>
13389 * m4/lock.m4: Update from GNU gettext.
13391 2005-07-26 Bruno Haible <bruno@clisp.org>
13393 * lib/lock.h: Update from GNU gettext.
13394 * lib/lock.c: Update from GNU gettext.
13396 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
13398 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
13399 obsolescent AC_TRY_RUN. Include the default includes files, for
13402 2005-07-24 Bruno Haible <bruno@clisp.org>
13404 * modules/visibility: New file.
13405 * MODULES.html.sh (Misc): Add visibility.
13407 2005-07-24 Bruno Haible <bruno@clisp.org>
13409 * m4/visibility.m4: New file.
13411 2005-07-24 Bruno Haible <bruno@clisp.org>
13413 * doc/visibility.texi: New file.
13415 2005-07-22 Bruno Haible <bruno@clisp.org>
13417 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
13418 $(ALLOCA_H), redundant through BUILT_SOURCES.
13419 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
13420 redundant through BUILT_SOURCES.
13421 * modules/byteswap (Makefile.am): Remove explicit dependency on
13422 $(BYTESWAP_H), redundant through BUILT_SOURCES.
13423 * modules/fnmatch (Makefile.am): Remove explicit dependency on
13424 $(FNMATCH_H), redundant through BUILT_SOURCES.
13425 * modules/getopt (Makefile.am): Remove explicit dependency on
13426 $(GETOPT_H), redundant through BUILT_SOURCES.
13427 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
13428 redundant through BUILT_SOURCES.
13429 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
13430 redundant through BUILT_SOURCES.
13431 * modules/stdbool (Makefile.am): Remove explicit dependency on
13432 $(STDBOOL_H), redundant through BUILT_SOURCES.
13433 * modules/stdint (Makefile.am): Remove explicit dependency on
13434 $(STDINT_H), redundant through BUILT_SOURCES.
13435 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
13436 Remove explicit dependency on $(SYSEXITS_H).
13437 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
13439 2005-07-18 Simon Josefsson <jas@extundo.com>
13441 * lib/check-version.c (check_version): Accept identical versions too.
13443 2005-07-18 Bruno Haible <bruno@clisp.org>
13445 * modules/lock: New file.
13446 * MODULES.html.sh (Multithreading): New section.
13448 2005-07-18 Bruno Haible <bruno@clisp.org>
13450 * m4/lock.m4: New file, from GNU gettext.
13452 2005-07-18 Bruno Haible <bruno@clisp.org>
13454 * lib/lock.h: New file, from GNU gettext.
13455 * lib/lock.c: New file, from GNU gettext.
13457 2005-07-18 Bruno Haible <bruno@clisp.org>
13459 * lib/lock.h (gl_once_t): New type.
13460 (gl_once_define, gl_once): New macros.
13461 * lib/lock.c (fresh_once): New variable.
13462 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
13465 2005-07-16 Simon Josefsson <jas@extundo.com>
13467 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
13468 workaround, suggested by Bruno.
13470 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
13472 * modules/xalloc (Depends-on): Add xalloc-die.
13473 * modules/xvasprintf (Depends-on): Add xalloc-die.
13475 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
13477 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
13478 with a minor change.
13480 2005-07-15 Bruno Haible <bruno@clisp.org>
13482 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
13483 When using lib/poll.c, define poll as rpl_poll.
13485 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
13487 * modules/argp (Depends-on): Remove unlocked-io.
13489 2005-07-14 Derek Price <derek@ximbiot.com>
13491 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
13492 for glob symlink bug.
13494 2005-07-14 Bruno Haible <bruno@clisp.org>
13496 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
13497 Instead, test for *_unlocked function declarations directly.
13499 2005-07-11 Simon Josefsson <jas@extundo.com>
13501 * modules/size_max: New file.
13503 * modules/xsize: Depend on size_max module for size_max.m4.
13505 2005-07-11 Simon Josefsson <jas@extundo.com>
13507 * lib/size_max.h: New file.
13509 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
13511 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
13512 copyright symbol and the year.
13513 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
13514 (version_etc_va): Use parameterized copyright notice.
13515 Reword to conform to the current GNU coding standards.
13517 2005-07-11 Karl Berry <karl@gnu.org>
13519 * doc/gnulib.texi (Quoting): new node.
13520 (Initial import): more info, from Patrice.
13522 2005-07-11 Bruno Haible <bruno@clisp.org>
13524 * gnulib-tool (func_usage): Document option --avoid.
13525 (Command line options): Handle --avoid.
13526 (func_acceptable): New function.
13527 (func_modules_transitive_closure): Use it.
13529 2005-07-11 Bruno Haible <bruno@clisp.org>
13531 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
13532 Reported by Jim Meyering.
13534 2005-07-10 Bruno Haible <bruno@clisp.org>
13536 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
13537 Needed when size_t is smaller than 'unsigned int'.
13538 Reported by Paul Eggert.
13540 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
13542 * modules/argp (Depends-on): Add unlocked-io
13544 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
13546 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
13549 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
13551 * config/srclist.txt: Comment out regcomp.c, since we have a porting
13554 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
13555 and Paul Eggert <eggert@cs.ucla.edu>
13557 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
13558 in wint_t, not wchar_t. Remove now-unnecessary cast.
13560 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
13562 * modules/regex (Files): Add lib/regex_internal.c,
13563 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
13564 (Depends-on): Add extensions.
13565 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
13567 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
13569 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
13571 * m4/same.m4 (gl_SAME): Likewise.
13572 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
13574 * m4/regex.m4: Adjust to new libc regex implementation.
13575 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
13576 all the .c and .h parts of (the new) regex.
13577 Quote the m4 stuff better.
13578 Check for RE_ICASE bug of old gnulib.
13579 Check for REG_STARTEND of recent libc.
13580 Rename local variables from jm_* to gl_*.
13581 Quote operand of "test -f".
13582 Say "recent enough" version of libc, not "version 2".
13583 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
13584 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
13585 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
13586 Remove check for btowc, isascii.
13587 Require AM_LANGINFO_CODESET.
13589 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
13591 * lib/regex.c, regex.h: Sync from libc.
13592 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
13594 New files, synced from libc, except that regex_internal.h
13595 currently has a small porting fix.
13597 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
13599 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
13600 regex_internal.c, regexec.c.
13601 Add regex_internal.h too, but as a comment, since the libc version
13602 is currently broken in gnulib mode.
13604 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
13606 Support programs like Emacs that use gnulib but not gettext.
13607 * MODULES.html.sh (Internationalization functions): Add gettext-h.
13608 * modules/gettext-h: New file.
13609 * modules/gettext (Files): Remove lib/gettext.h.
13610 (Depends-on): Add gettext-h.
13611 (Makefile.am): Remove lib_SOURCES.
13612 * modules/argmatch, modules/c-stack, modules/closeout:
13613 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
13614 * modules/execute, modules/file-type, modules/getaddrinfo:
13615 * modules/getopt, modules/human, modules/javacomp:
13616 * modules/javaexec, modules/mkdir-p, modules/obstack:
13617 * modules/openat, modules/pagealign_alloc, modules/pipe:
13618 * modules/quotearg, modules/regex, modules/rpmatch:
13619 * modules/unicodeio, modules/userspec, modules/version-etc:
13620 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
13622 Depend on gettext-h, not gettext.
13624 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
13626 * gnulib-tool (func_import): Add support for 'public domain' license.
13627 * modules/alloca, modules/atexit, modules/memmove:
13628 Now public domain, not GPL.
13629 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
13630 * modules/realloc, modules/strerror, modules/strtod:
13633 2005-07-05 Bruno Haible <bruno@clisp.org>
13635 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
13636 autoconf CVS. Needed for mingw.
13638 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
13640 Remove the dependency of the strftime module on the tzset module.
13641 * modules/strftime (Depends-on): Remove dependency on tzset.
13643 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
13645 Remove the dependency of the strftime module on the tzset module.
13646 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
13647 gl_FUNC_TZSET_CLOBBER.
13649 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
13651 Remove the dependency of the strftime module on the tzset module.
13652 * lib/strftime.c (my_strftime)
13653 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
13654 Copy the input structure, to work around some of the bug with
13655 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
13656 Solaris releases, you should also use the tzset module, but we won't
13657 require it as a dependency any more since we don't want LGPLed code
13658 to depend on GPLed code.
13660 2005-07-02 Jim Meyering <jim@meyering.net>
13662 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
13663 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
13664 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
13665 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
13667 2005-07-02 Jim Meyering <jim@meyering.net>
13669 * lib/backupfile.c (backup_args): Change a `0' to NULL.
13671 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
13673 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
13674 declares only 'struct timespec;' (!).
13676 2005-07-01 Jim Meyering <jim@meyering.net>
13678 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
13679 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
13680 * lib/save-cwd.c, tempname.c:
13681 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
13682 and don't include <sys/file.h>).
13684 2005-06-29 Jim Meyering <jim@meyering.net>
13686 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
13687 type name. Use the variable name instead.
13688 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
13691 2005-06-28 Simon Josefsson <jas@extundo.com>
13693 * modules/check-version (Files): Add check-version.m4.
13695 2005-06-28 Simon Josefsson <jas@extundo.com>
13697 * m4/check-version.m4: New file, suggested by Jim Meyering
13698 <jim@meyering.net>.
13700 2005-06-28 Simon Josefsson <jas@extundo.com>
13702 * lib/check-version.h, lib/check-version.c: New files.
13704 2005-06-28 Simon Josefsson <jas@extundo.com>
13706 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
13707 collision with global variable. Better indentation. Don't
13708 increment buffer pointer beyond buffer end. Based on comments
13709 from Paul Eggert <eggert@cs.ucla.edu>.
13711 * lib/base64.h: Indent.
13713 2005-06-28 Simon Josefsson <jas@extundo.com>
13715 * doc/gnulib.texi (Library version handling): New section.
13717 2005-06-28 Jim Meyering <jim@meyering.net>
13719 * check-module (find_included_lib_files): Hard-code another
13720 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
13721 but modules/fts-lgpl (correctly) does not list those files.
13723 * modules/canonicalize (Files): Add lib/pathmax.h.
13725 2005-06-25 Simon Josefsson <jas@extundo.com>
13727 * modules/check-version: New file.
13729 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
13731 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
13732 initializer of struct addrinfo, as an indication that we don't
13733 care how many members the structure has.
13735 2005-06-24 Derek Price <derek@ximbiot.com>
13736 and Bruno Haible <bruno@clisp.org>
13738 Remove stat module & update lstat.
13739 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
13740 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13741 * m4/stat.m4: Remove this file.
13743 2005-06-24 Derek Price <derek@ximbiot.com>
13744 and Bruno Haible <bruno@clisp.org>
13746 Remove stat module & update lstat.
13747 * lib/stat.c: Remove this file...
13748 (slash_aware_lstat): ...moving this content and its support...
13749 * lib/lstat.c (rpl_lstat): ...into here.
13750 * lib/lstat.h: New file.
13752 2005-06-24 Derek Price <derek@ximbiot.com>
13753 and Bruno Haible <bruno@clisp.org>
13755 Remove stat module & update lstat.
13756 * config/srclist.txt (libc sources): Remove stat.
13758 2005-06-24 Derek Price <derek@ximbiot.com>
13759 and Bruno Haible <bruno@clisp.org>
13761 Remove stat module & update lstat.
13762 * MODULES.html.sh (stat): Remove.
13763 * MODULES.html: Regenerated.
13764 * modules/lstat (Description): Correct function name.
13765 (Files): Add "lstat.h".
13766 (Depends-on): Remove stat, add xalloc, stat-macros.
13767 * modules/stat: Remove this file.
13768 (Include): Add "lstat.h", remove <sys/stat.h>.
13770 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
13772 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
13773 (ranged_convert): Don't save conversion in a temporary struct.
13774 This causes a warning with GCC 4.0.0, and anyway in the typical
13775 case it's not worth the extra 100 bytes or so of code.
13776 (ranged_convert, __mktime_internal): When calling a function via a
13777 pointer P, use P () rather than (*P) (), as we now assume C89 or
13780 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
13782 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
13783 "who -r" failed to give output. Problem reported by Tim Waugh.
13785 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
13786 (xcalloc): Use it to avoid needless tests.
13787 Problem reported by Jim Meyering.
13789 2005-06-20 Derek Price <derek@ximbiot.com>
13791 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
13792 unnecessary for Autoconfs > 2.59c.
13794 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
13796 * lib/argp.h (__option_is_short): Check upper limit of
13797 __key. Isprint() requires its argument to have the value
13798 of an unsigned char or EOF.
13800 2005-06-16 Jim Meyering <jim@meyering.net>
13802 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
13803 when either N or S is zero.
13805 2005-06-16 Derek Price <derek@ximbiot.com>
13807 * m4/bison.m4: Declare YACC & YFLAGS precious.
13809 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
13811 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
13812 multibyte string or pattern, fall back on unibyte matching.
13813 Problem reported by James Youngman.
13815 2005-06-08 Bruno Haible <bruno@clisp.org>
13817 * modules/csharpcomp: New file.
13818 * MODULES.html.sh (C#): Add csharpcomp.
13820 2005-06-08 Bruno Haible <bruno@clisp.org>
13822 * m4/csharpcomp.m4: New file, from GNU gettext.
13824 2005-06-08 Bruno Haible <bruno@clisp.org>
13826 * lib/csharpcomp.h: New file, from GNU gettext.
13827 * lib/csharpcomp.c: New file, from GNU gettext.
13828 * lib/csharpcomp.sh.in: New file, from GNU gettext.
13830 2005-06-08 Bruno Haible <bruno@clisp.org>
13832 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
13835 2005-06-07 Derek Price <derek@ximbiot.com>
13838 * lib/glob_.h: Indent nested #ifdef.
13840 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
13842 Sync from coreutils.
13843 Use "file name" when talking about file names, instead of "filename"
13844 or "path", as per the GNU coding standards.
13845 * lib/mkdir-p.c: Renamed from makepath.c.
13846 (make_dir_parents): Renamed from make_path. All callers changed.
13847 * lib/mkdir-p.h: Likewise. All includers changed.
13848 * lib/filenamecat.c: Renamed from path-concat.c.
13849 (file_name_concat): Renamed from path_concat. All callers changed.
13850 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
13851 * lib/filenamecat.h: Likewise. All includers changed.
13852 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
13853 in comments or local variable names.
13854 * lib/basename.c: Likewise.
13855 * lib/canonicalize.c, canonicalize.h: Likewise.
13856 * lib/dirname.c, dirname.h: Likewise.
13857 * lib/euidaccess.c: Likewise.
13858 * lib/exclude.c: Likewise
13859 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
13860 * lib/fsusage.c, fsuage.h: Likewise.
13861 * lib/fts.c, fts_.h: Likewise.
13862 * lib/getcwd.c: Likewise.
13863 * lib/getloadavg.c: Likewise.
13864 * lib/mkstemp.c: Likewise.
13865 * lib/mountlist.c, mountlist.h: Likewise.
13866 * lib/openat.c, openat.h: Likewise.
13867 * lib/readlink-stub.c: Likewise.
13868 * lib/readutmp.c, readutmp.h: Likewise.
13869 * lib/rename.c: Likewise.
13870 * lib/rmdir.c: Likewise.
13871 * lib/same.c: Likewise.
13872 * lib/savedir.c: Likewise.
13873 * lib/stripslash.c: Likewise.
13874 * lib/tempname.c: Likewise.
13875 * lib/xreadlink.c: Likewise.
13876 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
13878 * lib/exclude.h: Likewise.
13880 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
13881 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
13882 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
13883 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
13884 * lib/pathmax.h: Include <limits.h> unconditionally, since other
13885 files have been getting away with it for years (MORE/BSD 4.3
13887 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
13888 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
13890 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
13891 Define to 256, not 255, as per modern POSIX.
13893 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
13895 Sync from coreutils.
13896 Use "file name" when talking about file names, instead of "filename"
13897 or "path", as per the GNU coding standards.
13898 * MODULES.html.sh: mkdir-p renamed from makepath.
13899 filenamecat renamed from path-concat.
13900 * modules/filenamecat: Renamed from modules/path-concat.
13901 (Files): filenamecat.h and filenamecat.c renamed from
13902 path-concat.h and path-concat.c.
13903 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
13904 (Include): filenamecat.h, not path-concat.h.
13905 * modules/mkdir-p: Renamed from modules/makepath.
13906 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
13908 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
13909 (Include): mkdir-p.h, not makepath.h.
13911 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
13913 Sync from coreutils.
13914 * m4/mkdir-p.m4: Renamed from makepath.m4.
13915 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
13916 Rename files from makepath.c to mkdir-p.c, and from
13917 makepath.h to mkdir-p.h.
13918 * m4/filenamecat.m4: Renamed from path-concat.m4.
13919 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
13920 Rename files from path-concat.c to filenamecat.c,
13921 and from path-concat.h to filenamecat.h.
13922 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
13923 "file name" in local variables or comments.
13924 * m4/rename.m4: Likewise.
13926 2005-06-01 Bruno Haible <bruno@clisp.org>
13928 * modules/csharpexec: New file.
13929 * MODULES.html.sh (C#): New section.
13931 2005-06-01 Bruno Haible <bruno@clisp.org>
13933 * m4/csharp.m4: New file, from GNU gettext.
13934 * m4/csharpexec.m4: New file, from GNU gettext.
13936 2005-06-01 Bruno Haible <bruno@clisp.org>
13938 * lib/csharpexec.h: New file, from GNU gettext.
13939 * lib/csharpexec.c: New file, from GNU gettext.
13940 * lib/csharpexec.sh.in: New file, from GNU gettext.
13942 2005-05-31 Derek Price <derek@ximbiot.com>
13943 Paul Eggert <eggert@cs.ucla.edu>
13946 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
13948 2005-05-31 Derek Price <derek@ximbiot.com>
13949 Paul Eggert <eggert@cs.ucla.edu>
13952 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
13954 2005-05-29 Derek Price <derek@ximbiot.com>
13956 * config/srclist.txt (glob_.h, glob.c): Add these files.
13958 2005-05-29 Derek Price <derek@ximbiot.com>
13960 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
13961 * modules/glob: New file.
13962 * modules/getlogin_r: Add link to POSIX spec in description.
13964 2005-05-29 Derek Price <derek@ximbiot.com>
13965 Paul Eggert <eggert@cs.ucla.edu>
13967 * m4/glob.m4: New file.
13969 2005-05-29 Derek Price <derek@ximbiot.com>
13970 Paul Eggert <eggert@cs.ucla.edu>
13972 * lib/glob_.h, lib/glob.c: New files.
13974 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
13976 * modules/fts (Files): Remove m4/inttypes-pri.m4.
13977 * modules/fts-lgpl (Depends-on): Remove gettext.
13979 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
13981 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
13982 and don't require gt_INTTYPES_PRI.
13984 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
13986 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
13988 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
13989 the configuration hassle isn't worth it.
13990 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
13991 (LONGEST_MODIFIER, PRIuMAX): Remove.
13993 2005-05-27 Bruno Haible <bruno@clisp.org>
13995 * lib/getlogin_r.h: Remove second include of <stddef.h>.
13997 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
13999 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
14000 _POSIX_PTHREAD_SEMANTICS for Solaris.
14002 2005-05-25 Derek Price <derek@ximbiot.com>
14004 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
14006 2005-05-25 Derek Price <derek@ximbiot.com>
14007 Paul Eggert <eggert@cs.ucla.edu>
14009 * modules/getlogin_r, m4/getlogin_r.m4: New files.
14010 * lib/getlogin_r.c, getlogin_r.h: New files.
14012 2005-05-25 Bruno Haible <bruno@clisp.org>
14013 Derek Price <derek@ximbiot.com>
14015 * lib/getlogin_r.h: Simplify API documentation.
14017 2005-05-23 Derek Price <derek@ximbiot.com>
14019 * modules/minmax (Files): Add m4/minmax.m4.
14020 (configure.ac): Add gl_MINMAX.
14022 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
14024 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
14025 so that unistd-safer.h (GPL'ed code) need not be included.
14027 2005-05-22 Bruno Haible <bruno@clisp.org>
14029 * m4/minmax.m4: New file.
14030 Based on a patch by Derek Price <derek@ximbiot.com>.
14032 2005-05-22 Bruno Haible <bruno@clisp.org>
14034 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
14035 (INT64_MIN): Fix definition.
14036 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
14038 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
14039 NEED_SIGNED_INT_TYPES.
14041 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
14042 HAVE_SYSTEM_INTTYPES.
14044 2005-05-22 Bruno Haible <bruno@clisp.org>
14046 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
14047 Also include <sys/param.h> if it defines MIN, MAX.
14048 Based on a patch by Derek Price <derek@ximbiot.com>.
14050 2005-05-21 Jim Meyering <jim@meyering.net>
14052 * modules/fts (Files): Add m4/inttypes-pri.m4.
14053 (Depends-on): Add lstat and remove gettext. Alphabetize.
14055 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
14058 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
14059 (setup_dir, free_dir): New functions.
14060 (enter_dir, leave_dir): Define trivial
14061 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
14062 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
14063 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
14064 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
14065 Move to fts-cycle.c.
14066 (fts_open): Use setup_dir.
14067 (fts_close): Use free_dir.
14068 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
14069 This adds a label and some gotos, but the alternatives were messier.
14070 Check for memory allocation failure when entering a dir.
14071 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
14072 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
14073 (FTS): New member fts_cycle, that is a union that contains the
14074 old active_dir_ht and cycle_state. All uses changed to mention
14075 fts_cycle.ht and fts_cycle.state.
14076 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
14077 fts.c, with the following changes:
14078 (setup_dir, free_dir): New functions.
14079 (enter_dir): Now returns bool. Return true if successful, false
14080 if memory exhausted. All callers changed.
14081 Do not bother partly cleaning up on
14082 memory allocation failure; that is free_dir's job.
14083 However, free ad if hash_insert fails, to avoid memory leak.
14084 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
14085 fts->fts_options to see which union member to use.
14087 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
14089 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
14090 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
14092 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
14094 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
14096 2005-05-20 Jim Meyering <jim@meyering.net>
14098 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
14099 Now a macro, to pacify GCC.
14101 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
14103 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
14106 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
14108 * lib/chown.c (rpl_chown): Return -1 on failure.
14110 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
14112 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
14113 Don't check for stddef.h.
14114 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
14115 don't use its results.
14116 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
14117 since we include them unconditionally. Don't require
14118 AM_STDBOOL_H, since stdbool is a prerequisite.
14119 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
14120 since we assume C89 or better.
14121 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
14122 as we don't use their results.
14123 Don't check for fchdir, memmove, memset, strrchr, as we use
14124 them unconditionally.
14125 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
14126 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
14128 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
14130 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
14131 Include <stddef.h> unconditionally, since we assume C89 now.
14132 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
14133 * lib/fts.c: Include fts_.h first, to check interface.
14134 Do not include intprops.h; no longer needed.
14135 Include cycle-check.h and hash.h, since fts_.h no longer does.
14136 Remove unnecessary casts of closedir to void.
14137 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
14138 decide whether to decrement nlinks.
14139 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
14140 (FTS): Use struct hash_table * instead of Hash_table, so that
14141 we no longer need to include hash.h here.
14143 2005-05-18 Jim Meyering <jim@meyering.net>
14145 * modules/dirfd (License): Change to LGPL. Most of the code
14146 is already in the public domain.
14148 2005-05-18 Jim Meyering <jim@meyering.net>
14150 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
14151 Reported by Yoann Vandoorselaere.
14153 2005-05-17 Jim Meyering <jim@meyering.net>
14155 * m4/fts.m4: New file, from coreutils.
14157 2005-05-17 Jim Meyering <jim@meyering.net>
14159 * lib/fts.c, lib/fts_.h: New files, from coreutils.
14161 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
14163 Sync from coreutils.
14164 * m4/unlinkdir.m4: New file.
14166 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
14168 Sync from coreutils.
14169 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
14170 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
14171 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
14172 White space changes only.
14173 * lib/makepath.c (make_path): Port to hosts where leading "//" is
14175 * lib/yesno.c: Include getline.h, not ctype.h.
14176 (yesno): Don't remove leading white space; POSIX doesn't allow it.
14177 Use getline to remove arbitrary restriction on response length.
14179 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
14181 * config/srclist-update: Spell out "Street" in FSF postal
14182 mail address; this is the style the FSF seems to prefer.
14184 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
14185 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
14186 this updates FSF postal mail address.
14188 Sync from coreutils.
14189 * modules/unlinkdir: New file.
14190 * modules/yesno (Depends-on): Add getline.
14191 * MODULES.html.sh (File system functions): Add unlinkdir.
14193 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
14195 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
14197 Change the initial comment to refer to GPL, not LGPL.
14198 gnulib-tool will change it to LGPL as needed.
14200 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
14201 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
14202 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
14203 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
14204 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
14205 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
14206 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
14207 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
14208 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
14209 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
14210 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
14211 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
14212 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
14213 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
14214 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
14215 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
14216 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
14217 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
14218 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
14219 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
14220 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
14221 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
14222 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
14223 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
14224 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
14225 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
14226 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
14227 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
14228 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
14229 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
14230 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
14231 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
14232 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
14233 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
14234 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
14235 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
14236 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
14237 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
14238 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
14239 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
14240 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
14241 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
14242 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
14243 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
14244 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
14245 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
14246 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
14247 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
14248 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
14249 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
14250 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
14251 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
14252 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
14253 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
14254 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
14255 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
14256 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
14257 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
14258 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
14259 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
14260 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
14261 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
14262 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
14263 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
14264 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
14265 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
14266 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
14267 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
14268 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
14269 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
14270 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
14271 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
14272 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
14273 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
14274 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
14275 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
14276 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
14277 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
14278 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
14279 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
14280 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
14281 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
14282 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
14283 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
14284 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
14285 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
14286 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
14287 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
14288 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
14289 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
14290 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
14291 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
14292 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
14293 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
14294 lib/yesno.c, lib/yesno.h:
14295 Update FSF postal mail address.
14297 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
14299 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
14300 tests/test-memmem.c, tests/test-stpncpy.c:
14301 Update FSF postal mail address.
14303 2005-05-13 Bruno Haible <bruno@clisp.org>
14305 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
14306 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
14307 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
14308 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
14309 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
14310 Add support for 64-bit integers in the MSVC compiler.
14312 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
14314 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
14316 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
14318 * gnulib-tool (func_import): Sort and uniquify recommended includes.
14320 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
14322 * doc/getdate.texi (General date syntax): Don't say that date
14323 date --iso-8601=ns generates acceptable dates; it doesn't yet.
14324 Problem reported by Nic Ferrier.
14326 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14328 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
14329 specified in ai_socktype. Fix invalid ai_protocol
14330 check. ai_protocol is usually set to 0 or depending on
14331 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
14332 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
14333 ai_socktype / ai_protocol in the returned addrinfo structure.
14335 2005-05-10 Simon Josefsson <jas@extundo.com>
14337 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
14338 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
14340 2005-05-10 Karl Berry <karl@gnu.org>
14342 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
14343 (from http://www.gnu.org/licenses).
14344 * doc/COPYING.LIB: also rename to COPYING.LESSER.
14345 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
14348 2005-05-10 Karl Berry <karl@gnu.org>
14350 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
14351 (COPYING.DOC): remove.
14353 * config/srclist-update: new FSF address.
14355 2005-05-10 Derek Price <derek@ximbiot.com>
14357 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
14360 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14361 Bruno Haible <bruno@clisp.org>
14363 * modules/inet_ntop: New file.
14364 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14367 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14368 Bruno Haible <bruno@clisp.org>
14370 * m4/inet_ntop.m4: New file.
14372 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14373 Bruno Haible <bruno@clisp.org>
14375 * lib/inet_ntop.h: New file.
14376 * lib/inet_ntop.c: New file, from glibc with modifications.
14378 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
14380 * modules/time_r (License): Change to LGPL.
14381 * modules/extensions (License): Change to LGPL. Actually,
14382 the license is more permissive than that, but currently gnulib-tool
14383 doesn't know how to handle more-permissive licenses.
14385 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
14386 Problem reported by Dave Love.
14388 2005-05-08 Jim Meyering <jim@meyering.net>
14390 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
14393 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
14395 * modules/argmatch (Depends-on): Add stdbool.
14396 * modules/backupfile (Depends-on): Likewise.
14397 * modules/chdir-long (Depends-on): Likewise.
14398 * modules/closeout (Depends-on): Likewise.
14399 * modules/cycle-check (Depends-on): Likewise.
14400 * modules/dirname (Depends-on): Likewise.
14401 * modules/fnmatch (Depends-on): Likewise.
14402 * modules/fsusage (Depends-on): Likewise.
14403 * modules/fwriteerror (Depends-on): Likewise.
14404 * modules/getcwd (Depends-on): Likewise.
14405 * modules/getloadavg (Depends-on): Likewise.
14406 * modules/hard-locale (Depends-on): Likewise.
14407 * modules/makepath (Depends-on): Likewise.
14408 * modules/mountlist (Depends-on): Likewise.
14409 * modules/nanosleep (Depends-on): Likewise.
14410 * modules/posixtm (Depends-on): Likewise.
14411 * modules/quotearg (Depends-on): Likewise.
14412 * modules/readtokens (Depends-on): Likewise.
14413 * modules/readtokens0 (Depends-on): Likewise.
14414 * modules/readutmp (Depends-on): Likewise.
14415 * modules/save-cwd (Depends-on): Likewise.
14416 * modules/strftime (Depends-on): Likewise.
14417 * modules/userspec (Depends-on): Likewise.
14418 * modules/utimecmp (Depends-on): Likewise.
14419 * modules/xgetcwd (Depends-on): Likewise.
14420 * modules/xnanosleep (Depends-on): Likewise.
14421 * modules/xstrtod (Depends-on): Likewise.
14422 * modules/yesno (Depends-on): Likewise.
14424 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
14426 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
14429 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
14431 Merge from coreutils. Among other things,
14432 add bulletproofing for cases where stdin, stdout, or stderr are closed.
14433 * lib/fd-safer.c: New file.
14434 * lib/fcntl-safer.h, open-safer.c: Remove.
14435 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
14436 * lib/dup-safer.c: Include unistd-safer.h first.
14437 Don't include errno.h.
14438 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
14439 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
14440 * lib/file-type.c: Rely on file-type.h change.
14441 * lib/getloadavg.c: Include unistd-safer.h.
14442 (getloadavg): Use safer open.
14443 * lib/getusershell.c: Include "stdio-safer.h".
14444 (getusershell): Use safer fopen.
14445 * lib/long-options.c (long_options): Use NULL rather than 0.
14446 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
14448 * lib/modechange.c: Likewise.
14449 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
14450 (MODE_DONE): New constant.
14451 (struct mode_change): Remove 'next' member.
14452 (make_node_op_equals): New function; like the old one of the
14453 same name, except it allocates an array.
14454 (mode_compile, mode_create_from_ref): Use it.
14455 (mode_compile): Allocate result as an array, not a linked list.
14456 Parse octal string ourself, so that we catch mistakes like "+0".
14457 (mode_adjust): Arg is an array, not a linked list.
14458 * lib/modechange.c: Include stat-macros.h, xalloc.h.
14459 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
14460 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
14461 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
14462 Remove. This is now stat-macros.h's job.
14463 (talloc): Remove. All callers replaced by xalloc, so that
14464 our invokers don't have to worry about reporting memory failures.
14465 (make_node_op_equals): Remove.
14466 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
14468 (struct mode_change): Moved here from modechange.h.
14469 (mode_append_entry): Remove.
14470 (mode_compile): Remove MASKED_OPS arg, since it encouraged
14471 apps to have incorrect behavior. Use simpler algorithm for head
14472 and tail. Don't futz with umask; that's now the job of mode_adjust.
14473 Detect more invalid usages rather than having somewhat-random behavior.
14474 Don't insert an "a=" action, as that leads to incorrect behavior.
14475 (mode_compile, mode_create_from_ref): Return NULL on error instead
14476 of an enum, since now there's only one way to have an error. All
14478 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
14479 at the correct time. Simplify calculation of "+u" and its ilk.
14480 Don't mishandle "+X".
14481 (mode_free): Remove "register" and localize decls.
14482 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
14483 (struct mode_change): Move to modechange.c; callers don't
14484 need to see this stuff.
14485 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
14486 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
14487 (mode_change, mode_adjust): Reflect the new signatures noted above.
14488 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
14489 that might redefine system include files.
14490 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
14491 (my_usleep): Use NULL rather than (void *) 0.
14492 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
14493 Use siginterrupt to specify that system calls should be interrupted.
14494 (rpl_nanosleep): Move initialization of suspended closer to call of
14496 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
14497 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
14498 (desirable_utmp_entry): New function.
14499 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
14500 using x2nrealloc, to simplify logic.
14501 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
14502 size calculation. Do not assume utmp file is a regular file.
14503 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
14504 (READ_UTMP_CHECK_PIDS): New constant.
14505 * lib/save-cwd.c: Include unistd-safer.h.
14506 (save_cwd): Use fd_safer.
14507 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
14508 [!_LIBC] Include "stat-macros.h" instead.
14509 * lib/unistd-safer.h (fd_safer): New decl.
14511 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
14513 * modules/getloadavg (Depends-on): Add unistd-safer.
14514 * modules/getusershell (Depends-on): Add stdio-safer.
14515 * modules/lstat (Depends-on): Remove xalloc.
14516 * modules/mkstemp (Depends-on): Add stat-macros.
14517 * modules/modechange (Depends-on): Remove xstrtol.
14518 Add stat-macros, xalloc.
14519 * modules/save-cwd (Depends-on): Add unistd-safer.
14520 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
14521 * modules/unistd-safer (Files): Add lib/fd-safer.c
14522 (Makefile.am): Remove lib_SOURCES.
14524 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
14525 Remove fcntl-safer; unistd-safer supersedes it.
14527 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
14529 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
14531 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
14532 (gl_PREREQ_CHOWN): Remove.
14533 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
14534 it. Don't require AC_HEADER_STAT.
14535 (gl_PREREQ_LSTAT): Remove.
14536 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
14537 Don't require AC_HEADER_STAT.
14538 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
14539 (gl_PREREQ_RMDIR): Remove.
14540 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
14541 mention stat-macros.h or AC_HEADER_STAT, since we'll make
14542 the stat-macros module a prerequisite.
14543 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
14544 * m4/filemode.m4 (gl_FILEMODE): Likewise.
14545 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
14546 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
14547 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
14549 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
14550 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
14552 * m4/fcntl-safer.m4: Remove.
14553 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
14554 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
14555 Invoke gl_PREREQ_FD_SAFER.
14556 (gl_PREREQ_FD_SAFER): New macro.
14557 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
14558 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
14559 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
14560 Remove duplicate call to AC_LIBOBJ(readutmp).
14561 (gl_PREREQ_READUTMP): Remove. All uses inlined.
14563 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
14564 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
14566 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
14568 * MODULES.html.sh (Misc): Add byteswap.
14570 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
14572 * modules/getcwd (Depends-on): Add extensions.
14573 * modules/openat (Depends-on): Likewise.
14575 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
14577 * modules/byteswap: New file.
14579 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
14581 * m4/byteswap.m4: New file.
14583 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
14585 * lib/byteswap_.h: New file.
14587 2005-04-25 Karl Berry <karl@gnu.org>
14589 * m4/gettext.m4: Update from GNU gettext 0.14.4.
14591 2005-04-25 Albert Chin <china@thewrittenword.com>
14593 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
14596 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
14598 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
14599 (func_ln_if_changed) Remove forcibly for no error message
14600 in case file does not exist.
14602 2005-04-19 Simon Josefsson <jas@extundo.com>
14604 * gnulib-tool (Options): Make --symlink mean --symbolic.
14606 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
14608 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
14610 2005-04-16 Simon Josefsson <jas@extundo.com>
14612 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
14614 2005-04-15 Simon Josefsson <jas@extundo.com>
14616 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
14618 2005-04-15 Simon Josefsson <jas@extundo.com>
14620 * gnulib-tool: Rename --symlink to --symbolic.
14622 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
14624 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
14625 symbolic links to files instead of copying/moving. Add --aux-dir,
14626 specifying directory relative --dir where auxiliary build tools
14629 2005-04-14 Bruno Haible <bruno@clisp.org>
14631 * modules/allocsa (License): Change to LGPL.
14632 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
14634 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
14636 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
14637 that "UTC +1 second" continues to work. Problem reported
14638 by Dmitry V. Levin.
14639 (relunit_snumber): New rule.
14642 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
14644 * lib/getdate.y (universal_time_zone_table): New constant.
14645 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
14646 universal_time_zone_table.
14647 (lookup_zone): Prefer universal_time_zone_table to
14648 local_time_zone_table, so that "GMT" time stamps are allowed in
14649 London during the summer. Problem reported by Ian Abbott.
14651 2005-04-12 Jim Meyering <jim@meyering.net>
14653 * lib/human.c (humblock): Set *options even when returning due to
14654 xstrtoumax conversion failure. Thanks to a used-uninitialized
14655 warning from gcc-4.
14657 2005-04-09 Jim Meyering <jim@meyering.net>
14659 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
14660 -Wuninitialized: initialize tm0.tm_year.
14662 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
14664 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
14665 count, since there's no maximum. All uses changed.
14666 Add member dsts_seen.
14667 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
14669 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
14670 Use pc_rels_seen to decide whther a date is absolute.
14672 * lib/getdate.y (number): Don't overwrite year.
14673 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
14676 2005-04-02 Simon Josefsson <jas@extundo.com>
14678 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
14679 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
14681 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
14683 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
14684 where no absolute path name can be longer than PATH_MAX.
14686 2005-03-27 Jim Meyering <jim@meyering.net>
14688 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
14690 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
14692 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
14693 "one's complement" -> "ones' complement" in comment, as per Knuth.
14694 "value of type" -> "type or expression" in comment.
14695 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
14697 2005-03-26 Jim Meyering <jim@meyering.net>
14700 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
14701 Correct typos: s/or/of/.
14703 2005-03-26 Jim Meyering <jim@meyering.net>
14705 * modules/check-include-files: Move to ../ and rename to...
14706 * check-module: ...this.
14708 2005-03-25 Jim Meyering <jim@meyering.net>
14710 * modules/xvasprintf (Files): Add xalloc.h.
14712 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
14714 * modules/gettext (Files): config/config.rpath ->
14715 build-aux/config.rpath
14716 * modules/iconv (Files): Likewise.
14717 Problem reported by Oskar Liljeblad.
14719 2005-03-23 Jim Meyering <jim@meyering.net>
14721 * modules/check-include-files: New script to check for
14722 missing dependencies, multiple includes, etc.
14724 * modules/c-strtold (Depends-on): Add xalloc.
14725 * modules/c-strtod (Depends-on): Add xalloc.
14726 * modules/hash (Depends-on): Add xalloc.
14727 (Files): Remove lib/xalloc.h.
14729 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
14730 * modules/userspec (Files): Add lib/inttostr.h.
14732 2005-03-23 Jim Meyering <jim@meyering.net>
14734 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
14736 2005-03-22 Jim Meyering <jim@meyering.net>
14738 * modules/stat-macros: New module.
14739 * modules/canonicalize, modules/euidaccess, modules/file-type,
14740 * modules/filemode, modules/lchown, modules/makepath,
14741 * modules/rmdir, modules/stat: Depend on new stat-macros module
14742 rather than listing lib/stat-macros.h manually.
14743 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
14745 2005-03-22 Jim Meyering <jim@meyering.net>
14747 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
14749 2005-03-22 Bruno Haible <bruno@clisp.org>
14751 * config/srclist.txt: Replace target directory 'config' with
14753 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
14754 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
14757 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
14759 * modules/chdir-long (Depends-on): Add mempcpy.
14761 * modules/acl, modules/backupfile, modules/c-strtod,
14762 modules/c-strtold, modules/canon-host, modules/canonicalize,
14763 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
14764 modules/exclude, modules/exitfail, modules/file-type,
14765 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
14766 modules/getdate, modules/getline, modules/getpagesize,
14767 modules/getpass, modules/getugroups, modules/group-member,
14768 modules/hard-locale, modules/hash, modules/human, modules/idcache,
14769 modules/inttostr, modules/long-options, modules/makepath,
14770 modules/md5, modules/memcasecmp, modules/memcoll,
14771 modules/modechange, modules/mountlist, modules/path-concat,
14772 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
14773 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
14774 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
14775 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
14776 modules/strftime, modules/strndup, modules/strverscmp,
14777 modules/timespec, modules/unlocked-io, modules/userspec,
14778 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
14780 Remove lib_SOURCES line from Makefile.am section, as this is now
14781 done automatically by the corresponding Autoconf macro.
14783 2005-03-21 Jim Meyering <jim@meyering.net>
14785 Changes imported from coreutils.
14787 * lib/cycle-check.c: Don't include xalloc.h.
14789 * lib/path-concat.c: Don't include assert.h.
14790 (path_concat): Remove assertion that would have triggered
14791 for ABASE starting with more than one slash.
14792 Reported by Andreas Schwab.
14794 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
14795 properly when ABASE is an absolute file name.
14796 Correct the description of this function.
14797 Include <assert.h>.
14798 Add an assertion and a test driver.
14799 This fixes a bug introduced on 2004-07-02.
14800 Andreas Schwab reported the resulting failure of cp --parents:
14801 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
14803 2005-03-21 Jim Meyering <jim@meyering.net>
14805 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
14806 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
14808 2005-03-21 Jim Meyering <jim@meyering.net>
14809 and Paul Eggert <eggert@cs.ucla.edu>
14811 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
14812 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
14813 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
14814 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
14815 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
14816 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
14817 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
14818 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
14819 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
14820 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
14821 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
14822 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
14823 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
14824 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
14825 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
14826 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
14827 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
14830 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
14832 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
14833 (which shouldn't happen), generate nothing instead of returning 0
14834 immediately, so that nstrftime (NULL, ...) doesn't return 0.
14836 2005-03-16 Bruno Haible <bruno@clisp.org>
14838 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
14839 HAVE_LONGLONG_64BIT.
14841 2005-03-16 Bruno Haible <bruno@clisp.org>
14843 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
14844 HAVE_LONGLONG_64BIT.
14846 2005-03-16 Bruno Haible <bruno@clisp.org>
14848 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
14849 HAVE_LONGLONG_64BIT.
14851 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
14853 * lib/strftime.c (my_strftime): Prepend space to format so that we can
14854 reliably distinguish strftime failure from empty output on POSIX
14857 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
14859 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
14860 (iconv_string): Don't guess a size-zero buffer, as that might cause
14861 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
14862 result would be 'too large', where 'too large' is (heuristically)
14863 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
14864 overflow concerns. This will prevent some unwanted malloc failures
14865 when the inputs are very large.
14867 2005-03-15 Karl Berry <karl@gnu.org>
14869 * config/srclist.txt (config.rpath): from gettext.
14870 * config/config.rpath: update.
14872 2005-03-15 Bruno Haible <bruno@clisp.org>
14874 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
14877 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
14880 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
14883 2005-03-14 Simon Josefsson <jas@extundo.com>
14885 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
14888 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
14890 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
14891 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
14893 * lib/strtol.c: Likewise.
14895 2005-03-14 Jim Meyering <jim@meyering.net>
14897 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
14898 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
14899 to be nonzero so that we (and caller) can detect the difference
14900 between a valid zero-length expansion and an error return, even
14901 when the underlying strftime fails before writing anything into
14904 2005-03-14 Bruno Haible <bruno@clisp.org>
14906 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
14907 Update from GNU gettext 0.14.3.
14909 2005-03-10 Jim Meyering <jim@meyering.net>
14911 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
14913 2005-03-10 Jim Meyering <jim@meyering.net>
14915 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
14916 so that this module works on systems without fchdir.
14918 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
14920 Factor int-properties macros into a single file, except for
14921 glibc-related files.
14922 * lib/intprops.h: New file.
14923 * lib/getloadavg.c: Include it instead of limits.h.
14924 (INT_STRLEN_BOUND): Remove.
14925 * lib/human.c: Include intprops.h.
14926 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
14927 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
14929 * lib/inttostr.h: Include intprops.h instead of limits.h.
14930 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
14931 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
14932 for consistency with intprops.h.
14933 (time_t_is_integer, twos_complement_arithmetic): Use them.
14934 * lib/sig2str.h: Include <signal.h>, intprops.h.
14935 (INT_STRLEN_BOUND): Remove.
14936 * lib/strftime.c (TYPE_SIGNED): Remove.
14937 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
14938 * lib/strtol.c: Adjust comments to match intprops.h.
14939 * lib/userspec.c: Include intprops.h.
14940 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
14941 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
14942 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
14943 instead of rolling our own expressions.
14944 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
14946 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
14948 (my_strftime): Do not mishandle years close to INT_MAX, by doing
14949 the right thing even if adding 1900 would overflow. Similarly
14950 for tm_mon + 1 and tm_yday + 1.
14951 Make %Y always equivalent to %C%y, and similarly for %G and %g.
14952 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
14953 (DO_SIGNED_NUMBER): New macro.
14954 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
14956 2005-03-07 Bruno Haible <bruno@clisp.org>
14958 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
14960 2005-03-07 Bruno Haible <bruno@clisp.org>
14962 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
14964 2005-03-04 Derek R. Price <derek@ximbiot.com>
14966 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
14967 (func_import): Only replace files via --import when they have actually
14970 2005-03-03 Derek R. Price <derek@ximbiot.com>
14972 * m4/mmap-anon.m4: New file.
14973 * m4/pagealign_alloc.m4: New file.
14975 2005-03-03 Derek R. Price <derek@ximbiot.com>
14976 Bruno Haible <bruno@clisp.org>
14978 * modules/pagealign_alloc: New file.
14979 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
14981 2005-03-03 Derek R. Price <derek@ximbiot.com>
14982 Bruno Haible <bruno@clisp.org>
14984 * lib/pagealign_alloc.h: New file.
14985 * lib/pagealign_alloc.c: New file.
14987 2005-03-03 Bruno Haible <bruno@clisp.org>
14989 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
14990 Use an all-permissive copyright notice, recommended by RMS.
14992 2005-03-02 Bruno Haible <bruno@clisp.org>
14994 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
14995 of AIX, the replacement has to be done only after <string.h> is
14996 included, therefore not in config.h. stpncpy.h does the replacement,
14997 and stpncpy.c uses it.
14999 2005-03-02 Bruno Haible <bruno@clisp.org>
15001 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
15004 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
15006 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
15007 The workaround isn't strictly needed for POSIX conformance, and
15008 it's too much of a pain to configure and maintain. We'll ask
15009 people to fix their kernels instead.
15010 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
15011 (NANOSLEEP_BUG_WORKAROUND): Remove.
15012 (xnanosleep): Remove the workaround.
15014 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
15016 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
15017 Reported by Derek Price.
15018 (Include): Add "timespec.h".
15020 * modules/xnanosleep (Depends-on): Remove gethrxtime.
15022 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
15024 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
15025 to detect nanosleep bug.
15027 2005-03-01 Bruno Haible <bruno@clisp.org>
15029 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
15031 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
15033 * modules/gethrxtime: New file.
15034 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
15035 (Depends-on): Add gethrxtime.
15036 (configure.ac): Add gl_XNANOSLEEP.
15037 (Makefile.am): Remove lib_SOURCES line.
15039 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
15041 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
15042 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
15044 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
15046 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
15047 * lib/timespec.h (gettime): Return void, since it always
15048 succeeds now. All uses changed.
15049 * lib/gettime.c (gettime) Likewise.
15050 [HAVE_NANOTIME]: Prefer nanotime.
15051 Assume gettimeofday succeeds, as POSIX requires.
15052 Assime time () succeeds, since other code already does.
15053 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
15054 (timespec_subtract): Remove.
15055 (NANOSLEEP_BUG_WORKAROUND): New constant.
15056 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
15057 things considerably. Use it only on GNU/Linux hosts, since the
15058 workaround shouldn't be needed elsewhere.
15060 2005-02-24 Bruno Haible <bruno@clisp.org>
15062 * modules/gettext (Files): Add m4/glibc2.m4.
15064 2005-02-24 Bruno Haible <bruno@clisp.org>
15066 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
15067 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
15069 Update from GNU gettext 0.14.2.
15070 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
15072 2005-02-24 Bruno Haible <bruno@clisp.org>
15074 * lib/localcharset.c: Update from GNU gettext 0.14.2.
15075 * lib/config.charset: Update from GNU gettext 0.14.2.
15077 2005-02-24 Bruno Haible <bruno@clisp.org>
15079 * lib/gettext.h: Update from GNU gettext 0.14.2.
15081 2005-02-23 Simon Josefsson <jas@extundo.com>
15083 * m4/iconvme.m4: New file.
15085 2005-02-23 Jim Meyering <jim@meyering.net>
15087 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
15089 Thanks to Bruno Haible for catching it.
15091 2005-02-22 Simon Josefsson <jas@extundo.com>
15093 * modules/iconvme: New file.
15095 * MODULES.html.sh: Add iconvme.
15097 2005-02-22 Simon Josefsson <jas@extundo.com>
15099 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
15101 2005-02-22 Simon Josefsson <jas@extundo.com>
15103 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
15105 2005-02-22 Jim Meyering <jim@meyering.net>
15107 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
15110 2005-02-20 Neil Conway <neilc@samurai.com>
15112 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
15113 returned by OSX/Darwin if the specified buffer is not large
15114 enough for the hostname.
15116 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15118 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
15119 pass it to _help, otherwise the latter coredumps trying to
15120 dereference state.root_argp.
15122 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
15124 * modules/chdir-long (Depends-on): Add memrchr.
15125 * modules/memrchr (Files): Add lib/memrchr.h.
15126 (Include): "memrchr.h".
15128 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
15130 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
15132 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
15134 * lib/memrchr.h: New file.
15135 * lib/chdir-long.c: Include it.
15136 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
15137 Don't bother including stddef.h.
15139 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
15141 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
15143 Include <sys/types.h>, for dev_t.
15144 (ME_DUMMY, ME_REMOTE): Move from here....
15145 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
15146 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
15148 Include mountlist.h first, to test the interface.
15150 2005-01-29 Bruno Haible <bruno@clisp.org>
15152 * lib/progname.c (program_name): Initialize.
15153 Needed when linking statically on MacOS X.
15155 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
15157 Sync from coreutils.
15158 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
15159 (Depends-on): Add c-strtod.
15160 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
15162 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
15164 Sync from coreutils.
15165 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
15167 Remove files that are specific to coreutils.
15168 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
15170 2005-01-28 Bruno Haible <bruno@clisp.org>
15172 * modules/javacomp: New file.
15173 * MODULES.html.sh (Java): Add javacomp.
15175 2005-01-28 Bruno Haible <bruno@clisp.org>
15177 * m4/javacomp.m4: New file, from GNU gettext.
15179 2005-01-28 Bruno Haible <bruno@clisp.org>
15181 * lib/javacomp.sh.in: New file, from GNU gettext.
15182 * lib/javacomp.h: New file, from GNU gettext.
15183 * lib/javacomp.c: New file, from GNU gettext.
15185 2005-01-26 Simon Josefsson <jas@extundo.com>
15187 * lib/gai_strerror.c: Use GPL in header.
15189 2005-01-26 Bruno Haible <bruno@clisp.org>
15191 * modules/javaexec: New file.
15192 * MODULES.html.sh (Java): Add javaexec.
15194 2005-01-26 Bruno Haible <bruno@clisp.org>
15196 * m4/javaexec.m4: New file, from GNU gettext.
15198 2005-01-26 Bruno Haible <bruno@clisp.org>
15200 * lib/javaexec.sh.in: New file, from GNU gettext.
15201 * lib/javaexec.h: New file, from GNU gettext.
15202 * lib/javaexec.c: New file, from GNU gettext.
15204 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15206 * modules/lchown (Depends-on): Remove lchown.h
15208 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15210 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
15211 must be defined if the header file was not found, in order
15212 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
15214 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15216 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
15217 initializers for struct pentry_state.
15218 (__argp_error): Check return value of __asprintf
15219 (__argp_failure): Translate error message
15221 * lib/argp-parse.c: Removed braces around the expansion of N_()
15223 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
15225 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
15226 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
15227 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
15228 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
15229 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
15230 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
15231 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
15232 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
15233 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
15234 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
15235 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
15236 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
15237 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
15238 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
15239 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
15240 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
15241 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
15242 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
15243 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
15244 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
15245 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
15246 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
15247 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
15248 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
15249 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
15250 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
15251 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
15252 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
15253 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
15254 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
15255 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
15256 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
15257 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
15258 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
15259 xstrtol.m4, xstrtoumax.m4, yesno.m4:
15260 Use an all-permissive copyright notice, recommended by RMS.
15262 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
15264 * modules/chdir-long (Depends-on): Remove mempcpy.
15266 2005-01-21 Jim Meyering <jim@meyering.net>
15268 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
15269 same value as for Solaris 9.
15271 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
15272 component length. This included changing the parameter to be
15273 of type `char *' rather than `char const *'.
15274 * lib/chdir-long.h (chdir_long): Update prototype.
15276 * lib/openat.c (fdopendir, fstatat): New functions.
15277 * lib/openat.h: Include headers required for use of DIR and struct
15279 [AT_SYMLINK_NOFOLLOW]: Define.
15280 (fdopendir, fstatat): Add prototypes.
15282 2005-01-21 Bruno Haible <bruno@clisp.org>
15284 * modules/classpath: New file.
15285 * MODULES.html.sh (Java): Add classpath.
15287 2005-01-21 Bruno Haible <bruno@clisp.org>
15289 * lib/classpath.h: New file, from GNU gettext.
15290 * lib/classpath.c: New file, from GNU gettext.
15292 2005-01-20 Simon Josefsson <jas@extundo.com>
15294 * modules/version-etc-fsf: New file.
15296 2005-01-20 Simon Josefsson <jas@extundo.com>
15298 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
15299 * lib/version-etc.c: Remove version_etc_copyright.
15300 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
15301 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
15303 2005-01-20 Simon Josefsson <jas@extundo.com>
15305 * lib/base64.h (isbase64): Add.
15307 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
15308 using a unsigned prototype, don't inline.
15309 (base64_decode): Use it.
15311 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
15313 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
15316 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
15318 * lib/save-cwd.c (save_cwd): Remove code to support the case
15319 where fchdir is missing or flaky.
15321 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
15323 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
15325 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
15327 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
15328 AC_LIBSOURCES now does this.
15329 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
15330 with new ullong_max module.
15332 2005-01-19 Bruno Haible <bruno@clisp.org>
15334 * modules/sh-quote: New file.
15335 * MODULES.html.sh (Executing programs): Add sh-quote.
15337 2005-01-19 Bruno Haible <bruno@clisp.org>
15339 * lib/sh-quote.h: New file, from GNU gettext.
15340 * lib/sh-quote.c: New file, from GNU gettext.
15342 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
15344 Merge from coreutils.
15345 * m4/ullong_max.m4: New file.
15346 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
15347 (gl_MACROS): Assume localeconv exists.
15349 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
15351 Merge changes from coreutils, as described below in several
15352 changelogs dated today.
15354 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
15355 (O_DIRECTORY): Remove; not needed here, since "." must be
15356 a directory. All uses removed.
15357 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
15358 universal on Suns, and we also need to test for IRIX.
15359 Revamp code to use 'if' rather than '#if'.
15360 Avoid unnecessary comparison of cwd->desc to 0.
15362 * lib/utimens.c (futimens): Robustify the previous patch, by checking
15363 for known valid error numbers rather than observed invalid ones.
15365 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
15367 * modules/ullong_max: New file.
15369 * modules/chdir-long, modules/openat: New files.
15370 * modules/save-cwd (Depends-on): Depend on chdir-long.
15371 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
15373 2005-01-18 Jim Meyering <jim@meyering.net>
15375 Merge from coreutils.
15376 * m4/chdir-long.m4, m4/openat.m4: New files.
15377 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
15378 save-cwd.h. Add AC_LIBOBJ for save-cwd.
15379 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
15380 is sane and DOES follow symlinks. Besides, testing 20 different
15381 systems found no broken chown implementations.
15382 Prompted by a change in rsync's copy of this macro.
15383 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
15385 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
15387 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
15388 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
15389 NULL-means-set-to-current-time semantics.
15390 Remove temporary file immediately, rather than waiting
15391 for configure's at-exit trap code to do it.
15393 2005-01-18 Jim Meyering <jim@meyering.net>
15395 * lib/version-etc.c (version_etc_copyright): Update copyright date.
15397 * lib/utimens.c (futimens): Account for the fact that futimes
15398 can also fail with errno == ENOSYS or errno == ENOENT.
15399 Patch from Dmitry V. Levin.
15401 Change the name of the robust chdir function from chdir to chdir_long.
15402 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
15403 (restore_cwd): Use chdir_long, not chdir.
15404 * lib/chdir-long.c: Renamed from chdir.c.
15405 * lib/chdir-long.h: Renamed from chdir.h.
15406 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
15409 2005-01-18 Bruno Haible <bruno@clisp.org>
15411 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
15412 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
15413 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
15414 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
15415 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
15416 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
15417 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
15418 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
15419 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
15420 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
15421 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
15422 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
15423 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
15424 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
15425 Use an all-permissive copyright notice, recommended by RMS.
15427 2005-01-18 Bob Proulx <bob@proulx.com>
15429 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
15430 simplify offsetof() macro construct to avoid compile failure with
15431 native HP-UX 11.0 ANSI C compiler.
15433 2005-01-17 Bruno Haible <bruno@clisp.org>
15435 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
15436 redundant because stpncpy.m4 takes care of it.
15438 2005-01-17 Bruno Haible <bruno@clisp.org>
15440 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
15442 2005-01-17 Bruno Haible <bruno@clisp.org>
15444 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
15447 2005-01-17 Bruno Haible <bruno@clisp.org>
15449 * lib/fwriteerror.h (fwriteerror): Change specification to include
15451 * lib/fwriteerror.c: Include <stdbool.h>.
15452 (fwriteerror): At the end, close the file stream. Record whether
15453 stdout was already closed.
15455 2005-01-17 Bruno Haible <bruno@clisp.org>
15457 * lib/execute.c (environ): Declare if needed.
15458 * lib/pipe.c (environ): Likewise.
15459 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
15461 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15463 * modules/argp: Depend on vsnprintf
15465 2005-01-10 Jim Meyering <jim@meyering.net>
15467 * modules/closeout (Depends-on): Add atexit.
15469 2005-01-06 Bruno Haible <bruno@clisp.org>
15471 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
15473 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
15475 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
15476 definitions to be after all include files, to avoid collisions.
15477 Problem reported by Bob Proulx.
15479 2005-01-04 Jim Meyering <jim@meyering.net>
15481 Changes imported from coreutils.
15482 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
15483 as the mkstemp template, use a temporary directory and an
15484 8.3-friendly template to avoid trouble on systems like DJGPP.
15485 Reported by Juan M. Guerrero via Stepan Kasal.
15486 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
15487 close. Remove the temporary directory right away, rather than waiting
15488 for configure's at-exit trap code to do it.
15489 Suggestion from Stepan Kasal.
15491 2005-01-01 Simon Josefsson <jas@extundo.com>
15493 * gnulib-tool: Print #include directives when --import'ing.
15495 2004-12-28 Simon Josefsson <jas@extundo.com>
15497 * tests/test-base64.c: Include required header files. Remove
15500 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
15502 * modules/error (Depends-on): Remove gettext.
15504 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
15506 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
15507 not needed. This removes a dependency on the gettext module.
15508 [defined _LIBC]: Do not include <libintl.h>; not needed.
15510 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
15512 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
15513 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
15515 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
15517 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
15520 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
15522 * modules/getdate (Depends-on): Remove alloca-opt.
15524 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
15526 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
15528 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
15530 * lib/argp-parse.c: Include <stddef.h>.
15531 (alignof, alignto): New macros.
15532 (parser_init): Don't assume that void * is aligned sufficiently
15535 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
15536 need to extend the stack.
15537 (YYINITDEPTH): New macro, so that the initial stack isn't overly
15540 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15542 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
15544 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
15546 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
15547 (2004-10-24) change. Apparently this was a false alarm.
15549 * modules/getdate: Depend on alloca-opt, not alloca.
15551 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
15553 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
15554 Remove now-obsolete comment about AIX.
15555 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
15556 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
15557 (YYMAXDEPTH): New macro.
15559 2004-12-18 Simon Josefsson <jas@extundo.com>
15561 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
15563 2004-12-18 Bruno Haible <bruno@clisp.org>
15565 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
15567 2004-12-18 Bruno Haible <bruno@clisp.org>
15569 * lib/fatal-signal.c (fatal_signals): Make non-const.
15570 (init_fatal_signals): New function.
15571 (uninstall_handlers, install_handlers): Ignore signals that were set to
15573 (at_fatal_signal): Call init_fatal_signals.
15574 (init_fatal_signal_set): Likewise. Ignore signals that were set to
15576 Reported by Paul Eggert.
15578 2004-12-18 Bruno Haible <bruno@clisp.org>
15580 * doc/alloca.texi: New file.
15581 * doc/alloca-opt.texi: New file.
15583 2004-12-17 Jim Meyering <jim@meyering.net>
15585 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
15586 Otherwise, install-sh could exit with improper exit status when
15587 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
15589 2004-12-16 Simon Josefsson <jas@extundo.com>
15591 * tests/test-base64.c: Add license.
15593 2004-12-15 Stepan Kasal <address@hidden>
15595 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
15597 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
15599 * modules/getcwd (Files): Add m4/d-ino.m4.
15600 Suggested by Mark D. Baushke.
15602 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
15604 * lib/getdate.y (textint): New member "negative".
15605 (time_zone_hhmm): New function.
15606 Expect 14 shift-reduce conflicts, not 13.
15607 (o_colon_minutes): New rule.
15608 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
15609 (yylex): Set the "negative" member of signed numbers.
15611 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
15613 * doc/getdate.texi (Time of day items, Time zone items):
15614 Describe new formats +00:00, UTC+00:00.
15616 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
15618 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
15619 spurious "-l"s. Problem reported by Stepan Kasal.
15621 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
15623 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
15624 in Autoconf 2.59. Problem reported by Mark D. Baushke.
15626 2004-12-04 Simon Josefsson <jas@extundo.com>
15628 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
15629 Vandoorselaere <yoann@prelude-ids.org>.
15631 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
15633 Changes imported from coreutils.
15634 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
15636 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
15638 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
15640 Changes imported from coreutils.
15641 * lib/hard-locale.c: Assume <locale.h> exists.
15642 Include "strdup.h".
15643 (GLIBC_VERSION): New macro.
15644 (hard_locale): Assume setlocale exists.
15645 Rewrite to avoid #ifdef.
15646 Use strdup rather than malloc + strcpy.
15647 * lib/human.c: Assume <locale.h> exists.
15648 (human_readable): Assume localeconv exists.
15650 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
15652 * modules/hard-locale (Depends-on): Add strdup.
15654 2004-12-01 Jakub Jelinek <jakub@redhat.com>
15656 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
15657 convert T2, not T. (Imported from libc.)
15659 2004-11-30 Simon Josefsson <jas@extundo.com>
15661 * modules/restrict (License): Change to LGPL.
15663 2004-11-30 Simon Josefsson <jas@extundo.com>
15665 * m4/restrict.m4: Add copyright and copying conditions.
15667 2004-11-30 Simon Josefsson <jas@extundo.com>
15669 * m4/base64.m4: New file.
15671 2004-11-30 Simon Josefsson <jas@extundo.com>
15673 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
15676 * tests/test-base64.c: New file.
15678 * modules/base64: New file.
15680 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
15682 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
15683 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
15685 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
15687 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
15689 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
15690 (__getcwd.c): Don't restore errno; glibc doesn't.
15691 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
15692 first, falling back to our code only if its results look suspicious.
15693 Ensure that the resulting buffer is only as large as necessary.
15695 * lib/readutmp.c: Include readutmp.h first.
15696 Include <errno.h>, since readutmp.h no longer does that.
15697 * lib/readutmp.h: Don't include <errno.h>,
15698 <sys/param.h>, <time.h>; not needed to establish interface.
15699 (errno): Remove decl.
15700 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
15701 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
15702 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
15704 2004-11-28 Simon Josefsson <jas@extundo.com>
15706 * lib/base64.h, base64.c: New file.
15708 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
15710 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
15712 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
15714 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
15715 (Depends-on): Remove pathmax, same. Add mempcpy.
15716 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
15717 (Makefile.am): Append getcwd.h to lib_SOURCES.
15718 (Include): Add getcwd.h.
15719 (Maintainer): Change from Jim Meyering to "all, glibc",
15720 since getdate now uses intended-for-glibc code.
15721 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
15722 (Depends-on): Depend on getcwd. Do not depend on pathmax.
15724 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
15726 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
15727 HP's ANSI C compiler.
15728 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
15729 Declaring int functions causes warnings on some modern systems and
15730 shouldn't be needed to compile on ancient ones.
15731 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
15734 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
15735 with the following changes.
15736 (__set_errno): Parenthesize properly.
15737 Include <stdbool.h>.
15738 (MIN, MAX, MATCHING_INO): New macros.
15739 (__getcwd): Define with prototype, not K&R form.
15740 Use heuristics to allocate default buffer on stack if possible.
15741 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
15742 behavior, and to avoid the PATH_MAX limit when computing
15744 Use MATCHING_INO to compare inode number to file.
15745 Check for arithmetic overflow in size calculations.
15746 Fix bug in reallocation of dot array that caused getcwd to fail
15747 on directories nested deeper than 75.
15748 Be more careful about saving errno on error.
15749 Do not use realloc; use only free+malloc, as this is a bit
15750 more flexible and avoids a needless copy operation.
15751 Do not inspect st_dev and st_ino for symbolic links; POSIX
15752 doesn't specify the latter.
15753 Check for closedir errors.
15754 Avoid needless casts.
15755 Use "#ifdef weak_alias" around weak_alias, to be like other
15757 The following changes to getcwd.c have effect only when used in
15758 gnulib; they have no effect inside glibc proper.
15759 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
15760 as alloca isn't used.
15761 (alloca, __alloca): Likewise.
15762 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
15763 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
15764 unconditionally, as gnulib assumes C89 or better.
15765 Do not include <sys/param.h>.
15766 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
15767 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
15769 (NULL) [!defined NULL]: Remove; we assume C89 or better.
15770 Include <dirent.h> in a way that is compatible with modern Autoconf.
15771 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
15772 New macros, if not already defined.
15773 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
15774 Use "_LIBC", not "defined _LIBC", for consistency.
15775 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
15777 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
15778 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
15779 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
15780 credit only to Jim Meyering and adjust the copyright dates.
15781 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
15782 <stdlib.h>, <unistd.h>, "pathmax.h".
15783 Instead, include "xgetcwd.h" (first) and "getcwd.h".
15784 (INITIAL_BUFFER_SIZE): Remove.
15785 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
15787 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
15789 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
15790 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
15791 Use the _ONCE methods, for efficiency.
15792 Check for fcntl.h. In test program, include <errno.h>
15793 and <fcntl.h> if available. Remove old K&R cruft from
15794 test program. Check for common errors in GNU/Linux,
15795 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
15796 don't do AC_LIBOBJ, as that's getcwd.m4's job.
15797 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
15798 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
15800 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
15801 accommodate new getcwd.c.
15802 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
15803 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
15804 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
15805 that's all we need now.
15807 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15809 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
15810 argp-parse.c depends on getopt internals, that means we should
15811 always use our getopt, to be on the safe side.
15812 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
15813 order not to spoil the result of an eventual previous invocation
15814 of gl_GETOPT_SUBSTITUTE.
15816 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15818 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
15819 redefinition warnings. To avoid them, include the defines
15820 in `#if !defined __need_getopt ... #endif'. The only place
15821 where __getopt_argv_const is used is in definitions
15822 of getopt_long and getopt_long_only below, which are as well
15823 protected by `#ifndef __need_getopt'.
15824 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
15825 __need_getopt after including <stdio.h> and <unistd.h> These
15826 headers might have defined it.
15828 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
15830 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
15832 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
15834 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
15835 (futimens): New function, which uses futimes if available.
15836 (futimens, utimens): Support timespec==NULL, with same semantics
15837 as utime and utimens.
15838 * lib/utimens.h (futimens): New decl.
15840 2004-11-23 Jim Meyering <jim@meyering.net>
15842 * lib/getopt_.h: Remove trailing blanks.
15844 2004-11-23 Jim Meyering <jim@meyering.net>
15846 * lib/__fpending.c: Add comment.
15848 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
15850 * modules/canonicalize (Depends-on): Add xreadlink.
15851 Problem reported by James Youngman.
15853 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
15855 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
15857 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
15858 optopt): Use them instead of invoking ## directly; otherwise, the
15859 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
15861 2004-11-19 Bruno Haible <bruno@clisp.org>
15863 * lib/strtok_r.c: Move comments from here...
15864 * lib/strtok_r.h: ... to here.
15866 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
15868 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
15869 implementations that mishandle size_t overflow.
15871 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
15873 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
15874 might fail. Problem reported by Yoann Vandoorselaere.
15875 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
15876 implementations that mishandle size_t overflow.
15878 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
15880 * modules/canon-host (Depends-on): Add strdup.
15882 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
15884 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
15886 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
15888 * lib/canon-host.c: Include "strdup.h".
15889 (canon_host): Use getaddrinfo if available, so that IPv6 works.
15890 Use strdup instead of malloc/strcpy to duplicate strings.
15892 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
15893 (human_space_before_unit): New constant.
15894 * lib/human.c (human_readable): Support it.
15896 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
15897 (xgetcwd): Set errno correctly when failing.
15898 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
15899 the failure is actually due to a PATH_MAX problem.
15901 Further getopt changes to make it more likely that glibc will
15902 buy the changes back.
15903 * lib/getopt.c (POSIXLY_CORRECT): New constant.
15904 (getopt): Use it, so to preserve glibc semantic
15905 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
15906 when compiling for libc.
15907 * lib/getopt_.h (__getopt_argv_const): Bring it back.
15908 (getopt_long, getopt_long_only): Use it.
15910 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
15911 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
15912 (getopt): Argv is now char * const *, as per standard.
15913 (_getopt_internal_r, _getopt_internal): Argv is now char **,
15914 not char *__getopt_argv_const *.
15915 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
15916 _getopt_long_only_r): Likewise.
15917 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
15918 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
15919 _getopt_long_r, _getopt_long_only_r): Likewise.
15920 * lib/getopt_.h (__getopt_argv_const): Remove.
15921 (getopt): Argv is now char * const *, as per standard.
15923 * lib/getdate.y (tORDINAL): New token.
15924 (day, relunit): Allow it for relative times.
15925 (relative_time_table): Use tORDINAL for ordinals.
15927 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
15929 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
15930 Document that "second" isn't allowed as an ordinal number.
15932 2004-11-16 Jim Meyering <jim@meyering.net>
15934 * modules/closeout (Depends-on): Add fpending.
15936 2004-11-15 Jim Meyering <jim@meyering.net>
15938 * lib/closeout.c: Include "__fpending.h" once again.
15939 Include <stdbool.h>.
15940 (close_stdout): Don't fail just because stdout was closed initially,
15941 since some programs don't write to stdout in the normal course of
15942 operation (other than --version and --help), and we don't want this
15943 function to make e.g. `touch file >&-' fail.
15944 But do fail if it was closed and someone has tried to write to it.
15945 E.g., `printf foo >&-' must fail.
15947 2004-11-13 Jim Meyering <jim@meyering.net>
15949 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
15951 2004-11-12 Simon Josefsson <jas@extundo.com>
15953 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
15954 small doc fix is still pending.
15956 2004-11-11 Simon Josefsson <jas@extundo.com>
15958 * modules/strtok_r: New file.
15960 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15963 2004-11-11 Simon Josefsson <jas@extundo.com>
15965 * m4/strtok_r.m4: New file.
15967 * m4/getopt.m4: Replace opterr.
15969 2004-11-11 Simon Josefsson <jas@extundo.com>
15971 * lib/strtok_r.h, strtok_r.c: New file.
15973 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
15975 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
15976 of replacing opterr, getopt, etc. This should handle the
15977 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
15979 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
15981 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
15982 we can stop lying to compilers about the constness of argv when we
15983 are compiled outside glibc.
15984 (getopt, getopt_long, getopt_long_only): Use it.
15985 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
15986 _getopt_internal, getopt): Likewise.
15987 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
15988 _getopt_long_only_r): Likewise.
15989 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
15990 _getopt_long_r, _getopt_long_only_r): Likewise.
15992 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
15993 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
15994 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
15995 the other external symbols.
15996 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
15997 declaration, since the above renaming now works around collisions.
15999 2004-11-11 Jim Meyering <jim@meyering.net>
16001 * lib/linebreak.c: Remove trailing blanks.
16002 * lib/alloca_.h: Likewise.
16003 * lib/acosl.c: Likewise.
16004 * lib/euidaccess.c: Likewise.
16005 * lib/allocsa.h: Likewise.
16007 2004-11-10 Simon Josefsson <jas@extundo.com>
16009 * m4/getaddrinfo.m4: New file.
16011 2004-11-10 Simon Josefsson <jas@extundo.com>
16013 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
16015 2004-11-10 Simon Josefsson <jas@extundo.com>
16017 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16020 * modules/getaddrinfo: New file.
16022 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
16024 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
16026 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
16028 * lib/mktime.c (SHR): New macro, which is a portable
16029 substitute for >> that should work even on Crays.
16030 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
16031 Problem reported by Mark D. Baushke in
16032 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
16033 * lib/getdate.y (SHR): Likewise.
16035 * lib/strftime.c (SHR): Likewise.
16037 * lib/quotearg.c (struct quoting_options): Use unsigned int for
16038 quote_these_too, so that right shifts are well defined. All uses
16041 2004-11-10 Jim Meyering <jim@meyering.net>
16043 Ensure that no close failure goes unreported.
16044 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
16045 return early when it seems there's nothing to flush.
16046 Don't include __fpending.h.
16048 2004-11-10 Jim Meyering <jim@meyering.net>
16050 * modules/closeout (Depends-on): Remove fpending.
16052 2004-11-10 Jim Meyering <jim@meyering.net>
16054 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
16056 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
16058 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
16060 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
16061 and AC_REQUIRE when possible, to avoid duplicate checks.
16062 Check for <wchar.h>.
16064 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
16066 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
16068 2004-11-09 Bruno Haible <bruno@clisp.org>
16070 * m4/sockpfaf.m4: New file.
16072 2004-11-05 Bruno Haible <bruno@clisp.org>
16074 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
16075 Reported by Mark D. Baushke <mdb@cvshome.org>.
16077 2004-11-04 Bruno Haible <bruno@clisp.org>
16079 2004-09-11 Bruno Haible <bruno@clisp.org>
16080 * allocsa.valgrind: New file.
16081 2004-02-06 Bruno Haible <bruno@clisp.org>
16082 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
16083 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
16084 Reported by Christopher Seip <chris.seip@hp.com>.
16086 2004-11-04 Bruno Haible <bruno@clisp.org>
16088 * modules/allocsa (Files): Add lib/allocsa.valgrind.
16089 (Makefile.am): Distribute it.
16091 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
16093 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
16094 with errno == ERANGE if the buffer is too small.
16095 Problem reported by Mark D. Baushke.
16097 2004-11-03 Albert Chin <china@thewrittenword.com>
16098 Paul Eggert <eggert@cs.ucla.edu>
16100 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
16101 equivalent, substitute $ac_type for equivalent type rather than
16102 blindly using uint32_t *always* which won't work if uint32_t is not
16103 available. Define _UINT32_T to work around typedef of uint32_t if
16104 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
16107 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
16109 * m4/jm-macros.m4: Sync from coreutils.
16110 (gl_MACROS): Check for mbrlen, for pathchk.
16111 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
16113 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
16115 * lib/xreadlink.c (MAXSIZE): New macro.
16116 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
16117 size does not exceed MAXSIZE. Avoid cast.
16118 As suggested by Mark D. Baushke in
16119 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
16120 if readlink fails with buffer size just under MAXSIZE, try again
16123 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
16125 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
16127 2004-11-02 Derek R. Price <derek@ximbiot.com>
16128 and Paul Eggert <eggert@cs.ucla.edu>
16130 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
16131 (get_date): Overparenthesize to avoid GCC warning.
16133 2004-11-02 Bruno Haible <bruno@clisp.org>
16135 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
16138 2004-11-02 Bruno Haible <bruno@clisp.org>
16140 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
16141 function returns void.
16143 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
16145 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
16146 fflush_unlocked, flockfile, funlockfile, funlockfile,
16147 fputs_unlocked, putc_unlocked.
16149 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
16151 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
16152 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
16155 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
16157 * modules/getdate (Files): Add doc/getdate.texi.
16158 (Depends-on): Add setenv, xalloc.
16160 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
16162 * lib/getdate.y: Add support for TZ="foo" within a date string.
16163 Fix some bugs near time_t boundaries. Reject dates with
16164 out-of-range components, e.g., "Sept 31".
16165 Include <stdlib.h>, "setenv.h", "xalloc.h".
16166 (ISDIGIT_LOCALE): Remove; unused.
16167 Note that the TZ and time functions used here are not reentrant.
16168 (mktime_ok, get_tz): New functions.
16169 (TZBUFSIZE): New constant.
16170 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
16171 This requires that we sometimes generate our own TZ="XXX..." setting.
16173 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
16175 * doc/getdate.texi: New file, from coreutils with modifications for
16176 the new TZ parsing.
16178 2004-10-27 Derek R. Price <derek@ximbiot.com>
16180 * lib/mktime.c (not_equal_tm): Remove redundant check.
16182 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
16184 * modules/regex (lib_SOURCES): Add regex.c.
16185 Reported by James Youngman in
16186 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
16188 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
16190 * lib/getdate.y: Use Bison 1.875 features, and some minor
16191 code cleanups. This change does not affect semantics.
16192 Don't include <stdlib.h>; no longer needed.
16193 Don't include unlocked-io.h; only the "#if TEST" code uses
16194 stdio, and performance isn't crucial there.
16195 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
16196 Bison 1.875 features as described below.
16197 All uses of "PC." replaced by "pc->".
16198 (YYSTYPE): Add a forward declaration.
16199 (yylex, yyerror): Use full prototypes in forward decls.
16200 Use "%pure-parser" rather than obsolescent "%pure_parser".
16201 Use %parse-param and %lex-param instead of obsolescent
16202 YYPARSE_PARAM and YYLEX_PARAM.
16203 (meridian_table, month_and_day_table, time_units_table,
16204 relative_time_table, time_zone_table, military_table,
16205 lookup_zone, lookup_word, get_date):
16206 Use NULL instead of 0 where appropriate.
16207 (to_hour): Avoid abort (), to avoid a dependency on
16209 (yyerror, yylex): Now accepts parser_control * arg.
16210 (main) [TEST]: Use '\0' rather than 0 for char.
16212 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
16214 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
16216 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
16218 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
16219 It's now the caller's responsibility to handle the case where
16220 !HAVE_GETPAGESIZE && !defined getpagesize.
16222 * lib/mktime.c (leapyear): Arg is long int, not int.
16224 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
16226 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
16228 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
16230 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
16231 missing. Problem reported by James Youngman.
16233 2004-10-16 Simon Josefsson <jas@extundo.com>
16235 * gnulib-tool: Fix comments. Fix parse problem.
16236 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
16238 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
16240 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
16241 implementation of getopt_long. Problem reported by Alexander Taler in:
16242 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
16244 2004-10-15 Bruno Haible <bruno@clisp.org>
16246 * gnulib-tool: Untabify. Initialize supplied_libname.
16247 (func_usage): More homogenous output.
16248 (func_modules_transitive_closure, func_modules_to_filelist,
16249 func_emit_lib_Makefile_am): New functions.
16250 (func_import): New function, extracted from big case statement. Use
16251 func_get_license, func_modules_transitive_closure,
16252 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
16253 opt_lgpl. Don't use test -a, as it's not portable.
16254 (func_create_testdir): Use func_modules_transitive_closure,
16255 func_modules_to_filelist, func_emit_lib_Makefile_am.
16257 2004-10-15 Bruno Haible <bruno@clisp.org>
16259 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
16261 2004-10-15 Bruno Haible <bruno@clisp.org>
16263 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
16264 the portions belonging to each module.
16265 Suggested by Derek Robert Price <derek@ximbiot.com>.
16267 2004-10-12 Simon Josefsson <jas@extundo.com>
16269 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
16270 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
16273 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
16275 * modules/vsnprintf: New file.
16277 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
16279 * m4/vsnprintf.m4: New file.
16281 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
16283 * lib/vsnprintf.h: New file.
16284 * lib/vsnprintf.c: New file.
16286 2004-10-11 Bruno Haible <bruno@clisp.org>
16288 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
16291 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
16293 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
16295 2004-10-07 Bruno Haible <bruno@clisp.org>
16297 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
16298 fits into the provided buffer.
16300 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
16302 * lib/diacrit.c, diacrit.h: Add GPL notice.
16304 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
16306 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
16307 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
16308 This avoids a potential constant-folding bug.
16310 2004-10-05 Bruno Haible <bruno@clisp.org>
16312 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
16313 for the declaration of strsep.
16315 2004-10-05 Bruno Haible <bruno@clisp.org>
16317 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
16319 2004-10-04 Simon Josefsson <jas@extundo.com>
16321 * modules/memmem: New file.
16322 * tests/test-memmem.c: New file.
16323 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
16325 2004-10-04 Simon Josefsson <jas@extundo.com>
16327 * m4/memmem.m4: New file.
16329 2004-10-04 Simon Josefsson <jas@extundo.com>
16331 * lib/memmem.h: New file.
16332 * lib/memmem.c: New file, taken from glibc.
16334 2004-10-04 Simon Josefsson <jas@extundo.com>
16336 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
16337 '#ifdef USE_UNLOCKED_IO'.
16339 2004-10-04 Simon Josefsson <jas@extundo.com>
16341 * config/srclist.txt: Add memmem from glibc.
16343 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
16345 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
16347 * modules/argmatch, modules/argp, modules/closeout, modules/error,
16348 modules/exclude, modules/getdate, modules/getline,
16349 modules/getndelim2, modules/getpass, modules/getpass-gnu,
16350 modules/getusershell, modules/linebuffer, modules/md5,
16351 modules/mountlist, modules/posixtm, modules/readtokens,
16352 modules/readutmp, modules/regex, modules/sha1,
16353 modules/version-etc, modules/yesno:
16354 Remove dependency on unlocked-io.
16356 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
16358 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
16360 * m4/unlocked-io.m4: Add copyright notice.
16361 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
16363 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
16365 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
16366 * lib/xmalloc.c (xmemdup): Likewise.
16367 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
16368 XFREE): Remove these long-obsolescent macros.
16369 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
16370 * lib/xstrdup.c: Remove.
16372 * lib/regex.c (re_comp): Cast gettext return value to char *,
16373 Problem reported by Martin Neitzel via Mark D. Baushke.
16375 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
16377 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
16378 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
16379 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
16380 regex.c, sha1.c, version-etc.c, yesno.c:
16381 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
16382 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
16383 the includer's responsibility.
16385 Sync from coreutils.
16387 * lib/modechange.c (mode_compile): Don't decrement a pointer that
16388 points to the start of a string, as the C Standard says the
16389 resulting behavior is undefined.
16391 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
16392 simple -> simple_backups, numbered_existing ->
16393 numbered_existing_backups, numbered -> numbered_backups
16394 to avoid shadowing problems. All uses changed.
16395 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
16396 * lib/backupfile.c (check_extension, numbered_backup):
16397 Rename locals to avoid shadowing 'basename'.
16398 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
16401 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
16402 * lib/.cvsignore: Add getopt.h.
16404 2004-10-04 Bruno Haible <bruno@clisp.org>
16406 * modules/README: New file.
16407 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
16410 2004-10-02 Jim Meyering <jim@meyering.net>
16412 * lib/dirfd.h, getpagesize.h: Add copyright notice.
16414 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
16416 * modules/strsep: New file.
16418 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
16420 * m4/strsep.m4: New file.
16422 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
16424 * lib/strsep.h: New file.
16425 * lib/strsep.c: New file.
16427 2004-10-01 Simon Josefsson <jas@extundo.com>
16429 * lib/snprintf.c (snprintf): Handle size==0.
16431 2004-10-01 Simon Josefsson <jas@extundo.com>
16432 Bruno Haible <bruno@clisp.org>
16434 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
16435 (snprintf): Declare 'args'.
16437 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
16439 * lib/snprintf.c: Remove comments as to why each header is needed.
16441 2004-10-01 Bruno Haible <bruno@clisp.org>
16443 * MODULES.html.sh: Add strsep.
16445 2004-09-30 Simon Josefsson <jas@extundo.com>
16447 * modules/snprintf: New file.
16449 2004-09-30 Simon Josefsson <jas@extundo.com>
16451 * m4/snprintf.m4: New file.
16453 2004-09-30 Simon Josefsson <jas@extundo.com>
16455 * lib/snprintf.h, lib/snprintf.c: New files.
16457 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16459 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
16460 (hol_entry_help): Never translate an empty string.
16461 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
16462 * lib/argp.h (OPTION_NO_TRANS): New option.
16464 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
16466 * modules/argp (Maintainer): Replace Simon Josefsson
16467 by Sergey Poznyakoff.
16469 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
16471 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
16472 changes merged back into glibc.
16474 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
16476 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
16478 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
16480 * lib/xvasprintf.c: Include xalloc.h.
16481 (xvasprintf): Use xalloc_die, not xmalloc_die.
16483 2004-09-29 Bruno Haible <bruno@clisp.org>
16485 * modules/alloca-opt: New file, derived from modules/alloca.
16486 * modules/allocsa: Depend on alloca-opt instead of alloca.
16487 * modules/setenv: Likewise.
16488 * modules/vasnprintf: Likewise.
16489 * MODULES.html.sh: Add alloca-opt.
16491 2004-09-28 Simon Josefsson <jas@extundo.com>
16493 * gnulib-tool: New parameter --lgpl, to asseert that modules are
16494 LGPL, and to replace license template from GPL to LGPL.
16496 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
16498 * modules/dummy: Change license to LGPL.
16500 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
16502 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
16504 2004-09-24 Simon Josefsson <jas@extundo.com>
16506 * modules/minmax (License): Change from GPL to LGPL.
16508 2004-09-23 Simon Josefsson <jas@extundo.com>
16510 * gnulib-tool (--import): Typo.
16512 2004-09-23 Simon Josefsson <jas@extundo.com>
16514 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
16516 2004-09-22 Bruno Haible <bruno@clisp.org>
16518 * modules/*: Add 'License' field.
16519 * gnulib-tool: Accept --extract-license option.
16520 (func_get_license): New function.
16522 2004-09-21 Bruno Haible <bruno@clisp.org>
16524 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
16525 Reported by Simon Josefsson.
16527 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
16529 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
16530 gl_AC_TYPE_LONG_LONG.
16532 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
16534 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
16536 2004-09-18 Simon Josefsson <jas@extundo.com>
16537 and Paul Eggert <eggert@cs.ucla.edu>
16539 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
16540 calls with autoreconf. Define GL_LIB.
16542 2004-09-14 Karl Berry <karl@gnu.org>
16544 * config/srclist.txt: unsync setenv.c, sigh.
16546 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
16548 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
16549 Problem reported by Bruno Haible in:
16550 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
16552 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
16554 * config/srclist.txt: Comment out argp-pvh.c.
16556 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
16558 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
16559 in case some system header has #define'd it. Problem reported by
16560 Soeren D. Schulze in
16561 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
16563 2004-09-09 Karl Berry <karl@gnu.org>
16565 * regex.[ch]: delete from the root. These were supposed to be
16566 synced with emacs cvs, but this has not happened for about
16567 a year, and anyway nothing else uses emacs regex.[ch].
16568 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
16569 lib/regex[.ch] is untouched.
16571 2004-09-09 Bruno Haible <bruno@clisp.org>
16573 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
16575 2004-09-09 Bruno Haible <bruno@clisp.org>
16577 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
16579 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
16581 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
16583 * modules/xvasprintf: New file.
16584 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
16586 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
16588 * lib/xvasprintf.h: New file.
16589 * lib/xvasprintf.c: New file.
16590 * lib/xasprintf.c: New file.
16592 2004-09-08 Bruno Haible <bruno@clisp.org>
16594 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
16596 2004-09-08 Bruno Haible <bruno@clisp.org>
16598 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
16599 length is > INT_MAX.
16600 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
16603 2004-09-08 Bruno Haible <bruno@clisp.org>
16605 * lib/stdint_.h: New file, taken from GNU clisp.
16607 2004-09-08 Bruno Haible <bruno@clisp.org>
16608 Oskar Liljeblad <oskar@osk.mine.nu>
16610 * modules/stdint: New file.
16611 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
16613 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
16615 Import from coreutils.
16616 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
16617 strings on unbounded length. alloca's performance benefits aren't
16618 that important here.
16619 (V_STRDUP): Remove.
16620 (parse_with_separator): New function, with most of the internals
16621 of the old parse_user_spec. Allow user to omit both user and group,
16622 for compatibility with FreeBSD.
16623 Clone only the user name, not the entire spec.
16624 Do not set *uid, *gid unless entirely successful.
16625 Avoid memory leak in some failing cases.
16626 Fix regression for USER.GROUP reported by Dmitry V. Levin in
16627 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
16628 (parse_user_spec): Rewrite to use parse_with_separator.
16630 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
16632 * modules/userspec: Don't depend on alloca.
16634 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
16636 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
16638 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
16640 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
16641 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
16642 utimecmp, utimens, xnanosleep. Rename sha to sha1.
16644 2004-08-16 Simon Josefsson <jas@extundo.com>
16646 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
16647 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
16648 Add --dry-run for --import.
16649 Let user provided command line parameters override configure.ac
16652 2004-08-12 Simon Josefsson <jas@extundo.com>
16654 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
16655 as discussed with Paul Eggert in threads rooted at
16656 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
16658 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
16659 Before, the test was empty, and relied on ELIDE_CODE in source
16661 (gl_PREREQ_GETOPT): New macro.
16662 (gl_GETOPT): Use them.
16664 2004-08-12 Simon Josefsson <jas@extundo.com>
16666 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
16667 * lib/getopt_.h: Renamed from getopt.h.
16669 2004-08-12 Simon Josefsson <jas@extundo.com>
16671 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
16672 Change default library name from libfoo to libgnu.
16673 Now, if you have a configure.ac that says:
16676 gl_MODULES(error getopt etcetera)
16678 you can import all you need by running:
16679 ../gnulib/gnulib-tool --import
16681 * modules/getopt (Files): Rename getopt.h to getopt_.h.
16682 (Makefile.am): Rewrite, use logic from argz.
16683 (Include): Use <getopt.h> instead of "getopt.h".
16685 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
16687 * modules/argp (Files): Add m4/unlocked-io.m4.
16688 (Depends-on): Add extensions.
16690 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
16692 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
16693 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
16694 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
16695 Check for program_invocation_name, program_invocation_short_name,
16696 flockfile, funlockfile, features.h, _getopt_long_only_r.
16698 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
16700 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
16701 its complicated substitute.
16702 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
16703 and program_invocation_name.
16704 (__argp_basename) [!_LIBC]: Remove; the only use was
16705 replaced by its body.
16706 (__argp_short_program_name): Change condition from
16707 !defined __argp_short_program_name to
16708 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
16709 to match argp-namefrob.h.
16710 (__argp_failure): Don't assume strerror_r returns char *.
16711 * lib/argp-parse.c (N_): Define unconditionally.
16712 (argp_default_options): Fill out initializers with 0 to avoid
16715 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
16717 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
16720 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
16722 Merge from coreutils.
16724 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
16726 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
16727 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
16729 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
16731 Merge from coreutils.
16733 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
16734 wmemchr or wmemcpy. Problem reported by Robert Dahlem
16735 for Reliant Unix 5.43.
16737 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
16738 (union fooround): Use uintmax_t, not long int.
16739 The rest is a merge from libc:
16740 [defined _LIBC]: Include <shlib-compat.h>.
16741 (_obstack) [defined _LIBC]: Remove after 2.3.4.
16743 * lib/settime.c (settime): Recode to avoid warning with
16746 * lib/strverscmp.c: Convert to UTF-8.
16748 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
16750 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
16753 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
16755 * modules/xalloc-die: New file.
16756 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
16758 * modules/md5 (Files): Add m4/uint32_t.m4.
16759 * modules/sha1: Renamed from modules/sha.
16761 Rename lib/sha.h to lib/sha1.h.
16762 Rename lib/sha.c to lib/sha1.c.
16763 Rename m4/sha.m4 to m4/sha1.m4.
16764 (lib_SOURCES): Likewise.
16765 (configure.ac): Rename gl_SHA to gl_SHA1.
16766 (Include): sha.h -> sha1.h.
16768 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
16770 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
16771 * m4/sha1.m4: Renamed from sha.m4.
16772 (gl_SHA1): Renamed from gl_SHA. All uses changed.
16774 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
16776 * lib/obstack.h (obstack_empty_p):
16777 Don't assume that chunk->contents is suitably aligned.
16778 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
16779 Likewise. Problem reported by Benno in
16780 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
16782 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
16783 readable. This could be improved further but it'd take some work.
16785 2004-08-08 Simon Josefsson <jas@extundo.com>
16787 * modules/xgethostname (Depends-on): Remove exit and error (not
16790 * modules/getpass-gnu: Add getpass.h.
16791 (Depends-on): Add stdbool.
16792 * modules/getpass: Add getpass.h.
16794 2004-08-08 Simon Josefsson <jas@extundo.com>
16796 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
16797 Check getpass declaration.
16799 2004-08-08 Simon Josefsson <jas@extundo.com>
16801 * lib/xgethostname.c: Don't include error.h (not used).
16803 * lib/getpass.h: Add.
16804 * lib/getpass.c: Include getpass.h first.
16806 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
16808 * lib/xalloc-die.c: New file.
16809 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
16811 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
16812 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
16814 (_, N_, xalloc_die): Move to xalloc-die.c.
16815 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
16816 so that we needn't mess with xalloc_msg_memory_exhausted.
16818 * lib/sha1.h: Renamed from sha.h.
16819 (SHA1_H): Renamed from _SHA_H.
16820 (sha1_ctx): Renamed from sha_ctx.
16821 (sha1_init_ctx): Renamed from sha_init_ctx.
16822 (sha1_process_block): Renamed from sha_process_block.
16823 (sha1_process_bytes): Renamed from sha_process_bytes.
16824 (sha1_finish_ctx): Renamed from sha_finish_ctx.
16825 (sha1_read_ctx): Renamed from sha_read_ctx.
16826 (sha1_stream): Renamed from sha_stream.
16827 (sha1_buffer): Renamed from sha_buffer.
16828 * lib/sha1.c: Likewise; renamed from sha.c.
16829 Do not include <sys/types.h>.
16830 Include <stddef.h> rather than <stdlib.h>.
16832 2004-08-08 Bruno Haible <bruno@clisp.org>
16834 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
16835 FILESYSTEM_PREFIX_LEN.
16836 * lib/progreloc.c: Likewise.
16837 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
16839 2004-08-06 Simon Josefsson <jas@extundo.com>
16841 * modules/progname (Depends-on): Don't depend on stdbool.
16843 2004-08-06 Simon Josefsson <jas@extundo.com>
16845 * modules/getsubopt: New file.
16846 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16849 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
16851 More merge from coreutils.
16853 * m4/utimens.m4, m4/utimecmp.m4: New files.
16854 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
16855 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
16856 prereq.m4, sha.m4: Import changes from coreutils.
16858 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
16860 More merge from coreutils.
16861 * modules/raise, modules/readtokens0, modules/utimens:
16862 * modules/utimecmp, module/xnanosleep: New files.
16863 * modules/strftime: Add lib/strftime.h.
16864 Change include from <time.h> to "strftime.h".
16865 * modules/yesno: Add lib/yesno.h.
16866 * modules/backupfile: Remove lib/addext.c.
16867 * modules/euidaccess: Add stat-macros.h.
16868 * modules/canonicalize, modules/euidaccess,
16869 modules/filemode, modules/lchown, modules/makepath,
16870 modules/rmdir, modules/stat: Likewise.
16872 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
16875 * lib/argp-help.c (make_hol, hol_append): Don't assume that
16876 SIZE_MAX is a valid preprocessor constant.
16877 (__argp_basename): Change from "#ifndef _LIBC"
16878 to "#ifndef __argp_short_program_name", so that
16879 we don't compile these functions for tar.
16881 More merges from coreutils.
16882 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
16883 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
16884 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
16885 * lib/addext.c: Remove; no longer needed.
16886 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
16887 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
16888 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
16889 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
16890 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
16891 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
16892 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
16893 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
16894 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
16895 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
16896 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
16897 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
16898 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
16899 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
16900 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
16901 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
16902 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
16903 Import changes from coreutils.
16905 2004-08-05 Simon Josefsson <jas@extundo.com>
16907 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
16909 2004-08-05 Simon Josefsson <jas@extundo.com>
16911 * m4/getsubopt.m4: New file.
16913 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
16915 Merge from coreutils.
16917 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
16918 * m4/getcwd-path-max.m4: New files.
16920 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
16921 FILESYSTEM_PREFIX_LEN ->
16922 FILE_SYSTEM_PREFIX_LEN.
16923 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
16924 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
16925 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
16926 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
16928 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
16929 prerequisite modules now handle the DOS stuff.
16930 Don't check for unistd.h.
16932 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
16934 Merge from coreutils.
16936 * lib/.gdb-history: Remove; this doesn't belong here.
16938 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
16939 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
16940 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
16941 * lib/getcwd.c: New files.
16943 * lib/dirname.h: Include <stdbool.h>.
16944 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
16945 for consistency with POSIX terminology. All uses changed.
16946 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
16947 (strip_trailing_slashes): Use bool for booleans.
16948 * lib/stripslash.c (strip_trailing_slashes): Likewise.
16950 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
16951 sometimes returns a positive errno value even when it succeeds.
16952 (print_errno_message) [!LIBC]: Fall back on strerror if
16953 __strerror_r fails.
16955 * lib/path-concat.c (mempcpy): Don't define if a system header defines
16956 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
16957 (longest_relative_suffix): New function.
16958 (path_concat): Use it. Assume first argument is not NULL.
16959 Port to DOS. Omit redundant separators.
16960 Report an error instead of returning NULL.
16961 Use mempcpy instead of memcpy.
16962 (xpath_concat): Remove: not declared or used.
16964 * lib/same.h: Include <stdbool.h>
16965 (same_name): Return bool, not int.
16966 * lib/same.c (same_name): Likewise.
16967 (errno): Don't declare; we assume C89 or better now.
16969 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
16970 if not already defined.
16972 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
16973 * lib/dup-safer.c (errno): Likewise.
16975 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
16977 Merge from coreutils.
16978 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
16979 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
16980 * modules/path-concat: Don't depend on strdup.
16982 2004-08-03 Simon Josefsson <jas@extundo.com>
16984 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
16985 * lib/progname.h: Don't include stdbool.h.
16987 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
16989 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
16990 * MODULES.html.sh (func_all_modules): Remove fatal.
16992 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
16994 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
16996 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
16998 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
17001 2004-08-02 Simon Josefsson <jas@extundo.com>
17003 * lib/getsubopt.h: New file, with comments from Bruno Haible.
17004 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
17005 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
17007 2004-08-01 Simon Josefsson <jas@extundo.com>
17009 * lib/xgetdomainname.c: Include stdlib.h, for free().
17011 2004-07-19 Bruno Haible <bruno@clisp.org>
17013 * MODULES.html.sh (func_all_modules): Add dummy.
17015 2004-07-16 Simon Josefsson <jas@extundo.com>
17017 * modules/dummy: New file.
17019 2004-07-16 Simon Josefsson <jas@extundo.com>
17021 * lib/dummy.c: New file.
17023 2004-07-16 Bruno Haible <bruno@clisp.org>
17025 * lib/backupfile.h: Add extern "C" for C++.
17026 * lib/closeout.h: Likewise.
17027 * lib/copy-file.h: Likewise.
17028 * lib/findprog.h: Likewise.
17029 * lib/full-write.h: Likewise.
17030 * lib/pathname.h: Likewise.
17031 * lib/progname.h: Likewise.
17032 * lib/stpcpy.h: Likewise.
17033 * lib/stpncpy.h: Likewise.
17034 * lib/strcase.h: Likewise.
17035 * lib/strstr.h: Likewise.
17036 * lib/xalloc.h: Likewise.
17038 * lib/mbswidth.h: Add extern "C" for C++.
17039 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
17041 2004-07-13 Robert Millan <robertmh@gnu.org>
17043 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
17045 2004-07-09 Simon Josefsson <jas@extundo.com>
17047 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
17048 failed without this.)
17050 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
17052 * modules/chown (Files): Add lib/fchown-stub.c, since
17053 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
17055 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
17057 * lib/fchown-stub.c: New file.
17059 2004-06-24 Jim Meyering <jim@meyering.net>
17061 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
17063 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
17065 * modules/argz: Omit "#include".
17067 * MODULES.html.sh (func_all_modules): Add calloc, to match
17068 2004-06-01 addition of calloc module.
17070 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
17072 * m4/argz.m4: New file, which is autoupdated from libtool.
17074 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
17076 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
17079 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
17081 * config/srclist-update: Don't insist on "USA." before the
17082 close-comment, as libtool omits the period and puts the */ on a
17084 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
17085 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
17087 2004-06-22 Gary V. Vaughan <gary@gnu.org>
17089 * modules/argz: New file.
17090 * MODULES.html.sh (func_all_modules): Add argz.
17092 2004-06-12 Jim Meyering <jim@meyering.net>
17093 and Paul Eggert <eggert@cs.ucla.edu>
17095 * modules/hash (Files): Add lib/xalloc.h.
17096 * modules/pipe (Depends-on): Add wait-process.
17097 * modules/stat (Depends-on): Add xalloc.
17098 * modules/userspec (Files): Add lib/userspec.h.
17101 Upgrade from gettext-0.13.
17102 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
17103 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
17104 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
17106 2004-06-10 Jim Meyering <jim@meyering.net>
17108 * lib/calloc.c: New file.
17110 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
17112 * lib/getdate.y (yylex): Allow space between sign and number.
17113 Problem reported by Dan Jacobson.
17115 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
17117 Merge from coreutils CVS.
17119 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
17120 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
17121 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
17122 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
17123 xstrtol.m4: Fix copyright date and/or serial number.
17125 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
17126 See if we need an fchown replacement.
17127 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
17128 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
17129 and use the replacement function if we detect either defect.
17131 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
17134 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
17135 and Jim Meyering <jim@meyering.net>
17137 Merge from coreutils CVS.
17139 * lib/stat-macros.h: New file, with contents from file-type.h
17140 and coreutils' system.h.
17141 * lib/file-type.c: Include "stat-macros.h".
17142 * lib/file-type.h (file_type): Move all macro definitions to new file,
17145 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
17146 Wrap old code with this conditional.
17147 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
17148 function that does not dereference symlinks.
17149 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
17151 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
17152 dependency problems.
17153 (xreadlink): Accept new arg SIZE, for efficiency.
17154 All decls and uses changed.
17155 * lib/xreadlink.h: Include <stddef.h>, for size_t.
17157 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
17158 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
17160 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
17163 2004-06-01 Jim Meyering <jim@meyering.net>
17165 * m4/calloc.m4: New file.
17167 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
17169 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
17170 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
17171 Also, fix a typo in a diagnostic.
17173 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
17175 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
17176 or AC_FUNC_REALLOC.
17178 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
17180 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
17181 macros to be defined.
17182 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
17183 the allocator returns NULL because the requested size is zero.
17185 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
17187 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
17188 var. Add comment explaining why libc still defines it. This
17189 merges the following patch from glibc:
17190 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
17192 2004-05-20 Andreas Schwab <schwab@suse.de>
17194 * m4/free.m4: Replace free if it not known to work, not the other
17197 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
17199 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
17200 present in glibc since revision 1.1 of this file.
17201 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
17202 obstack_alignment_mask, obstack_alloc, obstack_base,
17203 obstack_blank, obstack_blank_fast, obstack_chunk_size,
17204 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
17205 obstack_grow0, obstack_init, obstack_int_grow,
17206 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
17207 obstack_next_free, obstack_object_size, obstack_ptr_grow,
17208 obstack_ptr_grow_fast, obstack_room): Remove declarations of
17209 nonexistent functions.
17211 2004-05-18 Karl Berry <karl@gnu.org>
17213 * config/srclist.txt: break link for vasnprintf.c.
17215 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
17217 Port obstack to the AS/400, where pointers are 16 bytes wide and
17218 you cannot cast an integer to a valid pointer. This patch is
17219 currently waiting to be integrated into glibc; see
17220 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
17222 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
17223 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
17224 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
17225 (struct obstack): temp member is now a union of a pointer and
17226 an integer, instead of an integer. All integer uses changed.
17227 This does not affect the physical layout of struct obstack,
17228 except on hosts (like the AS/400) where the size or alignment of
17229 void * is greater than that of ptrdiff_t.
17230 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
17231 __STDC__)]: Store temporary in pointer member of union, not
17233 * lib/obstack.c: Include <stddef.h>, for offsetof.
17234 (struct fooalign): Remove; it doesn't need a name.
17235 (union fooround): Change double to long double, and add void *.
17236 (DEFAULT_ALIGNMENT): Use offsetof to compute.
17237 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
17238 not a macro. Hence the values are always int; so remove all
17239 casts-to-int in uses.
17241 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
17243 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
17244 we can get this patch merged into glibc.
17246 2004-05-17 Derek R. Price <derek@ximbiot.com>
17247 Paul Eggert <eggert@cs.ucla.edu>
17249 * m4/argp: Depend on alloca.
17251 2004-05-17 Derek R. Price <derek@ximbiot.com>
17252 Paul Eggert <eggert@cs.ucla.edu>
17254 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
17257 2004-05-17 Bruno Haible <bruno@clisp.org>
17259 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
17260 precision that consists of a '.' followed by an empty digit string.
17261 Patch by Tor Lillqvist <tml@iki.fi>.
17263 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
17265 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
17266 for backward compatibility with older code. We need our own
17267 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
17268 it under some other name, and our alloca.h will define it.
17270 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
17271 Derek Price <derek@ximbiot.com>
17273 * lib/alloca.c: Include <alloca.h>, to get our interface.
17274 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
17275 include <alloca.h> first. Use C89 prototype for alloca; this
17276 requires including <stddef.h> for size_t. Use extern "C" if C++.
17277 Use #elif for simplicity, since we can assume C89 now.
17278 Don't try to source the system alloca.h since it will not be found
17279 and to prevent recursively including its replacement.
17280 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
17281 * lib/regex.c: Likewise.
17283 2004-05-16 Derek Price <derek@ximbiot.com>
17284 Paul Eggert <eggert@cs.ucla.edu>
17286 getline cleanup. This changes the getndelim2 API: both order of
17287 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
17290 * lib/getline.c: Don't include stddef.h or stdio.h, since our
17291 interface does that.
17292 (getline): Always use getdelim, so that we don't have two
17293 copies of this code.
17294 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
17296 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
17297 (GETNDELIM2_MAXIMUM): New macro.
17298 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
17299 instead of the old practice of delim2==0. All callers changed.
17300 Return -1 on overflow, instead of returning junk.
17301 Do not set *linesize unless allocation succeeds.
17302 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
17303 that we include sys/types.h.
17304 * lib/getnline.h: Likewise.
17305 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
17306 (getndelim2): Reorder arguments.
17307 * lib/getnline.c (getnline, getndelim):
17308 Don't discard the NMAX argument.
17309 (getnline): Invoke getndelim, to avoid code duplication.
17310 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
17311 of (size_t) -1 by callers of the getnline family.
17313 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
17315 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
17316 Check for gettimeofday.
17317 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
17318 Check for settimeofday, stime.
17320 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
17322 * lib/nanosleep.c (suspended): Change its type from int to
17323 sig_atomic_t volatile.
17324 (first_call): Make it private to rpl_nanosleep, and have it
17325 be zero initially as that's a bit faster.
17326 (my_usleep): Round up fractional times instead of truncating them,
17327 as this is the usual meaning for 'sleep'.
17329 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
17331 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
17332 (ENOSYS): Define if not defined.
17333 (settime): Fall back on stime if it exists and settimeofday fails.
17334 But don't bother with fallbacks if a method fails with errno == EPERM.
17336 2004-05-11 Jim Meyering <jim@meyering.net>
17338 Prior to this change, the save_cwd caller required read access to the
17339 current directory on most systems (ones with the fchdir function).
17341 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
17342 fails, try write-only, and finally, resort to using xgetcwd.
17344 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
17346 * lib/obstack.c, obstack.h: Import changes from libc.
17348 2004-04-28 Bruno Haible <bruno@clisp.org>
17350 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
17351 also implicitly appends .exe to executables.
17352 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
17353 accepts Windows pathnames.
17354 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
17355 Treat Cygwin like Windows, since it now accepts Windows pathnames.
17356 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
17357 Treat Cygwin like Windows, since it now accepts Windows pathnames.
17358 Reported by Derek Robert Price <derek@ximbiot.com>.
17360 2004-04-21 Karl Berry <karl@gnu.org>
17362 * config/srclist.txt (localcharset.c): break sync.
17364 2004-04-20 Paul Eggert <eggert@twinsun.com>
17366 * m4/host-os.m4: Add a copyright notice.
17368 2004-04-20 Jim Meyering <jim@meyering.net>
17370 Change UTILS_ to gl_ in AC_DEFINE'd names.
17371 Change utils_- and jm_-prefixed variables, too.
17372 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
17373 UTILS_FUNC_MKDIR_TRAILING_SLASH.
17374 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
17376 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
17377 Don't emit trailing blanks.
17378 Also rename jm_-prefixed variables to have gl_ prefix.
17380 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
17381 Also rename jm_-prefixed variables to have gl_ prefix.
17383 * m4/jm-macros.m4: Reflect the renamings.
17384 * m4/prereq.m4: Likewise.
17386 2004-04-20 Jim Meyering <jim@meyering.net>
17388 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
17391 2004-04-20 Jim Meyering <jim@meyering.net>
17392 Bruno Haible <bruno@clisp.org>
17394 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
17395 memory when realloc fails.
17397 2004-04-19 Jim Meyering <jim@meyering.net>
17399 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
17400 now that readutmp.c may call `free (0)'.
17402 2004-04-19 Bruno Haible <bruno@clisp.org>
17404 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
17405 * m4/inttypes_h.m4: Likewise.
17406 * m4/stdint_h.m4: Likewise.
17407 * m4/intmax_t.m4: Likewise.
17408 * m4/uintmax_t.m4: Likewise.
17410 2004-04-18 Jim Meyering <jim@meyering.net>
17412 * m4/prereq.m4: Don't forbid jm_ prefix.
17414 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
17415 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
17416 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
17417 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
17418 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
17419 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
17420 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
17421 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
17422 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
17423 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
17424 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
17425 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
17426 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
17427 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
17428 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
17429 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
17430 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
17431 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
17432 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
17434 2004-04-18 Jim Meyering <jim@meyering.net>
17436 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
17437 failure, don't leak memory and do call END_UTMP_ENT.
17439 2004-04-16 Jim Meyering <jim@meyering.net>
17441 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
17442 coreutils' stat program.
17443 (gl_PREREQ): Don't require jm_PREREQ_STAT.
17445 2004-04-11 Paul Eggert <eggert@twinsun.com>
17447 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
17449 (CHAR_BIT): Remove, since we assume C89.
17450 Include <stdint.h> if available, as per current Autoconf CVS advice.
17452 2004-03-31 Jim Meyering <jim@meyering.net>
17454 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
17455 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
17456 * m4/xalloc.m4: Likewise.
17458 2004-03-30 Paul Eggert <eggert@twinsun.com>
17460 Merge from coreutils.
17462 * m4/inttostr.m4: New file.
17463 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
17464 Require AM_STDBOOL_H and gl_TIMESPEC instead.
17465 Require gl_CLOCK_TIME.
17466 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
17468 2004-03-30 Paul Eggert <eggert@twinsun.com>
17470 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
17471 not bool, to be more consistent with Unix conventions.
17472 Suggested by Bruno Haible.
17474 Merge from coreutils.
17476 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
17477 * lib/umaxtostr.c: New files.
17479 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
17480 the usual <time.h> dance.
17481 (get_date): Change signature to support fractional time stamps.
17482 All callers changed.
17483 * lib/getdate.y: Include "getdate.h" first, as we can now
17484 assume C89 and don't need to worry about 'const'.
17485 Similarly, include "unlocked-io.h" near start, not in middle.
17486 Include <limits.h>.
17487 (textint.value): Use long int rather than int.
17488 (textint.digits): Use size_t rather than int.
17489 (BILLION, LOG10_BILLION): New constants.
17490 (parser_control): New member rel_ns. Members day_ordinal,
17491 time_zone, month, day, hour, minutes, rel_year, rel_month,
17492 rel_day, rel_hour, rel_minutes, rel_seconds
17493 are now long int, not int. Member seconds is now struct timespec,
17494 not int. New member timespec_seen. Members dates_seen, days_seen,
17495 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
17497 (%union.intval): Now long int, not int.
17498 New member timespec.
17499 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
17500 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
17501 (spec): Now is a timespec or an item list.
17502 (timespec, items): New nonterminals.
17503 (time, rel, relunit, number, get_date):
17504 Add support for fractional seconds.
17505 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
17506 (gmtime, localtime, mktime): Remove decls; not needed with C89.
17507 (to_hour): First arg is now long int, not int.
17508 (to_year): Returns long int, not int.
17509 Don't treat year -70 like 70.
17510 (tm_diff): Returns long int, not int.
17511 (lookup_word): Use bool instead of int when appropriate.
17512 (yylex): Use size_t for count, not int.
17513 Detect overflow when parsing large integer constants.
17514 Add support for fractions.
17515 (get_date): Make pointers 'const' if possible.
17516 Use more-portable code to detect integer overflow.
17517 (main) [TEST]: Adjust to above changes. Test for localtime failure.
17518 Don't use ctime; it's not reliable if the year has >4 digits.
17520 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
17521 This is for compatibility with BSD.
17523 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
17524 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
17525 From coreutils' system.h.
17527 * lib/userspec.c: Don't include "posixver.h".
17528 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
17529 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
17530 compatible extension. Simplify code by removing a boolean int
17531 that was always nonzero if a string was nonnull.
17533 2004-03-30 Jim Meyering <jim@meyering.net>
17535 Merge from coreutils.
17537 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
17538 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
17539 on some systems one must include <grp.h> before it.
17540 Reported by Christian Krackowizer.
17542 2004-03-30 Jim Meyering <jim@meyering.net>
17544 Merge from coreutils.
17546 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
17548 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
17549 an empty input stream.
17551 * lib/readtokens.c: Include <stdbool.h>.
17552 (readtoken): Use `size_t' rather than int/long.
17553 All callers adjusted.
17554 Use `bool' rather than `int' where appropriate.
17555 Use memset rather than an explicit loop.
17556 Use x2nrealloc rather than xrealloc.
17557 Allow the use of `\0' as a delimiter.
17558 (readtokens): Likewise.
17559 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
17561 2004-03-30 Jim Meyering <jim@meyering.net>
17563 * m4/realloc.m4: Remove file, since now it does no more than
17564 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
17565 the `configure.ac' section of module/realloc.
17566 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
17568 2004-03-30 Bruno Haible <bruno@clisp.org>
17570 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
17573 2004-03-29 Paul Eggert <eggert@twinsun.com>
17575 Merge changes to getloadavg.c from coreutils and Emacs.
17577 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
17578 Define to an expression, not to the empty string.
17579 Include cloexec.h and xalloc.h.
17580 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
17581 Use set_cloexec_flag rather than rolling our own.
17582 * lib/cloexec.c, lib/cloexec.h: New files.
17584 2004-03-29 Paul Eggert <eggert@twinsun.com>
17586 * m4/cloexec.m4: New file.
17588 2004-03-18 Paul Eggert <eggert@twinsun.com>
17590 * lib/getopt.h: Sync with libc CVS.
17592 2004-03-18 Paul Eggert <eggert@twinsun.com>
17593 Bruno Haible <bruno@clisp.org>
17595 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
17598 2004-03-18 Paul Eggert <eggert@twinsun.com>
17599 Bruno Haible <bruno@clisp.org>
17601 * lib/mbswidth.h: Include <wchar.h> only if
17602 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
17604 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
17606 2004-03-09 Paul Eggert <eggert@twinsun.com>
17608 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
17609 Sync with libc CVS.
17610 * lib/getopt_int.h: New file, also synced from libc.
17612 2004-03-09 Paul Eggert <eggert@twinsun.com>
17614 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
17615 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
17616 Bring back getopt.c, getopt.h, getopt1.c.
17618 2004-03-07 Paul Eggert <eggert@twinsun.com>
17620 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
17621 All uses changed. Check for sa_sigaction member; this fixes
17622 a bug first reported by Jason Andrade in
17623 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
17625 2004-03-07 Paul Eggert <eggert@twinsun.com>
17627 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
17628 '#if' expressions. Unlike the code it replaces, it does not
17629 depend on (defined _SC_PAGESIZE). However, it does depend on
17630 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
17631 first reported by Jason Andrade in
17632 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
17634 2004-02-25 Simon Josefsson <jas@extundo.com>
17636 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
17638 2004-02-25 Simon Josefsson <jas@extundo.com>
17640 * lib/strdup.h: New file.
17641 * lib/strdup.c: Include it.
17642 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
17643 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
17645 2004-02-23 Karl Berry <karl@gnu.org>
17647 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
17648 (from fencepost.gnu.org:/gd/gnuorg).
17650 2004-02-23 Karl Berry <karl@gnu.org>
17652 * config/srclistvars.sh (GNUORG) [karl]: redefine.
17653 * config/srclist.txt: add maintain/standards documents.
17655 2004-02-18 Bruno Haible <bruno@clisp.org>
17657 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
17658 Reported by Derek Robert Price <derek@ximbiot.com>.
17660 2004-02-16 Karl Berry <karl@gnu.org>
17662 * config/mkinstalldirs, install-sh: update from automake.
17664 2004-02-06 Karl Berry <karl@gnu.org>
17666 * m4/po.m4: update from gettext 0.14.1.
17668 2004-02-06 Karl Berry <karl@gnu.org>
17670 * lib/config.charset: update from gettext 0.14.1.
17672 2004-02-05 Paul Eggert <eggert@twinsun.com>
17674 Add comments and code, prompted by suggestions from Bruno Haible
17676 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
17677 describing the enum quoting_style values.
17678 * lib/quotearg.c (quotearg_alloc): New function.
17679 (quotearg_buffer_restyled): Treat lone { and } as special.
17680 Treat = as special. Work around bug with older shells
17681 that "see" a '\' that is really the 2nd byte of a multibyte char.
17682 Quote empty string with shell_quoting_style.
17684 2004-02-03 Bruno Haible <bruno@clisp.org>
17686 * m4/pipe.m4: New file, from GNU gettext.
17688 2004-02-03 Bruno Haible <bruno@clisp.org>
17690 * lib/pipe.h: New file, from GNU gettext.
17691 * lib/pipe.c: New file, from GNU gettext.
17693 2004-01-27 Bruno Haible <bruno@clisp.org>
17695 * m4/execute.m4: New file, from GNU gettext.
17697 2004-01-27 Bruno Haible <bruno@clisp.org>
17699 * lib/execute.h: New file, from GNU gettext.
17700 * lib/execute.c: New file, from GNU gettext.
17701 * lib/w32spawn.h: New file, from GNU gettext.
17703 2004-01-24 Paul Eggert <eggert@twinsun.com>
17705 Merge from diffutils.
17707 * lib/file-type.c (file_type): Add typed memory objects.
17708 * lib/file-type.h (S_TYPEISTMO): New macro.
17710 * lib/c-stack.h (c_stack_action): Remove argv argument.
17711 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
17712 (die): Don't calculate message unless segv_action returns.
17713 (get_stack_location, min_address_from_argv, max_address_from_argv,
17714 volatile stack_base, volatile_stack_size): Remove.
17715 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
17716 that every segmentation violation is a stack overflow. (Ouch!)
17717 See Debian bug 136249 (still outstanding) for more info about why
17718 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
17720 2004-01-24 Paul Eggert <eggert@twinsun.com>
17722 Exit-status fix from coreutils.
17724 Use exit_failure consistently in place of EXIT_FAILURE,
17725 so that program exit statuses are consistent on failure.
17727 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
17728 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
17729 * lib/argmatch.h: Comment fix to match the above.
17730 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
17731 Now a macro referring to exit_failure, instead of a separate
17732 variable. Include "exitfail.h" to get it.
17733 * lib/xstrtol.h: Include "exitfail.h".
17734 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
17736 * lib/long-options.c (parse_long_options): Use prototype
17737 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
17740 2004-01-21 Jim Meyering <jim@meyering.net>
17742 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
17743 so as not to conflict with a different-sized __mktime_internal
17744 function in GNU libc.
17745 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
17746 Problem building statically-linked `ls' reported by Michael Brunnbauer.
17748 2004-01-20 Karl Berry <karl@gnu.org>
17750 * config/config.guess: update from config.
17752 * config/srclistvars.sh: GNUWWWLICENSES for karl.
17754 2004-01-20 Bruno Haible <bruno@clisp.org>
17756 Safer stack allocation.
17757 * lib/setenv.c: Include allocsa.h.
17758 (alloca): Remove fallback definition.
17759 (freea): Remove macro.
17760 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
17763 2004-01-20 Bruno Haible <bruno@clisp.org>
17765 * m4/eealloc.m4: New file, from GNU gettext.
17767 2004-01-20 Bruno Haible <bruno@clisp.org>
17769 * m4/allocsa.m4: New file, from GNU gettext.
17771 2004-01-20 Bruno Haible <bruno@clisp.org>
17773 * lib/xallocsa.h: New file, from GNU gettext.
17774 * lib/xallocsa.c: New file, from GNU gettext.
17776 2004-01-20 Bruno Haible <bruno@clisp.org>
17778 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
17780 2004-01-20 Bruno Haible <bruno@clisp.org>
17782 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
17783 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
17786 2004-01-20 Bruno Haible <bruno@clisp.org>
17788 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
17791 2004-01-20 Bruno Haible <bruno@clisp.org>
17793 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
17795 2004-01-20 Bruno Haible <bruno@clisp.org>
17797 * lib/eealloc.h: New file.
17799 2004-01-20 Bruno Haible <bruno@clisp.org>
17801 * lib/binary-io.h: Avoid warnings on Cygwin.
17803 2004-01-20 Bruno Haible <bruno@clisp.org>
17805 * lib/allocsa.h: New file, from GNU gettext.
17806 * lib/allocsa.c: New file, from GNU gettext.
17808 2004-01-18 Karl Berry <karl@gnu.org>
17810 * doc/gpl.texi, doc/lgpl.texi: new files.
17812 2004-01-18 Karl Berry <karl@gnu.org>
17814 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
17815 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
17817 2004-01-15 Paul Eggert <eggert@twinsun.com>
17819 Merge from coreutils.
17821 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
17822 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
17823 (gl_DEFAULT_POSIX2_VERSION): Move
17824 the documentation from 'configure' into 'config.hin',
17825 so that 'configure --help' isn't burdened by it and
17826 we don't have to worry about its formatting there.
17827 Reword the documentation so that it's more succinct
17828 and can be run together into a single paragraph.
17829 * m4/same.m4 (gl_SAME): Check for pathconf.
17831 2004-01-15 Paul Eggert <eggert@twinsun.com>
17833 Merge from coreutils.
17835 * lib/posixver.c: Include posixver.h.
17837 * lib/same.c: Include <stdbool.h>, <limits.h>.
17838 (_POSIX_NAME_MAX): Define if not defined.
17840 (same_name): If file names are silently truncated, report
17841 that the file names are the same if they are the same after
17842 the silent truncation.
17844 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
17845 conversion function.
17846 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
17847 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
17850 2004-01-15 Jim Meyering <jim@meyering.net>
17852 Merge from coreutils.
17854 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
17855 if no library is required.
17856 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
17857 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
17858 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
17859 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
17860 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
17861 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
17862 value, $ac_cv_search_crypt, if it's "none required".
17863 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
17864 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
17865 not gl_FUNC_GETLOADAVG.
17866 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
17867 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
17869 2004-01-15 Jim Meyering <jim@meyering.net>
17871 Merge from coreutils.
17873 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
17874 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
17875 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
17877 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
17878 optional configure-time default.
17880 * lib/version-etc.c (version_etc_copyright): Update copyright date.
17882 * lib/xreadlink.c (xreadlink): Correct outdated comment.
17884 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
17886 Merge from coreutils.
17888 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
17889 value, $ac_cv_search_nanosleep, if it's "none required".
17891 2004-01-14 Paul Eggert <eggert@twinsun.com>
17893 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
17894 with like-named macro in fnmatch.c.
17895 (EXT): Use an internal constant instead.
17897 Merge fnmatch patches from glibc.
17898 * lib/fnmatch.c (mbsinit): Remove define.
17899 Add libc_hidden_ver (__fnmatch, fnmatch).
17900 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
17901 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
17903 2004-01-14 Karl Berry <karl@gnu.org>
17905 * config/install-sh: update from automake.
17907 2004-01-13 Karl Berry <karl@gnu.org>
17909 * config/install-sh: update from automake.
17911 2004-01-09 Karl Berry <karl@gnu.org>
17913 * config/install-sh: update from automake.
17915 2004-01-05 Karl Berry <karl@gnu.org>
17917 * config/config.{sub,guess}: update from config.
17919 2003-12-31 Karl Berry <karl@gnu.org>
17921 * config/depcomp: update from automake.
17923 2003-12-14 Karl Berry <karl@gnu.org>
17925 * lib/config.charset: update from gettext-runtime.
17927 2003-12-03 Paul Eggert <eggert@twinsun.com>
17929 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
17930 Bug reported by Alfred M. Szmidt.
17932 2003-12-03 Bruno Haible <bruno@clisp.org>
17934 * m4/gettext.m4: Upgrade from gettext-0.13.
17935 * m4/po.m4: Upgrade from gettext-0.13.
17936 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
17937 * m4/intmax.m4: New file, from gettext-0.13.
17938 * m4/printf-posix.m4: New file, from gettext-0.13.
17940 2003-11-29 Karl Berry <karl@gnu.org>
17942 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
17944 2003-11-25 Paul Eggert <eggert@twinsun.com>
17945 Bruno Haible <bruno@clisp.org>
17947 * lib/printf-parse.h: Don't include sys/types.h.
17948 (ARG_NONE): New macro.
17949 (char_directive): Change type of *arg_index fields to size_t.
17950 * lib/printf-parse.c: Don't include sys/types.h.
17951 (SSIZE_MAX): Remove macro.
17952 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
17953 Remove unnecessary overflow check.
17954 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
17957 2003-11-25 Bruno Haible <bruno@clisp.org>
17959 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
17961 2003-11-25 Bruno Haible <bruno@clisp.org>
17963 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
17966 2003-11-24 Paul Eggert <eggert@twinsun.com>
17968 * modules/alloca: Remove dependency on xalloc.
17970 2003-11-24 Paul Eggert <eggert@twinsun.com>
17972 * lib/alloca.c: Remove dependency on xalloc module.
17973 (xalloc_die): Remove.
17974 (memory_full) [!defined emacs]: New macro.
17975 [!defined emacs]: Don't include xalloc.h.
17976 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
17977 address arithmetic overflows. Change datatypes a bit to avoid
17980 2003-11-22 Jim Meyering <jim@meyering.net>
17982 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
17985 2003-11-21 Karl Berry <karl@gnu.org>
17987 * config/config.{sub,guess}: update from config.
17989 2003-11-18 Karl Berry <karl@gnu.org>
17991 * config/config.{sub,guess}: update from config.
17993 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
17995 2003-11-17 Paul Eggert <eggert@twinsun.com>
17997 * README: Mention that S+T cannot overflow if S is the size of
17998 an existing object and T is sufficiently small.
18000 2003-11-17 Jim Meyering <jim@meyering.net>
18002 On systems without utime and without a utimes function capable of
18003 dealing with a NULL struct utimbuf* argument, this utime replacement
18004 could -- in unusual circumstances -- leak a file descriptor.
18005 * lib/utime.c: Include <unistd.h> and <errno.h>.
18006 (utime_null): Be sure to close `fd' and to preserve errno.
18007 Reported by Geoff Collyer via Arnold Robbins.
18009 2003-11-17 Bruno Haible <bruno@clisp.org>
18011 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
18012 (Depends-on): Add xsize.
18014 2003-11-17 Bruno Haible <bruno@clisp.org>
18016 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
18018 2003-11-17 Bruno Haible <bruno@clisp.org>
18020 * lib/vasnprintf.c (alloca): Remove fallback definition.
18021 (freea): Remove definition.
18022 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
18023 Reported by Paul Eggert.
18025 2003-11-16 Paul Eggert <eggert@twinsun.com>
18026 Bruno Haible <bruno@clisp.org>
18028 Protect against address arithmetic overflow.
18029 * lib/printf-args.h: Include stddef.h.
18030 (arguments): Change type of field 'count' to size_t.
18031 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
18032 'unsigned int' where appropriate.
18033 * lib/printf-parse.h: Include sys/types.h.
18034 (char_directive): Change type of *arg_index fields to ssize_t.
18035 (char_directives): Change type of fields 'count', max_*_length to
18037 * lib/printf-parse.c: Include sys/types.h and xsize.h.
18038 (SSIZE_MAX): Define fallback value.
18039 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
18040 instead of 'int' where appropriate. Check a_allocated, d_allocated
18041 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
18042 * lib/vasnprintf.c: Include xsize.h.
18043 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
18044 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
18045 overflow. Avoid wraparound when converting a width or precision from
18048 2003-11-16 Bruno Haible <bruno@clisp.org>
18050 Update from GNU gettext.
18051 * lib/printf-parse.c: Generalize to it can be compiled for wide
18053 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
18054 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
18055 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
18056 SNPRINTF): New macros.
18057 Don't include <alloca.h> if the file is used inside libintl.
18058 (local_wcslen): New function, for Solaris 2.5.1.
18059 (VASNPRINTF): Use it instead of wcslen.
18061 2003-11-16 Bruno Haible <bruno@clisp.org>
18063 * lib/xsize.h (xmax): New function.
18064 (xsum, xsum3, xsum4): Declare as "pure" functions.
18066 2003-11-12 Paul Eggert <eggert@twinsun.com>
18068 * modules/xalloc (Files): Undo latest change, since xalloc.h
18069 no longer needs SIZE_MAX or PTRDIFF_MAX.
18071 2003-11-12 Paul Eggert <eggert@twinsun.com>
18073 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
18076 2003-11-12 Paul Eggert <eggert@twinsun.com>
18078 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
18079 "return", to pacify some unknown compiler. Problem reported
18080 by Joerg Schilling.
18082 2003-11-12 Paul Eggert <eggert@twinsun.com>
18084 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
18085 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
18086 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
18087 heuristic is just as accurate as far as we know, and it removes a
18088 dependency on size_max.m4 and ptrdiff_max.m4.
18090 2003-11-11 Bruno Haible <bruno@clisp.org>
18092 * modules/xsize (Files): Add m4/size_max.m4.
18093 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
18095 2003-11-11 Bruno Haible <bruno@clisp.org>
18097 * m4/size_max.m4: New file.
18098 * m4/ptrdiff_max.m4: New file.
18099 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
18100 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
18101 (gl_XALLOC): Invoke it.
18103 2003-11-11 Bruno Haible <bruno@clisp.org>
18105 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
18106 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
18109 2003-11-10 Paul Eggert <eggert@twinsun.com>
18111 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
18112 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
18113 rejected some allocations of exactly SIZE_MAX - 2 bytes.
18115 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
18116 not (size_t) -1, since it's defined here.
18118 2003-11-09 Karl Berry <karl@gnu.org>
18120 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
18122 2003-11-06 Paul Eggert <eggert@twinsun.com>
18124 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
18125 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
18126 Reject sizes of exactly SIZE_MAX bytes.
18127 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
18128 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
18130 2003-11-05 Bruno Haible <bruno@clisp.org>
18132 * lib/xsize.h: Include limits.h, to avoid a possible collision with
18133 SIZE_MAX defined in <limits.h> on Solaris.
18135 2003-11-04 Jim Meyering <jim@meyering.net>
18137 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
18138 variable names, rather than @VAR@.
18139 * modules/poll: Likewise.
18141 2003-11-04 Bruno Haible <bruno@clisp.org>
18143 * modules/xsize: New file.
18144 * modules/linebreak: Depend on xsize.
18145 * MODULES.html.sh (func_all_modules): Add xsize.
18147 2003-11-04 Bruno Haible <bruno@clisp.org>
18149 * m4/xsize.m4: New file.
18151 2003-11-04 Bruno Haible <bruno@clisp.org>
18153 * lib/xsize.h: New file.
18154 * lib/linebreak.c: Include xsize.h.
18155 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
18156 argument for overflow.
18157 Suggested by Paul Eggert.
18159 2003-11-03 Karl Berry <karl@gnu.org>
18161 * config/config.{guess,sub}: update from config.
18163 2003-11-03 Jim Meyering <jim@meyering.net>
18165 * modules/userspec (lib_SOURCES): Add userspec.h.
18166 (Include): Add "userspec.h".
18167 Improve description.
18169 2003-11-03 Jim Meyering <jim@meyering.net>
18171 * lib/userspec.c: Include "userspec.h".
18172 * lib/userspec.h: New file.
18174 2003-11-03 Bruno Haible <bruno@clisp.org>
18176 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
18178 2003-11-03 Bruno Haible <bruno@clisp.org>
18180 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
18181 available, to avoid (extremely rare) race condition.
18182 Suggested by Paul Eggert.
18184 2003-11-02 Karl Berry <karl@gnu.org>
18186 * config/srclist.txt (vasprintf.c): sync broken, sigh.
18188 2003-10-31 Paul Eggert <eggert@twinsun.com>
18190 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
18191 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
18192 (read_filesystem_list): Set and use me_type_malloced.
18193 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
18194 whatever the type happens to be), for brevity and consistency.
18195 Check for size calculation overflow on Alphas running OSF/1.
18197 2003-10-31 Jim Meyering <jim@meyering.net>
18199 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
18201 * lib/linebuffer.c: Include <string.h> for declaration of memset.
18203 2003-10-30 Paul Eggert <eggert@twinsun.com>
18204 Bruno Haible <bruno@clisp.org>
18206 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
18207 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
18209 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
18211 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
18212 netbsd*-gnu*. Suggested by Robert Millan.
18214 2003-10-29 Paul Eggert <eggert@twinsun.com>
18216 * modules/group-member: Depend on stdbool.
18218 2003-10-29 Paul Eggert <eggert@twinsun.com>
18220 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
18222 2003-10-29 Paul Eggert <eggert@twinsun.com>
18224 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
18225 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
18226 after the 'gnu' in these cases. This fixes some bugs in the
18227 previous change, and is based on suggestions by Robert Millan.
18229 2003-10-29 Paul Eggert <eggert@twinsun.com>
18231 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
18232 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
18234 * lib/quotearg.c (quotearg_n_options): Use it.
18235 * lib/group-member.c: Include <stdbool.h>.
18236 (free_group_info): Arg is now const *; don't free arg.
18237 (get_group_info): Now returns bool and accepts struct group_info *,
18238 rather than returning a malloc'ed struct group_info *.
18239 All uses changed. Check for overflow in internal size calculation.
18241 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
18242 rather than xmalloc/xrealloc.
18243 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
18244 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
18245 conformance bug: the old code used a pointer after freeing the
18246 storage that it addressed.
18247 * lib/hash.c (hash_initialize): Simplify the code by using
18248 xalloc_oversized rather than doing it by hand.
18249 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
18250 the buffer preserved. Use free and xmalloc instead.
18251 * lib/quotearg.c (quotearg_n_options): Likewise.
18252 Use a simpler test for size overflow. Don't use xalloc_oversized
18253 because unsigned int might be wider than size_t (!); this suggests
18254 that we should switch from unsigned int to size_t for slot numbers.
18256 2003-10-28 Paul Eggert <eggert@twinsun.com>
18258 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
18259 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
18260 NetBSD kernels. Requested by Richard Stallman.
18262 2003-10-27 Paul Eggert <eggert@twinsun.com>
18264 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
18265 to allocate the returned structure. Do not allocate a subarray,
18266 as x2nrealloc will do that.
18267 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
18268 instead of xnrealloc.
18269 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
18271 2003-10-27 Bruno Haible <bruno@clisp.org>
18273 * lib/stdbool_.h: Better support for BeOS.
18275 2003-10-26 Paul Eggert <eggert@twinsun.com>
18277 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
18280 2003-10-26 Paul Eggert <eggert@twinsun.com>
18282 * lib/xalloc.h (xalloc_oversized): New static inline function, for
18283 callers that want to do their own size-overflow checking. Include
18284 <stdbool.h>, since xalloc_oversized returns bool.
18285 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
18286 to use xalloc_oversized.
18288 Add two functions x2realloc, x2nrealloc, for programs that grow
18289 arrays dynamically by doubling their sizes.
18290 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
18291 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
18294 Port to C99 semantics for 'inline' of external functions.
18295 Bug reported by Bruno Haible.
18296 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
18297 with the old contents of xnmalloc.
18298 (xnmalloc, xmalloc): Use it.
18299 (xnrealloc_inline): New static inline function,
18300 with the old contents of xnrealloc.
18301 (xnrealloc, xrealloc): Use it.
18303 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
18306 2003-10-26 Karl Berry <karl@gnu.org>
18308 * config/srclist.txt (COPYING.DOC): no longer available from
18309 /gd/gnuorg; don't know where the ultimate source is.
18311 2003-10-25 Paul Eggert <eggert@twinsun.com>
18313 Fix several address-calculation bugs in the hash modules,
18314 plus some minor code cleanup.
18316 * lib/hash.h: Include <stdbool.h>, for bool.
18317 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
18318 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
18319 hash_get_n_entries, hash_get_max_bucket_length,
18320 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
18321 hash_rehash): Use size_t rather than unsigned.
18322 * lib/hash.c (struct hash_table, hash_get_n_buckets,
18323 hash_get_n_buckets_used, hash_get_n_entries,
18324 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
18325 hash_get_entries, hash_do_for_each, hash_string, is_prime,
18326 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
18328 (SIZE_MAX): Define if not defined.
18329 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
18330 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
18332 Use const * when possible.
18333 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
18334 (check_tuning): Fix bug: if tuning parameters were very close to
18335 0 or 1, rounding errors could have caused subscript violations.
18336 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
18337 (hash_initialize): Add 'fail:' label
18338 to free table and return NULL, and use it to simplify code.
18339 Use calloc rather than clearing the storage ourself.
18340 (hash_initialize, hash_rehash): Check for arithmetic overflow in
18341 buffer size calculations.
18342 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
18343 Include <stddef.h>, for size_t.
18344 * lib/hash-pjw.c (hash_pjw): Likewise.
18345 Switch to method described by Bruno Haible.
18346 Include <limits.h>, for CHAR_BIT.
18347 (SIZE_BITS): New macro.
18349 2003-10-23 Paul Eggert <eggert@twinsun.com>
18351 * m4/getline.m4 (AM_FUNC_GETLINE):
18352 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
18353 hosts. Problem reported by Derek Robert Price in
18354 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
18355 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
18356 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
18358 2003-10-21 Paul Eggert <eggert@twinsun.com>
18360 * lib/getndelim2.c (getndelim2): When size calculation overflows,
18361 ceiling the allocation at NMAX bytes rather than silently
18362 discarding input bytes before NMAX is reached. This makes
18363 a difference only if NMAX exceeds SIZE_MAX / 2.
18365 * lib/obstack.c: Merge from glibc.
18366 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
18367 Add libc_hidden_def (_obstack_newchunk).
18368 (_obstack_free) [! defined _LIBC]: Remove.
18369 [defined _LIBC]: Make a strong alias from obstack_free, rather than
18370 a clone of the function body.
18371 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
18372 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
18374 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
18376 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
18379 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
18380 (obstack_ptr_grow_fast, obstack_int_grow_fast):
18381 Don't use lvalue casts, as GCC plans to remove support for them
18382 in GCC 3.5. Reported by Joseph S. Myers. This bug
18383 was also present in the non-GCC version, indicating that this
18384 code had always been buggy and had never been widely used.
18385 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
18386 Use the fast variant of each macro, rather than copying the
18387 definiens of the fast variant; that way, we'll be more likely to
18388 catch future bugs in the fast variants.
18390 2003-10-20 Bruno Haible <bruno@clisp.org>
18392 * modules/wait-process: New file.
18393 * MODULES.html.sh (func_all_modules): Add wait-process.
18395 2003-10-20 Bruno Haible <bruno@clisp.org>
18397 * m4/wait-process.m4: New file.
18399 2003-10-20 Bruno Haible <bruno@clisp.org>
18401 * lib/wait-process.h: New file, from GNU gettext.
18402 * lib/wait-process.c: New file, from GNU gettext.
18404 2003-10-19 Jim Meyering <jim@meyering.net>
18406 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
18409 2003-10-18 Karl Berry <karl@gnu.org>
18411 * config/config.guess: update from config.
18413 2003-10-16 Paul Eggert <eggert@twinsun.com>
18415 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
18416 (getgroups): First arg is int, not size_t.
18417 Don't let 'free' mangle errno.
18419 2003-10-16 Paul Eggert <eggert@twinsun.com>
18421 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
18423 2003-10-16 Karl Berry <karl@gnu.org>
18425 * config/config.{guess,sub}: update from config.
18427 2003-10-16 Jim Meyering <jim@meyering.net>
18429 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
18432 2003-10-15 Paul Eggert <eggert@twinsun.com>
18434 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
18435 (SIZE_MAX): Remove.
18436 (new_exclude, add_exclude_file): Initial size no longer needs to
18438 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
18439 our own address arithmetic overflow checking.
18441 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
18442 (fnmatch): Do not alloca more than 2000 wide characters;
18443 instead, use malloc for large buffers.
18444 Check for address arithmetic overflow, and return -1
18445 with errno set to ENOMEM in that case.
18446 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
18447 (NEW_PATTERN): Do not alloca more than 8000 bytes;
18448 instead, return -1. Check for address arithmetic overflow.
18450 2003-10-14 Paul Eggert <eggert@twinsun.com>
18452 Handle invalid suffixes and overflow independently, so that
18453 callers can treat them independently as needed. Fix some bugs in
18454 suffix handling, e.g., "100k@" was not diagnosed as an invalid
18455 suffix for a human-readable blocksize. The major caller-visible
18456 change is the addition of a new
18457 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
18458 that both overflow and suffix chars were found.
18460 * lib/human.c (humblock): Don't check separately for invalid suffix
18461 char; that is xstrtoumax's job (now that its bug is fixed).
18462 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
18463 INTMAX_MAX]: New macros.
18464 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
18465 TYPE_MAXIMUM): New macros.
18466 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
18467 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
18468 if overflow occurs, as it's what __strtol does and it's more useful
18470 (__xstrtol): If __strtol reports some error other than ERANGE,
18471 reflect it to the caller as LONGINT_INVALID. If it reports
18472 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
18473 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
18474 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
18476 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
18477 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
18478 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
18479 [defined UINTMAX_MAX]: New macros.
18481 2003-10-14 Bruno Haible <bruno@clisp.org>
18483 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
18485 2003-10-14 Bruno Haible <bruno@clisp.org>
18487 * m4/sig_atomic_t: New file, from GNU gettext.
18488 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
18490 2003-10-14 Bruno Haible <bruno@clisp.org>
18492 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
18493 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
18494 Also use volatile where needed.
18496 2003-10-12 Paul Eggert <eggert@twinsun.com>
18498 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
18499 Change maintainer from Bruno Haible to 'all'.
18501 2003-10-12 Paul Eggert <eggert@twinsun.com>
18503 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
18505 2003-10-12 Paul Eggert <eggert@twinsun.com>
18507 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
18508 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
18509 and define in terms of the other primitives.
18510 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
18511 (SIZE_MAX): Define if not already defined.
18512 (array_size_overflow): New function.
18513 (xalloc_die): Abort instead of exiting if 'error' returns.
18514 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
18515 (xmalloc, xrealloc): Use them.
18516 (xcalloc): Check for address arithmetic overflow.
18517 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
18518 a bit faster than strcpy.
18520 2003-10-10 Simon Josefsson <jas@extundo.com>
18522 * modules/argp (Depends-on): Add restrict and strcase.
18524 2003-10-10 Simon Josefsson <jas@extundo.com>
18526 * m4/argp.m4: Add AC_C_INLINE.
18528 2003-10-08 Paul Eggert <eggert@twinsun.com>
18530 Merge getpass from libc, plus a few fixes.
18532 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
18533 Include <stdbool.h>.
18534 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
18535 __fsetlocking to empty.
18536 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
18537 do include <bits/libc-lock.h>.
18538 Do not include <fcntl.h>; not needed.
18539 [_LIBC]: Include <wchar.h>.
18540 (NOTCANCEL_MODE): New macro.
18541 (flockfile, funlockfile) [_LIBC]: New macros.
18542 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
18543 [!_LIBC]: New macros.
18544 (call_fclose): New function.
18545 (getpass): Use it. Save tty stream separately; this simplifies the
18546 code and makes it more reliable if stdin happens to equal stdout.
18547 Invoke __fsetlocking on tty.
18548 Handle thread cancellation if needed.
18549 Namespace cleanup (use __tcgetattr, __getline).
18550 Use bool for Booleans.
18551 [USE_IN_LIBIO]: Handle wide streams.
18552 [!_LIBC]: Unconditionally do the fseek, since we don't know what
18553 stream might go where.
18555 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
18556 doesn't have to include <stdio.h> before us.
18557 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
18558 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
18559 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
18560 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
18561 if not declared, so that we can use getpass.c code from libc without
18563 (flockfile, ftrylockfile, funlockfile): New macros.
18565 2003-10-08 Paul Eggert <eggert@twinsun.com>
18567 * modules/getpass: Depend on stdbool.
18569 2003-10-08 Paul Eggert <eggert@twinsun.com>
18571 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
18573 2003-10-07 Karl Berry <karl@gnu.org>
18575 * config/config.{guess,sub}: update from config.
18577 2003-10-06 Jim Meyering <jim@meyering.net>
18578 Bruno Haible <bruno@clisp.org>
18580 This lets translators provide better translations for the
18581 "Written by ..." part of --version output.
18582 * lib/version-etc.h: Include stdarg.h.
18583 (version_etc_copyright): Declare as readonly.
18584 (version_etc): Make this function variadic with a NULL-terminated list
18585 of author name strings.
18586 (version_etc_va): New declaration.
18587 * lib/version-etc.c: Include stdarg.h, stdlib.h.
18588 (version_etc_copyright): Declare as readonly.
18589 (version_etc_va): New function. Provide a different translatable string
18590 for each possible number of authors < 10. Abbreviate when there are 10
18592 (version_etc): Make this function variadic. Call version_etc_va.
18593 Suggestion from Gary V. Vaughan.
18595 * lib/long-options.h (parse_long_options): Change prototype: the
18596 authors string is moved to the end and becomes variadic.
18597 * lib/long-options.c: Include stdarg.h.
18598 (parse_long_options): Make this function variadic, too.
18599 Call version_etc_va, not version_etc.
18601 2003-10-06 Bruno Haible <bruno@clisp.org>
18603 * modules/version-etc-2: Remove file.
18604 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
18606 2003-10-06 Bruno Haible <bruno@clisp.org>
18608 * modules/fatal-signal: New file.
18609 * MODULES.html.sh (func_all_modules): Add fatal-signal.
18611 2003-10-06 Bruno Haible <bruno@clisp.org>
18613 * m4/fatal-signal.m4: New file.
18614 * m4/signalblocking.m4: New file, from GNU gettext.
18616 2003-10-06 Bruno Haible <bruno@clisp.org>
18618 * lib/version-etc-2.h: Remove file.
18619 * lib/version-etc-2.c: Remove file.
18621 2003-10-06 Bruno Haible <bruno@clisp.org>
18623 * lib/fatal-signal.h: New file, from GNU gettext.
18624 * lib/fatal-signal.c: New file, from GNU gettext.
18626 2003-10-05 Paul Eggert <eggert@twinsun.com>
18628 * README: Rework advice for preventing empty .o files.
18629 Don't recommend ELIDE constructs. Recommend <stddef.h>,
18632 2003-10-04 Karl Berry <karl@gnu.org>
18634 * lib/argp*: update from libc.
18636 2003-10-04 Karl Berry <karl@gnu.org>
18638 * config/config.{guess,sub}: update from config.
18640 2003-10-02 Bruno Haible <bruno@clisp.org>
18642 * modules/lchown (Include): Add lchown.h.
18643 * modules/time_r (Include): Use "..." syntax.
18644 * modules/xgetdomainname (Include): Add xgetdomainname.h.
18646 2003-10-01 Simon Josefsson <jas@extundo.com>
18648 * MODULES.html.sh (func_all_modules): Move gethostname from section
18649 'based on' to section 'lacking' POSIX:2001.
18651 2003-10-01 Larry Jones <lawrence.jones@eds.com>
18653 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
18654 to output mode on the same stream.
18656 2003-09-29 Paul Eggert <eggert@twinsun.com>
18658 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
18659 Fix arg typo in previous patch.
18661 2003-09-28 Jim Meyering <jim@meyering.net>
18663 * lib/error.c: Correct cpp indentation.
18665 2003-09-27 Paul Eggert <eggert@twinsun.com>
18667 * modules/free: New file.
18669 2003-09-27 Paul Eggert <eggert@twinsun.com>
18671 * m4/free.m4: New file.
18673 2003-09-27 Paul Eggert <eggert@twinsun.com>
18675 * lib/minmax.h (MIN, MAX)
18676 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
18677 Omit the special code that used __typeof__, since we worry that
18678 it could be more trouble than it's worth. See:
18679 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
18680 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
18682 * lib/free.c: New file.
18684 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
18686 Trivial fixes to Makefile.am parts of module listings.
18687 * modules/strstr: Append strstr.h to lib_SOURCES.
18688 * modules/strcase: Likewise, for strcase.h.
18690 2003-09-27 Karl Berry <karl@gnu.org>
18692 * config/mkinstalldirs: update from automake.
18694 2003-09-26 Paul Eggert <eggert@twinsun.com>
18696 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
18697 (error_tail): Do not loop, reallocating temporary buffer, since
18698 the output cannot contain more wide characters than the input
18699 contains bytes, the size must be big enough already. This avoids
18700 one potential size overflow calculation. Check for size overflow
18701 when calculating temporary buffer size. Free temporary buffer
18702 when done, if it was allocated with malloc; this plugs a memory
18703 leak. Remove casts from void * to pointers, that are no longer
18704 needed now that we're assuming C89 or better.
18706 Merge error changes from glibc.
18708 * lib/error.c, error.h: Update copyright notice header to match glibc.
18709 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
18710 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
18711 Disable cancellation while printing error.
18712 * lib/error.h: Prepend __ to parameter names.
18714 2003-09-26 Jim Meyering <jim@meyering.net>
18716 * lib/error.c (error_tail): Move some declarations
18717 into inner scope where the local variables are used.
18719 2003-09-26 Bruno Haible <bruno@clisp.org>
18721 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
18723 Don't define stpncpy through config.h; it's now done through stpncpy.h.
18725 2003-09-26 Bruno Haible <bruno@clisp.org>
18727 * lib/stpncpy.h (gnu_stpncpy): New declaration.
18728 (stpncpy): Define as alias for gnu_stpncpy.
18729 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
18731 2003-09-25 Simon Josefsson <jas@extundo.com>
18733 * lib/xgetdomainname.h: New file.
18734 * lib/xgetdomainname.c: New file.
18736 2003-09-25 Simon Josefsson <jas@extundo.com>
18737 Bruno Haible <bruno@clisp.org>
18739 * modules/getdomainname: New file.
18740 * modules/xgetdomainname: New file.
18741 * MODULES.html.sh (func_all_modules): Add getdomainname,
18744 2003-09-25 Simon Josefsson <jas@extundo.com>
18745 Bruno Haible <bruno@clisp.org>
18747 * m4/getdomainname.m4: New file.
18749 2003-09-25 Simon Josefsson <jas@extundo.com>
18750 Bruno Haible <bruno@clisp.org>
18752 * lib/getdomainname.h: New file.
18753 * lib/getdomainname.c: New file.
18755 2003-09-25 Karl Berry <karl@gnu.org>
18757 * lib/argp-fmtstream.c, argp-help.c: update from libc.
18759 2003-09-25 Karl Berry <karl@gnu.org>
18761 * config/install-sh: update from automake.
18763 2003-09-25 Bruno Haible <bruno@clisp.org>
18765 * modules/version-etc-2: New file, from modules/version-etc with
18767 * MODULES.html.sh (func_all_modules): Add version-etc-2.
18769 2003-09-25 Bruno Haible <bruno@clisp.org>
18771 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
18772 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
18774 2003-09-24 Simon Josefsson <jas@extundo.com>
18776 * modules/xgethostname: Add xgethostname.h.
18778 2003-09-24 Paul Eggert <eggert@twinsun.com>
18780 * lib/linebuffer.c (freebuffer): Don't free the argument, just
18781 the buffer associated with the argument. Bug reported by
18784 2003-09-24 Paul Eggert <eggert@twinsun.com>
18786 * README: Document assumptions that 'int' is at least 32 bits
18787 wide, that integer arithmetic is 2's complement without overflow,
18788 that there are no holes in integer values, that adding sizes of
18789 two nonoverlapping objects can't overflow, and that all-bits-zero
18790 yields scalar zero. Fix spelling and capitalization typos.
18792 2003-09-19 Karl Berry <karl@gnu.org>
18794 * lib/argp.h: update from libc.
18796 2003-09-17 Paul Eggert <eggert@twinsun.com>
18798 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
18799 to avoid spurious warnings like "AC_RUN_IFELSE was called before
18800 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
18802 2003-09-17 Paul Eggert <eggert@twinsun.com>
18804 * gnulib-tool: Use "test -h", not "test -L", for portability
18805 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
18806 (tags_regexp): Remove, since \| doesn't conform to POSIX.
18807 (sed_extract_prog): Issue s commands one-by-one, rather than
18808 using \| in one s command.
18810 2003-09-16 Paul Eggert <eggert@twinsun.com>
18812 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
18813 input error, instead of returning NULL the next time we are called
18814 (and therefore losing track of errno).
18816 2003-09-16 Bruno Haible <bruno@clisp.org>
18818 * gnulib-tool (func_create_testdir): Warn about duplicated
18821 2003-09-15 Paul Eggert <eggert@twinsun.com>
18823 * modules/argmatch, modules/fatal, modules/obstack,
18824 modules/xalloc, modules/xgethostname: Sort dependencies by
18825 importance, not alphabetically.
18827 2003-09-15 Paul Eggert <eggert@twinsun.com>
18829 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
18830 fails, so that the caller gets the proper errno.
18832 * lib/readutmp.c (read_utmp): Likewise.
18833 Check for fstat error. Close stream and free storage
18836 2003-09-14 Karl Berry <karl@gnu.org>
18838 * config/srclist.txt (strdup.c): disable for c89 changes.
18840 2003-09-14 Jim Meyering <jim@meyering.net>
18842 * lib/getloadavg.c: Correct cpp indentation.
18843 * lib/strdup.c: Likewise.
18844 * lib/vasnprintf.c: Likewise.
18846 2003-09-14 Bruno Haible <bruno@clisp.org>
18848 * modules/fwriteerror: New file.
18849 * MODULES.html.sh (func_all_modules): Add fwriteerror.
18851 2003-09-14 Bruno Haible <bruno@clisp.org>
18853 * lib/fwriteerror.h: New file.
18854 * lib/fwriteerror.c: New file.
18856 2003-09-12 Paul Eggert <eggert@twinsun.com>
18858 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
18859 modules/xgethostname, modules/xalloc: Depend on exit.
18861 2003-09-12 Paul Eggert <eggert@twinsun.com>
18863 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
18865 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
18866 and AC_MINIX, too, so that their extensions are available.
18868 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
18869 This macro has been superseded by gl_BACKUPFILE.
18871 More patches to assume C89 or better.
18873 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
18875 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
18877 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
18878 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
18879 Include <string.h>, <stdlib.h> unconditionally.
18880 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
18881 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
18882 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
18883 headers or for string.h.
18884 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
18887 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
18889 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
18890 * m4/userspec.m4 (gl_USERSPEC): Likewise.
18891 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
18892 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
18893 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
18894 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
18896 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
18897 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
18898 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
18900 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
18901 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
18902 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
18905 2003-09-12 Paul Eggert <eggert@twinsun.com>
18907 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
18908 * lib/obstack.c [!defined _LIBC]: Likewise.
18909 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
18910 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
18911 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
18913 More changes to assume C89 or better.
18915 * lib/error.c (error_tail): Assume vprintf.
18917 * lib/argmatch.c (getenv): Remove decl.
18918 * lib/progreloc.c (get_full_program_name): Define via prototype.
18919 * lib/setenv.c (clearenv): Likewise.
18920 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
18922 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
18923 (malloc, memcpy): Remove decls.
18924 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
18925 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
18926 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
18927 (memcpy): Remove macro.
18928 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
18929 (__P): Remove. All uses removed.
18930 (PTR): Remove. All uses changed to void *.
18931 (CHAR_BIT, NULL): Remove.
18932 (spaces, zeros, memset_space, memset_zero)
18933 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
18935 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
18936 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
18937 Define with prototype.
18938 Remove now-unnecessary prototype decl.
18939 (extra_args_spec): Assume ANSI C. All uses changed.
18940 (extra_args_spec_iso): Remove.
18941 (my_strftime, emacs_strftimeu): Define via prototype.
18942 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
18944 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
18945 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
18946 (strtoul, strtol): Remove decls.
18947 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
18949 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
18950 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
18951 (LOCALE_PARAM_PROTO): New macro.
18952 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
18953 (INTERNAL (strtol), strtol): Define with a prototype.
18954 (PARAMS): Remove. All uses removed.
18955 * lib/tempname.c: Include <string.h> unconditionally.
18956 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
18957 * lib/xgethostname.c (main): Define with a prototype.
18958 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
18959 Include <stdlib.h> unconditionally.
18960 (calloc, malloc, realloc, free): Remove decls.
18961 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
18962 Include <stdlib.h> unconditionally. Sort include file names.
18964 (xstrtod): Define with a prototype.
18965 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
18966 (strtol, strtoul): Remove decls.
18968 2003-09-11 Paul Eggert <eggert@twinsun.com>
18970 More patches to assume C89 or better.
18971 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
18972 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
18973 string.h, memchr, STDC_HEADERS.
18975 2003-09-11 Paul Eggert <eggert@twinsun.com>
18977 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
18978 Include <stdlib.h>, <string.h> unconditionally.
18979 Remove now-unnecessary cast to char *.
18980 * lib/strnlen.c: Include <string.h> unconditionally.
18981 * lib/yesno.c (yesno): Define with a prototype.
18983 2003-09-11 Bruno Haible <bruno@clisp.org>
18985 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
18987 2003-09-10 Jim Meyering <jim@meyering.net>
18989 * lib/error.c: Correct indentation of cpp directives.
18991 2003-09-10 Bruno Haible <bruno@clisp.org>
18993 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
18994 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
18995 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
18996 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
18997 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
18998 <stdlib.h> and <string.h> checks.
18999 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
19000 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
19002 2003-09-10 Bruno Haible <bruno@clisp.org>
19004 * lib/strcspn.c: Include <string.h> unconditionally.
19005 * lib/strpbrk.c: Include <string.h> unconditionally.
19006 * lib/strstr.c: Include <string.h> unconditionally.
19007 * lib/unicodeio.c: Include <string.h> unconditionally.
19008 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
19009 * lib/unsetenv.c: Likewise.
19010 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
19011 * lib/yesno.c: Include <stdlib.h> unconditionally.
19012 (rpmatch): Add prototype.
19014 2003-09-09 Paul Eggert <eggert@twinsun.com>
19016 More patches to assume C89 or better.
19017 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
19018 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
19019 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
19021 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
19023 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
19025 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
19027 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
19028 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
19029 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
19031 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
19032 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
19034 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
19036 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
19037 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
19038 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
19039 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
19040 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
19041 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
19043 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
19044 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
19045 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
19046 C headers, or for string.h.
19047 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
19048 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
19049 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
19050 headers, memory.h, stdlib.h, string.h, strings.h.
19051 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
19052 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
19053 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
19055 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
19056 headers, memory.h, string.h.
19057 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
19058 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
19060 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
19062 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
19063 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
19064 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
19065 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
19066 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
19068 2003-09-09 Paul Eggert <eggert@twinsun.com>
19072 * lib/acosl.c (main): Use a prototype.
19073 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
19076 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
19078 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
19079 (getopt, etopt_long, getopt_long_only, _getopt_internal)
19080 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
19082 * lib/getopt.c (const): Remove macro.
19083 Include <string.h> unconditionally.
19084 (my_index): Remove; all uses changed to strchr.
19085 (strlen): Remove decl.
19086 (exchange): Remove forward decl; no longer needed.
19087 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
19088 Define with prototype.
19089 * lib/getopt1.c (const): Remove macro.
19090 (getopt_long, getopt_long_only, main): Define with prototype.
19092 * lib/getugroups.c: Include <string.h> unconditionally.
19094 * lib/getusershell.c: Include <stdlib.h> unconditionally.
19095 (getusershell, setusershell, endusershell, readname, main):
19096 Define with prototypes.
19098 * lib/group-member.c: Include group-member.h first.
19099 Include <stdlib.h> unconditionally.
19101 * lib/hard-locale.c: Include hard-locale.h first.
19102 Include <stdlib.h>, <string.h> unconditionally.
19104 * lib/hash.c (free, malloc): Remove decls.
19105 Include <stdlib.h> unconditionally.
19107 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
19108 (getenv): Do not declare.
19110 * lib/idcache.c: Include <string.h> unconditionally.
19112 * lib/long-options.c: Include long-options.h first, to test interface.
19113 Include <stdlib.h> unconditionally.
19115 * lib/makepath.c: Include makepath.h first, to test interface.
19116 Include <stdlib.h> and <string.h> unconditionally.
19118 * lib/linebuffer.c: Include <stdlib.h>.
19119 (free): Remove decl.
19121 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
19122 stddef.h. rpl_malloc returns void *, not char *.
19123 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
19126 * lib/md5.h: Include <limits.h> unconditionally.
19127 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
19128 (__P): Remove; all uses removed.
19129 * lib/md5.c: Include "md5.h" first.
19130 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
19131 md5_buffer, md5_process_bytes, md5_process_block):
19132 Define with prototypes.
19133 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
19134 * lib/sha.c: Include "sha.h" first.
19135 Include <stdlib.h>, <string.h> unconditionally.
19137 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
19138 * lib/memcmp.c (__ptr_t): Likewise.
19139 * lib/memrchr.c (__ptr_t): Likewise.
19140 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
19141 Include <string.h> unconditionally.
19142 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
19143 * lib/memchr.c: Include <stdlib.h> unconditionally.
19144 * lib/memchr.c (LONG_MAX): Remove.
19145 * lib/memrchr.c (LONG_MAX): Likewise.
19146 * lib/memchr.c (__memchr): Define via a prototype.
19147 * lib/memrchr.c (__memrchr): Likewise.
19148 * lib/memcmp.c (__P): Remove, and remove all uses.
19149 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
19150 Remove forward decls; no longer needed.
19151 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
19152 Use types required by C89 in prototype.
19154 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
19155 * lib/savedir.c: Likewise.
19156 * lib/mkdir.c (free): Remove decl.
19157 * lib/rmdir.c (rmdir): Define with a prototype.
19158 * lib/savedir.c: Include savedir.h first, to test interface.
19160 * lib/mktime.c (STDC_HEADERS): Remove.
19161 Include <stdlib.h>, <string.h> unconditionally.
19163 * lib/modechange.c: Include <stdlib.h> unconditionally.
19164 (malloc): Remove decl.
19166 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
19167 (free): Remove decl.
19169 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
19170 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
19171 (This type really should be intptr_t, but that's a C99ism.)
19172 (_obstack_memcpy): Remove: all uses changed to memcpy.
19173 Include <string.h> unconditionally.
19174 (struct obstack): Assume __STDC__ for types of members
19175 chunkfun, freefun, extra_arg.
19176 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
19177 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
19178 obstack_begin, obstack_specify_allocation,
19179 obstack_specify_allocation_with_arg, obstack_chunkfun,
19180 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
19181 Remove unprototyped decls and the macros that use them.
19182 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
19183 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
19184 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
19185 (defined __STDC__ && __STDC__)]:
19186 Remove nonprototyped code.
19187 Include <stdlib.h> unconditionally.
19188 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
19189 _obstack_allocated_p, _obstack_free, obstack_free,
19190 _obstack_memory_used, print_and_abort):
19191 Define using prototypes.
19192 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
19193 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
19194 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
19195 obstack_next_free, obstack_object_size, obstack_room) [0]:
19196 Remove unused, unprototyped code.
19198 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
19200 * lib/physmem.c (physmem_total, physmem_available, main): Define
19203 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
19204 (main): Define with a prototype.
19206 * lib/posixver.c (getenv): Remove decl.
19208 * lib/putenv.c (malloc): Returns void *, not char *.
19209 Include <string.h> unconditionally.
19210 (strchr, memcpy, NULL): Do not define.
19212 * lib/readtokens.c: Include readtokens.h first, to test interface.
19213 Include <stdlib.h>, <string.h> unconditionally.
19214 (init_tokenbuffer): Define with a prototype.
19216 * lib/regex.c (PARAMS): Remove. All uses removed.
19217 All uses of _RE_ARGS removed, too.
19218 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
19220 (bzero): Assume memset exists.
19221 (memcmp, memcpy, NULL): Remove.
19222 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
19223 char, or assignments to local vars of type signed char.
19224 (init_syntax_once, PREFIX(extract_number_and_incr),
19225 PREFIX(print_partial_compiled_pattern),
19226 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
19227 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
19228 PREFIX(regex_grow_registers), PREFIX(regex_compile),
19229 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
19230 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
19231 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
19232 wcs_compile_range, byte_compile_range, truncate_wchar,
19233 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
19234 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
19235 count_mbs_length, wcs_re_match_2_internal,
19236 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
19237 PREFIX(alt_match_null_string_p),
19238 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
19239 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
19240 regfree, PREFIX(extract_number)): Define with prototype. Remove
19241 now-unnecessary declaration, if any.
19242 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
19244 Remove now-unnecessary casts among pointer types.
19245 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
19247 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
19248 (free): Remove decl.
19250 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
19252 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
19253 (free): Remove decl.
19255 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
19256 * lib/xgetcwd.c: Likewise.
19258 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
19259 (free): Remove decl.
19261 * lib/strchrnul.c (strchrnul): Define with a prototype.
19262 Fix bug: c_in was not converted to char before searching.
19264 The following changes are not K&R related:
19266 * lib/group-member.h: Include <sys/types.h>, so that this file is
19268 * lib/makepath.h: Likewise.
19270 * lib/getusershell.c (readname, default_index, line_size, readname):
19271 Use size_t, not int, for sizes.
19272 (readname): If the size overflows, report an error instead of
19275 2003-09-09 Paul Eggert <eggert@twinsun.com>
19277 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
19280 2003-09-09 Paul Eggert <eggert@twinsun.com>
19282 * README: New section: portability guidelines.
19284 2003-09-09 Derek Robert Price <derek@ximbiot.com>
19286 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
19289 2003-09-09 Derek Robert Price <derek@ximbiot.com>
19291 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
19293 2003-09-08 Paul Eggert <eggert@twinsun.com>
19295 Assume C89 or better; remove K&R cruft.
19296 A few of these changes were first proposed by Derek Robert Price
19297 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
19299 * lib/addext.c: Include <string.h> unconditionally.
19300 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
19301 Don't declare getenv or malloc.
19303 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
19304 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
19306 (find_stack_direction, alloca): Use prototypes.
19308 * lib/atexit.c (atexit): Define using a prototype.
19310 * lib/basename.c, dirname.c, stripslash.c:
19311 Include <string.h> unconditionally.
19313 * lib/bcopy.c: Include <stddef.h>.
19314 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
19316 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
19318 * lib/error.h (error, error_at_line, error_print_progname)
19319 [! (defined (__STDC__) && __STDC__)]: Remove decls.
19320 * lib/error.c: Include error.h first, to check interface.
19321 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
19322 (VA_START): Remove; all uses changeed to va_start.
19323 (exit, strerror): Remove decls.
19324 (error_print_progname): Prototype uncondionally.
19325 Don't include <errno.h>; no longer needed.
19326 (private_strerror): Remove.
19327 (error_tail): Always define.
19328 (error, error_at_line): Assume C89 or better; always use prototypes.
19329 * lib/fatal.c: Include "fatal.h" first, to test interface.
19330 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
19331 (VA_START): Remove; all uses changed to va_start.
19332 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
19334 (exit): Remove decl.
19335 (fatal): Prototype unconditionally. Assume va_start works.
19336 Abort at end, to pacify gcc.
19338 * lib/euidaccess.c (main): Define with a prototype.
19340 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
19342 * lib/exitfail.c: Include <stdlib.h> unconditionally.
19344 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
19346 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
19347 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
19348 (getenv): Remove decl.
19349 (fnmatch): Define using a prototype.
19350 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
19351 (FCT): Define using a prototype.
19353 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
19355 * lib/gethostname.c: Include <stddef.h>.
19356 (gethostname): Define with prototype. Length is size_t, not int.
19358 2003-09-08 Paul Eggert <eggert@twinsun.com>
19360 Assume C89 or better; remove K&R cruft.
19361 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
19362 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
19363 string.h, getenv, malloc.
19364 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
19366 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
19367 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
19368 do not check for strerror.
19369 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
19370 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
19371 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
19372 do not check for doprnt or vprintf.
19373 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
19374 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
19376 2003-09-08 Paul Eggert <eggert@twinsun.com>
19378 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
19379 getversion.c should have been removed then, but was accidentally
19382 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
19383 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
19385 2003-09-08 Karl Berry <karl@gnu.org>
19387 * config/config.sub, config.guess, srclistvars.sh: update from savannah
19388 config, forget about prep.
19390 * config/depcomp, missing: update from automake.
19392 2003-09-07 Paul Eggert <eggert@twinsun.com>
19394 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
19395 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
19397 2003-09-07 Paul Eggert <eggert@twinsun.com>
19399 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
19400 copy_tm_result. Bug reported by Simon Josefsson in
19401 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
19403 2003-09-06 Paul Eggert <eggert@twinsun.com>
19405 * m4/time_r.m4: New file.
19406 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
19407 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
19408 is. Check for timegm declaration.
19409 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
19410 Do not check for gmtime_r.
19411 Replace mktime if __mktime_internal does not exist and if mktime
19412 hasn't been replaced already.
19414 2003-09-06 Paul Eggert <eggert@twinsun.com>
19416 * lib/time_r.c, lib/time_r.h: New files.
19418 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
19420 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
19421 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
19423 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
19425 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
19426 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
19427 Include <time_r.h>.
19429 * lib/timegm.c: Switch to glibc implementation, with the following
19431 [defined HAVE_CONFIG_H]: Include <config.h>.
19432 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
19433 (__mktime_internal) [!defined _LIBC]: New decl.
19434 (__gmtime_r) [!defined _LIBC]: New macro and function.
19435 (timegm): Use a prototype, since gnulib assumes C89.
19436 Do not bother declaring tmp to be const, as it's not really usefu.
19437 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
19438 (timegm): Declare only if HAVE_DECL_TIMEGM.
19440 2003-09-06 Paul Eggert <eggert@twinsun.com>
19442 * MODULES.html.sh (func_all_modules): Add time_r.
19443 * modules/time_r: New file.
19444 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
19445 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
19447 2003-09-03 Paul Eggert <eggert@twinsun.com>
19449 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
19450 Bug reported by Lute Kamstra in
19451 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
19453 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
19454 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
19455 course with correspondingly smaller numbers for tomorrow and
19456 yesterday. From Tadayoshi Funaba. Originally installed into
19457 sh-utils on 1999-08-07, but the patch got lost (I guess during the
19460 2003-08-31 Simon Josefsson <jas@extundo.com>
19462 * modules/timegm: New file.
19463 * MODULES.html.sh (func_all_modules): Add timegm.
19465 2003-08-31 Simon Josefsson <jas@extundo.com>
19467 * m4/timegm.m4: New file.
19469 2003-08-31 Simon Josefsson <jas@extundo.com>
19471 * lib/timegm.h: New file.
19472 * lib/timegm.c: New file. Based on
19473 wget-1.8.2/src/http.c:mktime_from_utc.
19475 2003-08-31 Karl Berry <karl@gnu.org>
19477 * lib/argp.h: update from libc.
19479 2003-08-28 Bruno Haible <bruno@clisp.org>
19481 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
19482 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
19483 followed by '#define fnmatch fnmatch_posix' gives an error.
19485 2003-08-28 Bruno Haible <bruno@clisp.org>
19487 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
19488 warning on QNX, which defines O_BINARY to 000000.
19490 2003-08-27 Jim Meyering <jim@meyering.net>
19492 * m4/mkstemp.m4: Require that the system mkstemp be able to create
19493 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
19494 would fail after 32. Reported by Danny Levinson. Details here:
19495 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
19497 2003-08-24 Bruno Haible <bruno@clisp.org>
19499 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
19500 MSVC7 <stdio.h> is included later.
19502 2003-08-22 Simon Josefsson <jas@extundo.com>
19504 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
19506 2003-08-20 Karl Berry <karl@gnu.org>
19508 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
19510 2003-08-20 Bruno Haible <bruno@clisp.org>
19512 * modules/progname: New file.
19513 * MODULES.html.sh (func_all_modules): Add progname.
19515 2003-08-20 Bruno Haible <bruno@clisp.org>
19517 * lib/progname.h: New file, from GNU gettext.
19518 * lib/progname.c: New file, from GNU gettext.
19519 * lib/progreloc.c: New file, from GNU gettext.
19521 2003-08-19 Jim Meyering <jim@meyering.net>
19523 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
19524 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
19526 2003-08-19 Bruno Haible <bruno@clisp.org>
19528 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
19531 2003-08-19 Bruno Haible <bruno@clisp.org>
19533 * lib/xstrdup.c: Assume <string.h> exists.
19535 2003-08-18 Paul Eggert <eggert@twinsun.com>
19537 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
19540 2003-08-18 Jim Meyering <jim@meyering.net>
19542 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
19543 * m4/lib-ld.m4: Likewise.
19545 2003-08-18 Jim Meyering <jim@meyering.net>
19547 * lib/setenv.h: Indent nested cpp directive.
19548 * lib/vasnprintf.c: Remove trailing blanks.
19550 2003-08-17 Simon Josefsson <jas@extundo.com>
19552 * modules/xstrndup: New file.
19553 * MODULES.html.sh (func_all_modules): Add xstrndup.
19555 2003-08-17 Simon Josefsson <jas@extundo.com>
19557 * modules/argp: Fix autoconf macro name. Add more dependencies.
19559 2003-08-17 Simon Josefsson <jas@extundo.com>
19561 * m4/xstrndup.m4: New file.
19563 2003-08-17 Simon Josefsson <jas@extundo.com>
19565 * m4/argp.m4: New file.
19567 2003-08-17 Simon Josefsson <jas@extundo.com>
19568 Bruno Haible <bruno@clisp.org>
19570 * lib/xstrndup.h: New file.
19571 * lib/xstrndup.c: New file.
19573 2003-08-17 Bruno Haible <bruno@clisp.org>
19575 * modules/strndup (Files, Include): Add lib/strndup.h.
19577 2003-08-17 Bruno Haible <bruno@clisp.org>
19579 * modules/euidaccess (Files): Add lib/euidaccess.h.
19581 2003-08-17 Bruno Haible <bruno@clisp.org>
19583 * lib/strndup.h: New file.
19585 2003-08-17 Bruno Haible <bruno@clisp.org>
19587 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
19588 like AC_GNU_SOURCE.
19589 * modules/extensions (configure.ac): Comment out the invocation of
19590 gl_USE_SYSTEM_EXTENSIONS.
19592 2003-08-16 Paul Eggert <eggert@twinsun.com>
19594 Merges from coreutils, etc.
19595 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
19596 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
19597 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
19599 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
19600 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
19602 2003-08-16 Paul Eggert <eggert@twinsun.com>
19604 Document merge from coreutils.
19605 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
19606 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
19607 * modules/utime: Add m4/utimes-null.m4.
19609 2003-08-16 Paul Eggert <eggert@twinsun.com>
19611 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
19612 space, undoing this 2003-08-12 change:
19613 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
19615 2003-08-16 Paul Eggert <eggert@twinsun.com>
19617 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
19618 strtoul.c from libc, undoing this 2003-08-12 change:
19619 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
19621 2003-08-16 Jim Meyering <jim@meyering.net>
19623 Merges from coreutils.
19624 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
19625 prefix. Adjust cache variables similarly. Create 500 rather than
19626 just 300 files, to exercise bug on Darwin6.5, too.
19627 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
19629 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
19630 AM_SYS_POSIX_TERMIOS.
19631 Reported by mkc@mathdogs.com.
19632 Also change use of $am_cv_sys_posix_termios
19633 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
19634 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
19635 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
19636 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
19637 in /proc/mounts until it finds one with matching device number. This
19638 is unnecessary when the FILE argument *is* a mount point. No stat call
19639 is necessary in that case. So, disable the statvfs-testing code on
19640 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
19641 as RedHat bug# 84846.
19642 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
19643 to 1MB, so as not to render systems with no stack size limit (e.g.,
19644 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
19645 Include <unistd.h>. On some systems,
19646 it is required for the definition of _SC_PAGESIZE.
19648 2003-08-16 Jim Meyering <jim@meyering.net>
19650 Merge from coreutils.
19651 * lib/xstrtoimax.c: #else #if -> #elif.
19652 * lib/xstrtoumax.c: Likewise.
19654 2003-08-16 Jim Meyering <jim@meyering.net>
19656 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
19657 * m4/utimes.m4: Removed.
19658 * m4/utimes-null.m4: Renamed from utimes.m4.
19660 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
19661 to 1MB, so as not to render systems with no stack size limit (e.g.,
19662 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
19663 Include <unistd.h>. On some systems,
19664 it is required for the definition of _SC_PAGESIZE.
19666 2003-08-16 Jim Meyering <jim@meyering.net>
19667 and Paul Eggert <eggert@cs.ucla.edu>
19669 Merges from coreutils, etc.
19671 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
19672 using the latest version from cvs. This avoids problems with #line
19673 directives using a vendor (Sun) compiler.
19674 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
19675 Don't set GETGROUPS_LIB here; now it's
19676 done via getgroups.m4's wrapper function.
19677 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
19678 rather than just in sh-util/configure.in, so that the
19679 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
19681 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
19682 AC_FUNC_GETLOADAVG where to find getloadavg.c.
19683 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
19684 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
19685 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
19686 Remove code that is now done by the newly-required macros.
19687 Append $(EXEEXT) to DF_PROG.
19688 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
19689 Do not invoke or require the following here,
19690 since prereq.m4 or some gnulib .m4 now does this for us:
19691 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
19692 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
19693 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
19694 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
19695 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
19696 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
19697 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
19699 Do not replace the following functions, as this is now the job
19700 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
19701 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
19702 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
19703 atexit getpass, strdup, getpagesize.
19705 Do not check for the following functions, as this is now the job
19706 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
19707 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
19709 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
19710 Check for sys/sysctl.h.
19711 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
19712 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
19713 of checking for ssize_t ourselves.
19715 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
19716 Require every macro that gnulib/modules/* suggests for us.
19717 (jm_PREREQ_ADDEXT): New macro.
19718 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
19719 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
19721 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
19722 (gl_PHYSMEM): Use it.
19723 Also check for `table' function.
19724 Check for new headers and functions.
19725 Add check for sys/sysmp.h.
19726 With suggestions from Kaveh Ghazi.
19727 Ignore headers that are present but cannot be compiled. This
19728 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
19731 2003-08-15 Paul Eggert <eggert@twinsun.com>
19733 Document merge from coreutils.
19734 * modules/userspec: Depend on posixver.
19735 * modules/strftime: Depend on tzset.
19737 2003-08-15 Paul Eggert <eggert@twinsun.com>
19739 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
19740 rather than tab, after '#' in shell-script copyright notices.
19741 Suggested by Bruno Haible.
19743 2003-08-15 Paul Eggert <eggert@twinsun.com>
19745 * config/srclist-update: Use three spaces, rather than tab, after '#'
19746 in shell-script copyright notices. Suggested by Bruno Haible.
19747 Remove unnecessary parenthesization in regular expression.
19749 2003-08-15 Jim Meyering <jim@meyering.net>
19751 Merge from coreutils.
19752 * lib/xgethostname.c: Include <stdlib.h>.
19753 (xghostname): Don't exit for anything other than memory-related
19754 failure; just return NULL.
19755 * lib/userspec.c: Include "posixver.h".
19756 (parse_user_spec): Accept `.' as a separator only
19757 in pre-POSIX-200112 mode.
19758 * lib/strtoimax.c: Use #elif rather than #else #if.
19759 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
19760 Remove function, now that we can rely on a working tzset function.
19761 [!_LIBC]: Ensure that the required autoconf test has been run.
19762 [!defined _NL_CURRENT && HAVE_STRFTIME]:
19763 Use underlying_strftime for %r.
19764 * lib/sha.c: Merge in some clean-up and optimization changes from
19766 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
19767 Ensure that it is a multiple of 64.
19768 Rearrange loop exit tests so as to avoid performing an
19769 additional fread after encountering an error or EOF.
19770 * lib/realloc.c: Update copyright date.
19772 2003-08-15 Jim Meyering <jim@meyering.net>
19773 and Paul Eggert <eggert@twinsun.com>
19775 Merge from coreutils.
19776 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
19777 member but strut utmpx does not. Needed for AIX 4.3.3.
19778 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
19780 2003-08-15 Jim Meyering <jim@meyering.net>
19781 and Paul Eggert <eggert@cs.ucla.edu>
19783 Merges from coreutils, etc.
19784 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
19785 Require gl_FUNC_TZSET_CLOBBER.
19786 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
19787 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
19790 2003-08-14 Paul Eggert <eggert@twinsun.com>
19792 Help the merge from coreutils.
19793 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
19794 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
19795 * m4/tzset.m4: Use it too.
19797 2003-08-14 Paul Eggert <eggert@twinsun.com>
19799 * modules/tzset: New file.
19801 2003-08-14 Jim Meyering <jim@meyering.net>
19803 Merges from coreutils.
19804 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
19805 variable names, rather than @FNMATCH_H@.
19806 * modules/alloca: Likewise for $(ALLOCA_H).
19808 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
19809 the three copies of the literal target, `fnmatch.h'.
19810 * modules/alloca (alloca.h): Likewise.
19812 2003-08-14 Jim Meyering <jim@meyering.net>
19814 Merge from coreutils.
19815 * m4/tzset.m4: New file.
19816 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
19817 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
19818 otherwise, AIX 5.1 systems would end up using the latter.
19819 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
19820 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
19821 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
19822 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
19824 2003-08-14 Jim Meyering <jim@meyering.net>
19826 Merge from coreutils.
19827 * lib/obstack.h: Whitespace changes.
19828 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
19829 and xcalloc return values.
19830 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
19831 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
19832 hang on OSF/1 5.1 for DIR on both local and remote file systems.
19833 Reported by (and fix confirmed by) Nelson H. F. Beebe.
19834 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
19836 Use mntctl's return value to drive the entry-processing loop, since
19837 we can't rely on the value of the vmt_length member in the last
19838 entry. On some systems doing so could result in exhausting
19839 virtual memory. Based in part on a patch from Mike Jetzer.
19841 2003-08-14 Jim Meyering <jim@meyering.net>
19842 and Paul Eggert <eggert@twinsun.com>
19844 Merges from coreutils, plus other fixes.
19845 * lib/physmem.c: Merge in portability changes from gcc/libiberty
19846 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
19847 for credits and details. Thanks to Kaveh Ghazi for helping
19848 to keep these files in sync.
19849 (ARRAY_SIZE): Define it.
19850 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
19851 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
19852 (memcasecmp): Don't assume size_t fits in unsigned int.
19853 Remove casts and duplicate code.
19854 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
19855 (memcpy): Remove definition.
19856 Merge in some clean-up and optimization changes from glibc.
19857 [BLOCKSIZE]: Move definition to top of file.
19858 Ensure that it is a multiple of 64.
19859 Rearrange loop exit tests so as to avoid performing an
19860 additional fread after encountering an error or EOF.
19861 * lib/md5.h (md5_uintptr): Define.
19862 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
19863 return to the initial working directory. Preserve errno
19865 * lib/idcache.c: Include "xalloc.h".
19866 (xmalloc, xrealloc): Remove decls.
19867 (getuser): Remove casts no longer required in C89.
19868 * lib/human.c: Include stdio.h, for sprintf.
19869 * lib/group-member.c: Include "xalloc.h".
19870 (xmalloc, xrealloc): Remove decls.
19871 (get_group_info): Remove casts no longer required in C89.
19872 * lib/getusershell.c (readname): Remove casts no longer required in
19874 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
19875 * lib/getline.c: Whitespace fix, from coreutils.
19877 2003-08-13 Paul Eggert <eggert@twinsun.com>
19879 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
19882 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
19883 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
19884 Undo previous (whitespace-only) change.
19886 2003-08-13 Paul Eggert <eggert@twinsun.com>
19888 * lib/exclude.c: Include <ctype.h>
19889 (IN_CTYPE_DOMAIN): New macro.
19890 (is_space): New fn.
19891 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
19894 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
19895 Undo previous (whitespace-only) change.
19897 2003-08-13 Paul Eggert <eggert@twinsun.com>
19899 * config/srclist-update: Change update back to the old behavior,
19900 leaving whitespace alone. Use one 'sed' command rather than a
19902 (fixlicense): Now a variable, not a function.
19903 (remove_trailing_blanks): Remove.
19904 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
19905 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
19906 Undo previous (whitespace-only) change.
19908 2003-08-12 Paul Eggert <eggert@twinsun.com>
19910 Merge from coreutils.
19911 * modules/euidaccess: Add lib_SOURCES, include for new
19914 2003-08-12 Paul Eggert <eggert@twinsun.com>
19916 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
19917 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
19918 Normalize leading white space and remove trailing white space.
19920 Merge from coreutils
19921 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
19923 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
19924 0.12.1. These files are now being upgraded automatically by
19925 ../config/srclist-update.
19927 2003-08-12 Paul Eggert <eggert@twinsun.com>
19929 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
19930 Normalize leading white space and remove trailing white space.
19931 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
19932 notice, as per ../config/srclist-update.
19934 Merge from coreutils.
19935 * lib/euidaccess.h: New file.
19936 * lib/euidaccess.c: Include it.
19937 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
19938 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
19939 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
19941 2003-08-12 Paul Eggert <eggert@twinsun.com>
19943 * config/srclist-update: Add copyright notice.
19944 (remove_id_lines, remove_trailing_blanks): New constants.
19945 (fixfile): Use them to normalize spacing a bit in copied files.
19946 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
19947 Normalize leading white space and remove trailing white space.
19949 * config/texinfo.tex: Sync with texinfo.
19951 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
19952 strtoul.c from libc, to merge coreutils whitespace changes.
19954 * config/srclist.txt: Get the following m4 files from gettext:
19955 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
19956 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
19957 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
19960 2003-08-12 Karl Berry <karl@gnu.org>
19962 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
19965 2003-08-11 Paul Eggert <eggert@twinsun.com>
19967 * modules/gnu-source, m4/gnu-source.m4:
19968 Remove; we're assuming Autoconf 2.54 or later now.
19969 Suggested by Bruno Haible.
19970 * MODULES.html.sh (func_all_modules): Remove gnu-source.
19972 2003-08-11 Bruno Haible <bruno@clisp.org>
19974 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
19976 2003-08-11 Bruno Haible <bruno@clisp.org>
19978 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
19979 (vasnprintf): Use it instead of wcslen.
19981 2003-08-11 Bruno Haible <bruno@clisp.org>
19983 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
19984 value to ensure that _Bool promotes to int. Use #define for _Bool when
19985 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
19987 2003-08-10 Karl Berry <karl@gnu.org>
19989 * lib/regex.h: update from libc (whitespace fix).
19991 2003-08-09 Paul Eggert <eggert@twinsun.com>
19993 Merge some files from coreutils. These changes were
19994 originally made by Jim Meyering.
19995 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
19996 many older Unixes require this.
19997 * lib/alloca.c (alloca): Remove cast to argument of free;
19998 no longer needed in C89.
19999 * lib/alloca_.h, regex.h: Fix white space to match
20000 what GNU indent does.
20002 2003-08-09 Paul Eggert <eggert@twinsun.com>
20004 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
20005 apparently Emacs's Unicode mode got confused before my 2003-08-05
20008 2003-08-08 Paul Eggert <eggert@twinsun.com>
20010 * m4/extensions.m4: New file.
20011 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
20012 Require gl_USE_SYSTEM_EXTENSIONS.
20013 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
20014 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
20016 2003-08-08 Paul Eggert <eggert@twinsun.com>
20018 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
20019 * modules/extensions, modules/gnu-source: New files.
20020 * modules/timespec, modules/unlocked-io: Depend on extensions.
20022 2003-08-07 Paul Eggert <eggert@twinsun.com>
20024 * modules/restrict: New file.
20025 * MODULES.html.sh (func_all_modules): Add restrict.
20026 * modules/regex: Depend on restrict.
20028 2003-08-07 Paul Eggert <eggert@twinsun.com>
20030 * m4/restrict.m4: New file.
20031 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
20033 2003-08-07 Bruno Haible <bruno@clisp.org>
20035 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
20036 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
20038 2003-08-07 Bruno Haible <bruno@clisp.org>
20040 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
20041 makes the module 'getndelim2' compatible with the module 'getline'.
20043 2003-08-05 Paul Eggert <eggert@twinsun.com>
20045 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
20046 byte with "\201" to avoid glitches when editing that source file
20047 with multi-gnome-terminal.
20049 2003-08-05 Paul Eggert <eggert@twinsun.com>
20051 * lib/bumpalloc.h: Remove.
20053 2003-08-05 Paul Eggert <eggert@twinsun.com>
20055 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
20056 * modules/bumpalloc: Remove.
20058 2003-08-04 Paul Eggert <eggert@twinsun.com>
20060 * lib/getloadavg.c: Change copyright notice and spacing to conform to
20063 Merge from coreutils.
20064 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
20066 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
20067 from Karl Berry, implemented by Jim Meyering.
20068 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
20069 from Dmitry V. Levin.
20070 Remove anachronistic cast of xrealloc.
20071 * lib/fnmatch_.h (__const): Remove. Use 'const'.
20072 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
20073 type. Otherwise, it wouldn't compile with at least /bin/cc on
20074 ymp-cray-unicos9.0.2.X.
20075 Combine two mostly-identical uses of alloca into one.
20076 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
20078 2003-08-04 Dave Love <d.love@dl.ac.uk>
20082 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
20083 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
20084 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
20085 obsolete NLIST_NAME_UNION.
20086 [__GNU__]: Undef BSD and FSCALE.
20087 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
20089 2003-08-03 Paul Eggert <eggert@twinsun.com>
20091 * lib/stdbool_.h (_Bool): Make it signed char, instead of
20092 an enum type, so that it's guaranteed to promote to int. See:
20093 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
20095 2003-08-03 Karl Berry <karl@gnu.org>
20097 * config/depcomp: update from automake.
20099 2003-07-31 Paul Eggert <eggert@twinsun.com>
20101 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
20102 (strerror): Don't assume that a printable int fits in 14 bytes.
20104 2003-07-31 Bruno Haible <bruno@clisp.org>
20106 * modules/getpass-gnu: New file.
20107 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
20109 2003-07-31 Bruno Haible <bruno@clisp.org>
20111 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
20113 2003-07-24 Karl Berry <karl@gnu.org>
20115 * config/missing: update from automake.
20117 2003-07-24 Derek Robert Price <derek@ximbiot.com>
20118 Bruno Haible <bruno@clisp.org>
20120 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
20121 * lib/getline.c (getline, getdelim): Likewise.
20122 Remove _GNU_SOURCE define; now it's defined in config.h through
20125 2003-07-23 Karl Berry <karl@gnu.org>
20127 * config/config.sub: update from prep.
20129 2003-07-22 Paul Eggert <eggert@twinsun.com>
20131 * modules/xalloc (Depends-on): Add exitfail.
20132 * modules/xmemcoll: Likewise.
20134 2003-07-22 Paul Eggert <eggert@twinsun.com>
20136 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
20137 over-parenthesization in macros.
20139 Sync with coreutils.
20141 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
20144 Use `exit_failure' for xalloc and xmemcoll instead of their own
20145 private exit-failure variables.
20146 * lib/xalloc.h (xalloc_exit_failure): Remove.
20147 * lib/xmalloc.c: Likewise. Include exitfail.h.
20148 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
20149 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
20150 * lib/xmemcoll.c: Likewise. Include exitfail.h.
20151 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
20153 2003-07-20 Jim Meyering <jim@meyering.net>
20155 * modules/closeout (Depends-on): Add exitfail.
20156 Suggestion from Bruno Haible.
20158 2003-07-19 Karl Berry <karl@gnu.org>
20160 * config/config.sub: update from prep.
20162 2003-07-18 Paul Eggert <eggert@twinsun.com>
20164 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
20166 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
20167 to test that it can stand by itself. Include "exitfail.h".
20168 Clients should set exit_failure instead.
20169 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
20171 2003-07-18 Bruno Haible <bruno@clisp.org>
20173 * modules/getndelim2: New file.
20174 * modules/getline: Share files with module getndelim2.
20175 * modules/getnline: Depend on getndelim2 instead of sharing files with
20176 it. Add getnline.c to lib_SOURCES.
20177 * MODULES.html.sh (func_all_modules): Add getndelim2.
20179 2003-07-18 Bruno Haible <bruno@clisp.org>
20181 * m4/getndelim2.m4: New file.
20182 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
20183 invoke gl_PREREQ_GETNDELIM2.
20184 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
20185 gl_PREREQ_GETNDELIM2.
20186 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
20189 2003-07-18 Bruno Haible <bruno@clisp.org>
20191 * lib/getndelim2.h: New file.
20192 * lib/getndelim2.c: Make into a module of its own. Include config.h,
20194 (getndelim2): Make non-static. Change return type to ssize_t.
20195 * lib/getline.h: Change argument names.
20196 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
20197 * lib/getnline.c: Include getndelim2.h.
20199 2003-07-18 Andreas Schwab <schwab@suse.de>
20201 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
20203 2003-07-17 Karl Berry <karl@gnu.org>
20205 * config/config.sub: update from prep.
20207 2003-07-17 Bruno Haible <bruno@clisp.org>
20209 * modules/getnline: New file.
20210 * modules/getline: Add lib/getndelim2.c to source file list.
20211 * MODULES.html.sh (func_all_modules): Add getnline.
20213 2003-07-17 Bruno Haible <bruno@clisp.org>
20215 * m4/getnline.m4: New file.
20217 2003-07-17 Bruno Haible <bruno@clisp.org>
20219 * m4/Makefile.am.in: Remove file.
20220 * m4/Makefile.am: Remove file.
20221 * m4/Makefile.in: Remove file.
20223 2003-07-17 Bruno Haible <bruno@clisp.org>
20225 * lib/getnline.h: New file.
20226 * lib/getnline.c: New file.
20227 * lib/getndelim2.c: New file, extracted from getline.c.
20228 (getndelim2): Renamed from getdelim2, with added nmax argument.
20229 * lib/getline.c: Include getndelim2.c.
20230 (getdelim2): Moved out to getndelim2.c.
20231 (getline, getdelim): Update.
20233 2003-07-17 Bruno Haible <bruno@clisp.org>
20235 * lib/Makefile.am: Remove file.
20236 * lib/Makefile.in: Remove file.
20238 2003-07-17 Bruno Haible <bruno@clisp.org>
20240 * configure.in: Remove file.
20241 * Makefile.in: Remove file.
20243 2003-07-17 Bruno Haible <bruno@clisp.org>
20245 * MODULES.html.sh: Put the </BODY> right before </HTML>.
20247 2003-07-16 Karl Berry <karl@gnu.org>
20249 * config/srclist-update: was running fixlicense twice, which caused
20250 texinfo.tex to be nullified for some reason. Simplify,
20251 $gplsrc is no longer needed as far as I can see?
20253 2003-07-16 Jim Meyering <jim@meyering.net>
20255 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
20257 2003-07-15 Paul Eggert <eggert@twinsun.com>
20259 * config/srclist.txt: Get the following files from gettext-runtime/intl
20260 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
20261 ref-del.sin. From Bruno Haible.
20262 * config/srclist-update (fixfile): Change grep pattern again, since the
20263 previous fix didn't work (there was another trailing $). Use
20264 '[$]' to escape the $s.
20266 2003-07-15 Karl Berry <karl@gnu.org>
20268 * lib/vasnprintf.c: update from gettext.
20270 2003-07-15 Karl Berry <karl@gnu.org>
20272 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
20273 gets expanded when surrounded by '$'.
20275 2003-07-15 Jim Meyering <jim@meyering.net>
20277 * modules/save-cwd: Don't depend on error. From Derek Price.
20279 2003-07-15 Jim Meyering <jim@meyering.net>
20281 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
20283 2003-07-14 Simon Josefsson <jas@extundo.com>
20285 * modules/mempcpy: New file.
20286 * MODULES.html.sh (func_all_modules): Add mempcpy.
20288 2003-07-14 Simon Josefsson <jas@extundo.com>
20290 * m4/mempcpy.m4: New file.
20292 2003-07-14 Simon Josefsson <jas@extundo.com>
20294 * lib/mempcpy.h: New file.
20295 * lib/mempcpy.c: New file.
20297 2003-07-14 Paul Eggert <eggert@twinsun.com>
20299 * modules/getdate, modules/posixtm: Depend on mktime.
20301 2003-07-14 Paul Eggert <eggert@twinsun.com>
20303 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
20304 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
20305 unicodeio.c, unicodeio.h, unlocked-io.h:
20306 Switch from LGPL to GPL.
20308 2003-07-14 Paul Eggert <eggert@twinsun.com>
20310 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
20311 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
20312 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
20313 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
20314 vasprintf.c, vasprintf.h: Regenerate. These files are now being
20315 updated automatically by ../config/srclist-update. This changes
20316 their license from LPGL to GPL.
20318 2003-07-14 Paul Eggert <eggert@twinsun.com>
20320 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
20321 assumed to refer to the root of the most recent stable gettext version.
20322 * config/srclistvars.sh: Add defaults for eggert.
20323 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
20324 Match "This program" as well as "The program". This is needed
20327 2003-07-14 Jim Meyering <jim@meyering.net>
20329 Don't emit diagnostics. Let callers do that.
20330 * lib/save-cwd.c: Don't include "error.h".
20331 (save_cwd): Don't call error. Ensure that errno is valid
20332 when returning nonzero.
20334 * lib/save-cwd.h (restore_cwd): Update prototype.
20335 * lib/save-cwd.c (restore_cwd): Remove two parameters.
20336 Simplify. Don't call error upon failure. Let callers do that.
20337 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
20338 when auditing is enabled. But don't bother updating the #if.
20340 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
20342 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
20343 it breaks C++ compilation.
20344 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
20346 2003-07-10 Simon Josefsson <jas@extundo.com>
20348 * modules/strchrnul (Makefile.am): Add strchrnul.h.
20350 2003-07-10 Jim Meyering <jim@meyering.net>
20352 * m4/clock_time.m4: Remove trailing blank.
20353 * m4/intmax_t.m4: Likewise.
20355 2003-07-10 Jim Meyering <jim@meyering.net>
20357 * lib/vasnprintf.c: Remove trailing blanks.
20358 Make cpp indentation consistent.
20360 2003-07-09 Paul Eggert <eggert@twinsun.com>
20362 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
20363 posixver.c, strftime.c, strnlen.c, strverscmp.c:
20364 Switch from LGPL to GPL.
20366 2003-07-09 Paul Eggert <eggert@twinsun.com>
20368 * config/srclist.txt: Sort sublists. Add
20369 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
20370 that differ from gnulib for one reason or another; we'd like this list
20371 to be smaller but for now let's document what we have.
20373 2003-07-08 Paul Eggert <eggert@twinsun.com>
20375 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
20376 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
20377 and sweeter "eval x=$x".
20378 * config/srclist.txt: Get lib/argp* from glibc.
20380 2003-07-07 Paul Eggert <eggert@twinsun.com>
20382 * lib/mktime.c: Fix some boundary cases and remove need for floating
20385 Issue a compile-time diagnostic if time_t is floating point, or if
20386 two's complement arithmetic is not in effect, or if arithmetic
20387 right shift does not propagate the sign. These assumptions were
20388 all in the original code but they weren't checked.
20390 (TIME_T_MIDPOINT, verify): New macros.
20391 (__isleap): Remove; it has integer overflow problems.
20392 (leapyear): New function, without those problems.
20393 (ydhms_tm_diff): Remove; splitting into two parts.
20394 (ydhms_diff): New function, containing the arithmetic part of
20395 the old ydhms_tm_diff function. Issue a compile-time
20396 diagnostic if we are not using C99 integer division.
20397 Avoid casts when possible.
20398 (guess_time_tm): New function, containing the checking part of
20399 the old ydhms_tm_diff function. Return the new value, rather than
20400 the difference between it and the old. Accept a new argument T
20401 so that *T specifies the old value. Check for overflow in the result.
20403 (__mktime_internal): Use a time_t offset, not a long int offset.
20404 This undoes the 2003-06-04 change, which is no longer needed now
20405 that we have better overflow checking.
20406 (localtime_offset): Likewise.
20408 (__mktime_internal): Avoid harmful overflow on hosts where time_t
20409 and long are 64-bit but int is only 32-bit.
20410 (ydhms_diff): Use long int to store year1 and yday1.
20411 Issue a compile-time diagnostic if long int is not wide enough.
20413 (__mktime_internal): Use long int to store adjusted year and yday.
20414 Use plain C rather than preprocessor commands, if that doesn't
20416 Check for overflow (and try to repair) after each probe
20417 rather than checking only at the very end. This avoids some bugs
20418 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
20419 does not equal GMT offset at maximum time).
20420 Use integer to check for overflow rather than floating point; this
20421 is more portable to non-IEEE hosts, and is a tad faster.
20422 When we detect that we are oscillating between two values,
20423 don't check whether tm_isdst has the requested value, since
20424 we already know the answer. When tm_isdst has the wrong value,
20425 use a different heuristic to find the right one, based on the
20426 extreme values actually observed in practice in tz2003a,
20427 rather than the (overly optimistic) "previous 3 calendar quarters".
20429 (not_equal_tm, print_tm, check_result): Use "const T" rather than
20430 "T const" to accommodate glibc style.
20431 (check_result): Use less-confusing report format. "long" -> "long int.
20433 Don't loop if the iteration overflows time_t.
20434 Allow a negative step in the iteration.
20436 2003-07-06 Karl Berry <karl@gnu.org>
20438 * config/depcomp: update from automake.
20439 * config/config.sub: update from prep.
20441 2003-07-03 Karl Berry <karl@gnu.org>
20443 * config/config.guess: update from prep.
20445 2003-07-01 Paul Eggert <eggert@twinsun.com>
20447 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
20448 xreadlink.c now includes it unconditionally.
20450 2003-07-01 Paul Eggert <eggert@twinsun.com>
20452 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
20453 having it depend on HAVE_SYS_TYPES_H.
20455 2003-07-01 Bruno Haible <bruno@clisp.org>
20457 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
20458 <sys/types.h> should be sufficient.
20459 Reported by Paul Eggert.
20461 2003-06-26 Karl Berry <karl@gnu.org>
20463 * config/depcomp: update from automake.
20465 2003-06-26 Bruno Haible <bruno@clisp.org>
20467 * modules/human: Depend on module stdbool.
20469 2003-06-25 Bruno Haible <bruno@clisp.org>
20471 * modules/readlink: New file.
20472 * modules/xreadlink: Depend on it.
20473 * MODULES.html.sh (func_all_modules): Add readlink.
20475 2003-06-25 Bruno Haible <bruno@clisp.org>
20477 * m4/readlink.m4: New file.
20479 2003-06-25 Bruno Haible <bruno@clisp.org>
20481 * lib/readlink.c: New file.
20483 2003-06-22 Karl Berry <karl@gnu.org>
20485 * config/srclist.txt: update mkinstalldirs from automake.
20486 * config/mkinstalldirs: update.
20488 2003-06-22 Bruno Haible <bruno@clisp.org>
20490 Portability to mingw32.
20491 * m4/ssize_t.m4: New file, from GNU gettext.
20492 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
20493 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
20495 2003-06-22 Bruno Haible <bruno@clisp.org>
20497 * modules/safe-read: Add m4/ssize_t.m4.
20498 * modules/xreadlink: Add m4/ssize_t.m4.
20500 2003-06-20 Bruno Haible <bruno@clisp.org>
20502 Assume C89, so PARAMS isn't needed.
20503 * lib/unicodeio.h (PARAMS): Remove.
20504 * lib/unicodeio.c: Don't use PARAMS.
20506 2003-06-18 Karl Berry <karl@gnu.org>
20508 * config/config.{guess,sub}: update from prep.
20510 2003-06-18 Jim Meyering <jim@meyering.net>
20512 Merge changes from coreutils.
20513 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
20514 Remove explicit declarations of xmalloc and realloc.
20516 (read_utmp): Remove anachronistic cast of xmalloc.
20518 2003-06-17 Paul Eggert <eggert@twinsun.com>
20520 Assume C89, so PARAMS isn't needed.
20521 * lib/backupfile.h (PARAMS): Remove. All uses removed.
20522 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
20523 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
20524 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
20525 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
20526 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
20527 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
20528 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
20529 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
20530 lib/xstrtod.h, lib/xstrtol.h: Likewise.
20531 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
20532 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
20533 no longer needed. Anyway, config.h should always be included before any
20536 2003-06-11 Simon Josefsson <jas@extundo.com>
20538 * modules/sysexits: New file.
20539 * MODULES.html.sh (func_all_modules): Add sysexits.
20541 2003-06-11 Simon Josefsson <jas@extundo.com>
20543 * lib/sysexit_.h: New file.
20545 2003-06-11 Derek Price <derek@ximbiot.com>
20547 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
20550 2003-06-11 Bruno Haible <bruno@clisp.org>
20552 * m4/sysexits.m4: New file.
20554 2003-06-10 Simon Josefsson <jas@extundo.com>
20556 * lib/argp.h: New file, from glibc.
20557 * lib/argp-ba.c: New file, from glibc.
20558 * lib/argp-eexst.c: New file, from glibc.
20559 * lib/argp-fmtstream.c: New file, from glibc.
20560 * lib/argp-fmtstream.h: New file, from glibc.
20561 * lib/argp-fs-xinl.c: New file, from glibc.
20562 * lib/argp-help.c: New file, from glibc.
20563 * lib/argp-namefrob.h: New file, from glibc.
20564 * lib/argp-parse.c: New file, from glibc.
20565 * lib/argp-pv.c: New file, from glibc.
20566 * lib/argp-pvh.c: New file, from glibc.
20567 * lib/argp-xinl.c: New file, from glibc.
20569 2003-06-10 Simon Josefsson <jas@extundo.com>
20571 * modules/strchrnul: New file.
20573 2003-06-10 Simon Josefsson <jas@extundo.com>
20575 * modules/argp: New file.
20577 2003-06-10 Simon Josefsson <jas@extundo.com>
20579 * m4/strchrnul.m4: New file.
20581 2003-06-10 Simon Josefsson <jas@extundo.com>
20583 * lib/strchrnul.h: New file.
20584 * lib/strchrnul.c: New file.
20586 2003-06-10 Bruno Haible <bruno@clisp.org>
20588 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
20590 2003-06-07 Karl Berry <karl@gnu.org>
20592 * config/config.{guess,sub}: update from prep.
20594 2003-06-07 Jim Meyering <jim@meyering.net>
20596 * modules/strtod: Use $(...) notation, not @...@ for
20597 AC_REPLACE'd variables.
20598 * modules/localcharset: Likewise.
20600 2003-06-07 Jim Meyering <jim@meyering.net>
20602 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
20603 in place of my name in the copyright comment.
20604 Remove definition and uses of __P.
20607 * lib/stat.c: Don't declare xmalloc explicitly.
20608 Instead, include "xalloc.h".
20609 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
20610 xrealloc, and xcalloc return values.
20611 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
20613 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
20615 2003-06-07 Bruno Haible <bruno@clisp.org>
20617 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
20618 avoid AC_CONFIG_LINKS.
20619 * modules/fnmatch (Makefile.am): Use explicit creation rule for
20620 fnmatch.h, to avoid AC_CONFIG_LINKS.
20621 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
20623 2003-06-07 Bruno Haible <bruno@clisp.org>
20625 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
20626 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
20627 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
20629 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
20630 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
20633 2003-06-06 Jim Meyering <jim@meyering.net>
20635 Merge from coreutils.
20636 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
20637 Consolidate declarations and initializations of *_base* locals.
20639 Merge from coreutils.
20640 This avoids a core dump on systems without GNU putenv,
20641 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
20642 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
20643 (unsetenv): New static function, from GNU libc.
20644 (rpl_putenv): Use it.
20646 * lib/modechange.c: Remove trailing blanks.
20648 Merge from coreutils.
20649 * lib/fsusage.c: Remove declaration of statfs.
20650 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
20652 * lib/posixtm.c: Include <stdbool.h> unconditionally.
20654 2003-06-06 Jim Meyering <jim@meyering.net>
20656 * lib/stdbool_.h: Renamed from stdbool.h.in.
20658 2003-06-06 Jim Meyering <jim@meyering.net>
20659 Bruno Haible <bruno@clisp.org>
20661 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
20662 Adjust Makefile.am snippet not to redirect directly to target.
20663 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
20665 2003-06-05 Paul Eggert <eggert@twinsun.com>
20667 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
20668 mismatch, look in future quarters as well as past. This fixes a
20669 bug when processing fall-backwards gaps immediately after a long
20670 period of daylight-saving time.
20672 * lib/mktime.c: Assume freestanding C89 or better.
20673 (HAVE_LIMITS_H): Remove. Assume it's 1.
20674 (__P): Remove; not used.
20675 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
20676 (mktime, not_equal_tm, print_tm, check_result,
20677 main): Use prototypes. Use const * where appropriate.
20678 (main): Fix typo in testing code that uncovered by above changes.
20679 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
20681 2003-06-04 Paul Eggert <eggert@twinsun.com>
20683 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
20684 locale.h, localeconv. This merges changes from coreutils.
20686 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
20687 It can be removed after the next Autoconf is released.
20688 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
20691 2003-06-04 Paul Eggert <eggert@twinsun.com>
20693 * lib/mktime.c: Fix Debian bug 177940
20694 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
20695 (localtime_offset): Now long int, not time_t, because we want it
20696 to be guaranteed to be signed. All uses changed.
20697 (__mktime_internal): If overflow would occur when adding offset,
20700 Merge 'human' changes from coreutils. Rewrite to support
20701 locale-specific notations like thousands separators.
20702 * lib/human.c: Simplify authorship notice.
20703 Include human.h immediately after config.h.
20704 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
20705 <limits.h>: Do not include, since human.h does.
20706 (SIZE_MAX, UINTMAX_MAX): New macros.
20707 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
20708 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
20709 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
20710 (power_letter): Renamed from suffixes.
20711 (generate_suffix_backwards): Remove.
20712 (adjust_value): Now takes int style (because of human.h changes)
20713 and long double value (for greater precision on some platforms).
20714 (group_number): New function.
20715 (human_readable): Use it. Use integer options, not enum.
20716 Put the options before the sizes in the arg list.
20717 Support all the new options.
20718 The old human_readable function has been removed;
20719 use inttostr.h instead.
20720 (human_readable, default_block_size, humblock):
20721 Use uintmax_t, not int, for block sizes.
20722 (human_readable_inexact, block_size_types): Remove.
20723 (block_size_opts): New constant.
20724 (human_options): Renamed from human_block_size, with new signature
20725 that allows block sizes up to UINTMAX_MAX. All callers changed.
20726 * lib/human.h: Add copyright and authorship notice.
20727 Include <limits.h> and <stdbool.h> unconditionally.
20728 (PARAMS): Remove. All uses removed.
20729 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
20730 (enum human_inexact_style): Remove tag; now a nameless enum.
20731 (human_floor, human_ceiling, human_round_to_even): Now have
20732 values 2, 0, 1 rather than -1, 1, 0.
20733 (human_group_digits, human_suppress_point_zero, human_autoscale,
20734 human_base_1024, human_SI, human_B): New constants.
20735 (human_readable_inexact, human_block_size): Remove.
20736 (human_readable): Size args are now uintmax_t, not int.
20737 (human_options): New decl.
20739 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
20740 unnecessary now that we assume C89 or better. This change
20741 imported from coreutils.
20743 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
20744 arbitrarily. This is the same patch as 2003-05-28, but it got lost
20745 in the 2003-05-30 sync from glibc.
20747 .h files should stand alone, but we shouldn't include <sys/types.h>
20748 if we can get away with just <stddef.h>.
20750 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
20751 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
20752 rather than <sys/types.h>, as we merely need size_t.
20753 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
20755 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
20756 Include <stdio.h>, to get FILE.
20757 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
20758 memcasecmp.h has included <stddef.h> and all we need is size_t.
20759 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
20760 our interface, instead of including <sys/types.h>
20762 2003-06-04 Paul Eggert <eggert@twinsun.com>
20764 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
20765 now, as glibc mktime is buggy on non-glibc systems.
20767 2003-06-03 Karl Berry <karl@gnu.org>
20769 * config/config.sub: update from prep.
20771 2003-06-02 Paul Eggert <eggert@twinsun.com>
20774 Fix some minor time-related bugs with POSIX time arguments.
20775 Some valid time stamps were being rejected (notably -1, and
20776 time stamps before 1900 on 64-bit hosts). And some invalid
20777 time stamps were being accepted, e.g. September 31.
20779 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
20780 that we can return (time_t) -1 successfully.
20781 * lib/posixtm.c: Likewise.
20782 [HAVE_STDBOOL_H]: Include <stdbool.h>.
20783 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
20784 (t): Remove static var.
20785 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
20786 of static var. All uses changed.
20787 (year): Do not reject years before 1900; they can occur with
20789 (posix_time_parse): Do not check for out-of-range components;
20790 that is now the caller's responsibility, since our checks were
20791 only approximations.
20792 (posixtime): Use mktime to check for out-of-range components,
20793 since it knows them exactly.
20794 If mktime returns (time_t) -1, check whether an error actually occurred
20795 by invoking localtime on -1.
20796 (main) [TEST_POSIXTIME]: Check for input data errors, and report
20797 posixtime failures better.
20798 Improve the test data (in comments only).
20800 2003-06-02 Karl Berry <karl@gnu.org>
20802 * config/mkinstalldirs (version): new variable.
20803 (--version): new option.
20804 (usage): improve message.
20806 2003-05-30 Karl Berry <karl@gnu.org>
20808 * lib/mktime.c: update from libc.
20810 2003-05-30 Bruno Haible <bruno@clisp.org>
20812 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
20813 * config/config.rpath: Upgrade to gettext-0.12.1.
20815 2003-05-30 Bruno Haible <bruno@clisp.org>
20817 * m4/gettext.m4: Upgrade to gettext-0.12.1.
20818 * m4/nls.m4: New file, from gettext-0.12.1.
20819 * m4/po.m4: New file, from gettext-0.12.1.
20820 * m4/progtest.m4: Upgrade to gettext-0.12.1.
20822 2003-05-30 Bruno Haible <bruno@clisp.org>
20824 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
20825 * lib/localcharset.h: Likewise.
20826 * lib/localcharset.c: Likewise.
20828 2003-05-29 Karl Berry <karl@gnu.org>
20830 * config/config.rpath: update from gettext.
20832 2003-05-28 Paul Eggert <eggert@twinsun.com>
20834 Assume the headers required for C89 freestanding compilers.
20835 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
20836 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
20837 * m4/human.m4 (gl_HUMAN): Likewise.
20838 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
20839 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
20840 * m4/userspec.m4 (gl_USERSPEC): Likewise.
20841 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
20842 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
20843 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
20845 2003-05-28 Paul Eggert <eggert@twinsun.com>
20847 Assume the headers required for C89 freestanding compilers.
20848 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
20849 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
20850 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
20851 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
20852 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
20853 define, since <limits.h> is guaranteed to do that.
20854 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
20855 * lib/exclude.c: Include <stdbool.h> unconditionally.
20856 * lib/tempname.c: Include <stddef.h> unconditionally.
20857 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
20858 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
20859 <stddef.h> does that.
20860 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
20861 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
20862 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
20864 * lib/xstrtol.c: Likewise.
20865 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
20866 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
20868 * lib/addext.c (addext): Use assignment rather than cast, to avoid
20869 warnings on some platforms.
20871 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
20874 2003-05-26 Jim Meyering <jim@meyering.net>
20876 Merge in a change from coreutils:
20877 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
20878 that is guaranteed to be `no'. Use `no_such_member' to indicate
20879 that condition, rather than `-1' which is slightly misleading.
20880 Change the name of the cache variable to have the gl_ prefix.
20881 Prompted by a patch from Richard Dawe for DJGPP.
20883 2003-05-24 Karl Berry <karl@gnu.org>
20885 * config/config.guess: update from prep.
20887 2003-05-22 Karl Berry <karl@gnu.org>
20889 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
20891 2003-05-20 Karl Berry <karl@gnu.org>
20893 * config/config.guess: update from prep.
20895 2003-05-18 Karl Berry <karl@gnu.org>
20897 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
20898 might actually be set by the user.
20900 * config/depcomp, install-sh, mdate-sh: update from automake.
20902 2003-05-17 Bruno Haible <bruno@clisp.org>
20904 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
20905 invalid expansion for AC_EGREP_CPP.
20906 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
20907 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20908 Suggested by Akim Demaille <akim@epita.fr> in
20909 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
20911 2003-05-12 Jim Meyering <jim@meyering.net>
20913 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
20914 the space-padded-by-default conversion specifiers, %e, %k, %l.
20916 2003-05-12 Bruno Haible <bruno@clisp.org>
20918 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
20919 the string is longer than 4 KB.
20921 2003-05-11 Karl Berry <karl@gnu.org>
20923 * config/config.{guess,sub}: update from prep.
20925 2003-05-09 Bruno Haible <bruno@clisp.org>
20927 * modules/error: Add m4/strerror_r.m4 to file list.
20929 2003-05-03 Bruno Haible <bruno@clisp.org>
20931 Upgrade to Unicode-4.0.
20932 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
20933 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
20934 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
20935 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
20936 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
20937 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
20938 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
20939 Change width of U+E0100..U+E01EF from 1 to 0.
20941 2003-04-25 Jim Meyering <jim@meyering.net>
20943 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
20944 of type size_t, not int.
20946 2003-04-25 Bruno Haible <bruno@clisp.org>
20948 * lib/copy-file.c: Include <stddef.h>, for size_t.
20950 2003-04-21 Paul Eggert <eggert@twinsun.com>
20952 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
20953 code which expansion is under static control. Patch imported from
20954 Akim Demaille's patch to Bison; see
20955 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
20957 2003-04-14 Bruno Haible <bruno@clisp.org>
20959 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
20961 2003-04-11 Jim Meyering <jim@meyering.net>
20963 Merge changes from Coreutils.
20965 2003-03-22 Jim Meyering <jim@meyering.net>
20967 * lib/strftime.c (widen): Cast alloca return value to proper type.
20969 2003-01-19 Ulrich Drepper <drepper@redhat.com>
20972 * lib/strftime.c (my_strftime): Handle very large width
20973 specifications for numeric values correctly. Improve checks for
20976 2003-01-19 Jim Meyering <jim@meyering.net>
20978 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
20980 (nl_get_alt_digit) [! defined my_strftime]: Define.
20981 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
20982 _nl_get_alt_digit and _nl_get_walt_digit.
20984 * lib/strftime.c (my_strftime): Merge in locale-related changes from
20985 libc. These changes have no effect outside of _LIBC.
20987 2003-04-10 Bruno Haible <bruno@clisp.org>
20989 * modules/findprog: New file.
20990 * MODULES.html.sh (func_all_modules): Add it.
20992 2003-04-10 Bruno Haible <bruno@clisp.org>
20994 * m4/findprog.m4: New file.
20995 * m4/eaccess.m4: New file.
20997 2003-04-10 Bruno Haible <bruno@clisp.org>
20999 * lib/findprog.h: New file, from GNU gettext.
21000 * lib/findprog.c: New file, from GNU gettext.
21002 2003-04-05 Jim Meyering <jim@meyering.net>
21004 Merge changes from Coreutils.
21006 * lib/exclude.h (PARAMS): Remove definition and uses.
21007 * lib/exclude.c: Remove uses of `PARAMS'.
21009 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
21010 Add test-cases for DOS filenames. Declare program_name.
21011 (main): Set up program_name. Patch by Rich Dawe.
21013 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
21015 Use mntctl's return value to drive the entry-processing loop, since
21016 we can't rely on the value of the vmt_length member in the last
21017 entry. On some systems doing so could result in exhausting
21018 virtual memory. Based in part on a patch from Mike Jetzer.
21020 2003-04-04 Bruno Haible <bruno@clisp.org>
21022 * modules/linebreak: New file.
21023 * MODULES.html.sh (func_all_modules): Add it.
21025 2003-04-04 Bruno Haible <bruno@clisp.org>
21027 * m4/linebreak.m4: New file.
21029 2003-04-04 Bruno Haible <bruno@clisp.org>
21031 * lib/linebreak.h: New file, from GNU gettext.
21032 * lib/linebreak.c: New file, from GNU gettext with slight
21034 * lib/lbrkprop.h: New file, from GNU gettext.
21036 2003-04-03 Bruno Haible <bruno@clisp.org>
21038 * modules/utf8-ucs4: New file.
21039 * modules/utf16-ucs4: New file.
21040 * modules/ucs4-utf8: New file.
21041 * modules/ucs4-utf16: New file.
21042 * MODULES.html.sh (func_all_modules): Add them.
21044 2003-04-03 Bruno Haible <bruno@clisp.org>
21046 * m4/utf-ucs4.m4: New file.
21047 * m4/ucs4-utf.m4: New file.
21049 2003-04-03 Bruno Haible <bruno@clisp.org>
21051 * lib/utf8-ucs4.h: New file, from GNU gettext.
21052 * lib/utf16-ucs4.h: New file, from GNU gettext.
21053 * lib/ucs4-utf8.h: New file, from GNU gettext.
21054 * lib/ucs4-utf16.h: New file, from GNU gettext.
21056 2003-04-02 Bruno Haible <bruno@clisp.org>
21058 * modules/binary-io: New file.
21059 * MODULES.html.sh (func_all_modules): Add it.
21061 2003-04-02 Bruno Haible <bruno@clisp.org>
21063 * lib/binary-io.h: New file, from GNU gettext.
21065 2003-04-01 Bruno Haible <bruno@clisp.org>
21067 * modules/pathname: New file.
21068 * MODULES.html.sh (func_all_modules): Add it.
21070 2003-04-01 Bruno Haible <bruno@clisp.org>
21072 * lib/pathname.h: New file, from GNU gettext.
21073 * lib/concatpath.c: New file, from GNU gettext.
21075 2003-03-30 Bruno Haible <bruno@clisp.org>
21077 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
21079 2003-03-30 Bruno Haible <bruno@clisp.org>
21081 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
21082 function chown() doesn't exist.
21084 2003-03-28 Bruno Haible <bruno@clisp.org>
21086 * modules/copy-file: New file.
21087 * MODULES.html.sh (func_all_modules): Add it.
21089 2003-03-28 Bruno Haible <bruno@clisp.org>
21091 * m4/copy-file.m4: New file.
21093 2003-03-28 Bruno Haible <bruno@clisp.org>
21095 * lib/copy-file.h: New file, from GNU gettext.
21096 * lib/copy-file.c: New file, from GNU gettext.
21098 2003-03-18 Jim Meyering <jim@meyering.net>
21100 * lib/quote.c (quote_n): Fix typo in comment.
21102 2003-03-18 Bruno Haible <bruno@clisp.org>
21104 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
21106 * m4/onceonly_2_57.m4: Likewise.
21108 2003-03-17 Bruno Haible <bruno@clisp.org>
21110 * m4/onceonly.m4: Require autoconf 2.54 or newer.
21111 (m4_quote): Remove macro.
21112 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
21114 2003-03-14 Jim Meyering <jim@meyering.net>
21116 Merge changes from Coreutils.
21117 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
21118 to be const, in order to avoid warnings.
21119 (obstack_room): Likewise.
21120 (obstack_empty_p): Likewise.
21122 2003-03-14 Bruno Haible <bruno@clisp.org>
21124 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
21125 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
21127 2003-03-13 Paul Eggert <eggert@twinsun.com>
21129 Merge changes from Bison.
21130 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
21131 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
21132 when compiling Bison 1.875's `bitset bset = obstack_alloc
21133 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
21134 * lib/hash.c: Include <stdbool.h> unconditionally.
21136 2003-03-13 Paul Eggert <eggert@twinsun.com>
21138 * m4/onceonly.m4 (m4_quote): New macro.
21139 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
21140 Quote AC_FOREACH variable-expansions properly.
21142 2003-03-13 Paul Eggert <eggert@twinsun.com>
21144 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
21146 2003-03-09 Paul Eggert <eggert@twinsun.com>
21148 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
21149 Reported by Bruce Becker; see:
21150 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
21152 2003-03-03 Paul Eggert <eggert@twinsun.com>
21153 Bruno Haible <bruno@clisp.org>
21155 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
21156 Reported by John Hughes, see
21157 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
21159 2003-02-20 Bruno Haible <bruno@clisp.org>
21161 * MODULES.html.sh (func_all_modules): Add poll.
21163 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
21165 * modules/poll: New file.
21167 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
21169 * lib/poll_.h: New file.
21170 * lib/poll.c: New file.
21172 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
21174 * m4/poll.m4: New file.
21176 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
21178 * modules/mathl: New file.
21180 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
21182 * lib/mathl.h: New file.
21183 * lib/acosl.c: New file.
21184 * lib/asinl.c: New file.
21185 * lib/atanl.c: New file.
21186 * lib/ceill.c: New file.
21187 * lib/cosl.c: New file.
21188 * lib/expl.c: New file.
21189 * lib/floorl.c: New file.
21190 * lib/frexpl.c: New file.
21191 * lib/ldexpl.c: New file.
21192 * lib/logl.c: New file.
21193 * lib/sincosl.c: New file.
21194 * lib/sinl.c: New file.
21195 * lib/sqrtl.c: New file.
21196 * lib/tanl.c: New file.
21197 * lib/trigl.c: New file.
21198 * lib/trigl.h: New file.
21200 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
21202 * m4/mathl.m4: New file.
21204 2003-02-18 Bruno Haible <bruno@clisp.org>
21206 * MODULES.html.sh (func_all_modules): Add mathl.
21208 2003-02-17 Bruno Haible <bruno@clisp.org>
21210 * modules/mkdtemp: New module.
21211 * MODULES.html.sh (func_all_modules): Add it.
21213 2003-02-17 Bruno Haible <bruno@clisp.org>
21215 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
21217 2003-02-17 Bruno Haible <bruno@clisp.org>
21219 * lib/mkdtemp.h: New file, from GNU gettext.
21220 * lib/mkdtemp.c: New file, from GNU gettext.
21222 2003-02-02 Jim Meyering <jim@meyering.net>
21224 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
21227 2003-01-31 Bruno Haible <bruno@clisp.org>
21229 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
21231 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
21233 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
21235 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
21238 2003-01-31 Bruno Haible <bruno@clisp.org>
21240 * lib/rename.c: #undef rename before defining rpl_rename.
21241 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
21243 2003-01-30 Bruno Haible <bruno@clisp.org>
21245 * modules/vasnprintf, modules/vasprintf: New modules.
21246 * MODULES.html.sh (func_all_modules): Add them.
21248 2003-01-30 Bruno Haible <bruno@clisp.org>
21250 * m4/signed.m4: New file, from GNU gettext.
21251 * m4/longdouble.m4: New file, from GNU gettext.
21252 * m4/wchar_t.m4: New file, from GNU gettext.
21253 * m4/wint_t.m4: New file, from GNU gettext.
21254 * m4/vasnprintf.m4: New file.
21255 * m4/vasprintf.m4: New file.
21257 2003-01-30 Bruno Haible <bruno@clisp.org>
21259 * lib/printf-args.h: New file, from GNU gettext.
21260 * lib/printf-args.c: New file, from GNU gettext.
21261 * lib/printf-parse.h: New file, from GNU gettext.
21262 * lib/printf-parse.c: New file, from GNU gettext.
21263 * lib/vasnprintf.h: New file, from GNU gettext.
21264 * lib/vasnprintf.c: New file, from GNU gettext.
21265 * lib/asnprintf.c: New file, from GNU gettext.
21266 * lib/vasprintf.h: New file, from GNU gettext with modifications.
21267 * lib/vasprintf.c: New file, from GNU gettext.
21268 * lib/asprintf.c: New file, from GNU gettext.
21270 2003-01-29 Bruno Haible <bruno@clisp.org>
21272 * modules/stpncpy: New module.
21273 * MODULES.html.sh (func_all_modules): Add it.
21275 2003-01-29 Bruno Haible <bruno@clisp.org>
21277 * m4/stpncpy.m4: New file.
21279 2003-01-29 Bruno Haible <bruno@clisp.org>
21281 * lib/stpncpy.h: New file, from GNU gettext with modifications.
21282 * lib/stpncpy.c: New file, from GNU gettext with modifications.
21284 2003-01-28 Bruno Haible <bruno@clisp.org>
21286 * modules/c-ctype: New module.
21287 * MODULES.html.sh (func_all_modules): Add it.
21289 2003-01-28 Bruno Haible <bruno@clisp.org>
21291 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
21293 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
21296 2003-01-27 Bruno Haible <bruno@clisp.org>
21298 * modules/xsetenv: New module.
21299 * MODULES.html.sh (func_all_modules): Add it.
21301 2003-01-27 Bruno Haible <bruno@clisp.org>
21303 * lib/xsetenv.h: New file, from GNU gettext.
21304 * lib/xsetenv.c: New file, from GNU gettext.
21306 2003-01-23 Jim Meyering <jim@meyering.net>
21308 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
21309 from working on systems without dirfd (at least Irix and OSF1/Tru64).
21311 2003-01-23 Bruno Haible <bruno@clisp.org>
21313 * modules/minmax: New module.
21314 * MODULES.html.sh (func_all_modules): Add it.
21316 2003-01-23 Bruno Haible <bruno@clisp.org>
21318 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
21321 2003-01-22 Bruno Haible <bruno@clisp.org>
21323 * modules/exit: New module.
21324 * MODULES.html.sh (func_all_modules): Add it.
21326 2003-01-22 Bruno Haible <bruno@clisp.org>
21328 * lib/exit.h: New file, from GNU gettext.
21330 2003-01-19 Bruno Haible <bruno@clisp.org>
21332 * gnulib-tool: Recognize option --extract-maintainer.
21333 (func_get_maintainer): New function.
21334 * modules/*: Add Maintainer entry.
21336 2003-01-16 Jim Meyering <jim@meyering.net>
21338 * m4/regex.m4: The `regex' struct is both input and output.
21339 Initialize it before each use. Patch by Tim Waugh.
21341 2003-01-16 Bruno Haible <bruno@clisp.org>
21343 * MODULES.html.sh: Add a table of contents. Add the module name as
21344 leftmost column. Add hyperlinks.
21346 2003-01-15 Bruno Haible <bruno@clisp.org>
21348 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
21350 2003-01-15 Bruno Haible <bruno@clisp.org>
21352 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
21353 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
21356 2003-01-15 Bruno Haible <bruno@clisp.org>
21358 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
21360 2003-01-15 Bruno Haible <bruno@clisp.org>
21362 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
21363 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
21365 2003-01-14 Jim Meyering <jim@meyering.net>
21367 * lib/same.c (same_name): Tweak a comment.
21369 2003-01-14 Bruno Haible <bruno@clisp.org>
21371 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
21372 when a string comparison is sufficient.
21374 2003-01-14 Bruno Haible <bruno@clisp.org>
21376 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
21379 2003-01-14 Bruno Haible <bruno@clisp.org>
21381 * lib/hash-pjw.c: Add comment about low quality of this function.
21383 2003-01-13 Bruno Haible <bruno@clisp.org>
21385 * modules/stpcpy: Distribute lib/stpcpy.h.
21386 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
21388 2003-01-13 Bruno Haible <bruno@clisp.org>
21390 * modules/*: Add a description.
21391 * modules/strpbrk: Fix Makefile.am snippet.
21392 * modules/strtoimax: Fix dependencies.
21393 * modules/strtoumax: Likewise.
21395 2003-01-13 Bruno Haible <bruno@clisp.org>
21397 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
21398 * modules/alloca (Makefile.am): All object files depend on alloca.h.
21399 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
21401 2003-01-13 Bruno Haible <bruno@clisp.org>
21403 * gnulib-tool (func_create_testdir): Store config/* files in the main
21405 * config.rpath: Move to ...
21406 * config/config.rpath: ... here.
21407 * modules/gettext: Contains config/config.rpath, not config.rpath.
21408 * modules/iconv: Likewise.
21410 2003-01-12 Paul Eggert <eggert@twinsun.com>
21412 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
21413 to avoid collisions with libcurses and libreadline.
21415 * m4/getstr.m4: Remove.
21416 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
21418 2003-01-12 Paul Eggert <eggert@twinsun.com>
21420 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
21421 to avoid collisions with libcurses and libreadline.
21423 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
21424 * lib/getstr.h, getstr.c: Remove.
21425 * lib/getline.c: Include "getline.h", to check interface.
21426 Move body of old getstr.c here: this defines MIN_CHUNK and
21427 declares getdelim2, which is renamed from getstr.
21428 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
21430 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
21432 * lib/linebuffer.h: Likewise.
21433 (readline): Remove backward-compatibility macro.
21435 2003-01-12 Paul Eggert <eggert@twinsun.com>
21437 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
21438 to avoid collisions with libcurses and libreadline.
21440 * MODULES.html.sh: Remove getstr.
21441 * modules/getline: Depend on unlocked-io, not getstr.
21443 2003-01-12 Jim Meyering <jim@meyering.net>
21445 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
21447 2003-01-10 Bruno Haible <bruno@clisp.org>
21449 * modules/alloca: Change Makefile.am requirements. Simplify Include
21450 requirements. Add lib/alloca_.h to file list.
21452 2003-01-10 Bruno Haible <bruno@clisp.org>
21454 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
21456 2003-01-10 Bruno Haible <bruno@clisp.org>
21458 * lib/alloca_.h: New file.
21459 * lib/getdate.y: Unconditionally include alloca.h.
21460 * lib/makepath.c: Likewise.
21461 * lib/setenv.c: Likewise.
21462 * lib/userspec.c: Likewise.
21464 2003-01-09 Karl Berry <karl@gnu.org>
21466 * MODULES.html.sh: include `dirname $0` in PATH, to find
21469 2003-01-09 Bruno Haible <bruno@clisp.org>
21471 * modules/stdbool: Change configure.ac, Makefile.am requirements.
21472 Simplify Include requirements. Add lib/stdbool.h.in to file list.
21474 2003-01-09 Bruno Haible <bruno@clisp.org>
21476 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
21478 2003-01-09 Bruno Haible <bruno@clisp.org>
21480 * lib/stdbool.h.in: New file.
21482 2003-01-09 Bruno Haible <bruno@clisp.org>
21484 * gnulib-tool (func_all_modules): Ignore files ending in ~.
21485 * MODULES.html.sh: Likewise.
21487 2003-01-08 Jim Meyering <jim@meyering.net>
21489 * lib/full-write.c: Undefine and define-away `const' after inclusion
21490 of errno.h, not before. Suggestion from Bruno Haible.
21492 2003-01-08 Bruno Haible <bruno@clisp.org>
21494 * modules/full-read: Depend on full-write.
21496 2003-01-08 Bruno Haible <bruno@clisp.org>
21498 * lib/safe-read.c: Include specification header first, to ensure its
21500 * lib/full-write.c: Likewise.
21502 2003-01-07 Jim Meyering <jim@meyering.net>
21504 * lib/full-write.c: Rework so that it may serve to define full_read,
21506 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
21508 2003-01-07 Bruno Haible <bruno@clisp.org>
21510 * lib/strtoimax.c: Include <stdint.h> as an alternative to
21512 * lib/xstrtol.h: Likewise.
21513 * lib/xstrtoimax.c: Likewise.
21514 * lib/xstrtoumax.c: Likewise.
21515 * lib/human.h: Likewise.
21517 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
21518 on systems that have <inttypes.h> but not <stdint.h>.
21520 2003-01-07 Bruno Haible <bruno@clisp.org>
21522 * MODULES.html.sh: Add copyright notice.
21523 (missed_files): Omit CVS directory entries.
21524 (func_module): Make it work with sed-3.02.
21525 * MODULES.txt: Remove file.
21527 2003-01-06 Jim Meyering <jim@meyering.net>
21529 * lib/version-etc.c: Update year in translatable copyright string.
21531 2003-01-03 Karl Berry <karl@gnu.org>
21533 * config/config.{guess,sub}: update from prep.
21535 2003-01-02 Karl Berry <karl@gnu.org>
21537 * doc/COPYING.DOC: belatedly updated to 1.2.
21539 2003-01-01 Karl Berry <karl@gnu.org>
21541 * gnulib-tool (func_verify_module): report module name $module in
21542 error message, not $1.
21543 * gnulib-tool (create-testdir): don't complain if destdir couldn't
21544 be created, only if it doesn't exist.
21545 * gnulib-tool (last_checkin_date): don't expand the $Date here.
21547 2002-12-31 Paul Eggert <eggert@twinsun.com>
21549 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
21551 2002-12-31 Paul Eggert <eggert@twinsun.com>
21553 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
21554 memcmp if strcoll doesn't work.
21556 2002-12-31 Bruno Haible <bruno@clisp.org>
21558 * lib/utime.c (utime_null): No need to call ftruncate if the file was
21561 2002-12-31 Bruno Haible <bruno@clisp.org>
21563 * lib/memcoll.c (STRCOLL): New macro.
21566 2002-12-31 Bruno Haible <bruno@clisp.org>
21568 * lib/localcharset.h: New file.
21569 * lib/localcharset.c: Include it.
21570 * lib/unicodeio.c: Likewise.
21572 2002-12-31 Bruno Haible <bruno@clisp.org>
21574 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
21575 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
21577 2002-12-31 Bruno Haible <bruno@clisp.org>
21579 * lib/getline.h: Include <stddef.h>, for size_t.
21581 * lib/unicodeio.h: Include <stddef.h>, for size_t.
21582 * lib/unicodeio.c: Don't include <stddef.h>.
21584 2002-12-31 Bruno Haible <bruno@clisp.org>
21586 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
21589 2002-12-24 Karl Berry <karl@gnu.org>
21591 * config/config.guess: update from prep.
21593 2002-12-24 Bruno Haible <bruno@clisp.org>
21595 General infrasructure.
21596 * m4/README: Rewritten.
21597 * m4/onceonly.m4: New file.
21598 * m4/onceonly_2_57.m4: New file.
21601 * m4/atexit.m4: New file.
21604 * m4/strtod.m4: New file.
21607 * m4/strtol.m4: New file.
21610 * m4/strtoul.m4: New file.
21613 * m4/memchr.m4: New file.
21616 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
21617 (jm_FUNC_MEMCMP): Invoke it.
21620 * m4/memcpy.m4: New file.
21623 * m4/memmove.m4: New file.
21626 * m4/memset.m4: New file.
21629 * m4/strcspn.m4: New file.
21632 * m4/strpbrk.m4: New file.
21635 * m4/strstr.m4: New file.
21638 * m4/strerror.m4: New file.
21641 * m4/mktime.m4: Renamed from jm-mktime.m4.
21642 (gl_PREREQ_MKTIME): New macro.
21643 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
21646 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
21647 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
21648 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
21651 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
21652 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
21653 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
21656 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
21657 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
21658 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
21660 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
21663 * m4/xalloc.m4: New file.
21666 * m4/alloca.m4: New file.
21669 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
21670 (jm_FUNC_PUTENV): Invoke it.
21673 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
21674 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
21675 when invoked twice.
21676 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
21680 * m4/memrchr.m4: New file.
21683 * m4/stpcpy.m4: New file.
21686 * m4/strcase.m4: New file.
21689 * m4/strdup.m4: New file.
21692 * m4/strnlen.m4: New file.
21695 * m4/strndup.m4: New file.
21698 * m4/xstrtod.m4: New file.
21701 * m4/xstrtol.m4: New file.
21704 * m4/getdate.m4: New file.
21706 Module unlocked-io.
21707 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
21708 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
21709 * m4/jm-glibc-io.m4n: Remove file.
21711 Module long-options.
21712 * m4/long-options.m4: New file.
21715 * m4/md5.m4: New file.
21718 * m4/sha.m4: New file.
21721 * m4/getstr.m4: New file.
21724 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
21725 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
21726 <sys/types.h>, for size_t. Use the function name gnu_getline, not
21727 simply getline. Infoke gl_PREREQ_GETLINE.
21730 * m4/obstack.m4: New file.
21733 * m4/hash.m4: New file.
21736 * m4/readtokens.m4: New file.
21739 * m4/strverscmp.m4: New file.
21742 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
21746 * m4/strtoll.m4: New file.
21749 * m4/strtoull.m4: New file.
21752 * m4/strtoimax.m4: New file.
21755 * m4/strtoumax.m4: New file.
21758 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
21759 jm_AC_PREREQ_XSTRTOIMAX.
21760 Moved the strtol prerequisites to strtol.m4.
21761 Moved the strtoll prerequisites to strtoll.m4.
21762 Moved the strtoimax prerequisites to strtoimax.m4.
21765 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
21766 jm_AC_PREREQ_XSTRTOUMAX.
21767 Moved the strtoul prerequisites to strtoul.m4.
21768 Moved the strtoull prerequisites to strtoull.m4.
21769 Moved the strtoumax prerequisites to strtoumax.m4.
21772 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
21773 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
21776 * m4/dup2.m4: New file.
21779 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
21780 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
21783 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
21784 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
21786 Module gettimeofday.
21787 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
21788 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
21789 gl_PREREQ_GETTIMEOFDAY.
21792 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
21793 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
21796 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
21797 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
21798 jm_AC_TYPE_UINTMAX_T.
21799 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
21802 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
21803 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
21806 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
21807 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
21810 * m4/timespec.m4 (gl_TIMESPEC): New macro.
21811 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
21812 * m4/st_mtim.m4: Indentation.
21815 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
21816 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
21817 gl_PREREQ_NANOSLEEP.
21820 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
21821 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
21822 (gl_REGEX): New macro.
21825 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
21826 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
21829 * m4/rmdir.m4: New file.
21832 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
21833 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
21834 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
21837 * m4/dirname.m4: New file.
21840 * m4/getopt.m4: New file.
21842 Module unistd-safer.
21843 * m4/unistd-safer.m4: New file.
21846 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
21848 (gl_PREREQ_FNMATCH_EXTRA): New macro.
21849 (gl_FUNC_FNMATCH_POSIX): New macro.
21850 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
21851 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
21855 * m4/exclude.m4: New file.
21858 * m4/human.m4: New file.
21864 * m4/backupfile.m4: New file.
21865 * m4/d-ino.m4: Indentation.
21868 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
21869 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
21870 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
21873 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
21877 * m4/euidaccess.m4: New file.
21880 * m4/file-type.m4: New file.
21883 * m4/fileblocks.m4: New file.
21886 * m4/filemode.m4: New file.
21889 * m4/isdir.m4: New file.
21892 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
21893 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
21896 * m4/makepath.m4: New file.
21899 * m4/modechange.m4: New file.
21902 * m4/mountlist.m4: New file.
21903 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
21906 Module path-concat.
21907 * m4/path-concat.m4: New file.
21910 * m4/pathmax.m4: New file.
21913 * m4/same.m4: New file.
21916 * m4/save-cwd.m4: New file.
21919 * m4/savedir.m4: New file.
21922 * m4/xgetcwd.m4: New file.
21923 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
21926 * m4/xreadlink.m4: New file.
21929 * m4/safe-read.m4: New file.
21932 * m4/safe-write.m4: New file.
21935 * m4/closeout.m4: New file.
21937 Module stdio-safer.
21938 * m4/stdio-safer.m4: New file.
21941 * m4/getpass.m4: New file.
21944 * m4/getugroups.m4: New file.
21946 Module group-member.
21947 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
21948 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
21951 * m4/idcache.m4: New file.
21954 * m4/userspec.m4: New file.
21957 * m4/clock_time.m4: New file.
21958 * m4/gettime.m4: New file.
21961 * m4/settime.m4: New file.
21964 * m4/posixtm.m4: New file.
21966 Module gethostname.
21967 * m4/gethostname.m4: New file.
21970 * m4/canon-host.m4: New file.
21973 * m4/codeset.m4: New file, from gettext-0.11.5.
21974 * m4/gettext.m4: New file, from gettext-0.11.5.
21975 * m4/glibc21.m4: New file, from gettext-0.11.5.
21976 * m4/iconv.m4: New file, from gettext-0.11.5.
21977 * m4/intdiv0.m4: New file, from gettext-0.11.5.
21978 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
21979 * m4/inttypes.m4: New file, from gettext-0.11.5.
21980 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
21981 * m4/isc-posix.m4: New file, from gettext-0.11.5.
21982 * m4/lcmessage.m4: New file, from gettext-0.11.5.
21983 * m4/lib-ld.m4: New file, from gettext-0.11.5.
21984 * m4/lib-link.m4: New file, from gettext-0.11.5.
21985 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
21986 * m4/progtest.m4: New file, from gettext-0.11.5.
21987 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
21988 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
21989 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
21991 Module localcharset.
21992 * m4/localcharset.m4: New file.
21994 Module hard-locale.
21995 * m4/hard-locale.m4: New file.
21998 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
22000 * m4/mbrtowc.m4: Add comment.
22003 * m4/memcasecmp.m4: New file.
22006 * m4/memcoll.m4: New file.
22009 * m4/unicodeio.m4: New file.
22012 * m4/rpmatch.m4: New file.
22015 * m4/yesno.m4: New file.
22018 * m4/exitfail.m4: New file.
22021 * m4/c-stack.m4 (gl_C_STACK): New macro.
22022 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
22025 * m4/error.m4 (gl_ERROR): New macro.
22026 (jm_PREREQ_ERROR): Use onceonly macros.
22029 * m4/fatal.m4: New file.
22032 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
22033 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
22035 Module getpagesize.
22036 * m4/getpagesize.m4: New file.
22038 Module getusershell.
22039 * m4/getusershell.m4: New file.
22042 * m4/physmem.m4: New file.
22045 * m4/posixver.m4: New file.
22048 * m4/quotearg.m4: New file.
22051 * m4/quote.m4: New file.
22054 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
22057 * m4/sig2str.m4: New file.
22060 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
22062 * m4/intmax_t.m4: New file.
22063 * m4/d-type.m4: Indentation.
22064 * m4/jm-macros.m4: Update.
22065 * m4/prereq.m4 (jm_PREREQ): Update.
22066 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
22067 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
22068 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
22069 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
22070 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
22071 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
22072 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
22073 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
22074 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
22075 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
22076 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
22077 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
22078 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
22079 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
22080 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
22081 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
22082 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
22083 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
22084 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
22086 2002-12-24 Bruno Haible <bruno@clisp.org>
22088 * MODULES.txt: Update according to m4/ changes.
22091 * config.rpath: New file, from gettext-0.11.5.
22093 * modules/*: New module descriptions.
22094 * gnulib-tool: New file.
22095 * MODULES.html.sh: New file.
22097 2002-12-21 Karl Berry <karl@gnu.org>
22099 * doc/fdl.texi: update to version 1.2.
22101 2002-12-19 Karl Berry <karl@gnu.org>
22103 * config/config.guess: update from prep.
22105 2002-12-18 Bruno Haible <bruno@clisp.org>
22107 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
22108 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
22110 2002-12-17 Bruno Haible <bruno@clisp.org>
22112 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
22113 stdlib.h, string.h.
22115 2002-12-17 Bruno Haible <bruno@clisp.org>
22117 * lib/canon-host.c (strdup): Remove unused declaration.
22119 * lib/fsusage.c: Include full_read.h.
22120 (get_fs_usage): Use full_read instead of safe_read.
22122 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
22124 2002-12-12 Karl Berry <karl@gnu.org>
22126 * config/config.guess: update from prep.
22128 2002-12-11 Bruno Haible <bruno@clisp.org>
22130 * m4/setenv.m4: New file, from gettext-0.11.5.
22132 2002-12-11 Bruno Haible <bruno@clisp.org>
22134 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
22136 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
22139 2002-12-11 Bruno Haible <bruno@clisp.org>
22141 * setenv.c (alloca): Fall back to malloc.
22142 (freea): New macro.
22143 (setenv): Use freea() to free memory allocated with alloca().
22145 2002-11-13 Bruno Haible <bruno@clisp.org>
22147 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
22148 function declarations.
22149 * unsetenv.c (unsetenv): Likewise.
22151 2002-03-04 Bruno Haible <bruno@clisp.org>
22153 Portability to AIX 4.3.3.
22154 * unsetenv.c: New file, extracted from setenv.c.
22155 * setenv.c: Move the unsetenv() function to unsetenv.c.
22157 2001-12-20 Bruno Haible <bruno@clisp.org>
22159 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
22160 use malloc instead. For SunOS 4.
22162 2001-12-11 Bruno Haible <bruno@clisp.org>
22164 * setenv.c: Declare alloca.
22165 (compar_fn_t): New typedef.
22166 (KNOWN_VALUE, STORE_VALUE): Use it.
22168 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
22171 2002-12-10 Paul Eggert <eggert@twinsun.com>
22173 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
22174 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
22175 Choose values that are less likely to collide with system fnmatch
22177 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
22178 defined (e.g., a pure POSIX system).
22179 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
22180 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
22182 2002-12-06 Paul Eggert <eggert@twinsun.com>
22184 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
22185 a pain in practice to deal with generated m4 files. This change
22186 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
22188 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
22189 and jm-glibc-io.m4, as they are no longer a special case.
22190 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
22191 kludge and the auto-generation stuff. Check only whether the
22192 functions are declared, not whether they exist, since older hosts
22193 that don't declare the functions can't use the optimization anyway.
22195 2002-12-06 Jim Meyering <jim@meyering.net>
22197 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
22199 Merge in changes from libc's misc/error.c, in preparation
22200 for the merge of gnulib's changes back into libc.
22202 * lib/error.c (_): Define only if not already defined.
22203 Move definition to follow all #include directives.
22204 Include unlocked-io.h only if !_LIBC.
22205 [_LIBC]: Include <libio/libioP.h>.
22206 [USE_IN_LIBIO]: Include <libio/iolibio.h>
22207 (fflush): Tweak definition to use INTUSE.
22210 2002-12-05 Paul Eggert <eggert@twinsun.com>
22212 * lib/alloca.c [defined emacs]: Include "lisp.h".
22213 (xalloc_die) [defined emacs]: New macro.
22214 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
22215 [! defined emacs]: Include <xalloc.h>.
22216 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
22217 (pointer): Typedef to POINTER_TYPE *.
22218 (malloc): Remove decl; we now always use xmalloc.
22219 (alloca): Use old-style definition, since Emacs needs this.
22220 Check for arithmetic overflow when computing combined size.
22222 2002-12-04 Paul Eggert <eggert@twinsun.com>
22224 Do not generate unlocked-io.h automatically, since it's easier to
22225 maintain it by hand.
22227 * lib/unlocked-io.h: New file, from GNU diffutils,
22228 but with proper copyright notice and attribution.
22229 * lib/gen-uio: Remove.
22230 * lib/Makefile.am: Add copyright notice.
22231 (libfetish_a_SOURCES): Add unlocked-io.h.
22232 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
22233 (DISTCLEANFILES, io_functions): Remove macros.
22234 (EXTRA_DIST): Remove gen_uio.
22235 (unlocked-io.h): Remove rule.
22237 2002-12-04 Jim Meyering <jim@meyering.net>
22239 Reflect the fact that stat.c and lstat.c are no longer generated.
22240 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
22241 (DISTCLEANFILES): Likewise.
22242 (EXTRA_DIST): Likewise.
22243 (all_local): Don't depend on stat.c or lstat.c.
22244 (stat.c, lstat.c): Remove rules.
22245 (EXTRA_DIST): Remove xstat.in.
22247 * lib/xstat.in: Remove file. Contents moved into stat.c.
22248 * lib/stat.c: New file. Contents mostly from xstat.in.
22249 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
22250 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
22252 * lib/safe-read.c: Rework so that it may serve to define safe_write,
22254 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
22256 2002-12-03 Jim Meyering <jim@meyering.net>
22258 * lib/safe-read.c, safe-write.c: Change variable names and comments,
22259 but not semantics, to minimize the differences between these two files.
22260 (safe_read): Change comment to mention SAFE_READ_ERROR.
22262 * lib/safe-read.c (IS_EINTR): Define.
22263 (safe_read): Use IS_EINTR in place of in-function cpp directives.
22265 2002-12-02 Jim Meyering <jim@meyering.net>
22267 * lib/safe-read.c (EINTR): Define.
22268 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
22269 (INT_MAX): Provide fallback.
22270 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
22272 * lib/safe-read.h (SAFE_READ_ERROR): Define.
22274 2002-12-02 Bruno Haible <bruno@clisp.org>
22276 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
22277 Define, taken from safe-read.c.
22278 (INT_MAX): Provide fallback.
22279 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
22280 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
22282 * lib/safe-read.c (EINTR): Remove definition.
22283 (safe_read): Don't use EINTR if it is absent.
22285 2002-12-01 Jim Meyering <jim@meyering.net>
22287 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
22289 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
22291 2002-11-27 Paul Eggert <eggert@twinsun.com>
22293 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
22294 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
22295 with `if (! (value < limit)) abort ();', for readability.
22297 2002-11-26 Karl Berry <karl@gnu.org>
22299 * lib/strdup.c: copy from libc again, with jim's ok.
22300 * lib/.cppi-disable: re-add strdup.c
22302 2002-11-25 Karl Berry <karl@gnu.org>
22304 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
22305 instead of "strtol.c".
22307 2002-11-25 Karl Berry <karl@gnu.org>
22309 * config/install-sh: update from automake for variable quoting, $0 in
22312 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
22313 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
22316 2002-11-25 Jim Meyering <jim@meyering.net>
22318 * lib/mktime.c: Sync from libc, now that it has the latest fix.
22320 2002-11-24 Karl Berry <karl@gnu.org>
22322 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
22323 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
22325 2002-11-24 Jim Meyering <jim@meyering.net>
22327 Update from coreutils:
22329 * lib/mktime.c: Merge in changes from libc.
22331 Avoid a link-time failure on some Linux systems.
22332 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
22334 (__mon_yday): Declare with the STATIC attribute.
22335 (__mktime_internal): Likewise.
22336 Based on a report from Greg Schafer.
22338 2002-11-23 Jim Meyering <jim@meyering.net>
22340 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
22341 Use `unsigned', not `int', as type of index.
22343 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
22345 * lib/fsusage.c: Remove unneeded parentheses around operands of
22348 2002-11-22 Paul Eggert <eggert@twinsun.com>
22350 * lib/quotearg.h: Allow multiple inclusion by surrounding with
22351 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
22352 so that we can be included first.
22353 (PARAMS): Remove; we now assume C89 or later. All uses removed.
22354 * lib/quotearg.c: Include quotearg.h immediately after config.h.
22355 No need to include stddef.h or sys/types.h any more.
22356 Surround local include files with "", not "<>".
22357 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
22358 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
22359 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
22360 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
22361 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
22362 (ISPRINT): Remove; no longer needed now that we assume C89.
22364 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
22367 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
22368 quotearg_char): Use SIZE_MAX rather than
22369 (size_t) -1 when we are talking about "infinity".
22371 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
22373 2002-11-22 Paul Eggert <eggert@twinsun.com>
22375 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
22376 hint that one should use `if (! x) abort ();' rather than `assert
22377 (x);', and anyway it's one less thing to worry about configuring.
22378 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
22379 hash_rehash, hash_insert): Use abort rather than assert.
22381 2002-11-22 Bruno Haible <bruno@clisp.org>
22383 * lib/safe-read.h: Assume C89. Add comments.
22384 (safe_read): Change return type to size_t.
22385 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
22386 byte counts > SSIZE_MAX correctly.
22387 * lib/safe-write.h: New file.
22388 * lib/safe-write.c: New file.
22389 * lib/full-read.h: New file.
22390 * lib/full-read.c: New file.
22391 * lib/full-write.h: Assume C89. Add comments.
22392 * lib/full-write.c: Include safe-write.h.
22393 (full_write): Rewritten to use safe_write.
22394 Suggested by Jim Meyering and Paul Eggert.
22396 2002-11-21 Jim Meyering <jim@meyering.net>
22398 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
22400 Merge in changes from the coreutils.
22402 2002-09-25 Paul Eggert <eggert@twinsun.com>
22403 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
22405 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
22406 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
22407 int. Work more efficiently if X is the same width as uintmax_t.
22408 Do not compare X to -1, to avoid bogus compiler warning.
22409 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
22410 Don't assume that f_frsize and f_bsize are the same type.
22412 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
22413 warning on FreeBSD.
22415 * lib/makepath.c (make_path): Restore umask *before* creating the final
22417 (make_path): Minor reformatting.
22419 * lib/xmalloc.c: Adjust to work with new autoconf macros,
22420 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
22421 HAVE_MALLOC/HAVE_REALLOC.
22423 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
22424 dummy ones. At least on GNU/Linux systems, `auto' means something
22426 From Michael Stone.
22428 2002-11-21 Bruno Haible <bruno@clisp.org>
22430 Remove case insensitive option matching.
22431 * lib/argmatch.h (argcasematch): Remove declaration.
22432 (ARGCASEMATCH): Remove macro.
22433 (__xargmatch_internal): Remove case_sensitive argument.
22434 (XARGMATCH): Update.
22435 (XARGCASEMATCH): Remove macro.
22436 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
22437 case_sensitive argument.
22438 (argcasematch): Remove function.
22439 (__xargmatch_internal): Remove case_sensitive argument.
22440 (main): Use XARGMATCH instead of XARGCASEMATCH.
22442 * lib/xmalloc.c: Change compile-time error message. Add comment about
22443 required autoconf version.
22445 2002-11-20 Paul Eggert <eggert@twinsun.com>
22447 Merge argmatch cleanups from Bison. Assume C89.
22449 * lib/argmatch.c: Include config.h here, not in argmatch.h.
22450 Include stdlib.h, for EXIT_FAILURE.
22451 Always include <string.h>, since we assume C89.
22452 (EXIT_FAILURE): Remove pre-C89 bug workaround.
22453 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
22454 Include <stddef.h> instead, since it's all we need for size_t.
22455 (PARAMS): Remove. All uses removed.
22456 (ARRAY_CARDINALITY): Do not bother to #undef.
22457 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
22458 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
22459 Remove unnecessary parentheses.
22460 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
22461 Insert necessary parentheses.
22462 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
22463 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
22465 2002-11-19 Bruno Haible <bruno@clisp.org>
22467 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
22468 * lib/mbswidth.h: Include <stddef.h>, for size_t.
22470 * lib/mbswidth.h (PARAMS): Remove macro.
22471 (mbswidth, mbsnwidth): Use ANSI C function declarations.
22472 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
22474 * lib/gcd.h (PARAMS): Remove macro.
22475 (gcd): Use ANSI C function declarations.
22476 * lib/gcd.c (gcd): Likewise.
22478 2002-11-15 Bruno Haible <bruno@clisp.org>
22480 * lib/strcspn.c: Include <stddef.h>.
22481 (strcspn): Use ANSI C function declaration. Change return type to
22483 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
22484 (strpbrk): Use NULL.
22485 * lib/strpbrk.h (PARAMS): Remove macro.
22486 (strpbrk): Use ANSI C function declaration.
22487 * lib/strstr.c: Don't include <sys/types.h>.
22488 * lib/strstr.h (PARAMS): Remove macro.
22489 (strstr): Use ANSI C function declarations.
22491 2002-11-14 Karl Berry <karl@gnu.org>
22493 * config/mkinstalldirs: `do' on separate line, instead of
22496 2002-11-06 Bruno Haible <bruno@clisp.org>
22498 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
22499 * lib/gcd.c (gcd): Likewise.
22501 2002-11-05 Bruno Haible <bruno@clisp.org>
22503 * lib/gcd.h: New file, from gettext-0.11.5.
22504 * lib/gcd.c: New file, from gettext-0.11.5.
22506 2002-11-05 Bruno Haible <bruno@clisp.org>
22508 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
22509 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
22510 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
22511 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
22513 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
22515 * lib/makepath.c: Include gettext.h instead of <locale.h> and
22518 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
22519 * lib/human.c: Include gettext.h instead of <libintl.h>.
22520 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
22521 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
22522 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
22523 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
22524 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
22525 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
22526 (textdomain): Remove definition.
22527 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
22529 * lib/long-options.c: Remove include of <libintl.h> and definition of
22531 * lib/same.c: Remove include of <libintl.h> and definition of _.
22533 2002-11-04 Owen Taylor <otaylor@redhat.com>
22535 * lib/config.charset: A few additions for Solaris.
22537 2002-11-04 Bruno Haible <haible@clisp.cons.org>
22539 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
22540 * lib/localcharset.c (locale_charset): Declare as extern "C".
22542 2002-11-04 Bruno Haible <haible@clisp.cons.org>
22544 * lib/config.charset: msdos in uk_UA uses CP1125.
22546 2002-11-04 Bruno Haible <bruno@clisp.org>
22548 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
22549 * lib/strcase.h: New file, from GNU gettext-0.11.5.
22550 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
22551 * lib/strstr.h: New file, from GNU gettext-0.11.5.
22552 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
22554 2002-11-04 Bruno Haible <bruno@clisp.org>
22556 * lib/localcharset.c (locale_charset): Don't return an empty string.
22558 2002-11-04 Bruno Haible <bruno@clisp.org>
22560 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
22563 2002-11-04 Bruno Haible <bruno@clisp.org>
22565 * lib/config.charset: Update for newest glibc. Add canonical names
22566 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
22568 2002-11-04 Bruno Haible <bruno@clisp.org>
22570 * lib/config.charset: Add support for NetBSD.
22572 2002-11-04 Bruno Haible <bruno@clisp.org>
22574 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
22576 2002-11-01 Bruno Haible <bruno@clisp.org>
22578 * configure.in: Add AC_CONFIG_AUX_DIR call.
22579 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
22581 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
22583 2002-09-28 Karl Berry <karl@gnu.org>
22585 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
22586 installed automake until the next release, since changes have been
22589 2002-09-25 Karl Berry <karl@gnu.org>
22591 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
22592 * lib/getopt*: copy from libc/posix.
22593 * lib/gettext.h: copy from gettext.
22594 * lib/.cppi-disable: add strdup.c, gettext.h.
22596 2002-09-25 Karl Berry <karl@gnu.org>
22598 * config/srclist.txt: enable gettext.h check.
22599 * config/config.{guess,sub}: update from prep.
22600 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
22601 from automake 1.6.3.
22604 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
22606 * regex.c (PATFETCH): Remove the translating fetch.
22607 (PATFETCH_RAW): Rename to PATFETCH.
22608 (set_image_of_range): New fun.
22609 (SET_RANGE_TABLE_WORK_AREA): Use it.
22610 (regex_compile): Don't translate the pattern chars so eagerly.
22611 Only do it when inserting an `exactn' bytecode or when handling
22613 (mutually_exclusive_p): Avoid empty statement.
22615 2002-07-06 Jim Meyering <meyering@lucent.com>
22617 * m4/README: Don't mention Makefile.am.in.
22618 Outline how I've tested changes to .m4 files. Yep, it's a pain.
22620 2002-07-01 Jim Meyering <meyering@lucent.com>
22622 * lib/c-stack.c: Include sys/time.h.
22623 From Volker Borchert.
22625 2002-06-26 Paul Eggert <eggert@twinsun.com>
22627 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
22629 2002-06-26 Paul Eggert <eggert@twinsun.com>
22631 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
22632 New macro. Use it uniformly instead of
22633 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
22634 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
22635 reported by Vin Shelton.
22637 2002-06-22 Paul Eggert <eggert@twinsun.com>
22639 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
22640 Do not assume SA_SIGINFO behavior.
22641 Bug reported by Jim Meyering on NetBSD 1.5.2.
22643 2002-06-22 Jim Meyering <meyering@lucent.com>
22645 * m4/c-stack.m4: New file, from diffutils-2.8.2.
22646 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
22648 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
22649 now that configure.ac uses AC_GNU_SOURCE.
22650 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
22651 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
22653 Update to latest tools. Suggestions from Paul Eggert.
22654 * m4/stdbool.m4: New file, from diffutils-2.8.2.
22655 * m4/gnu-source.m4: Update from diffutils-2.8.2.
22656 * m4/fnmatch.m4: Likewise.
22657 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
22658 to AC_HEADER_STDBOOL
22660 2002-06-22 Jim Meyering <meyering@lucent.com>
22662 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
22663 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
22665 2002-06-22 Jim Meyering <meyering@lucent.com>
22667 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
22669 * lib/exitfail.c, exitfail.h: Likewise.
22670 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
22672 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
22674 (EXTRA_DIST): Add fnmatch_loop.c.
22675 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
22677 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
22678 * lib/fnmatch.c: Update from diffutils-2.8.2.
22679 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
22680 * lib/fnmatch.h: Remove file.
22682 2002-06-21 Jim Meyering <meyering@lucent.com>
22684 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
22685 * m4/mbrtowc.m4: Likewise.
22687 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
22688 * m4/mbswidth.m4: Reflect name change:
22689 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
22690 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
22692 * m4/lib-link.m4: Update from gettext-0.11.2.
22693 * m4/gettext.m4: Likewise.
22695 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
22696 From Alfred M. Szmidt.
22698 2002-06-18 Paul Eggert <eggert@twinsun.com>
22700 * lib/file-type.h: Report an error if neither S_ISREG nor
22701 S_IFREG is defined, instead of using a test specific to glibc
22702 2.2. This should be safe, since POSIX requires S_ISREG and
22703 Unix Version 7 had S_IFREG. We don't need to check for
22704 <sys/types.h> since we don't use any symbols that it defines.
22706 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
22708 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
22709 $@-t, so that each temporary file name is unique and valid in the first
22710 8 characters, for operation under DOS.
22712 2002-06-15 Paul Eggert <eggert@twinsun.com>
22714 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
22716 2002-06-15 Jim Meyering <meyering@lucent.com>
22718 Work even with DJGPP 2.03, which lacks support for symlinks.
22720 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
22722 * lib/lchown.c (S_ISLNK): Likewise.
22724 2002-06-15 Jim Meyering <meyering@lucent.com>
22726 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
22727 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
22728 have been included before this file.
22730 2002-06-14 Jim Meyering <meyering@lucent.com>
22732 * lib/file-type.h: Use the version from diffutils-2.8.2.
22733 * lib/file-type.c: Likewise.
22735 2002-06-07 Jim Meyering <meyering@lucent.com>
22737 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
22738 They're needed at least for NetBSD 1.5.2.
22739 ($statxfs_includes): Include those same headers.
22740 ($statxfs_includes): Include sys/vfs.h if available.
22741 ($statxfs_includes): Likewise for sys/statvfs.h.
22742 Check for the following members in both structs statfs and statvfs:
22743 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
22745 2002-06-01 Jim Meyering <meyering@lucent.com>
22747 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
22748 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
22750 2002-05-28 Jim Meyering <meyering@lucent.com>
22752 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
22753 Reported by Volker Borchert.
22755 2002-05-27 Jim Meyering <meyering@lucent.com>
22757 Fix a problem seen only on nonconforming systems whereby ls.c's
22758 use of localtime, and then of gettimeofday would cause trouble:
22759 the localtime call used to initialize rpl_gettimeofday's save
22760 mechanism would clobber ls's current local time information so
22761 that in any long listing the first file would always be listed
22762 with date 1970-01-01. Analysis by Volker Borchert.
22764 * lib/gettimeofday.c (localtime): Undefine.
22765 (rpl_localtime): New function.
22767 2002-05-27 Jim Meyering <meyering@lucent.com>
22769 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
22772 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
22773 use the replacement function; it wouldn't resolve at link time.
22774 Reported by Volker Borchert.
22776 2002-05-22 Jim Meyering <meyering@lucent.com>
22778 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
22780 * lib/file-type.h: New file.
22781 * lib/file-type.c (file_type): New file/function. Extracted from
22784 2002-04-30 Jim Meyering <meyering@lucent.com>
22786 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
22788 2002-04-29 Paul Eggert <eggert@twinsun.com>
22790 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
22792 2002-04-29 Paul Eggert <eggert@twinsun.com>
22794 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
22795 Do not check for alloca.h (no longer used) or stdbool.h (was never
22796 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
22798 2002-04-29 Paul Eggert <eggert@twinsun.com>
22800 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
22802 2002-04-29 Jim Meyering <meyering@lucent.com>
22804 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
22805 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
22806 Use AC_FUNC_STRNLEN here instead.
22808 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
22809 With autoconf-2.53a, it's part of AC_PROG_CC.
22811 2002-04-28 Paul Eggert <eggert@twinsun.com>
22813 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
22814 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
22816 2002-04-28 Paul Eggert <eggert@twinsun.com>
22818 * lib/sig2str.h, lib/sig2str.c: New files.
22819 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
22821 2002-04-28 Paul Eggert <eggert@twinsun.com>
22823 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
22824 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
22825 of 127, since 64 is the largest conceivable number for ancient
22827 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
22829 2002-04-28 Jim Meyering <meyering@lucent.com>
22831 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
22833 2002-04-24 Jim Meyering <meyering@lucent.com>
22835 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
22836 (jm_PREREQ): Use it.
22838 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
22839 mach/mach.h fcntl.h.
22840 Check for this function: setlocale.
22842 2002-04-24 Jim Meyering <meyering@lucent.com>
22844 * lib/gettext.h: New file, from Gettext.
22845 * lib/Makefile.am (INCLUDES): Remove -I../intl.
22846 (libfetish_a_SOURCES): Add gettext.h.
22848 2002-04-16 Jim Meyering <meyering@lucent.com>
22850 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
22851 ut_pid, ut_id, ut_exit.
22853 2002-04-16 Jim Meyering <meyering@lucent.com>
22855 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
22856 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
22857 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
22859 2002-04-12 Jim Meyering <meyering@lucent.com>
22861 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
22862 now-bogus check for f_type in sys/mount.h. Instead, just test for the
22863 existence of the getmntinfo function. Needed for Darwin 5.3.
22865 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
22866 This is necessary at least on Darwin 5.3.
22868 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
22869 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
22870 strnlen.o in the library, and that makes some versions of ranlib
22873 2002-04-12 Jim Meyering <meyering@lucent.com>
22875 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
22877 2002-04-09 Jim Meyering <meyering@lucent.com>
22879 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
22880 to be more precise. Rather than saying we're checking whether the
22881 function `works', say what we're testing.
22882 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
22883 Reported by Bruno Haible.
22885 2002-03-10 Jim Meyering <meyering@lucent.com>
22887 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
22888 Suggestion from Santiago Vila.
22890 2002-03-08 Jim Meyering <meyering@lucent.com>
22892 * lib/rename.c: Mention that this wrapper is needed also on
22893 mips-dec-ultrix4.4 systems.
22895 2002-03-02 Jim Meyering <meyering@lucent.com>
22897 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
22898 not HAVE_CLOCK_SETTIME.
22900 2002-02-27 Paul Eggert <eggert@twinsun.com>
22902 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
22903 Check for clock_settime.
22905 2002-02-27 Paul Eggert <eggert@twinsun.com>
22907 * lib/nanosleep.h: Rename to....
22908 * lib/timespec.h: New name for nanosleep.h. All uses changed.
22910 * lib/gettime.c: New file.
22911 * lib/settime.c: New file.
22912 * lib/stime.c: Remove.
22914 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
22915 timespec.h. Remove nanosleep.h.
22917 2002-02-25 Paul Eggert <eggert@twinsun.com>
22919 * m4/acl.m4: New file.
22920 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
22921 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
22923 2002-02-25 Paul Eggert <eggert@twinsun.com>
22925 * lib/acl.c, lib/acl.h: New files.
22926 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
22928 2002-02-24 Jim Meyering <meyering@lucent.com>
22930 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
22931 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
22932 cause trouble. Reported by Nelson Beebe.
22934 2002-02-23 Paul Eggert <eggert@twinsun.com>
22936 * lib/path-concat.c (xpath_concat): Reorder code to pacify
22937 compilers that don't know that xalloc_die never returns.
22939 2002-02-20 Jim Meyering <meyering@lucent.com>
22941 * lib/getdate.c: Regenerate using bison-1.33.
22943 2002-02-17 Jim Meyering <meyering@lucent.com>
22945 * config/config.guess (main): Don't use `head -1'; it's no longer
22946 portable. Use `sed 1q' instead.
22948 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
22950 * m4/codeset.m4: Upgrade to gettext-0.11.
22951 * m4/gettext.m4: Upgrade to gettext-0.11.
22952 * m4/glibc21.m4: Upgrade to gettext-0.11.
22953 * m4/iconv.m4: Upgrade to gettext-0.11.
22954 * m4/isc-posix.m4: Upgrade to gettext-0.11.
22955 * m4/lcmessage.m4: Upgrade to gettext-0.11.
22956 * m4/lib-ld.m4: New file, from gettext-0.11.
22957 * m4/lib-link.m4: New file, from gettext-0.11.
22958 * m4/lib-prefix.m4: New file, from gettext-0.11.
22959 * m4/progtest.m4: Upgrade to gettext-0.11.
22961 2002-02-15 Paul Eggert <eggert@twinsun.com>
22963 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
22964 (jm_PREREQ): Use it.
22966 2002-02-15 Paul Eggert <eggert@twinsun.com>
22968 * lib/posixver.c, lib/posixver.h: New files.
22969 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
22971 2002-02-02 Paul Eggert <eggert@twinsun.com>
22972 Bruno Haible <bruno@clisp.org>
22974 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
22975 (fwrite_success_callback): New declaration.
22976 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
22977 print_unicode_char. Call failure callback instead of error.
22978 (fwrite_success_callback): New function.
22979 (exit_failure_callback): New function.
22980 (fallback_failure_callback): New function.
22981 (print_unicode_char): Call unicode_to_mb.
22983 2002-01-26 Jim Meyering <meyering@lucent.com>
22985 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
22986 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
22988 2002-01-26 Jim Meyering <meyering@lucent.com>
22990 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
22992 2002-01-22 Paul Eggert <eggert@twinsun.com>
22994 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
22996 2002-01-22 Jim Meyering <meyering@lucent.com>
22998 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
22999 Otherwise, some versions of automake would omit the rule that makes
23000 Makefile from Makefile.in.
23002 2002-01-21 Paul Eggert <eggert@twinsun.com>
23004 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
23005 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
23006 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
23007 (memcoll): Set errno to zero if there is no error.
23009 * lib/quotearg.c (quotearg_buffer_restyled):
23010 Fix bug with quoting buffers containing NUL when backslashing escapes.
23011 This bug was exposed by the other changes in this patch.
23012 (quotearg_n_options): New arg ARGSIZE.
23013 All callers changed.
23014 (quoting_options_from_style): New function.
23015 (quotearg_n_style): Use it.
23016 (quotearg_n_style_mem): New function.
23018 * lib/quotearg.h (quotearg_n_style_mem): New function.
23020 2002-01-19 Jim Meyering <meyering@lucent.com>
23022 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
23023 Remove useless quotes: DF_PROG="df".
23024 * m4/strnlen.m4: New file.
23026 2002-01-16 Paul Eggert <eggert@twinsun.com>
23028 * lib/backupfile.c (ISDIGIT): Comment fix.
23029 * lib/getdate.y (ISDIGIT): Likewise.
23030 * lib/posixtm.c (ISDIGIT, year): Likewise.
23031 * lib/strverscmp.c (ISDIGIT): Likewise.
23032 * lib/userspec.c (ISDIGIT): Likewise.
23034 2002-01-16 Jim Meyering <meyering@lucent.com>
23036 * lib/getdate.y: Add three semicolons, each just before a closing
23037 brace. Bison (as of version 1.31) no longer papers over that mistake.
23039 2002-01-05 Jim Meyering <meyering@lucent.com>
23041 * lib/version-etc.c (version_etc_copyright): Update copyright year.
23043 2001-12-19 Paul Eggert <eggert@twinsun.com>
23045 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
23046 not silently exit merely because the output buffer happens to
23047 have nothing pending.
23049 2001-12-18 Paul Eggert <eggert@twinsun.com>
23051 See the big note in ../ChangeLog.
23052 * lib/human.c (suffixes): Prefer K to k for 1024.
23053 (generate_suffix_backwards): New function.
23054 (human_readable_inexact): Use it.
23055 * lib/xstrtol.c (__xstrtol): If there is no number but there
23056 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
23057 Accept 'K' as well as 'k'.
23059 2001-12-15 Jim Meyering <meyering@lucent.com>
23061 * lib/regex.h (__restrict_arr): Update from libc.
23063 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
23064 as `remote' if the name starts with `//'. Suggested by Michael Stone.
23067 2001-12-14 Jim Meyering <meyering@lucent.com>
23069 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
23070 Suggestion from Bruno Haible.
23072 2001-12-10 Jim Meyering <meyering@lucent.com>
23074 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
23075 xrealloc, Instead, include "xalloc.h".
23076 (initbuffer): Don't cast xmalloc return value to char*.
23077 (readline): Reword comment.
23078 Don't cast xrealloc return value to char*
23079 Return NULL, not 0.
23081 2001-12-09 Jim Meyering <meyering@lucent.com>
23083 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
23084 about `signed and unsigned type in conditional expression'.
23085 * lib/posixtm.c (posix_time_parse): Likewise.
23087 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
23089 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
23090 to avoid a pedantic warning.
23092 * lib/getstr.c: Don't include assert.h.
23093 (getstr): Remove warning-evoking assertions.
23094 Return -1 if offset parameter is out of bounds.
23095 Change the type of a local from int to size_t.
23097 * lib/strftime.c (my_strftime_localtime_r): Include this function
23098 definition in the `#if ! HAVE_TM_GMTOFF' block.
23100 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
23101 Include xalloc.h instead.
23103 2001-12-02 Jim Meyering <meyering@lucent.com>
23105 * lib/tempname.c: Don't declare getenv, thus reverting the change of
23106 2001-11-18. It's no longer necessary, now that stdlib.h is always
23109 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
23110 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
23112 2001-11-30 Akim Demaille <akim@epita.fr>
23114 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
23115 before being defined.
23117 2001-11-27 Paul Eggert <eggert@twinsun.com>
23119 * lib/quotearg.h (quotearg_n, quotearg_n_style):
23120 First arg is int, not unsigned.
23121 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
23122 (SIZE_MAX, UINT_MAX): New macros.
23123 (quotearg_n_options): Abort if N is negative.
23124 Avoid overflow check on hosts where size_t is 64 bits and int
23125 is 32 bits, as overflow is impossible there.
23126 Fix off-by-one typo that caused unnecessary reallocation.
23128 2001-11-27 Jim Meyering <meyering@lucent.com>
23130 * lib/tempname.c: Merge with version from libc.
23131 * lib/regex.c: Likewise.
23133 * lib/tempname.c: Include stdlib.h unconditionally. On some old
23134 systems for which STDC_HEADERS is 0, it was not included, resulting in
23135 a warning about an integer-to-pointer conversion problem with getenv.
23136 Reported by Volker Borchert.
23138 2001-11-26 Jim Meyering <meyering@lucent.com>
23140 * lib/gtod.h: Remove file.
23141 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
23142 * lib/gettimeofday.c: Don't include gtod.h.
23143 (GTOD_init): Remove function.
23144 (rpl_gettimeofday): Do its job here instead, rather than aborting.
23145 Suggestion from Volker Borchert.
23147 2001-11-23 Jim Meyering <meyering@lucent.com>
23149 * lib/hash.h (struct hash_table): Don't define here. Merely declare
23151 * lib/hash.c (struct hash_table): Define it here instead.
23153 2001-11-22 Jim Meyering <meyering@lucent.com>
23155 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
23157 2001-11-20 Jim Meyering <meyering@lucent.com>
23159 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
23160 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
23162 2001-11-19 Jim Meyering <meyering@lucent.com>
23164 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
23165 directory. Use "conftestXXXXXX" as the template.
23166 Suggestion from Paul Eggert.
23168 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
23169 immediately, so the test doesn't mistakenly hit the max-open-files
23172 2001-11-18 Paul Eggert <eggert@twinsun.com>
23174 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
23175 (TEMPORARIES): New macro.
23176 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
23177 removes an artificial limitation (e.g. HP-UX 10.20, where
23180 2001-11-18 Jim Meyering <meyering@lucent.com>
23182 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
23184 2001-11-18 Jim Meyering <meyering@lucent.com>
23186 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
23189 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
23190 files will be created before anything else.
23192 2001-11-17 Paul Eggert <eggert@twinsun.com>
23194 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
23195 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
23197 2001-11-17 Jim Meyering <meyering@lucent.com>
23199 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
23200 Prompted by a report from Bob Proulx.
23202 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
23203 Instead, require UTILS_FUNC_MKSTEMP.
23205 2001-11-17 Jim Meyering <meyering@lucent.com>
23207 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
23208 Now, that's done as part of AC_FUNC_STRTOD.
23210 2001-11-17 Jim Meyering <meyering@lucent.com>
23212 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
23213 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
23214 rather than group writable. Patch by Juan F. Codagnone.
23216 * lib/readtokens.c: Remove explicit declarations of xmalloc and
23217 xrealloc, Instead, include "xalloc.h".
23219 * lib/mountlist.c: Include unlocked-io.h after all system headers.
23220 Remove explicit declarations of xmalloc, xrealloc,
23221 and xstrdup. Instead, include "xalloc.h".
23223 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
23225 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
23227 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
23229 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
23230 Reported by Padraig Brady.
23232 * lib/mkstemp.c: #undef mkstemp.
23234 (rpl_mkstemp): Rename from mkstemp.
23237 2001-11-16 Jim Meyering <meyering@lucent.com>
23239 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
23240 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
23241 determine the amount of total physical memory, use pstat_getstatic.
23242 HPUX-11 doesn't define _SC_PHYS_PAGES.
23243 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
23244 If sysconf couldn't be used to determine the amount of available
23245 physical memory, use both pstat_getstatic and pstat_getdynamic.
23246 Based on a patch from Bob Proulx.
23248 2001-11-10 Jim Meyering <meyering@lucent.com>
23250 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
23251 (jm_PREREQ): Use it.
23253 2001-11-09 Jim Meyering <meyering@lucent.com>
23255 * m4/jm-macros.m4: Require autoconf-2.52f.
23256 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
23257 Use these AC_-prefixed names, not the AM_-prefixed ones.
23259 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
23261 2001-11-05 Jim Meyering <meyering@lucent.com>
23263 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
23265 2001-11-04 Jim Meyering <meyering@lucent.com>
23267 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
23270 2001-11-03 Jim Meyering <meyering@lucent.com>
23272 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
23275 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
23276 know the name of the variable in the macro definition.
23278 2001-11-03 Jim Meyering <meyering@lucent.com>
23280 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
23281 in argmatch_to_argument call.
23283 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
23286 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
23287 e.g., a fault due to an attempt to free a NULL pointer.
23289 2001-11-01 Jim Meyering <meyering@lucent.com>
23291 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
23292 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
23294 2001-11-01 Jim Meyering <meyering@lucent.com>
23296 * lib/dirfd.c, lib/dirfd.h: New files.
23297 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
23299 * lib/hash.c (hash_print) [TESTING]: Clean up.
23301 2001-10-22 Paul Eggert <eggert@twinsun.com>
23303 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
23304 to avoid a warning if -Wall.
23306 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
23309 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
23310 (per RMS's instructions, this is now the canonical source)
23311 * lgpl/, gpl/: New directories.
23313 2001-10-21 Paul Eggert <eggert@twinsun.com>
23315 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
23317 2001-10-21 Jim Meyering <meyering@lucent.com>
23319 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
23320 this code would end up calling gettext even in packages built
23321 with --disable-nls.
23322 * lib/getopt.c (_): Likewise.
23323 * lib/regex.c (_): Likewise.
23325 2001-10-20 Paul Eggert <eggert@twinsun.com>
23327 * m4/error.m4 (jm_PREREQ_ERROR):
23328 Do not invoke AC_CHECK_FUNCS with strerror_r, as
23329 AC_FUNC_STRERROR_R does that.
23330 Check for strerror declaration.
23332 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
23333 are supposed to have them these days.
23334 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
23335 Merge changes from latest Autoconf CVS.
23336 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
23337 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
23338 POSIX decided to standardize on the int flavor of strerror_r.
23340 2001-10-20 Paul Eggert <eggert@twinsun.com>
23342 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
23343 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
23344 Use strerror_r that is only a macro, even if it is not a function.
23345 (strerror): Check for HAVE_DECL_STRERROR before declaring.
23346 (private_strerror): Use prototypes, not old-style function definition.
23347 (print_errno_message): New function.
23348 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
23349 char*-flavored one.
23350 (error_tail, error, error_at_line): Use it.
23352 2001-10-11 Jim Meyering <meyering@lucent.com>
23354 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
23355 and quote_n (1, ... to avoid clobbering a buffer.
23357 2001-10-05 Jim Meyering <meyering@lucent.com>
23359 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
23361 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
23362 * lib/hash-pjw.h: New file.
23364 2001-09-30 Jim Meyering <meyering@lucent.com>
23366 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
23367 `struct fsstat' has the `f_fstypename' member.
23368 Use that to define FS_TYPE, which is now used to make
23369 the getfsstat link test tighter.
23371 2001-09-30 Jim Meyering <meyering@lucent.com>
23373 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
23374 Include <sys/ucred.h>, for Apple Darwin.
23375 Include sys/mount.h and sys/fs_types.h only if available.
23377 (read_filesystem_list): Use FS_TYPE.
23379 2001-09-29 Paul Eggert <eggert@twinsun.com>
23381 * lib/exclude.c (excluded_filename): 0 -> false, since it's
23384 2001-09-29 Jim Meyering <meyering@lucent.com>
23386 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
23387 [one-argument getmntent function]): Include stdio.h before mntent.h.
23388 SunOS 4.1.x needs it for the declaration of `FILE'.
23389 Patch by Volker Borchert.
23391 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
23392 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
23393 sys/fs_types.h, and make the link-test for getfsstat guard #include
23394 directives with appropriate #if HAVE_*_H tests so that we can
23395 detect getfsstat on Apple Darwin1.3.7 systems.
23396 Reported by Nelson Beebe.
23397 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
23399 2001-09-28 Paul Eggert <eggert@twinsun.com>
23401 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
23402 #defines strtoimax. Also treat the other strto* functions
23405 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
23406 Check for strtoul and strtoumax,
23407 as those declarations are made even in the signed case.
23408 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
23409 Likewise, for strtol and strtoimax.
23411 2001-09-28 Paul Eggert <eggert@twinsun.com>
23413 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
23414 #defines strtoimax. Also treat the other strto* functions
23417 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
23418 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
23419 (strtoimax, strtoumax): Do not declare if already defined as a macro.
23421 2001-09-26 Jim Meyering <meyering@lucent.com>
23423 Most macros in unlocked-io.h had the wrong number of arguments.
23424 * lib/gen-uio: New script.
23425 (USE_UNLOCKED_IO): Define to 1 if not already defined.
23426 * lib/unlocked-io.hin: Remove file.
23427 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
23428 rather than trying to embed it here.
23429 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
23430 Reported by Padraig Brady.
23432 2001-09-25 Volker Borchert <bt@teknon.de>
23434 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
23437 2001-09-24 Jim Meyering <meyering@lucent.com>
23439 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
23441 2001-09-23 Jim Meyering <meyering@lucent.com>
23443 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
23444 instead of the mere test for existence of mntent.h. The latter
23445 would get a false-positive on AIX 3.4 systems.
23446 In the outer getmntent if-block, don't die if neither of the getmntent
23447 tests succeeds. Instead, just fall through and continue with the
23450 2001-09-23 Jim Meyering <meyering@lucent.com>
23452 * lib/mountlist.c: Remove useless parentheses in #if directives.
23453 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
23454 the deprecated MOUNTED symbol is no longer defined in mntent.h.
23456 2001-09-22 Jim Meyering <meyering@lucent.com>
23458 * m4/gettext.m4: New file. From gettext.
23459 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
23460 * m4/progtest.m4: Likewise
23461 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
23462 * m4/glibc21.m4: Likewise.
23464 * m4/libintl.m4: Remove. No longer used.
23466 2001-09-22 Jim Meyering <meyering@lucent.com>
23468 * lib/localcharset.c: Update from latest gettext.
23469 * lib/config.charset: Likewise.
23471 2001-09-20 Jim Meyering <meyering@lucent.com>
23473 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
23475 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
23478 2001-09-20 Jim Meyering <meyering@lucent.com>
23480 * lib/xstrtol.c (strtoimax): Guard declaration with
23481 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
23482 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
23483 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
23484 (strtoumax): Likewise, for completeness (it wasn't necessary).
23486 2001-09-17 Paul Eggert <eggert@twinsun.com>
23488 * lib/strtoimax.c (HAVE_LONG_LONG):
23489 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
23490 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
23491 to work around bug in IBM C compiler.
23493 2001-09-17 Jim Meyering <meyering@lucent.com>
23495 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
23496 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
23497 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
23498 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
23499 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
23500 whenever the right hand side need not be expanded by the shell.
23502 2001-09-16 Paul Eggert <eggert@twinsun.com>
23504 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
23505 library. It's not correct, as some older glibcs are buggy.
23506 fnmatch wasn't fixed until glibc 2.2.
23508 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
23509 special shell magic here.
23511 2001-09-16 Jim Meyering <meyering@lucent.com>
23513 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
23514 * m4/jm-macros.m4: Require it.
23516 2001-09-16 Jim Meyering <meyering@lucent.com>
23518 * lib/mkdir.c: New file.
23520 2001-09-15 Jim Meyering <meyering@lucent.com>
23522 * m4/jm-macros.m4: Check for help2man.
23524 2001-09-11 Jim Meyering <meyering@lucent.com>
23526 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
23527 The body, by Paul Eggert, was moved here from configure.in.
23528 * m4/jm-macros.m4: Require UTILS_HOST_OS.
23530 2001-09-04 Paul Eggert <eggert@twinsun.com>
23532 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
23533 (jm_PREREQ): Use it.
23535 2001-09-04 Paul Eggert <eggert@twinsun.com>
23537 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
23538 Use ssize_t, not int, to store result of readlink.
23539 Check for ssize_t overflow as well as size_t overflow,
23540 as POSIX says the result of readlink is implementation-defined
23541 when ssize_t overflows.
23542 Remove unnecessary cast to char*.
23543 Use free+malloc instead of realloc, as the storage doesn't need
23544 to be preserved and it's clearer and can be more efficient that way.
23545 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
23546 * lib/xreadlink.h (xreadlink): Update prototype.
23548 2001-09-04 Paul Eggert <eggert@twinsun.com>
23550 * lib/xgetcwd.c: Revert some of the previous change; intead,
23551 fix the HAVE_GETCWD_NULL code to behave more like the
23552 !HAVE_GETCWD_NULL code used to.
23554 Include "xalloc.h".
23555 (xgetcwd): Do not return NULL when memory is exhausted; instead,
23558 2001-09-03 Paul Eggert <eggert@twinsun.com>
23560 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
23561 sys/param.h, as pathmax.h includes them.
23563 2001-09-03 Paul Eggert <eggert@twinsun.com>
23565 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
23566 (jm_PREREQ_XGETCWD): New macro.
23568 * m4/getcwd.m4: New file.
23570 2001-09-03 Paul Eggert <eggert@twinsun.com>
23572 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
23573 like the HAVE_GETCWD_NULL code.
23574 Include pathmax.h if not HAVE_GETCWD.
23575 Do not include xalloc.h.
23576 (INITIAL_BUFFER_SIZE): New symbol.
23577 Do not use xmalloc / xrealloc, since the caller is responsible for
23578 handling errors. Preserve errno around `free' during failure.
23579 Do not overrun buffer when using getwd.
23581 2001-09-03 Paul Eggert <eggert@twinsun.com>
23583 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
23584 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
23587 2001-09-03 Paul Eggert <eggert@twinsun.com>
23589 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
23590 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
23591 spotted by Jim Meyering.
23593 2001-09-03 Jim Meyering <meyering@lucent.com>
23595 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
23598 2001-09-02 Jim Meyering <meyering@lucent.com>
23600 * lib/error.c: Update from GNU libc.
23602 2001-09-01 Jim Meyering <meyering@lucent.com>
23604 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
23607 2001-09-01 Jim Meyering <meyering@lucent.com>
23609 * lib/xreadlink.c: New file.
23610 * lib/xreadlink.h: New file.
23611 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
23614 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
23615 doesn't conflict with sparc Solaris 7's definition in
23616 /usr/include/sys/int_types.h.
23618 * lib/exclude.c: Use `""', not `<>' to #include non-system header
23620 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
23621 and strncasecmp as r-values. Unixware didn't have declarations.
23623 2001-08-31 Paul Eggert <eggert@twinsun.com>
23625 * lib/xstrtol.h: Add copyright notice.
23626 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
23627 LONGINT_INVALID_SUFFIX_CHAR.
23629 2001-08-31 Paul Eggert <eggert@twinsun.com>
23631 * lib/xstrtol.c (strtoimax): New decl.
23633 2001-08-31 Paul Eggert <eggert@twinsun.com>
23635 * lib/xgetcwd.c: Don't include pathmax.h.
23636 Include stdlib.h and unistd.h if available.
23638 (xmalloc, xstrdup, free): Remove decls.
23639 (xgetcwd): Don't assume sizes fit in unsigned.
23640 Check for overflow when computing sizes.
23641 Simplify reallocation code.
23643 2001-08-31 Paul Eggert <eggert@twinsun.com>
23645 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
23646 a directory's st_size can have an arbitrary value, so the old
23647 usage could waste an arbitrary amount of memory. All uses
23649 * lib/savedir.h: Update prototype.
23651 2001-08-31 Paul Eggert <eggert@twinsun.com>
23653 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
23655 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
23658 Also, make the following further changes to make this file's
23659 configuration more similar to that of strtol.c:
23660 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
23661 (strtoumax, uintmax_t, strtoull, strtol): Remove.
23662 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
23663 (strtoimax): Renamed from strtoumax. All uses of unsigned values
23664 changed to signed values.
23666 And make the following changes as well:
23667 Fix copyright notice, as 1999 was missing.
23668 (verify): New macro.
23669 (strtoimax): Check sizes at compile-time, not run-time.
23670 Prefer strtol to strtoll if both work.
23671 (main): Remove; it was not that useful and was a pain to maintain.
23673 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
23675 2001-08-31 Jim Meyering <meyering@lucent.com>
23677 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
23678 Use an initial, malloc'd, buffer of length 128 rather than
23679 a statically allocated one of length 1024.
23681 2001-08-30 Paul Eggert <eggert@twinsun.com>
23683 Simplify code, partly by assuming autoconf 2.52 semantics.
23685 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
23687 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
23688 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
23690 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
23691 Move AC_REQUIRE to next-to-top level, to avoid confusion.
23692 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
23693 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
23694 jm_AC_HEADER_INTTYPES_H.
23695 * m4/jm-macros.m4 (jm_MACROS): Likewise.
23697 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
23699 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
23700 Quote first arg of AC_DEFUN.
23701 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
23702 since they are needed to parse the include file even if we need
23703 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
23704 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
23705 but with opposite signedness.
23707 2001-08-30 Paul Eggert <eggert@twinsun.com>
23709 Merge 'exclude' changes from tar 1.13.22.
23710 This fixes one or two unlikely storage allocation overflow bugs,
23711 but doesn't change user-visible behavior otherwise.
23713 2001-08-30 Paul Eggert <eggert@twinsun.com>
23715 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
23716 (jm_PREREQ_EXCLUDE): New macro.
23718 2001-08-30 Paul Eggert <eggert@twinsun.com>
23720 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
23723 2001-08-30 Paul Eggert <eggert@twinsun.com>
23725 * lib/hash.c: Remove '2001' from copyright notice.
23727 2001-08-30 Paul Eggert <eggert@twinsun.com>
23729 * lib/full-write.h: New file.
23730 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
23731 * lib/full-write.c: Correct credits, as cccp.c no longer
23732 exists and anyway it was so heavily changed from the old cccp
23733 code as to be unrecognizable. Include full-write.h.
23734 (full_write) Return size_t, with short writes meaning failure.
23735 All callers changed. This fixes a bug with large buffers
23737 * lib/utime.c: Include full-write.h.
23739 2001-08-30 Paul Eggert <eggert@twinsun.com>
23741 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
23742 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
23743 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
23744 Include if available.
23745 (<xalloc.h>): Include
23746 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
23747 (verify): New macro. Use it to verify that EXCLUDE macros do not
23748 collide with FNM macros.
23749 (struct patopts): New struct.
23750 (struct exclude): Use it, as exclude patterns now come with options.
23751 (new_exclude): Support above changes.
23752 (new_exclude, add_exclude_file):
23753 Initial size must now be a power of two to simplify overflow checking.
23754 (free_exclude, fnmatch_no_wildcards): New function.
23755 (excluded_filename): No longer requires options arg, as the options
23756 are determined by add_exclude. Now returns bool, not int.
23757 (excluded_filename, add_exclude):
23758 Add support for the fancy new exclusion options.
23759 (add_exclude, add_exclude_file): Now takes int options arg.
23760 Check for arithmetic overflow when computing sizes.
23761 (add_exclude_file): xrealloc might modify errno, so don't
23762 realloc until after errno might be used.
23764 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
23766 (free_exclude): New decl.
23767 (add_exclude, add_exclude_file): Now takes int options arg.
23768 (excluded_filename): No longer requires options arg, as the options
23769 are determined by add_exclude. Now returns bool, not int.
23771 2001-08-30 Paul Eggert <eggert@twinsun.com>
23773 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
23775 2001-08-27 Jim Meyering <meyering@lucent.com>
23777 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
23779 * lib/version-etc.c (N_): Remove definition.
23780 Revert most of last change.
23781 Instead, simply don't mark the `Copyright...' string for translation.
23782 Based on advice from Paul Eggert.
23784 * lib/strtoxmax.c: Tweak comment.
23786 2001-08-26 Jim Meyering <meyering@lucent.com>
23788 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
23790 * m4/xstrtoimax.m4: New file.
23791 * m4/xstrtoumax.m4: Add comments explaining why we
23792 AC_REPLACE_FUNCS(strtol).
23794 2001-08-26 Jim Meyering <meyering@lucent.com>
23796 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
23797 of copyright with `%s' so translators don't get an untranslated
23799 (COPYRIGHT_YEAR): Define.
23800 (version_etc): Use fprintf rather than fputs.
23801 Suggestion from Ulrich Drepper.
23803 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
23805 * lib/strtoll.c: New file, from GNU libc.
23806 * lib/xstrtoimax.c: New file.
23808 * lib/xstrtol.h: Add xstrtoimax.
23809 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
23810 * lib/strtoimax.c: New file. Likewise, but first define
23813 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
23815 * lib/strtoxmax.c: ... then renamed to this.
23817 2001-08-18 Paul Eggert <eggert@twinsun.com>
23819 * m4/inttypes.m4: Add AC_PREREQ(2.13).
23820 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
23821 (jm_AC_TYPE_INTMAX_T): New macro.
23822 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
23824 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
23826 * m4/longlong.m4: Renamed from ulonglong.m4.
23827 * m4/inttypes.m4: Renamed from inttypes_h.m4.
23828 * m4/uintmax_t.m4: Removed.
23830 2001-08-13 Paul Eggert <eggert@twinsun.com>
23832 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
23833 Port to Solaris 8, where 'sed' requires a space after the 'r'
23834 command, and where sh dislikes "$/". Clean up the spacing a bit.
23835 Redirect output to $tmp just once.
23837 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
23839 * lib/addext.c (<errno.h>): Include.
23840 (errno): Declare if not defined.
23841 (addext): Work correctly when pathconf returns -1 and leaves
23842 errno alone because there is no limit. Also, work even if
23843 pathconf returns a value greater than SIZE_MAX.
23845 2001-08-12 Jim Meyering <meyering@lucent.com>
23847 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
23848 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
23849 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
23850 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
23851 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
23852 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
23853 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
23854 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
23855 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
23856 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
23857 utime.m4, utimes.m4, xstrtoumax.m4:
23858 Quote the first argument in each use of AC_DEFUN.
23860 2001-08-12 Jim Meyering <meyering@lucent.com>
23862 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
23863 Simply `return getcwd (NULL, 0);'.
23864 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
23865 Use 1300 as initial value for length, not PATH_MAX.
23867 * lib/pathmax.h: Clean up cpp syntax.
23869 2001-08-12 Jim Meyering <meyering@lucent.com>
23871 * lib/gettimeofday.c: New file.
23872 * lib/gtod.h: New file.
23873 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
23875 2001-08-05 Jim Meyering <meyering@lucent.com>
23877 * m4/jm-macros.m4: Require autoconf-2.52.
23879 2001-08-04 Jim Meyering <meyering@lucent.com>
23881 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
23882 stmt, to get in sync with glibc.
23884 2001-08-03 Paul Eggert <eggert@twinsun.com>
23886 The following changes are from gettext 0.10.39 as maintained by
23889 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
23890 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
23891 with inverted sense. All uses changed.
23893 * lib/mbswidth.c: Don't include <limits.h>.
23894 Include <stdlib.h> and <string.h> unconditionally.
23895 (iswcntrl, mbsinit, ISCNTRL): New macros.
23896 (mbsnwidth): Use K&R style function declarations.
23897 Don't bother checking for MB_LEN_MAX == 1, since the compiler
23898 can optimize it when MB_CUR_MAX == 1.
23899 The width of control characters is zero, not 1.
23901 2001-08-03 Paul Eggert <eggert@twinsun.com>
23903 The following changes are from gettext 0.10.39 as maintained by
23904 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
23906 * m4/codeset.m4: Upgrade to serial AM1.
23907 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
23908 all uses changed. Quote first arg of AC_DEFUN.
23909 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
23911 * m4/iconv.m4: Upgrade to serial AM2.
23912 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
23913 Add --with-libconv-prefix.
23914 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
23915 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
23916 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
23917 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
23918 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
23920 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
23921 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
23922 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
23923 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
23924 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
23925 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
23926 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
23927 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
23928 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
23930 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
23933 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
23934 not the default value.
23936 2001-06-25 Bruno Haible <haible@clisp.cons.org>
23937 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
23938 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
23939 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
23940 Also check for iswcntrl, used for wcwidth fallback.
23941 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
23944 2001-08-03 Jim Meyering <meyering@lucent.com>
23946 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
23947 as it was in the original. Reported by Paul Eggert.
23949 2001-07-16 Jim Meyering <meyering@lucent.com>
23951 * m4/gettimeofday.m4: New file.
23952 Prompted by a report from Bernhard Baehr.
23954 2001-07-15 Jim Meyering <meyering@lucent.com>
23956 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
23957 stuff. Now it's in ../Makefile.cfg.
23959 2001-07-15 Jim Meyering <meyering@lucent.com>
23961 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
23962 (BUILT_SOURCES): Add unlocked-io.h.
23963 (io_functions): Define.
23964 (unlocked-io.h): New rule.
23965 (DISTCLEANFILES): Add unlocked-io.h.
23966 (all-local): Depend on unlocked-io.h, to ensure it is created.
23968 * lib/unlocked-io.hin: New file
23970 * lib/regex.c: Update from glibc.
23972 2001-07-05 Jim Meyering <meyering@lucent.com>
23974 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
23976 (libfetish_a_SOURCES): Put all .h files here instead.
23977 Remove a thus-exposed (better checks in automake) duplicate and
23978 two unnecessary .h files.
23980 2001-07-04 Jim Meyering <meyering@lucent.com>
23982 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
23983 that generates jm-glibc-io.m4 so that it doesn't trigger any make
23986 2001-07-02 Jim Meyering <meyering@lucent.com>
23988 The following changes were prompted by suggestions from Bruno Haible.
23990 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
23992 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
23993 definition of EXTRA_DIST.
23994 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
23995 ensure that the generated file is created/updated whenever the list
23996 of $(unlocked_functions) is changed.
23997 (jm-glibc-io.m4): New rule.
23998 (unlocked-io.h): New rule -- currently unused.
24000 2001-06-24 Jim Meyering <meyering@lucent.com>
24002 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
24003 unmatched right bracket, rather than kludging it with an extra,
24004 falsely-matching quote in a comment. Patch by Akim Demaille.
24006 2001-06-11 Jim Meyering <meyering@lucent.com>
24008 * lib/regex.c: Update from GNU libc.
24010 2001-05-27 Jim Meyering <meyering@lucent.com>
24012 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
24013 Check for ut_type in struct utmp.
24015 2001-05-27 Jim Meyering <meyering@lucent.com>
24017 * lib/readutmp.h (UT_TYPE): Define.
24019 2001-05-24 Jim Meyering <meyering@lucent.com>
24021 * lib/argmatch.c: Include "quote.h".
24022 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
24023 quote function. Reported by Göran Uddeborg.
24025 2001-05-22 Jim Meyering <meyering@lucent.com>
24027 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
24028 now that we use the package-supplied version unconditionally.
24029 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
24031 2001-05-21 Jim Meyering <meyering@lucent.com>
24033 * m4/regex.m4: Change a couple backticks to single quotes to avoid
24034 shell syntax errors.
24036 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
24038 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
24040 2001-05-20 Paul Eggert <eggert@twinsun.com>
24042 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
24043 Don't bother to check library strftime, since
24044 we'll be using our own my_strftime function anyway.
24045 Define my_strftime instead of strftime.
24047 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
24049 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
24050 which is not yet declared.
24052 2001-05-15 Jim Meyering <meyering@lucent.com>
24054 * m4/regex.m4: Use proper quoting so brackets appear in the test
24056 Reported by, and with help from, Bruno Haible.
24058 2001-05-13 Jim Meyering <meyering@lucent.com>
24060 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
24063 2001-05-11 Paul Eggert <eggert@twinsun.com>
24065 dirname code cleanup. base_name now behaves more compatibly
24066 with POSIX basename when given file names that have trailing
24067 slashes, and similarly for dir_name. Add new primitives
24068 base_len and dir_len. Put the directory-name-related decls
24071 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
24072 * lib/backupfile.c (base_name): Likewise.
24073 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
24074 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
24075 * lib/makepath.c (strip_trailing_slashes): Likewise.
24076 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
24077 ISSLASH): Likewise.
24078 * lib/rename.c (strip_trailing_slashes): Likewise.
24079 * lib/same.c (base_name): Likewise.
24080 * lib/stripslash.c (ISSLASH): Likewise.
24082 * lib/addext.c: Include <dirname.h> after size_t is defined.
24083 * lib/backupfile.c: Likewise.
24085 * lib/addext.c (addext): Use base_len to trim redundant
24086 trailing slashes instead of doing it ourselves.
24087 But do not trim the last slash if it is not redundant.
24089 * lib/backupfile.c (find_backup_file_name,
24090 max_backup_version): Use base_len instead of rolling it ourselves.
24091 Handle the case of "" and (on DOS) "C:" correctly.
24093 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
24094 needed. Include <string.h>, <dirname.h>.
24095 (base_name): Allow file names ending in slashes, other than names
24096 that are all slashes. In this case, return the basename followed
24097 by the slashes. This is more general, and can be used in places
24098 where the original base_name purposely had an assertion failure.
24099 (base_len): New function.
24101 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
24102 Do not include <assert.h>; no longer needed.
24104 (memrchr): Remove decl.
24105 (dir_name_r): Remove.
24106 (dir_len): Renamed from dirlen. All callers changed.
24107 Rewrite in terms of base_name, for simplicity and consistency.
24108 (dir_name): Never return NULL. All callers changed.
24109 Do not include <stdlib.h> in test program; no longer needed.
24110 return 0; is fine for test program.
24112 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
24114 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
24116 * lib/path-concat.c (path_concat): Use base_len to compute
24117 base length, not strlen; this means we cannot rely on memcpy
24120 * lib/same.c (STREQ): Remove.
24121 (same_name): Handle the case where the basename ends in trailing '/'.
24123 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
24124 a slash was stripped. Do not strip the last slash after a
24125 file system prefix.
24127 2001-05-11 Paul Eggert <eggert@twinsun.com>
24129 * lib/Makefile.am (libfetish_a_SOURCES):
24130 Add strftime.c, since we now compile it on all hosts.
24132 * lib/strftime.c (my_strftime):
24133 Define to nstrftime if emacs, but only if my_strftime is not defined.
24134 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
24135 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
24136 Add one more extra argument: a nanoseconds value.
24139 (my_strftime function): Add %N format.
24140 (emacs_strftimeu): Renamed from emacs_strftime,
24141 with extra ut argument.
24143 2001-05-09 Paul Eggert <eggert@twinsun.com>
24145 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
24147 2001-04-21 Jim Meyering <meyering@lucent.com>
24149 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
24152 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
24154 * m4/ftruncate.m4: Check for chsize.
24155 Link with ftruncate.o unconditionally if ftruncate is missing.
24156 This was required when cross-compiling to i586-mingw32msvc.
24158 2001-04-08 Jim Meyering <meyering@lucent.com>
24160 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
24161 recomputed; that's necessary when the offset spans a DST transition.
24162 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
24164 2001-04-02 Jim Meyering <meyering@lucent.com>
24166 * lib/regex.h, regex.c: Update from GNU libc.
24168 2001-03-24 Jim Meyering <meyering@lucent.com>
24170 * m4/jm-macros.m4: Require autoconf-2.49d.
24172 2001-03-20 Bruno Haible <haible@clisp.cons.org>
24174 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
24176 2001-03-19 Paul Eggert <eggert@twinsun.com>
24178 * lib/version-etc.c (version_etc_copyright): Update to 2001.
24180 2001-03-17 Jim Meyering <meyering@lucent.com>
24182 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
24183 now that the version in autoconf is equivalent.
24184 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
24186 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
24187 Suggestion from Akim Demaille.
24189 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
24190 (jm_PREREQ_TEMPNAME): New function.
24192 2001-03-16 Paul Eggert <eggert@twinsun.com>
24194 * lib/tempname.c (uint64_t): Define to uintmax_t if
24195 not defined, and if UINT64_MAX is not defined.
24196 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
24197 Reported by John David Anglin.
24199 2001-03-15 Bruno Haible <haible@clisp.cons.org>
24201 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
24202 resolve alias if codeset is empty.
24203 * lib/config.charset (BeOS): Use wildcard syntax.
24205 2001-03-13 Jim Meyering <meyering@lucent.com>
24207 * lib/path-concat.c (path_concat)
24208 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
24209 concatenating e.g., `C:' and `foo'.
24212 2001-03-06 Bruno Haible <haible@clisp.cons.org>
24214 * lib/localcharset.c (locale_charset): Don't use
24215 setlocale(LC_CTYPE,NULL). Don't return NULL.
24216 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
24218 2001-03-06 Bruno Haible <haible@clisp.cons.org>
24220 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
24221 support for DOS/DJGPP.
24223 2001-03-01 Paul Eggert <eggert@twinsun.com>
24225 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
24226 lacks mkstemp. Compile our own tempname.c if we compile our own
24227 mkstemp.c, as mkstemp relies on tempname.
24229 2001-03-01 Jim Meyering <meyering@lucent.com>
24231 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
24232 AH_VERBATIM really does output its argument verbatim.
24234 2001-02-28 Paul Eggert <eggert@twinsun.com>
24236 * lib/Makefile.am (libfetish_a_SOURCES):
24237 Add dup-safer.c, fopen-safer.c.
24238 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
24240 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
24241 * lib/unistd-safer.h: New files.
24243 2001-02-25 Paul Eggert <eggert@twinsun.com>
24245 The mkstemp replacement is taken from glibc 2.2.2, with some
24246 portability fixes for use outside glibc, as follows:
24248 * lib/tempname.c (struct_stat64): New macro.
24249 (direxists, __gen_tempname): Use it.
24250 This avoids a portability problem with Solaris 8.
24252 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
24253 (<stddef.h>, <stdint.h>, <string.h>):
24254 Include only if STDC_HEADERS || _LIBC.
24255 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
24256 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
24257 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
24258 (__set_errno): Define this macro if <errno.h> doesn't.
24259 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
24260 Define these macros if <stdio.h> doesn't.
24261 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
24262 Define these macros if <sys/stat.h>
24263 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
24264 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
24265 __xstat64): Define if not _LIBC.
24266 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
24267 (__gen_tempname): Invoke gettimeofday only if
24268 HAVE_GETTIMEOFDAY || _LIBC;
24269 otherwise, fall back on plain "time".
24270 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
24272 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
24274 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
24276 2001-02-18 Paul Eggert <eggert@twinsun.com>
24278 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
24280 2001-02-17 Paul Eggert <eggert@twinsun.com>
24282 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
24283 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
24284 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
24285 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
24287 2001-02-17 Paul Eggert <eggert@twinsun.com>
24289 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
24290 Remove workaround macros for hosts that have mbrtowc but not
24291 mbstate_t, as we now insist on proper declarations for both
24292 before using mbrtowc.
24294 2001-02-17 Jim Meyering <meyering@lucent.com>
24296 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
24297 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
24298 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
24301 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
24302 rather than AC_CACHE_VAL.
24304 2001-02-17 Jim Meyering <meyering@lucent.com>
24306 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
24307 around included file name.
24309 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
24311 * lib/strftime.c: Update from GNU libc (the only changes were to
24314 2001-02-17 Jim Meyering <meyering@lucent.com>
24316 * lib/regex.c: Update from libc.
24318 2001-02-17 Bruno Haible <haible@clisp.cons.org>
24320 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
24323 2001-02-16 Paul Eggert <eggert@twinsun.com>
24325 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
24326 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
24327 Reported by Mark Hounschell via Paul Eggert.
24329 2001-02-07 Jim Meyering <meyering@lucent.com>
24331 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
24333 2001-02-05 Jim Meyering <meyering@lucent.com>
24335 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
24336 it includes the patch required for `large file' support with at least
24337 HP-UX's 10.20 /bin/cc.
24339 2001-02-03 Jim Meyering <meyering@lucent.com>
24341 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
24342 AS_IF, now that it works once again (mysteriously).
24343 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
24345 2001-01-30 Jim Meyering <meyering@lucent.com>
24347 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
24348 * m4/chown.m4: Rename conftestchown to conftest.chown.
24349 * m4/rename.m4: s/conftestdir/conftest.d1/ and
24350 s/conftestdir2/conftest.d2/.
24351 * m4/utimes.m4: s/conftestdata/conftest.data/
24352 Inspired by Pavel Roskin's change in autoconf.
24354 2001-01-30 Bruno Haible <haible@clisp.cons.org>
24356 * lib/config.charset: Update for FreeBSD 4.2.
24358 2001-01-27 Jim Meyering <meyering@lucent.com>
24360 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
24362 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
24364 2001-01-26 Jim Meyering <meyering@lucent.com>
24366 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
24367 quotearg.c includes it.
24369 2001-01-26 Jim Meyering <meyering@lucent.com>
24371 * lib/quotearg.c: Include stddef.h.
24372 * lib/quote.c: Include stddef.h.
24373 Reported by Axel Kittenberger.
24375 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
24376 line in double quotes so that it evokes a better diagnostic.
24377 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
24378 Reported by Axel Kittenberger.
24380 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
24382 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
24383 as if it was a `charset'.
24385 2001-01-21 Bruno Haible <haible@clisp.cons.org>
24387 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
24390 2001-01-21 Bruno Haible <haible@clisp.cons.org>
24392 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
24393 to avoid a warning. Add back 'const' to inptr.
24395 2001-01-20 Jim Meyering <meyering@lucent.com>
24397 Be sure that headers are checked before used in code compiled
24398 for the type checks.
24399 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
24400 In place of that, invoke jm_CHECK_ALL_TYPES.
24401 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
24402 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
24403 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
24404 The check for ssize_t was mistakenly run before the test for unistd.h.
24406 The configure-time check for stdbool.h was missing.
24407 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
24408 (jm_PREREQ_HASH): New function.
24410 2001-01-17 Jim Meyering <meyering@lucent.com>
24412 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
24413 for autoconf-2.49c.
24414 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
24416 2001-01-16 Jim Meyering <meyering@lucent.com>
24418 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
24421 2001-01-14 Jim Meyering <meyering@lucent.com>
24423 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
24424 foo and bar. Create conftestdir/ in the script, not in the C code.
24425 Remove directories in the script, not in the C code.
24426 Remove conftestdir{,2} before trying to create the directory.
24427 Make the entire configure script fail if the mkdir fails.
24429 2001-01-14 Jim Meyering <meyering@lucent.com>
24431 * lib/rename.c: New file. From Volker Borchert.
24432 Include stdlib.h, string.h or strings.h, and xalloc.h.
24433 Use strip_trailing_slashes rather than open-coding it.
24435 2001-01-03 Paul Eggert <eggert@twinsun.com>
24437 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
24439 2001-01-03 Jim Meyering <meyering@lucent.com>
24441 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
24442 of local `inptr' to avoid warning with some system declarations of
24445 2001-01-02 Volker Borchert <bt@teknon.de>
24447 * m4/rename.m4: New file.
24448 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
24450 2001-01-01 Jim Meyering <meyering@lucent.com>
24452 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
24453 even on systems with utmpx.h. It's necessary for the declaration of
24454 utmp's ut_user member. Reported by Andreas Jaeger.
24456 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
24457 available. They are required for the declarations of getgrgid and
24459 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
24460 Reported by Andreas Jaeger.
24462 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
24464 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
24465 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
24466 so `make install' also works in VPATH builds.
24468 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
24470 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
24471 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
24472 can be used in subdirectories.
24474 2000-12-29 Paul Eggert <eggert@twinsun.com>
24476 * lib/modechange.c: Do not assume that mode_t uses the
24477 traditional octal encoding. E.g. "chmod 1 FOO" should set
24478 the other-execute bit of FOO even if S_IXOTH != 1.
24480 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
24481 WOTH, XOTH, ALLM): New macros.
24482 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
24483 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
24485 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
24486 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
24488 No need to use uintmax_t; unsigned long is long enough.
24489 Don't bother to get suffix since we don't use it.
24491 2000-12-26 Jim Meyering <meyering@lucent.com>
24493 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
24494 better with autoheader.
24496 2000-12-24 Jim Meyering <meyering@lucent.com>
24498 * lib/hash.c (is_prime): Return explicit boolean values.
24499 (hash_get_first): Return NULL to appease Irix5.6's 89.
24500 Reported by Nelson Beebe.
24502 2000-12-19 Bruno Haible <haible@clisp.cons.org>
24504 * lib/localcharset.c (locale_charset): Add support for Win32.
24506 2000-12-18 Paul Eggert <eggert@twinsun.com>
24508 * lib/physmem.h, lib/physmem.c: New files.
24510 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
24511 (noinst_HEADERS): Add physmem.h.
24513 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
24514 't' for compatibility with Solaris 8 sort.
24516 2000-12-18 Bruno Haible <haible@clisp.cons.org>
24518 * lib/config.charset: Add support for BeOS.
24520 2000-12-17 Jim Meyering <meyering@lucent.com>
24522 * m4/dos.m4 (jm_AC_DOS): New file and macro.
24523 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
24525 2000-12-16 Jim Meyering <meyering@lucent.com>
24527 This bug had a serious impact on chown: `chown N:M FILE' (for integer
24528 N and M) would have treated it like `chown N:N FILE'.
24530 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
24532 2000-12-16 Jim Meyering <meyering@lucent.com>
24534 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
24535 SHELLS_FILE to a file name that's useful on djgpp systems.
24537 (ADDITIONAL_DEFAULT_SHELLS): Define.
24538 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
24539 Based mostly on a patch from Prashant TR.
24541 2000-12-16 Bruno Haible <haible@clisp.cons.org>
24543 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
24544 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
24545 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
24547 2000-12-08 Andreas Schwab <schwab@suse.de>
24549 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
24550 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
24552 2000-12-07 Jim Meyering <meyering@lucent.com>
24554 * lib/stripslash.c (ISSLASH): Define.
24555 (strip_trailing_slashes): Use ISSLASH rather than comparing against
24559 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
24560 (dir_name_r): Declare this function as static.
24561 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
24562 manifest itself on a name containing a mix of slashes and
24564 Make this function work with names starting with a DOS-style
24565 drive letter and colon prefix.
24566 (dir_name): Append `.' if necessary.
24567 Based mostly on patches from Prashant TR and Eli Zaretskii.
24569 * lib/dirname.h (dir_name_r): Remove prototype.
24571 2000-12-06 Paul Eggert <eggert@twinsun.com>
24573 * m4/off_t-format.m4: Remove this file.
24574 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
24576 2000-12-06 Jim Meyering <meyering@lucent.com>
24578 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
24579 replacement strtoull, we may well need the replacement strtoul, too.
24580 Check for declarations of strtoul and strtoull.
24581 Check for strtol. Mainly as a cue to cause automake to include
24582 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
24583 Check for limits.h -- strtol.c needs it.
24585 2000-12-05 Jim Meyering <meyering@lucent.com>
24587 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
24589 2000-12-04 Jim Meyering <meyering@lucent.com>
24591 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
24592 Also include memory.h, stdlib.h, unistd.h if appropriate.
24593 Reported by Andreas Jaeger (conflicting declaration of malloc).
24595 2000-12-02 Jim Meyering <meyering@lucent.com>
24597 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
24598 * m4/jm-macros.m4 (jm_MACROS): require it.
24600 2000-12-02 Jim Meyering <meyering@lucent.com>
24602 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
24604 2000-12-01 Paul Eggert <eggert@twinsun.com>
24606 * lib/memrchr.c: Include <config.h> before any system include file.
24608 2000-11-30 Jim Meyering <meyering@lucent.com>
24610 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
24612 2000-11-30 Jim Meyering <meyering@lucent.com>
24614 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
24616 2000-11-29 Paul Eggert <eggert@twinsun.com>
24618 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
24620 2000-11-26 Jim Meyering <meyering@lucent.com>
24622 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
24624 2000-11-22 Paul Eggert <eggert@twinsun.com>
24626 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
24627 size of (size_t) -1; it's not portable.
24629 2000-11-17 Jim Meyering <meyering@lucent.com>
24631 * lib/strstr.c: Update from GNU libc.
24633 2000-11-17 Akim Demaille <akim@epita.fr>
24635 * lib/obstack.h: Formatting changes.
24636 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
24637 prevent type checking.
24638 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
24639 cast the value to (void *): assigning a `foo *' to a `void *'
24641 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
24643 2000-11-16 Jim Meyering <meyering@lucent.com>
24645 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
24647 2000-11-11 Jim Meyering <meyering@lucent.com>
24649 * lib/error.c: Add a couple #includes, merging from GNU libc version.
24651 2000-11-10 Jim Meyering <meyering@lucent.com>
24653 * lib/obstack.h: Update from GNU libc.
24654 * lib/obstack.c: Likewise.
24656 2000-11-08 Bruno Haible <haible@clisp.cons.org>
24658 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
24660 2000-11-06 Paul Eggert <eggert@twinsun.com>
24662 * lib/getusershell.c (setusershell): Use rewind rather than
24663 fseek/fseeko, to avoid configuration hassles with fseeko.
24664 Don't bother opening SHELLS_FILE if shellstream is NULL;
24665 it's not necessary.
24667 2000-11-05 Jim Meyering <meyering@lucent.com>
24669 * lib/makepath.h (make_dir): Declare.
24670 * lib/makepath.c (make_dir): Remove `static' attribute.
24673 2000-11-04 Jim Meyering <meyering@lucent.com>
24675 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
24677 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
24679 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
24680 last one in a bucket, advance to the next bucket.
24682 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
24684 * lib/fnmatch.c: Do not comment out all the code if we are using
24685 the GNU C library, because in some cases we are replacing buggy
24686 code in the GNU C library itself.
24688 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
24690 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
24691 (regex_compile): Catch bogus \(\1\).
24693 2000-10-30 Paul Eggert <eggert@twinsun.com>
24695 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
24696 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
24697 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
24699 2000-10-30 Paul Eggert <eggert@twinsun.com>
24701 * lib/error.h, getline.h, modechange.h:
24702 Remove "2000" from Copyright line, as the file hasn't been
24703 changed this year other than in the copyright notice.
24705 * lib/xalloc.h: Add "2000" to Copyright line, as this file
24706 was changed this year.
24708 2000-10-29 Jim Meyering <meyering@lucent.com>
24710 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
24712 * m4/ls-mntd-fs.m4: Likewise
24714 2000-10-29 Jim Meyering <meyering@lucent.com>
24716 * lib/xstat.in: Fix grammar in comment.
24718 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
24720 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
24721 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
24722 doesn't define __restrict_arr.
24724 2000-10-28 Jim Meyering <meyering@lucent.com>
24726 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
24727 (jm_PREREQ_MEMCHR): New function.
24729 2000-10-28 Jim Meyering <meyering@lucent.com>
24731 * lib/memchr.c: Update from libc.
24732 Adjust for portability:
24733 [HAVE_STDLIB_H]: Include stdlib.h.
24734 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
24735 Undef __memchr, too.
24736 [!weak_alias]: Define __memchr to memchr.
24738 * lib/regex.c: Update from libc.
24739 * lib/regex.h: Likewise.
24740 * lib/getopt1.c: Likewise.
24741 * lib/memcmp.c: Likewise.
24743 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
24744 Avoid using fseek, when possible -- it's broken by design.
24745 Patch by Ulrich Drepper.
24747 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
24749 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
24750 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
24751 Giving in to popular pressure to shut up the compiler with casts.
24753 2000-10-26 Jim Meyering <meyering@lucent.com>
24755 * lib/strftime.c: Update from libc.
24757 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
24759 * regex.c: More `unsigned char' -> `re_char' changes.
24760 Also change several `int' into `re_wchar_t'.
24761 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
24762 (PUSH_FAILURE_POINTER): Don't cast any more.
24763 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
24764 We want GCC to complain, since this piece of code makes
24765 re_match non-reentrant, which *should* be fixed.
24766 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
24767 (EXTEND_BUFFER): Use RETALLOC.
24768 (SET_LIST_BIT): Don't cast.
24769 (re_wchar_t): New type.
24770 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
24771 that those two functions will always properly return.
24772 (IMMEDIATE_QUIT_CHECK): Cast to void.
24773 (analyse_first): Use recursion rather than an explicit stack.
24774 (re_compile_fastmap): Can't fail anymore.
24775 (re_search_2): Don't check re_compile_fastmap for failure.
24776 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
24777 Now also sets the new value (passed in a new argument).
24778 (re_match_2_internal): Use it.
24779 Also, use a new var `reg' of type size_t when looping through regs
24780 rather than reuse the inappropriate `mcnt'.
24782 2000-10-25 Jim Meyering <meyering@lucent.com>
24784 * lib/obstack.c: Update from libc.
24786 2000-10-24 Kenichi Handa <handa@etl.go.jp>
24788 * regex.c (regex_compile): Change the way of handling a range from
24789 a char less than 256 to a char not less than 256.
24791 2000-10-24 Andrew Innes <andrewi@gnu.org>
24793 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
24795 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
24796 so that re_search functions only quit when callers expect them to.
24798 2000-10-23 Jim Meyering <meyering@lucent.com>
24800 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
24801 wrong. That set_locale call must not have any side effects.
24804 2000-10-22 Jim Meyering <meyering@lucent.com>
24806 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
24807 [CYCLIC]: Remove now-unused definition.
24809 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
24810 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
24811 Suggestion from Ulrich Drepper.
24813 2000-10-21 Jim Meyering <meyering@lucent.com>
24815 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
24816 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
24817 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
24819 2000-10-21 Jim Meyering <meyering@lucent.com>
24821 * lib/dirname.c (memrchr): Declare if necessary.
24822 (dir_name): Remove the restriction that there be no
24823 trailing slashes. Now, this code skips past them, effectively
24825 [TEST_DIRNAME] (main): New unit tests.
24827 * lib/memrchr.c: New file from GNU libc.
24828 Undef __memrchr, too.
24829 [!weak_alias]: Define __memrchr to memrchr.
24830 Guard weak_alias use with `#ifdef weak_alias'.
24832 2000-10-21 Jim Meyering <meyering@lucent.com>
24834 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
24835 (dir_name): Use dir_name_r.
24836 * lib/dirname.h (dir_name_r): Declare it.
24838 2000-10-17 Jim Meyering <meyering@lucent.com>
24840 * lib/quote.h (PARAMS): Define and use.
24841 Reported by Akim Demaille.
24843 * lib/getopt.c: Update from libc.
24845 2000-10-16 Jim Meyering <meyering@lucent.com>
24847 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
24851 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
24853 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
24855 2000-09-25 Jim Meyering <meyering@lucent.com>
24857 * lib/md5.h (rol): Define (from GnuPG).
24859 * lib/sha.c: Give credit (GnuPG) where due.
24860 (M): Use rol rather than open-coding it.
24861 Add a FIXME comment.
24863 2000-09-21 Jim Meyering <meyering@lucent.com>
24865 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
24866 Reported by Michael Stone.
24868 2000-09-20 Jim Meyering <meyering@lucent.com>
24870 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
24871 (noinst_HEADERS): Add sha.h.
24872 Based on code from Scott G. Miller and from GnuPG.
24874 2000-09-18 Jim Meyering <meyering@lucent.com>
24876 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
24877 LIBS. Otherwise, everyone ends up linking with -lelf for some
24879 Reported by Mike Stone.
24881 2000-09-15 Jim Meyering <meyering@lucent.com>
24883 * lib/regex.c: Update from libc.
24885 2000-09-10 Jim Meyering <meyering@lucent.com>
24887 * lib/getopt.c (_getopt_internal): Update from glibc.
24889 2000-09-09 Jim Meyering <meyering@lucent.com>
24891 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
24892 think it should be used as a general replacement for isascii.
24893 * lib/fnmatch.c: Likewise.
24894 * lib/mbswidth.c: Likewise
24895 * lib/regex.c: Likewise.
24898 * lib/userspec.c: Include sys/param.h and limits.h.
24900 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
24901 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
24902 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
24903 UID, GID. Check range.
24905 2000-09-06 Jim Meyering <meyering@lucent.com>
24907 * lib/getopt.c (_getopt_internal): Update from glibc.
24909 2000-08-30 Jim Meyering <meyering@lucent.com>
24911 * lib/strftime.c: Merge in changes from GNU libc.
24913 2000-08-26 Jim Meyering <meyering@lucent.com>
24915 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
24916 * m4/fpending.m4: New file.
24918 2000-08-26 Jim Meyering <meyering@lucent.com>
24920 * lib/closeout.c: Include "__fpending.h".
24921 (close_stdout_status): Return right away if there's nothing to flush.
24923 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
24924 * lib/__fpending.c: New file.
24925 * lib/__fpending.h: New file.
24927 2000-08-20 Jim Meyering <meyering@lucent.com>
24929 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
24930 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
24931 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
24933 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
24935 Improve fileutils installation on systems where running
24936 programs (like install) can't be unlinked.
24937 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
24938 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
24940 2000-08-07 Paul Eggert <eggert@twinsun.com>
24942 Standardize on "memory exhausted" instead of "Memory exhausted"
24943 or "virtual memory exhausted".
24944 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
24945 "virtual memory exhausted".
24946 * lib/same.c (same_name): Invoke xalloc_die instead of printing
24948 * lib/userspec.c (parse_user_spec): Likewise.
24949 * lib/bumpalloc.h: comment fix
24950 * lib/same.c, userspec.c: Include xalloc.h.
24952 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
24953 not char *const and pointing to a constant array.
24954 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
24955 (xrealloc): Comment fix.
24957 * lib/userspec.c (parse_user_spec):
24958 Don't translate a message until just before returning,
24959 to avoid unnecessary translation.
24961 2000-08-07 Jim Meyering <meyering@lucent.com>
24963 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
24964 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
24965 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
24966 getgroups.c, gethostname.c, getopt.h, group-member.c,
24967 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
24968 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
24969 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
24970 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
24971 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
24972 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
24973 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
24974 yesno.c: Back out Copyright date changes for each file with no change
24975 this year. This eases coordination with other programs using the same
24976 source code modules. From Paul Eggert.
24978 2000-08-06 Paul Eggert <eggert@twinsun.com>
24980 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
24981 not char, for compatibility with glibc 2.1.3 strftime.c.
24983 2000-08-03 Greg McGary <greg@mcgary.org>
24985 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
24986 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
24987 (EXTEND_BUFFER): Use them.
24989 2000-08-01 Jim Meyering <meyering@lucent.com>
24991 * lib/dirname.c (ISSLASH): Define.
24992 (BACKSLASH_IS_PATH_SEPARATOR): Define.
24993 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
24994 both `\' and `/' may be use as path separators.
24995 Based on a patch from Prashant TR.
24997 2000-07-31 Paul Eggert <eggert@twinsun.com>
24999 * lib/quotearg.c (quotearg_n_options): Don't make the initial
25000 slot vector a constant, since it might get modified.
25002 2000-07-31 Jim Meyering <meyering@lucent.com>
25004 * lib/xmalloc.c: Use `virtual memory exhausted', not
25005 `Memory exhausted'.
25006 * lib/obstack.c (print_and_abort): Likewise.
25008 2000-07-30 Paul Eggert <eggert@twinsun.com>
25010 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
25011 buffer, so that the caller can always quote one small
25012 component of a "memory exhausted" message in slot 0.
25013 From a suggestion by Jim Meyering.
25015 2000-07-30 Jim Meyering <meyering@lucent.com>
25017 * lib/makepath.c (make_path): Quote the other instance, too.
25019 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
25020 (STATIC_BUF_SIZE): Define.
25021 (quotearg_n_options): Use only statically allocated storage when
25022 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
25023 than STATIC_BUF_SIZE.
25025 2000-07-29 Jim Meyering <meyering@lucent.com>
25027 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
25028 * lib/dirname.c (dir_name): Likewise.
25030 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
25033 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
25034 (dir_name): Assert that there are no trailing slashes.
25036 2000-07-29 Bruno Haible <haible@clisp.cons.org>
25038 * lib/mbswidth.h (mbswidth): Add a flags argument.
25039 (mbswidth): New declaration.
25040 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
25041 * lib/mbswidth.c (mbswidth): Add a flags argument.
25042 (mbsnwidth): New function.
25044 2000-07-24 Jim Meyering <meyering@lucent.com>
25046 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
25048 2000-07-23 Paul Eggert <eggert@twinsun.com>
25050 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
25052 2000-07-23 Paul Eggert <eggert@twinsun.com>
25054 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
25055 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
25056 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
25057 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
25058 invoke multibyte primitives.
25060 2000-07-23 Paul Eggert <eggert@twinsun.com>
25063 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
25064 so that mbstate_t is always defined.
25066 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
25067 be 1 in at least one GCC installation, and this configuration
25068 error is likely to be common. Ignoring MB_LEN_MAX hurts
25069 performance on hosts that have mbrtowc but have only unibyte
25070 locales, but I assume these hosts are rare.
25072 2000-07-23 Paul Eggert <eggert@twinsun.com>
25074 * lib/mbswidth.c (_XOPEN_SOURCE):
25075 Don't define; this causes problems on Solaris 7.
25076 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
25078 2000-07-23 Jim Meyering <meyering@lucent.com>
25080 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
25081 too: getgrgid, getpwuid, getuid.
25083 2000-07-23 Jim Meyering <meyering@lucent.com>
25085 * lib/basename.c (base_name): Add an assertion.
25087 2000-07-23 Bruno Haible <haible@clisp.cons.org>
25089 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
25090 shadow its mbsinit function.
25092 2000-07-17 Bruno Haible <haible@clisp.cons.org>
25094 * lib/mbswidth.h: New file.
25095 * lib/mbswidth.c: New file.
25096 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
25097 (noinst_HEADERS): Add mbswidth.h.
25099 2000-07-17 Bruno Haible <haible@clisp.cons.org>
25101 * lib/config.charset: Add support for FreeBSD. Improve support for
25104 2000-07-16 Bruno Haible <haible@clisp.cons.org>
25106 * m4/mbswidth.m4: New file.
25107 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
25109 2000-07-15 Jim Meyering <meyering@lucent.com>
25111 * lib/makepath.c: Include quote.h.
25112 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
25113 corresponding argument in a `quote (...)' call.
25114 Give better diagnostics.
25116 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
25117 (noinst_HEADERS): Add quote.h.
25119 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
25120 from tar's src/misc.c.
25121 * lib/quote.h: New file. Prototypes for same.
25123 2000-07-14 Paul Eggert <eggert@twinsun.com>
25125 From a suggestion by Bruno Haible.
25126 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
25127 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
25128 to decide whether to define the BeOS workaround macro;
25129 this adjusts to the change to AC_MBSTATE_T.
25131 2000-07-14 Jim Meyering <meyering@lucent.com>
25133 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
25134 jm_AC_TYPE_UINTMAX_T.
25136 2000-07-13 Paul Eggert <eggert@twinsun.com>
25138 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
25140 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
25141 quotearg_buffer_restyled): Add support for
25142 clocale_quoting_style. Undo previous change to
25143 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
25144 and "{RIGHT QUOTATION MARK}" msgids.
25146 2000-07-10 Paul Eggert <eggert@twinsun.com>
25148 From a suggestion by Bruno Haible.
25149 * m4/mbstate_t.m4 (AC_MBSTATE_T):
25150 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
25151 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
25152 and mbstate_t, to a single-part test that simply defines mbstate_t.
25153 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
25154 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
25156 2000-07-10 Jim Meyering <meyering@lucent.com>
25158 * m4/strerror_r.m4: Mirror the correction made in autoconf.
25160 * m4/gnu-source.m4: Output to confdefs.h directly.
25161 Suggestion from Akim Demaille.
25163 2000-07-09 Paul Eggert <eggert@twinsun.com>
25165 The old behavior of quoting `like this' doesn't look good with
25166 newer, ISO-style fonts. See:
25167 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
25169 Instead, quote "like this" by default. Let the translator
25170 tailor the locale-specific quoting behavior by providing
25171 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
25173 * lib/quotearg.c (N_): New macro.
25174 (gettext_default): New function.
25175 (quotearg_buffer_restyled): Use
25176 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
25177 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
25179 2000-07-09 Jim Meyering <meyering@lucent.com>
25181 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
25182 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
25184 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
25185 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
25187 2000-07-09 Jim Meyering <meyering@lucent.com>
25189 * lib/Most files: Update copyright dates to include 2000.
25191 2000-07-08 Jim Meyering <meyering@lucent.com>
25193 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
25195 (xgethostname): Remove now-unnecessary #ifdef.
25196 Move declaration of `err' into loop where it's used.
25198 2000-07-05 Paul Eggert <eggert@twinsun.com>
25199 and Bruno Haible <haible@clisp.cons.org>
25201 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
25202 only if the test for an object-type mbstate_t fails. This
25203 prevents us from mistakenly reporting that mbstate_t is a
25204 system object type after we "#define mbstate_t int" to work
25207 2000-07-05 Paul Eggert <eggert@twinsun.com>
25208 and Bruno Haible <haible@clisp.cons.org>
25210 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
25212 2000-07-05 Bruno Haible <haible@clisp.cons.org>
25214 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
25216 Include <ctype.h> for use of isalpha.
25218 2000-07-05 Bruno Haible <haible@clisp.cons.org>
25220 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
25221 by allocating a larger buffer. Test the gethostname return value for
25222 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
25223 returns an error and ENAMETOOLONG isn't defined.
25225 2000-07-05 Bruno Haible <haible@clisp.cons.org>
25227 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
25230 2000-07-04 Jim Meyering <meyering@lucent.com>
25232 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
25233 of the deprecated AC_CHECKING.
25235 2000-07-04 Jim Meyering <meyering@lucent.com>
25237 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
25238 Reported by Bruno Haible.
25240 2000-07-04 Jim Meyering <meyering@lucent.com>
25242 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
25243 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
25246 2000-07-03 Paul Eggert <eggert@twinsun.com>
25248 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
25249 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
25251 2000-07-03 Paul Eggert <eggert@twinsun.com>
25252 and Bruno Haible <haible@clisp.cons.org>
25254 * lib/quotearg.c (mbrtowc):
25255 Assign to *pwc, and return 1 only if result is nonzero.
25256 (iswprint): Use ISPRINT when substituting our own mbrtowc.
25258 2000-07-03 Jim Meyering <meyering@lucent.com>
25260 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
25262 2000-07-03 Jim Meyering <meyering@lucent.com>
25264 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
25265 This is necessary to get a definition of e.g., UTMP_FILE on
25269 2000-07-02 Jim Meyering <meyering@lucent.com>
25271 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
25273 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
25274 AC_LIBOBJ(function_name).
25275 * m4/chown.m4: Likewise.
25276 * m4/fnmatch.m4: Likewise.
25277 * m4/ftruncate.m4: Likewise.
25278 * m4/getgroups.m4: Likewise.
25279 * m4/getline.m4: Likewise.
25280 * m4/group-member.m4: Likewise.
25281 * m4/jm-macros.m4: Likewise.
25282 * m4/lstat.m4: Likewise.
25283 * m4/malloc.m4: Likewise.
25284 * m4/memcmp.m4: Likewise.
25285 * m4/nanosleep.m4: Likewise.
25286 * m4/putenv.m4: Likewise.
25287 * m4/realloc.m4: Likewise.
25288 * m4/regex.m4: Likewise.
25289 * m4/stat.m4: Likewise.
25290 * m4/strftime.m4: Likewise.
25292 2000-07-02 Jim Meyering <meyering@lucent.com>
25294 * lib/quotearg.c (mbstate_t): Don't define here.
25296 2000-07-02 Jim Meyering <meyering@lucent.com>
25298 * lib/nanosleep.c (SIGCONT): Define if not already defined.
25300 2000-07-01 Jim Meyering <meyering@lucent.com>
25302 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
25304 2000-07-01 Jim Meyering <meyering@lucent.com>
25306 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
25309 2000-07-01 Bruno Haible <haible@clisp.cons.org>
25311 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
25312 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
25314 2000-07-01 Bruno Haible <haible@clisp.cons.org>
25316 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
25317 per change in ../m4/ls-mntd-fs.m4.
25318 (read_filesystem_list): Ignore symbolic links.
25320 2000-06-29 Jim Meyering <meyering@lucent.com>
25322 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
25323 for declaration of strcmp.
25325 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
25327 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
25328 Avoid warning by casting result to `char *' to remove `const'.
25330 2000-06-28 Jim Meyering <meyering@lucent.com>
25332 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
25333 included by quotearg.c, for which we perform this test. From
25336 2000-06-27 Bruno Haible <haible@clisp.cons.org>
25338 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
25339 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
25340 <utmpx.h> exists, put readutmp.o into LIBOBJS.
25342 2000-06-27 Bruno Haible <haible@clisp.cons.org>
25344 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
25346 2000-06-26 Paul Eggert <eggert@twinsun.com>
25348 savedir now sets errno on failure and invokes xmalloc to get memory.
25349 Fix a couple of other minor bugs while we're at it.
25351 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
25352 (NAMLEN): Remove macro.
25353 (malloc, realloc): Remove decls.
25354 (stpcpy): Likewise.
25355 ("xalloc.h"): Include.
25356 (NAME_SIZE_DEFAULT): New macro.
25357 (savedir): Use xmalloc / xrealloc to allocate memory.
25358 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
25359 Skip "" directory entries.
25360 Use strlen to calculate directory entry length, since the old method
25361 is rarely used these days and isn't worth supporting.
25362 Don't use a pointer after freeing it.
25363 Check for integer overflow when calculating allocation size.
25364 Use memcpy to copy entries, instead of stpcpy.
25365 Set errno properly when returning NULL.
25366 Check for readdir error.
25368 2000-06-26 Jim Meyering <meyering@lucent.com>
25370 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
25372 2000-06-25 Jim Meyering <meyering@lucent.com>
25374 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
25375 Linux header bug when _XOPEN_SOURCE is defined to 500.
25377 2000-06-25 Bruno Haible <haible@clisp.cons.org>
25379 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
25382 2000-06-25 Bruno Haible <haible@clisp.cons.org>
25384 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
25386 Don't include <stdlib.h>. Don't declare malloc, realloc.
25388 2000-06-24 Jim Meyering <meyering@lucent.com>
25390 * m4/strerror_r.m4: Revive this file -- to try out an experimental
25391 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
25392 for which strerror does return char*, but which lacks a conveniently
25393 accessible declaration of the function. If the compile-test says
25394 strerror_r doesn't work, then resort to a `run'-test that works on
25395 BeOS and segfaults on DEC Unix.
25397 2000-06-24 Jim Meyering <meyering@lucent.com>
25399 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
25401 2000-06-23 Paul Eggert <eggert@twinsun.com>
25403 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
25404 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
25406 2000-06-23 Paul Eggert <eggert@twinsun.com>
25408 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
25409 (mbrtowc, mbstate_t): Define substitutes if
25410 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
25411 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
25412 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
25414 2000-06-23 Jim Meyering <meyering@lucent.com>
25416 * m4/afs.m4: Add missing AC_MSG_RESULT.
25417 Reported by Bruno Haible.
25419 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
25420 Suggestion from Bruno Haible.
25422 2000-06-23 Jim Meyering <meyering@lucent.com>
25424 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
25426 2000-06-21 Jim Meyering <meyering@lucent.com>
25428 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
25430 2000-06-21 Jim Meyering <meyering@lucent.com>
25432 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
25433 (noinst_HEADERS): Add getstr.h.
25435 * lib/getline.c (getstr): Move into a separate file.
25436 * lib/getstr.c (getstr): New file, extracted from getline.c, with
25437 the following changes: new parameter, delim2; both delim[12]
25438 parameters have type `int', not `char'. The latter would lose
25439 with 8-bit delimiters.
25440 * lib/getstr.h: New file.
25442 2000-06-21 Bruno Haible <haible@clisp.cons.org>
25444 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
25445 than 1024, return a memory chunk of least possible size, instead
25446 of size PATH_MAX + 2. In the loop, increment the size proportionally.
25447 Use free/xmalloc instead of xrealloc to avoid copying for very long
25450 2000-06-21 Bruno Haible <haible@clisp.cons.org>
25452 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
25455 2000-06-21 Bruno Haible <haible@clisp.cons.org>
25457 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
25458 address, not strdup. Include <stdlib.h> and don't declare free().
25460 2000-06-19 Jim Meyering <meyering@lucent.com>
25462 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
25464 2000-06-18 Jim Meyering <meyering@lucent.com>
25466 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
25468 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
25469 `checking whether...' message to be consistent with that of the
25472 2000-06-18 Jim Meyering <meyering@lucent.com>
25474 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
25475 Besides, these days every porting target provides a mkdir function.
25477 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
25478 needed. (this snippet comes from src/system.h).
25480 2000-06-16 Bruno Haible <haible@clisp.cons.org>
25482 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
25484 2000-06-15 Paul Eggert <eggert@twinsun.com>
25486 * lib/human.c (adjust_value): New function.
25487 (human_readable_inexact): Apply rounding style even when
25488 printing approximate values.
25490 2000-06-14 Paul Eggert <eggert@twinsun.com>
25492 * lib/human.c (human_readable_inexact): Allow an input block
25493 size that is not a multiple of the output block size, and vice versa.
25494 Reported by Piergiorgio Sartor.
25496 2000-06-14 Paul Eggert <eggert@twinsun.com>
25498 * lib/getdate.y (get_date): Apply relative times after time
25499 zone indicator, not before. Reported by Todd A. Jacobs.
25501 2000-06-13 Jim Meyering <meyering@lucent.com>
25503 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
25505 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
25507 2000-06-12 Paul Eggert <eggert@twinsun.com>
25509 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
25511 2000-06-12 Jim Meyering <meyering@lucent.com>
25513 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
25514 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
25516 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
25517 the optional argument, `lib'.
25519 2000-06-08 Jim Meyering <meyering@lucent.com>
25521 * m4/largefile.m4: Remove file (now that it's part of autoconf).
25523 2000-06-04 Paul Eggert <eggert@twinsun.com>