Fix test-closein on Solaris 10.
[gnulib.git] / ChangeLog
1 2007-09-28  Eric Blake  <ebb9@byu.net>
2
3         Fix test-closein on Solaris 10.
4         * tests/test-closein.c (main): Don't assume stdin can be inherited
5         closed on all systems.
6         * tests/test-closein.sh: Likewise.
7
8 2007-09-28  Jim Meyering  <jim@meyering.net>
9
10         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
11
12 2007-09-27  Jim Meyering  <jim@meyering.net>
13
14         canonicalize: Avoid a false-positive cycle failure.
15         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
16         Sort.  Remove cycle-check.
17         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
18         not cycle-check.h.
19         (seen_triple): New function.
20         (canonicalize_filename_mode): Use it instead of cycle-check.
21         * tests/test-canonicalize.c: Add a test for this bug.
22         * tests/test-canonicalize.sh: Set up and run the test.
23
24         New module, file-set, from coreutils.
25         * modules/file-set: Define it.
26         * lib/file-set.c, lib/file-set.h: Implement.
27
28         New module, hash-triple, from coreutils.
29         * modules/hash-triple: Define it.
30         * lib/hash-triple.c, lib/hash-triple.h: Implement.
31
32 2007-09-25  Eric Blake  <ebb9@byu.net>
33
34         Fix strerror on Interix.
35         * lib/string_.h (strerror): Declare replacement.
36         * doc/functions/strerror.texi (strerror): Document the Interix
37         shortcoming.
38         * modules/string (Makefile.am): Support new hooks.
39         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
40         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
41         gl_FUNC_STRERROR_SEPARATE.
42         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
43         * lib/strerror.c (rpl_strerror): Provide replacement.
44         * modules/strerror (Depends-on): Add string.
45         (configure.ac): Detect use of module.
46         * tests/test-strerror.c: New file.
47         * modules/strerror-tests: New test module.
48         * modules/argp (Depends-on): Add strerror.
49         * modules/error (Depends-on): Likewise.
50         Reported by Martin Koeppe.
51
52 2007-09-24  Bruno Haible  <bruno@clisp.org>
53
54         * README: Update git instructions.
55
56 2007-09-24  Eric Blake  <ebb9@byu.net>
57
58         Revert fpending breakage from 2007-09-08.
59         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
60         __fpending.c.
61
62 2007-09-24  Jim Meyering  <jim@meyering.net>
63
64         filenamecat.c: Add a test.
65         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
66         showing how the function works when DIR is the empty string.
67
68 2007-09-21  Simon Josefsson  <simon@josefsson.org>
69
70         * tests/test-canonicalize.sh: Turn on executable bit.
71
72 2007-09-19  Eric Blake  <ebb9@byu.net>
73
74         * README: Update CVS instructions.
75
76 2007-09-18  Bruno Haible  <bruno@clisp.org>
77
78         * modules/areadlink: New file.
79         * lib/areadlink.h (areadlink): New declaration.
80         * lib/areadlink.c: New file, based on lib/xreadlink.c.
81
82 2007-09-17  Jim Meyering  <jim@meyering.net>
83
84         * lib/savewd.c (ESTALE) [!defined]: Define.
85         Reported to be required on Interix by Martin Koeppe.
86
87 2007-09-17  Bruno Haible  <bruno@clisp.org>
88
89         * gnulib-tool (func_version): Use $version.
90
91 2007-09-16  Bruno Haible  <bruno@clisp.org>
92
93         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
94         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
95         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
96         Reported by Greg Schafer <gschafer@zip.com.au>.
97
98 2007-09-15  Bruno Haible  <bruno@clisp.org>
99
100         * gnulib-tool (sed): Try a little harder to make bash understand the
101         alias.
102         Reported by Bruce Korb <bruce.korb@gmail.com>.
103
104 2007-09-13  Eric Blake  <ebb9@byu.net>
105
106         * ChangeLog: Remove conflict markers.
107
108 2007-09-13  Simon Josefsson  <simon@josefsson.org>
109
110         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
111         Reported by Bruno Haible <bruno@clisp.org>.
112
113 2007-09-12  Bruno Haible  <bruno@clisp.org>
114
115         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
116         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
117         is not defined.
118
119 2007-09-12  Eric Blake  <ebb9@byu.net>
120
121         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
122         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
123         Autoconf definition.
124         * modules/euidaccess (Depends-on): Add extensions, for
125         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
126         * modules/fnmatch (Depends-on): Likewise.
127         * modules/getaddrinfo (Depends-on): Likewise.
128         * modules/getdelim (Depends-on): Likewise.
129         * modules/getline (Depends-on): Likewise.
130         * modules/getsubopt (Depends-on): Likewise.
131         * modules/gettext (Depends-on): Likewise.
132         * modules/group-member (Depends-on): Likewise.
133         * modules/mbchar (Depends-on): Likewise.
134         * modules/memmem (Depends-on): Likewise.
135         * modules/mempcpy (Depends-on): Likewise.
136         * modules/memrchr (Depends-on): Likewise.
137         * modules/pagealign_alloc (Depends-on): Likewise.
138         * modules/readutmp (Depends-on): Likewise.
139         * modules/stpcpy (Depends-on): Likewise.
140         * modules/stpncpy (Depends-on): Likewise.
141         * modules/strchrnul (Depends-on): Likewise.
142         * modules/strndup (Depends-on): Likewise.
143         * modules/strsep (Depends-on): Likewise.
144         * modules/strverscmp (Depends-on): Likewise.
145         * modules/vasprintf (Depends-on): Likewise.
146         * modules/wcwidth (Depends-on): Likewise.
147         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
148         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
149         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
150         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
151         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
152         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
153         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
154         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
155         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
156         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
157         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
158         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
159         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
160         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
161         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
162         * m4/readutmp.m4 (gl_READUTMP): Likewise.
163         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
164         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
165         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
166         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
167         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
168         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
169         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
170         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
171         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
172         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
173         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
174         so that lock.m4 can be used in gettext without extensions module.
175
176 2007-09-11  Bruno Haible  <bruno@clisp.org>
177
178         * m4/isc-posix.m4: Remove file.
179         Suggested by Eric Blake.
180
181 2007-09-11  Eric Blake  <ebb9@byu.net>
182
183         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
184
185 2007-09-10  Bruno Haible  <bruno@clisp.org>
186
187         * posix-modules: Fix typo in error message.
188         Reported by Matt <mkraai@beckman.com>.
189
190 2007-09-09  Bruno Haible  <bruno@clisp.org>
191
192         * doc/functions/getdelim.texi: Update list of platforms lacking the
193         function.
194         * doc/functions/getline.texi: Likewise.
195
196 2007-09-09  Jim Meyering  <jim@meyering.net>
197
198         * lib/hash.c (hash_initialize): Detect calloc failure.
199         Reported by Bruno Haible.
200
201 2007-09-09  Bruno Haible  <bruno@clisp.org>
202
203         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
204         malloc or realloc fails.
205
206 2007-09-09  Bruno Haible  <bruno@clisp.org>
207
208         * modules/getcwd (Depends-on): Add malloc-posix.
209         * modules/glob (Depends-on): Likewise.
210         * modules/putenv (Depends-on): Likewise.
211         * modules/strdup (Depends-on): Likewise.
212         * modules/getdelim (Depends-on): Add realloc-posix.
213         * modules/read-file (Depends-on): Likewise.
214
215 2007-09-09  Bruno Haible  <bruno@clisp.org>
216
217         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
218         (gl_FUNC_MALLOC_POSIX): Require it.
219         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
220         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
221         * modules/realloc (Files): Add m4/malloc.m4.
222         * modules/calloc (Files): Likewise.
223
224 2007-09-09  Bruno Haible  <bruno@clisp.org>
225
226         * modules/malloc-posix: New file.
227         * modules/malloc (Depends-on): Add malloc-posix.
228         * lib/malloc.c: Include errno.h.
229         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
230         and a POSIX-compatible malloc into a single function. Set ENOMEM
231         when returning NULL.
232         * m4/malloc.m4: New file.
233         * doc/functions/malloc.texi: Mention the malloc-posix module.
234         * lib/stdlib_.h (malloc): New declaration.
235         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
236         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
237         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
238         and HAVE_MALLOC_POSIX.
239
240 2007-09-09  Bruno Haible  <bruno@clisp.org>
241
242         * modules/realloc-posix: New file.
243         * modules/realloc (Depends-on): Add realloc-posix.
244         * lib/realloc.c: Include errno.h.
245         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
246         and a POSIX-compatible realloc into a single function. Set ENOMEM
247         when returning NULL.
248         * m4/realloc.m4: New file.
249         * doc/functions/realloc.texi: Mention the realloc-posix module.
250         * lib/stdlib_.h (realloc): New declaration.
251         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
252         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
253         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
254         and HAVE_REALLOC_POSIX.
255
256 2007-09-09  Bruno Haible  <bruno@clisp.org>
257
258         * modules/calloc-posix: New file.
259         * modules/calloc (Depends-on): Add calloc-posix.
260         * lib/calloc.c: Include errno.h.
261         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
262         and a POSIX-compatible calloc into a single function. Set ENOMEM
263         when returning NULL.
264         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
265         * doc/functions/calloc.texi: Mention the calloc-posix module.
266         * lib/stdlib_.h (calloc): New declaration.
267         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
268         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
269         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
270         and HAVE_CALLOC_POSIX.
271
272 2007-09-09  Bruno Haible  <bruno@clisp.org>
273
274         Allow for modules to show an arbitrary notice.
275         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
276         * gnulib-tool: New option --extract-notice.
277         (func_usage): Document it.
278         (sed_extract_prog): Update.
279         (func_get_notice): New function.
280         (func_modules_notice): New function.
281         (func_import, func_create_testdir): Invoke it.
282         Suggested by Jim Meyering.
283
284 2007-09-09  Bruno Haible  <bruno@clisp.org>
285
286         * gnulib-tool: New options --verbose, --quiet.
287         (func_usage): Document them.
288         (verbose): New variable.
289         (func_execute_command): New function.
290         (func_import): Don't show the module list and the file list if
291         $verbose < 0.
292         (func_create_testdir): Likewise. Use func_execute_command.
293         (func_create_megatestdir): Use func_execute_command.
294
295 2007-09-08  Bruno Haible  <bruno@clisp.org>
296
297         * gnulib-tool (func_import): Prefer rsync over wget when available,
298         for fetching the PO files.
299
300 2007-09-08  Bruno Haible  <bruno@clisp.org>
301
302         * posix-modules: New file. Portions copied from gnulib-tool.
303         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
304
305 2007-09-08  Jim Meyering  <jim@meyering.net>
306
307         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
308         * lib/fpending.h: Rename from __fpending.h.
309         * lib/fpending.c: Rename from __fpending.c.
310         Include "fpending.h", not "__fpending.h".
311         * lib/__fpending.h, lib/__fpending.c: Remove files.
312         * modules/fpending (Files): Reflect new file names.
313         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
314
315 2007-09-08  Bruno Haible  <bruno@clisp.org>
316
317         * m4/inttypes-h.m4: Remove stub file.
318
319 2007-09-07  Simon Josefsson  <simon@josefsson.org>
320
321         * doc/headers/stdint.texi: Discuss #include_next issue.
322
323 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
324
325         * build-aux/bootstrap: Remove obsolete comment about wget --help.
326
327 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
328
329         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
330         in variable name.
331
332 2007-09-03  Jim Meyering  <jim@meyering.net>
333
334         New module: git-version-gen.
335         * modules/git-version-gen: New file.
336
337         Import changes from coreutils for bootstrap script.
338
339         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
340
341         bootstrap: uses rsync to download the .po files
342         * build-aux/bootstrap (po_download_command_format): New global.
343         (download_po_files): Use rsync.
344         (update_po_files): Don't remove .po files after download,
345         so future rsync runs can take advantage of the copies.
346
347         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
348
349         Solve the unnecessary-.po-file-regeneration problem once and for all.
350         * build-aux/bootstrap (download_po_files): New function, renamed from
351         get_translations.  Now, downloads, but doesn't update LINGUAS.
352         (update_po_files): New function.
353
354         bootstrap: Ignore more.
355         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
356         uniwidth to e.g., lib/.gitignore.
357         (slurp): Handle the sys_stat_.h -> sys mapping, too.
358
359         * build-aux/bootstrap: New setting: vc_ignore.
360         (insert_sorted_if_absent): Create $file if absent.
361         Adapt to new, possibly empty, list: $vc_ignore.
362
363         bootstrap: generate more ignorable names
364         * build-aux/bootstrap (slurp): When generating ignorable names,
365         also map .sin to .sed, .gperf to .c, and .y to .c.
366
367 2007-09-03  Jim Meyering  <jim@meyering.net>
368
369         * build-aux/git-version-gen: New file, from coreutils.  For details, see
370         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
371
372 2007-09-02  Bruno Haible  <bruno@clisp.org>
373
374         Fix mis-recognition of 'mcs' on QNX 6.
375         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
376         output contains the string "Mono".
377         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
378         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
379
380 2007-09-01  Bruno Haible  <bruno@clisp.org>
381
382         Fix collision between uniwidth/* and linebreak modules.
383         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
384         u32_width): Remove declarations.
385         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
386         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
387         streq3, streq2, streq1, streq0): Remove functions.
388         (STREQ): Remove macro.
389         (is_cjk_encoding): Remove function.
390         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
391         (uc_width, u8_width, u16_width, u32_width): Remove functions.
392         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
393         * NEWS: Document the change.
394
395 2007-09-01  Bruno Haible  <bruno@clisp.org>
396
397         * lib/streq.h: Add double-inclusion guard.
398
399 2007-09-01  Karl Berry  <karl@gnu.org>
400
401         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
402
403 2007-08-28  Jim Meyering  <jim@meyering.net>
404
405         Rename mreadlink_with_size to areadlink_with_size.
406         * NEWS: Document the change.
407         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
408         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
409         * lib/mreadlink.h: Rename this to...
410         * lib/areadlink.h: ...this.
411         * modules/mreadlink-with-size: Rename this to...
412         * modules/areadlink-with-size: ...this.
413         * lib/canonicalize.c: Reflect the renaming.
414         * modules/canonicalize: Likewise.
415
416 2007-08-26  Bruno Haible  <bruno@clisp.org>
417
418         * gnulib-tool (func_import): When deciding which files to remove,
419         consider also dangling symbolic links.
420         Reported by Eric Blake.
421
422 2007-08-26  Bruno Haible  <bruno@clisp.org>
423
424         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
425
426 2007-08-23  Simon Josefsson  <simon@josefsson.org>
427
428         * lib/readline.c: Don't include getline.h, the prototype is now
429         found in stdio.h.
430
431 2007-08-23  Jim Meyering  <jim@meyering.net>
432
433         Getdelim touchup.
434         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
435         around the funlockfile call, since funlockfile never sets errno.
436         Don't set errno upon failed realloc.
437
438 2007-08-22  Eric Blake  <ebb9@byu.net>
439
440         Getline touchups.
441         * lib/getdelim.c (getdelim): Revert regression that required *n to
442         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
443         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
444         getdelim, rather than whether implementation is missing.
445         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
446         * lib/stdio_.h (getline): Also declare if replacement is
447         required.
448         * doc/functions/getdelim.texi: New file.
449         * doc/functions/getline.texi: Likewise.
450         * doc/gnulib.texi (Function Substitutes): Add new files.
451         Reported by Bruno Haible.
452
453 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
454
455         * users.txt: Add Guile.
456
457 2007-08-22  Eric Blake  <ebb9@byu.net>
458
459         * tests/test-getdelim.c (main): Use remove, not unlink.
460         * tests/test-getline.c (main): Likewise.
461
462         Move getline and getdelim into stdio.h, per POSIX 200x.
463         * modules/getline (Files): Remove getline.h.
464         (Depends-on): Add stdio.
465         (configure.ac): Add module indicator.
466         * modules/getdelim (Files): Remove getdelim.h.
467         (Depends-on): Add stdio.
468         (configure.ac): Add module indicator.
469         * modules/stdio (Makefile.am): Work with new indicators.
470         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
471         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
472         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
473         * lib/getdelim.h: Delete.
474         * lib/getline.h: Delete.
475         * lib/stdio_.h (getdelim, getline): Declare.
476         * modules/getdelim-tests: New module.
477         * modules/getline-tests: Likewise.
478         * tests/test-getdelim.c: New file.
479         * tests/test-getline.c: Likewise.
480         * NEWS: Document the change.
481         * lib/getline.c: Update choice of header.
482         * lib/csharpcomp.c: Likewise.
483         * lib/getpass.c: Likewise.
484         * lib/javacomp.c: Likewise.
485         * lib/javaversion.c: Likewise.
486         * lib/yesno.c: Likewise.
487         * lib/getdelim.c: Likewise.
488         (getdelim): Set errno on failure, and avoid memory leak.
489
490 2007-08-19  Bruno Haible  <bruno@clisp.org>
491
492         * modules/closein (Depends-on): Add freadahead.
493         * lib/closein.c: Include freadahead.h.
494         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
495         is zero.
496
497 2007-08-19  Bruno Haible  <bruno@clisp.org>
498
499         * modules/freadahead-tests: New file.
500         * tests/test-freadahead.sh: New file.
501         * tests/test-freadahead.c: New file.
502
503         * modules/freadahead: New file.
504         * lib/freadahead.h: New file.
505         * lib/freadahead.c: New file.
506         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
507         fbufmode, fpurge, freadable, fwritable.
508
509 2007-08-19  Eric Blake  <ebb9@byu.net>
510
511         Test yesno in combination with closein.
512         * lib/yesno.c (yesno): Document use of stdin.
513         * modules/yesno-tests (Files): New module.
514         * tests/test-yesno.c (main): New file.
515         * tests/test-yesno.sh: Likewise.
516
517 2007-08-19  Bruno Haible  <bruno@clisp.org>
518
519         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
520         * lib/fseeko.c (rpl_fseeko): Likewise.
521         * lib/fseterr.c (fseterr): Likewise.
522
523 2007-08-19  Bruno Haible  <bruno@clisp.org>
524
525         * tests/test-lseek.c (main): Disable a test for BeOS.
526         * doc/functions/lseek.texi: Document the BeOS bug.
527
528 2007-08-19  Bruno Haible  <bruno@clisp.org>
529             Eric Blake  <ebb9@byu.net>
530
531         * lib/lseek.c: Include <sys/stat.h>.
532         (rpl_lseek): Add workaround code also for Unix platforms.
533         Needed for BeOS.
534         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
535         * doc/functions/lseek.texi: Document BeOS definiency.
536
537 2007-08-18  Bruno Haible  <bruno@clisp.org>
538
539         * modules/fstrcmp-tests: New file.
540         * tests/test-fstrcmp.c: New file.
541
542 2007-08-18  Bruno Haible  <bruno@clisp.org>
543
544         * modules/fstrcmp: New file, from GNU gettext with modifications.
545         * lib/fstrcmp.h: New file, from GNU gettext.
546         * lib/fstrcmp.c: New file, from GNU gettext.
547         * MODULES.html.sh (String handling): Add fstrcmp.
548
549 2007-08-18  Bruno Haible  <bruno@clisp.org>
550
551         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
552         'bool'.
553         (diag, compareseq): Remove const from the ctxt argument.
554         (USE_HEURISTIC): Undefine at the end.
555
556 2007-08-18  Jim Meyering  <jim@meyering.net>
557
558         New file: lib/idcache.h
559         * NEWS: Mention the addition.
560         * modules/idcache (Files): Add lib/idcache.h
561         * lib/idcache.c: Include "idcache.h".
562         Don't include <sys/types.h>.
563         Add a FIXME comment.
564         Move file-scoped "static" declarations to the top.
565         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
566
567 2007-08-17  Bruno Haible  <bruno@clisp.org>
568         and Paul Eggert  <eggert@cs.ucla.edu>
569
570         * MODULES.html.sh: Add diffseq.
571         * modules/diffseq: New file.
572         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
573         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
574
575 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
576
577         Import changes from coreutils for bootstrap script.
578
579         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
580
581         * build-aux/bootstrap (slurp): Work even in environments where
582         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
583         current code does not slurp files whose names start with ".", and
584         this looks like it might be a troublesome area.
585
586         2007-07-11  Jim Meyering  <jim@meyering.net>
587
588         If there's a GPL vN copyright comment, require that N == 3.
589
590         2007-07-08  Jim Meyering  <jim@meyering.net>
591
592         Run the coreutils-specific code only if tests/Makefile.am.in exists.
593         * build-aux/bootstrap (mam_template): Move definition out of loop.
594
595         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
596
597         * build-aux/bootstrap (symlink_to_dir): Rename function from
598         symlink_to_gnulib.  Add a directory parameter.  Update all
599         callers.
600         (cp_mark_as_generated): Also check for -- and link to -- files in
601         gl/.
602
603         2007-07-08  Jim Meyering  <jim@meyering.net>
604
605         Adapt to deeper hierarchy in gnulib.
606         * build-aux/bootstrap (symlink_to_dir): If the destination
607         directory doesn't exist, create it. This is required at least for
608         "lib/uniwidth/cjk.h".
609
610         2007-05-15  Jim Meyering  <jim@meyering.net>
611
612         * build-aux/bootstrap: Now that generated Makefile.am files
613         are no longer under version control, they must be created at
614         bootstrap time.
615
616 2007-08-14  Ben Pfaff  <blp@gnu.org>
617
618         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
619
620 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
621
622         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
623         given the changes below.
624         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
625         even on hosts that have padding bits beyond the supported 64.
626
627 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
628
629         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
630         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
631         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
632         depends on it.
633         (xstrtol_error): Remove.
634         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
635         but with a different signature.
636         (ATTRIBUTE_NORETURN, __attribute__): New macros.
637         * lib/xstrtol-error.c: Include exitfail.h.
638         (xstrtol_fatal): New function, with a different signature from the
639         old xstrtol_error, so that the caller need not worry about passing
640         in an exit status, or about storage management of the option argument.
641         (xstrtol_error): Now a static function.  Redo signature to
642         implement xstrtol_fatal.  Output the correct number of hyphens in
643         front of the option so that the caller need not worry about
644         storage management.
645         (N_): New macro.
646         (_): Remove; not used now.
647         * modules/xstrtol: Depend on getopt.
648         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
649         of old STRTOL_FATAL_ERROR macro.
650         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
651         of test program.
652         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
653         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
654
655 2007-08-08  Eric Blake  <ebb9@byu.net>
656
657         * lib/xstrtol-error.c: Add missing include.
658
659         Move xstrtol messages into gnulib domain, when --pobase is used.
660         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
661         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
662         * modules/xstrtol (Files): Distribute new file.
663         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
664         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
665         * tests/test-xstrtol.c: ...into new file.
666         * tests/test-xstrtoul.c: Also test xstrtoul.
667         * tests/test-xstrtoimax.c: Also test xstrtoimax.
668         * tests/test-xstrtoumax.c: Also test xstrtoumax.
669         * tests/test-xstrtol.sh: Drive the tests.
670         * tests/test-xstrtoimax.sh: Likewise.
671         * tests/test-xstrtoumax.sh: Likewise.
672         * modules/xstrtol-tests: New module.
673         * modules/xstrtoimax-tests: Likewise.
674         * modules/xstrtoumax-tests: Likewise.
675
676 2007-08-08  Jim Meyering  <jim@meyering.net>
677
678         New function: mfile_name_concat.
679         * lib/filenamecat.c (mfile_name_concat): New function, just like
680         file_name_concat, but return NULL upon failure rather than exiting
681         with a diagnostic.
682         * lib/filenamecat.h: Declare it.
683
684 2007-08-07  Bruno Haible  <bruno@clisp.org>
685
686         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
687         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
688         warning from gcc.
689         Reported by Eric Blake.
690
691 2007-08-07  Simon Josefsson  <simon@josefsson.org>
692
693         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
694         * modules/crypto/arcfour (License): Likewise.
695         * modules/crypto/des-tests (License): Likewise.
696         * modules/crypto/gc-arctwo-tests (License): Likewise.
697         * modules/crypto/gc-des-tests (License): Likewise.
698         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
699         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
700         * modules/crypto/gc-md2-tests (License): Likewise.
701         * modules/crypto/gc-md4-tests (License): Likewise.
702         * modules/crypto/gc-md5-tests (License): Likewise.
703         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
704         * modules/crypto/gc-rijndael-tests (License): Likewise.
705         * modules/crypto/gc-sha1-tests (License): Likewise.
706         * modules/crypto/gc-tests (License): Likewise.
707         * modules/crypto/hmac-md5 (License): Likewise.
708         * modules/crypto/hmac-sha1 (License): Likewise.
709         * modules/crypto/md2-tests (License): Likewise.
710         * modules/crypto/md4-tests (License): Likewise.
711         * modules/crypto/md5 (License): Likewise.
712         * modules/crypto/rijndael (License): Likewise.
713         * modules/crypto/sha1 (License): Likewise.
714         * modules/memxor (License): Likewise.
715
716 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
717         and Bruno Haible  <bruno@clisp.org>
718
719         * NEWS: Describe interface changes to human, xstrtol.
720         * lib/human.h: Include <xstrtol.h>.
721         (human_options): Return enum strtol_error, not int.  Remove
722         bool arg; take int * instead.
723         * lib/human.c: Don't include "gettext.h".
724         (_): Remove; no longer used.
725         Don't include <xstrtol.h>, since human.h does it.
726         (human_options): Adjust to abovementioned interface changes.
727         Do not report error to stderr; that's now the caller's
728         responsibility.
729         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
730         interface change.
731         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
732         Str, Argument_type_string.  All uses changed.  Put " argument"
733         in diagnostics to make them clearer.  Change wording of suffix
734         message for clarity.
735         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
736         Argument_type_string.
737         (STRTOL_FATAL_WARN): Remove; no longer used.
738         * modules/human (Depends-on): Remove gettext-h.
739
740 2007-08-06  Simon Josefsson  <simon@josefsson.org>
741
742         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
743
744 2007-07-31  Bruno Haible  <bruno@clisp.org>
745
746         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
747         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
748         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
749
750 2007-07-31  Bruno Haible  <bruno@clisp.org>
751
752         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
753         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
754
755 2007-07-30  Bruno Haible  <bruno@clisp.org>
756
757         * modules/base64 (License): Use the synonymous term "LGPLv2+".
758         * modules/c-ctype (License): Likewise.
759         * modules/c-strcase (License): Likewise.
760         * modules/check-version (License): Likewise.
761         * modules/iconv (License): Likewise.
762         * modules/iconv_open (License): Likewise.
763         * modules/read-file (License): Likewise.
764         * modules/striconv (License): Likewise.
765         * modules/strverscmp (License): Likewise.
766         * modules/vasprintf (License): Likewise.
767         * modules/crypto/des (License): Likewise.
768         * modules/crypto/gc (License): Likewise.
769         * modules/crypto/gc-arcfour (License): Likewise.
770         * modules/crypto/gc-arctwo (License): Likewise.
771         * modules/crypto/gc-des (License): Likewise.
772         * modules/crypto/gc-hmac-md5 (License): Likewise.
773         * modules/crypto/gc-hmac-sha1 (License): Likewise.
774         * modules/crypto/gc-md2 (License): Likewise.
775         * modules/crypto/gc-md4 (License): Likewise.
776         * modules/crypto/gc-md5 (License): Likewise.
777         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
778         * modules/crypto/gc-random (License): Likewise.
779         * modules/crypto/gc-rijndael (License): Likewise.
780         * modules/crypto/gc-sha1 (License): Likewise.
781         * modules/crypto/md2 (License): Likewise.
782         * modules/crypto/md4 (License): Likewise.
783
784 2007-07-30  Jim Meyering  <jim@meyering.net>
785
786         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
787         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
788         it has valid stat data.  This bug would cause du not to count the
789         sizes of inaccessible directories.
790         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
791         in <http://bugzilla.redhat.com/250077>.
792
793 2007-07-25  Peter O'Gorman  <peter@pogma.com>
794             Bruno Haible  <bruno@clisp.org>
795
796         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
797         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
798         #include_next, gives a diagnostic about it, but reports no error in
799         the exit code.
800         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
801
802 2007-07-24  Ben Pfaff  <blp@gnu.org>
803
804         Improve name: "count-one-bits" is better than "popcount".
805         * MODULES.html.sh: Update name.
806         * lib/popcount.h: Renamed lib/count-one-bits.h.
807         (popcount): Renamed count_one_bits.
808         (popcountl): Renamed count_one_bits_l.
809         (popcountll): Renamed count_one_bits_ll.
810         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
811         * modules/popcount: Renamed module/count-one-bits.
812         * modules/popcount-tests: Renamed module/count-one-bits-tests.
813         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
814
815 2007-07-23  Ben Pfaff  <blp@gnu.org>
816
817         * lib/popcount.h (popcount32): Reduce size of constants, to allow
818         better code generation, and add U to large constants to avoid
819         warnings, in non-GCC case.
820         Suggested by Bruno Haible.
821
822 2007-07-23  Ben Pfaff  <blp@gnu.org>
823
824         * lib/popcount.h: Use verify_true instead of if...abort.
825         * modules/popcount: Depend on verify module.
826         Suggested by Jim Meyering.
827
828 2007-07-23  Bruno Haible  <bruno@clisp.org>
829
830         * gnulib-tool (func_import): Create a .cvsignore file also when the
831         directory is not yet in CVS but the toplevel directory is. When
832         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
833         Reported by Karl Berry.
834
835 2007-07-22  Ben Pfaff  <blp@gnu.org>
836
837         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
838         case.
839         Suggested by Eric Blake.
840
841 2007-07-22  Ben Pfaff  <blp@gnu.org>
842
843         New module: popcount.
844         * MODULES.html.sh: Add popcount.
845         * modules/popcount: New file.
846         * modules/popcount-tests: New file.
847         * tests/test-popcount.c: New file.
848         * lib/popcount.h: New file.
849         * m4/popcount.m4: New file.
850
851 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
852
853         * build-aux/announce-gen: Update to GPLv3.
854
855         * build-aux/config.guess: Update from config.
856
857 2007-07-21  Bruno Haible  <bruno@clisp.org>
858
859         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
860         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
861
862 2007-07-20  Jim Meyering  <jim@meyering.net>
863
864         * check-module: Diagnose a self-dependency.
865
866 2007-07-19  Bruno Haible  <bruno@clisp.org>
867
868         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
869         empty.
870         Reported by Eric Blake.
871
872 2007-07-18  Bruno Haible  <bruno@clisp.org>
873
874         * gnulib-tool: New options --po-base, --po-domain.
875         (func_usage): Document them.
876         (pobase, po_domain): New variables.
877         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
878         DEFAULT_TEXT_DOMAIN.
879         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
880         (func_import): Consider pobase and po_domain. Create a po/ directory.
881         (func_create_testdir): Set pobase and po_domain to empty.
882         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
883         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
884
885 2007-07-18  Bruno Haible  <bruno@clisp.org>
886
887         * gnulib-tool (func_get_automake_snippet): Synthesize also an
888         EXTRA_DIST augmentation for files in build-aux/.
889
890 2007-07-16  Bruno Haible  <bruno@clisp.org>
891
892         * modules/lseek (License): Use the synonymous term "LGPLv2+".
893         * modules/getdelim (License): Likewise.
894
895 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
896
897         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
898         * modules/d-type (License): Likewise.
899         * modules/extensions (License): Likewise.
900         * modules/fnmatch (License): Likewise.
901         * modules/fseeko (License): Likewise.
902         * modules/getaddrinfo (License): Likewise.
903         * modules/getline (License): Likewise.
904         * modules/getlogin_r (License): Likewise.
905         * modules/getpass (License): Likewise.
906         * modules/gettimeofday (License): Likewise.
907         * modules/glob (License): Likewise.
908         * modules/inet_ntop (License): Likewise.
909         * modules/malloc (License): Likewise.
910         * modules/malloca (License): Likewise.
911         * modules/memmem (License): Likewise.
912         * modules/mempcpy (License): Likewise.
913         * modules/memset (License): Likewise.
914         * modules/minmax (License): Likewise.
915         * modules/mktime (License): Likewise.
916         * modules/netinet_in (License): Likewise.
917         * modules/pathmax (License): Likewise.
918         * modules/poll (License): Likewise.
919         * modules/regex (License): Likewise.
920         * modules/snprintf (License): Likewise.
921         * modules/stdbool (License): Likewise.
922         * modules/stdint (License): Likewise.
923         * modules/stdio (License): Likewise.
924         * modules/strcase (License): Likewise.
925         * modules/strcasestr (License): Likewise.
926         * modules/strdup (License): Likewise.
927         * modules/string (License): Likewise.
928         * modules/strndup (License): Likewise.
929         * modules/strnlen (License): Likewise.
930         * modules/strpbrk (License): Likewise.
931         * modules/strptime (License): Likewise.
932         * modules/strsep (License): Likewise.
933         * modules/sys_select (License): Likewise.
934         * modules/sys_socket (License): Likewise.
935         * modules/sys_stat (License): Likewise.
936         * modules/sys_time (License): Likewise.
937         * modules/time (License): Likewise.
938         * modules/time_r (License): Likewise.
939         * modules/timegm (License): Likewise.
940         * modules/unistd (License): Likewise.
941         * modules/vsnprintf (License): Likewise.
942         * modules/wctype (License): Likewise.
943
944 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
945
946         * modules/argz (License): LGPLv2+.
947
948 2007-07-15  Karl Berry  <karl@gnu.org>
949
950         * doc/gnulib.texi: revise node structure per new fdl.texi.
951
952 2007-07-14  Bruno Haible  <bruno@clisp.org>
953
954         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
955         the output file.
956         * lib/uniname/uninames.h: Regenerated.
957
958 2007-07-14  Karl Berry  <karl@gnu.org>
959
960         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
961         omitting sectioning and index commands.
962
963 2007-07-13  Bruno Haible  <bruno@clisp.org>
964
965         New gnulib-tool option --more-symlinks.
966         * gnulib-tool (func_usage): Document --more-symlinks.
967         (do_copyrights): New variable.
968         Recognize option --more-symlinks.
969         (func_import): Don't add a copyright notice transform to
970         sed_transform_lib_file if do_copyrights is empty.
971
972 2007-07-13  Bruno Haible  <bruno@clisp.org>
973
974         * lib/vasnprintf.c (decimal_point_char): Define also if
975         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
976         && !NEED_PRINTF_DIRECTIVE_A.
977         Reported by Clemens Koller <clemens.koller@anagramm.de> via
978         Gary V. Vaughan <gary@gnu.org>.
979
980 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
981
982         * lib/inttypes_.h: Undo previous change, since it was fixed
983         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
984
985 2007-07-13  Bruno Haible  <bruno@clisp.org>
986
987         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
988         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
989
990 2007-07-13  Jim Meyering  <jim@meyering.net>
991
992         df: Don't fail for Tru64's "file-on-file mount".
993         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
994         so we fall through and use statfs instead.  Details here:
995         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
996         Reported by Albert Chin.
997
998 2007-07-13  Bruno Haible  <bruno@clisp.org>
999
1000         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
1001         * modules/configmake (License): Likewise.
1002         * modules/gettext (License): Likewise.
1003         * modules/gettext-h (License): Likewise.
1004         * modules/include_next (License): Likewise.
1005         * modules/link-warning (License): Likewise.
1006         * modules/localcharset (License): Likewise.
1007         * modules/localename (License): Likewise.
1008         * modules/lock (License): Likewise.
1009         * modules/relocatable-lib-lgpl (License): Likewise.
1010         * modules/size_max (License): Likewise.
1011         * modules/vasnprintf (License): Likewise.
1012         * modules/wchar (License): Likewise.
1013         * modules/xsize (License): Likewise.
1014
1015 2007-07-13  Bruno Haible  <bruno@clisp.org>
1016
1017         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
1018         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
1019
1020 2007-07-12  Bruno Haible  <bruno@clisp.org>
1021
1022         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
1023         in the modules files.
1024
1025 2007-07-11  Karl Berry  <karl@gnu.org>
1026
1027         * MODULES.html.sh (func_module): use
1028          sed -e '\|^'"${includefile}"'$|d'
1029          instead of /.../d, to avoid errors on $includefile's containing /.
1030
1031 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
1032
1033         * gnulib-tool (func_import): Avoid duplication of --avoid
1034         statements
1035         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
1036         names to `_' in variable names.
1037
1038 2007-07-10  Eric Blake  <ebb9@byu.net>
1039
1040         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
1041         * NEWS: Document this change.
1042
1043 2007-07-08  Bruno Haible  <bruno@clisp.org>
1044
1045         Update to Unicode 5.0.
1046         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
1047         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
1048         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
1049         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
1050         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
1051         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
1052         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
1053         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
1054         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
1055         U+10A3F, U+1D242..U+1D244.
1056         (nonspacing_table_ind): Update.
1057         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
1058         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
1059
1060 2007-07-08  Bruno Haible  <bruno@clisp.org>
1061
1062         Update to Unicode 5.0.
1063         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
1064         code transform. Extend the name index field of unicode_name_to_code and
1065         unicode_code_to_name from 16 to 24 bits.
1066         * lib/uniname/uniname.c (unicode_character_name,
1067         unicode_name_character): Add the range 0x12xxx to the code transform.
1068         * lib/uniname/uninames.h: Regenerated.
1069         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
1070
1071 2007-07-07  Bruno Haible  <bruno@clisp.org>
1072
1073         * modules/wcwidth-tests: New file.
1074         * tests/test-wcwidth.c: New file.
1075
1076         Work around MacOS X wcwidth() bug.
1077         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
1078         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
1079         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
1080         original wcwidth in non-UTF-8 locales.
1081         * modules/wcwidth (Depends-on): Add localcharset, streq,
1082         uniwidth/width.
1083         * doc/functions/wcwidth.texi: Update.
1084
1085 2007-07-07  Bruno Haible  <bruno@clisp.org>
1086
1087         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
1088         (wcwidth): New declaration.
1089         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
1090         macros.
1091         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
1092         here. Prepare for creating <wchar.h> unconditionally.
1093         * modules/wchar (Depends-on): Add link-warning.
1094         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
1095         REPLACE_WCWIDTH, and GL_LINK_WARNING.
1096         * lib/wcwidth.h: Remove file.
1097         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
1098         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
1099         * modules/wcwidth (Files): Remove lib/wcwidth.h.
1100         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
1101         (Include): Replace wcwidth.h with <wchar.h>.
1102         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
1103         * lib/mbchar.h: Don't include wcwidth.h.
1104         * lib/mbswidth.c: Likewise.
1105         * NEWS: Mention the change.
1106
1107 2007-07-07  Bruno Haible  <bruno@clisp.org>
1108
1109         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
1110         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
1111         definition with an external declaration.
1112         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
1113         defined as a function. Remove AC_C_INLINE requirement.
1114         * modules/wcwidth (Files): Add lib/wcwidth.c.
1115         (Makefile.am): Remove redundant statement.
1116
1117 2007-07-07  Bruno Haible  <bruno@clisp.org>
1118
1119         * MODULES.html.sh (Unicode string functions): Add the new modules.
1120
1121         * tests/uniwidth/test-u32-strwidth.c: New file.
1122         * modules/uniwidth/u32-strwidth-tests: New file.
1123
1124         * lib/uniwidth/u32-strwidth.c: New file.
1125         * modules/uniwidth/u32-strwidth: New file.
1126
1127         * tests/uniwidth/test-u16-strwidth.c: New file.
1128         * modules/uniwidth/u16-strwidth-tests: New file.
1129
1130         * lib/uniwidth/u16-strwidth.c: New file.
1131         * modules/uniwidth/u16-strwidth: New file.
1132
1133         * tests/uniwidth/test-u8-strwidth.c: New file.
1134         * modules/uniwidth/u8-strwidth-tests: New file.
1135
1136         * lib/uniwidth/u8-strwidth.c: New file.
1137         * modules/uniwidth/u8-strwidth: New file.
1138
1139         * tests/uniwidth/test-u32-width.c: New file.
1140         * modules/uniwidth/u32-width-tests: New file.
1141
1142         * lib/uniwidth/u32-width.c: New file.
1143         * modules/uniwidth/u32-width: New file.
1144
1145         * tests/uniwidth/test-u16-width.c: New file.
1146         * modules/uniwidth/u16-width-tests: New file.
1147
1148         * lib/uniwidth/u16-width.c: New file.
1149         * modules/uniwidth/u16-width: New file.
1150
1151         * tests/uniwidth/test-u8-width.c: New file.
1152         * modules/uniwidth/u8-width-tests: New file.
1153
1154         * lib/uniwidth/u8-width.c: New file.
1155         * modules/uniwidth/u8-width: New file.
1156
1157         * tests/uniwidth/test-uc_width.c: New file.
1158         * modules/uniwidth/width-tests: New file.
1159
1160         * lib/uniwidth/width.c: New file, from GNU libiconv.
1161         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
1162         * modules/uniwidth/width: New file.
1163
1164         * lib/uniwidth.h: New file, from GNU libiconv.
1165         * modules/uniwidth/base: New file.
1166
1167 2007-07-07  Bruno Haible  <bruno@clisp.org>
1168
1169         * lib/uniname.h: New file, from GNU gettext.
1170         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
1171         * lib/uniname/uninames.h: New file, from GNU gettext.
1172         * lib/uniname/uniname.c: New file, from GNU gettext.
1173         * tests/uniname/test-uninames.sh: New file.
1174         * tests/uniname/test-uninames.c: New file, from GNU gettext.
1175         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
1176         * modules/uniname/base: New file.
1177         * modules/uniname/uniname: New file.
1178         * modules/uniname/uniname-tests: New file.
1179         * MODULES.html.sh (Unicode string functions): Add the new modules.
1180
1181 2007-07-06  Bruno Haible  <bruno@clisp.org>
1182
1183         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
1184
1185 2007-07-06  Bruno Haible  <bruno@clisp.org>
1186
1187         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
1188         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
1189         includes <cygwin/sys_time.h> which includes <sys/select.h> which
1190         include <sys/time.h>.
1191         Reported by Eric Blake.
1192
1193 2007-07-06  Eric Blake  <ebb9@byu.net>
1194
1195         Fix testing canonicalize on cygwin.
1196         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
1197         Revert patch from 2007-06-19.
1198         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
1199         canonicalize module is also in use.
1200         * tests/test-canonicalize.c: New file.
1201         * tests/test-canonicalize.sh: Likewise.
1202         * modules/canonicalize-tests: Likewise.
1203
1204 2007-07-06  Jim Meyering  <jim@meyering.net>
1205
1206         * lib/getugroups.c (getugroups): Detect getgrent failure.
1207         Adjust comment to reflect reality: this function may return -1.
1208
1209 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1210
1211         * build-aux/bootstrap (TP_URL,get_translations): Update to use
1212         the new TP address.
1213         (usage): Fix typo
1214         (gnulib_mk): New variable.
1215
1216 2007-07-05  Jim Meyering  <jim@meyering.net>
1217
1218         Don't let endgrent clobber errno, no matter how improbable.
1219         * lib/getugroups.c (getugroups): Save and restore errno around
1220         endgrent call.
1221
1222         Close the group DB even when failing with 2^31 or more members.
1223         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
1224
1225 2007-07-04  Jim Meyering  <jim@meyering.net>
1226
1227         * lib/getugroups.h: New file.
1228         * lib/getugroups.c: Include "getugroups.h".
1229         Remove uses of "register" keyword.
1230         Move local variable, "cp", down into scope where used.
1231         Give "username" parameter the "const" attribute.
1232         * modules/getugroups (Files): Add lib/getugroups.h
1233
1234 2007-07-04  Karl Berry  <karl@gnu.org>
1235
1236         * MODULES.html.sh (func_all_modules): Complete rename of
1237         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
1238
1239 2007-07-02  Bruno Haible  <bruno@clisp.org>
1240
1241         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
1242         mode, when inttypes.h comes from gnulib.
1243         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
1244
1245 2007-07-02  Simon Josefsson  <simon@josefsson.org>
1246
1247         * NEWS: Mention lgpl module name change.
1248
1249         * modules/lgpl-2.1: Renamed from lgpl.
1250
1251         * NEWS: Mention gpl module name change.
1252
1253         * modules/gpl-3.0: New file, based on gpl-2.0.
1254
1255         * modules/gpl-2.0: Renamed from gpl.
1256
1257         * modules/gpl: Fix filename, doc/gpl.texi is now found at
1258         doc/gpl-2.0.texi.
1259
1260 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1261
1262         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
1263         #define __STDC_LIMIT_MACROS temporarily while including
1264         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
1265         Problem reported by Joel E. Denny in
1266         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
1267
1268 2007-07-01  Bruno Haible  <bruno@clisp.org>
1269
1270         * lib/unistdio.h: New file.
1271         * lib/unistdio/u-asnprintf.h: New file.
1272         * lib/unistdio/u-asprintf.h: New file.
1273         * lib/unistdio/u-printf-args.c: New file.
1274         * lib/unistdio/u-printf-args.h: New file.
1275         * lib/unistdio/u-printf-parse.h: New file.
1276         * lib/unistdio/u-snprintf.h: New file.
1277         * lib/unistdio/u-sprintf.h: New file.
1278         * lib/unistdio/u-vasprintf.h: New file.
1279         * lib/unistdio/u-vsnprintf.h: New file.
1280         * lib/unistdio/u-vsprintf.h: New file.
1281         * lib/unistdio/ulc-asnprintf.c: New file.
1282         * lib/unistdio/ulc-asprintf.c: New file.
1283         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
1284         * lib/unistdio/ulc-printf-parse.c: New file.
1285         * lib/unistdio/ulc-snprintf.c: New file.
1286         * lib/unistdio/ulc-sprintf.c: New file.
1287         * lib/unistdio/ulc-vasnprintf.c: New file.
1288         * lib/unistdio/ulc-vasprintf.c: New file.
1289         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
1290         * lib/unistdio/ulc-vsnprintf.c: New file.
1291         * lib/unistdio/ulc-vsprintf.c: New file.
1292         * lib/unistdio/u8-asnprintf.c: New file.
1293         * lib/unistdio/u8-asprintf.c: New file.
1294         * lib/unistdio/u8-printf-parse.c: New file.
1295         * lib/unistdio/u8-snprintf.c: New file.
1296         * lib/unistdio/u8-sprintf.c: New file.
1297         * lib/unistdio/u8-vasnprintf.c: New file.
1298         * lib/unistdio/u8-vasprintf.c: New file.
1299         * lib/unistdio/u8-vsnprintf.c: New file.
1300         * lib/unistdio/u8-vsprintf.c: New file.
1301         * lib/unistdio/u8-u8-asnprintf.c: New file.
1302         * lib/unistdio/u8-u8-asprintf.c: New file.
1303         * lib/unistdio/u8-u8-snprintf.c: New file.
1304         * lib/unistdio/u8-u8-sprintf.c: New file.
1305         * lib/unistdio/u8-u8-vasnprintf.c: New file.
1306         * lib/unistdio/u8-u8-vasprintf.c: New file.
1307         * lib/unistdio/u8-u8-vsnprintf.c: New file.
1308         * lib/unistdio/u8-u8-vsprintf.c: New file.
1309         * lib/unistdio/u16-asnprintf.c: New file.
1310         * lib/unistdio/u16-asprintf.c: New file.
1311         * lib/unistdio/u16-printf-parse.c: New file.
1312         * lib/unistdio/u16-snprintf.c: New file.
1313         * lib/unistdio/u16-sprintf.c: New file.
1314         * lib/unistdio/u16-vasnprintf.c: New file.
1315         * lib/unistdio/u16-vasprintf.c: New file.
1316         * lib/unistdio/u16-vsnprintf.c: New file.
1317         * lib/unistdio/u16-vsprintf.c: New file.
1318         * lib/unistdio/u16-u16-asnprintf.c: New file.
1319         * lib/unistdio/u16-u16-asprintf.c: New file.
1320         * lib/unistdio/u16-u16-snprintf.c: New file.
1321         * lib/unistdio/u16-u16-sprintf.c: New file.
1322         * lib/unistdio/u16-u16-vasnprintf.c: New file.
1323         * lib/unistdio/u16-u16-vasprintf.c: New file.
1324         * lib/unistdio/u16-u16-vsnprintf.c: New file.
1325         * lib/unistdio/u16-u16-vsprintf.c: New file.
1326         * lib/unistdio/u32-asnprintf.c: New file.
1327         * lib/unistdio/u32-asprintf.c: New file.
1328         * lib/unistdio/u32-printf-parse.c: New file.
1329         * lib/unistdio/u32-snprintf.c: New file.
1330         * lib/unistdio/u32-sprintf.c: New file.
1331         * lib/unistdio/u32-vasnprintf.c: New file.
1332         * lib/unistdio/u32-vasprintf.c: New file.
1333         * lib/unistdio/u32-vsnprintf.c: New file.
1334         * lib/unistdio/u32-vsprintf.c: New file.
1335         * lib/unistdio/u32-u32-asnprintf.c: New file.
1336         * lib/unistdio/u32-u32-asprintf.c: New file.
1337         * lib/unistdio/u32-u32-snprintf.c: New file.
1338         * lib/unistdio/u32-u32-sprintf.c: New file.
1339         * lib/unistdio/u32-u32-vasnprintf.c: New file.
1340         * lib/unistdio/u32-u32-vasprintf.c: New file.
1341         * lib/unistdio/u32-u32-vsnprintf.c: New file.
1342         * lib/unistdio/u32-u32-vsprintf.c: New file.
1343         * tests/unistdio/test-ulc-asnprintf1.c: New file.
1344         * tests/unistdio/test-ulc-asnprintf1.h: New file.
1345         * tests/unistdio/test-ulc-printf1.h: New file.
1346         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
1347         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
1348         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
1349         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
1350         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
1351         * tests/unistdio/test-ulc-vasprintf1.c: New file.
1352         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
1353         * tests/unistdio/test-ulc-vsprintf1.c: New file.
1354         * tests/unistdio/test-u8-asnprintf1.c: New file.
1355         * tests/unistdio/test-u8-asnprintf1.h: New file.
1356         * tests/unistdio/test-u8-printf1.h: New file.
1357         * tests/unistdio/test-u8-vasnprintf1.c: New file.
1358         * tests/unistdio/test-u8-vasnprintf2.c: New file.
1359         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
1360         * tests/unistdio/test-u8-vasnprintf3.c: New file.
1361         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
1362         * tests/unistdio/test-u8-vasprintf1.c: New file.
1363         * tests/unistdio/test-u8-vsnprintf1.c: New file.
1364         * tests/unistdio/test-u8-vsprintf1.c: New file.
1365         * tests/unistdio/test-u16-asnprintf1.c: New file.
1366         * tests/unistdio/test-u16-asnprintf1.h: New file.
1367         * tests/unistdio/test-u16-printf1.h: New file.
1368         * tests/unistdio/test-u16-vasnprintf1.c: New file.
1369         * tests/unistdio/test-u16-vasnprintf2.c: New file.
1370         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
1371         * tests/unistdio/test-u16-vasnprintf3.c: New file.
1372         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
1373         * tests/unistdio/test-u16-vasprintf1.c: New file.
1374         * tests/unistdio/test-u16-vsnprintf1.c: New file.
1375         * tests/unistdio/test-u16-vsprintf1.c: New file.
1376         * tests/unistdio/test-u32-asnprintf1.c: New file.
1377         * tests/unistdio/test-u32-asnprintf1.h: New file.
1378         * tests/unistdio/test-u32-printf1.h: New file.
1379         * tests/unistdio/test-u32-vasnprintf1.c: New file.
1380         * tests/unistdio/test-u32-vasnprintf2.c: New file.
1381         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
1382         * tests/unistdio/test-u32-vasnprintf3.c: New file.
1383         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
1384         * tests/unistdio/test-u32-vasprintf1.c: New file.
1385         * tests/unistdio/test-u32-vsnprintf1.c: New file.
1386         * tests/unistdio/test-u32-vsprintf1.c: New file.
1387         * modules/unistdio/base: New file.
1388         * modules/unistdio/u-printf-args: New file.
1389         * modules/unistdio/ulc-asnprintf: New file.
1390         * modules/unistdio/ulc-asprintf: New file.
1391         * modules/unistdio/ulc-fprintf: New file.
1392         * modules/unistdio/ulc-printf-parse: New file.
1393         * modules/unistdio/ulc-snprintf: New file.
1394         * modules/unistdio/ulc-sprintf: New file.
1395         * modules/unistdio/ulc-vasnprintf: New file.
1396         * modules/unistdio/ulc-vasprintf: New file.
1397         * modules/unistdio/ulc-vfprintf: New file.
1398         * modules/unistdio/ulc-vsnprintf: New file.
1399         * modules/unistdio/ulc-vsprintf: New file.
1400         * modules/unistdio/u8-asnprintf: New file.
1401         * modules/unistdio/u8-asprintf: New file.
1402         * modules/unistdio/u8-printf-parse: New file.
1403         * modules/unistdio/u8-snprintf: New file.
1404         * modules/unistdio/u8-sprintf: New file.
1405         * modules/unistdio/u8-vasnprintf: New file.
1406         * modules/unistdio/u8-vasprintf: New file.
1407         * modules/unistdio/u8-vsnprintf: New file.
1408         * modules/unistdio/u8-vsprintf: New file.
1409         * modules/unistdio/u8-u8-asnprintf: New file.
1410         * modules/unistdio/u8-u8-asprintf: New file.
1411         * modules/unistdio/u8-u8-snprintf: New file.
1412         * modules/unistdio/u8-u8-sprintf: New file.
1413         * modules/unistdio/u8-u8-vasnprintf: New file.
1414         * modules/unistdio/u8-u8-vasprintf: New file.
1415         * modules/unistdio/u8-u8-vsnprintf: New file.
1416         * modules/unistdio/u8-u8-vsprintf: New file.
1417         * modules/unistdio/u16-asnprintf: New file.
1418         * modules/unistdio/u16-asprintf: New file.
1419         * modules/unistdio/u16-printf-parse: New file.
1420         * modules/unistdio/u16-snprintf: New file.
1421         * modules/unistdio/u16-sprintf: New file.
1422         * modules/unistdio/u16-vasnprintf: New file.
1423         * modules/unistdio/u16-vasprintf: New file.
1424         * modules/unistdio/u16-vsnprintf: New file.
1425         * modules/unistdio/u16-vsprintf: New file.
1426         * modules/unistdio/u16-u16-asnprintf: New file.
1427         * modules/unistdio/u16-u16-asprintf: New file.
1428         * modules/unistdio/u16-u16-snprintf: New file.
1429         * modules/unistdio/u16-u16-sprintf: New file.
1430         * modules/unistdio/u16-u16-vasnprintf: New file.
1431         * modules/unistdio/u16-u16-vasprintf: New file.
1432         * modules/unistdio/u16-u16-vsnprintf: New file.
1433         * modules/unistdio/u16-u16-vsprintf: New file.
1434         * modules/unistdio/u32-asnprintf: New file.
1435         * modules/unistdio/u32-asprintf: New file.
1436         * modules/unistdio/u32-printf-parse: New file.
1437         * modules/unistdio/u32-snprintf: New file.
1438         * modules/unistdio/u32-sprintf: New file.
1439         * modules/unistdio/u32-vasnprintf: New file.
1440         * modules/unistdio/u32-vasprintf: New file.
1441         * modules/unistdio/u32-vsnprintf: New file.
1442         * modules/unistdio/u32-vsprintf: New file.
1443         * modules/unistdio/u32-u32-asnprintf: New file.
1444         * modules/unistdio/u32-u32-asprintf: New file.
1445         * modules/unistdio/u32-u32-snprintf: New file.
1446         * modules/unistdio/u32-u32-sprintf: New file.
1447         * modules/unistdio/u32-u32-vasnprintf: New file.
1448         * modules/unistdio/u32-u32-vasprintf: New file.
1449         * modules/unistdio/u32-u32-vsnprintf: New file.
1450         * modules/unistdio/u32-u32-vsprintf: New file.
1451         * modules/unistdio/ulc-asnprintf-tests: New file.
1452         * modules/unistdio/ulc-vasnprintf-tests: New file.
1453         * modules/unistdio/ulc-vasprintf-tests: New file.
1454         * modules/unistdio/ulc-vsnprintf-tests: New file.
1455         * modules/unistdio/ulc-vsprintf-tests: New file.
1456         * modules/unistdio/u8-asnprintf-tests: New file.
1457         * modules/unistdio/u8-vasnprintf-tests: New file.
1458         * modules/unistdio/u8-vasprintf-tests: New file.
1459         * modules/unistdio/u8-vsnprintf-tests: New file.
1460         * modules/unistdio/u8-vsprintf-tests: New file.
1461         * modules/unistdio/u16-asnprintf-tests: New file.
1462         * modules/unistdio/u16-vasnprintf-tests: New file.
1463         * modules/unistdio/u16-vasprintf-tests: New file.
1464         * modules/unistdio/u16-vsnprintf-tests: New file.
1465         * modules/unistdio/u16-vsprintf-tests: New file.
1466         * modules/unistdio/u32-asnprintf-tests: New file.
1467         * modules/unistdio/u32-vasnprintf-tests: New file.
1468         * modules/unistdio/u32-vasprintf-tests: New file.
1469         * modules/unistdio/u32-vsnprintf-tests: New file.
1470         * modules/unistdio/u32-vsprintf-tests: New file.
1471         * MODULES.html.sh (Unicode string functions): Add the new modules.
1472
1473 2007-07-01  Bruno Haible  <bruno@clisp.org>
1474
1475         * lib/sprintf.c (sprintf): Limit the available length estimation,
1476         to avoid address wraparound.
1477         * lib/vsprintf.c (vsprintf): Likewise.
1478         * modules/sprintf-posix (Dependencies): Add stdint.
1479         * modules/vsprintf-posix (Dependencies): Likewise.
1480
1481 2007-07-01  Bruno Haible  <bruno@clisp.org>
1482
1483         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
1484         Windows PATH as well. Conservative double-quoting. Comments.
1485
1486 2007-07-01  Bruno Haible  <bruno@clisp.org>
1487             Eric Blake  <ebb9@byu.net>
1488             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1489
1490         * gnulib-tool (self_abspathname): Fix algorithm to cope with
1491         empty components in $PATH, denoting '.'.
1492
1493 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1494
1495         * gnulib-tool: Fix indentation.
1496         (func_create_megatestdir): Likewise.
1497         Report by Bruno Haible.
1498
1499 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1500
1501         Sync from Automake.
1502         * build-aux/gnupload: Fix shell portability issues with for loops.
1503         Report by Karl Berry.
1504
1505 2007-06-29  Simon Josefsson  <simon@josefsson.org>
1506
1507         * build-aux/maint.mk (POURL): Use translationproject.org.
1508
1509 2007-06-27  Simon Josefsson  <simon@josefsson.org>
1510             Bruno Haible  <bruno@clisp.org>
1511
1512         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
1513         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
1514         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
1515         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
1516         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
1517
1518 2007-06-27  Bruno Haible  <bruno@clisp.org>
1519
1520         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
1521         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
1522
1523 2007-06-26  Karl Berry  <karl@gnu.org>
1524
1525         * MODULES.html.sh: remove xreadlink-with-size.
1526
1527 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1528
1529         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
1530         method that I hope also handles the double-include problem noted
1531         by Bruno Haible in
1532         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
1533
1534 2007-06-23  Bruno Haible  <bruno@clisp.org>
1535
1536         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1537         Don't let the 'mostlyclean' target fail if the last subdirectory could
1538         not be removed.
1539         Reported by Karl Berry.
1540
1541 2007-06-23  Bruno Haible  <bruno@clisp.org>
1542
1543         * gnulib-tool (echo): Add a speedier workaround for ksh.
1544         * tests/test-echo.sh: Likewise.
1545
1546 2007-06-23  Bruno Haible  <bruno@clisp.org>
1547
1548         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
1549         * tests/test-echo.sh: Likewise.
1550
1551 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1552
1553         * gnulib-tool (IFS): Initialize early, so we don't set it to
1554         empty later.
1555         (self_abspathname): Rewrite algorithm to set it, reindent.
1556         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
1557         (func_create_megatestdir): Merge some sed scripts.
1558
1559 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1560
1561         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
1562         exposed by Sun Studio 11 cc on Solaris 8.
1563
1564 2007-06-22  Bruno Haible  <bruno@clisp.org>
1565
1566         * gnulib-tool (echo): Ensure the echo primitive does not interpret
1567         backslashes.
1568         * tests/test-echo.sh: New file.
1569
1570 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1571
1572         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
1573         simplify `sed_replace_build_aux' scripts, they are portable but
1574         echoing them with `echo' is not.
1575         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
1576
1577 2007-06-21  Karl Berry  <karl@gnu.org>
1578
1579         * config/srclist.txt: guess we can't handle the licenses via
1580         srclist at the moment.
1581
1582 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
1583
1584         * MODULES.html.sh: Add include_next.
1585         * modules/include_next: New file.
1586
1587 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
1588
1589         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
1590         INCLUDE_NEXT.
1591         (gl_CHECK_NEXT_HEADERS): New macro.
1592         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
1593         the obsolescent gl_ABSOLUTE_HEADER.
1594         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
1595         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
1596         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
1597         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1598         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1599         * m4/math_h.m4 (gl_MATH_H): Likewise.
1600         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
1601         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1602         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1603         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1604         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1605         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1606         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
1607         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1608         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1609         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1610         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
1611         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
1612         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
1613         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1614         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1615         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
1616         * m4/inttypes.m4 (gl_INTTYPES_H): Define
1617         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
1618         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
1619         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
1620         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
1621         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
1622         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
1623         * lib/float_.h: Likewise.
1624         * lib/inttypes_.h: Likewise.
1625         * lib/math_.h: Likewise.
1626         * lib/search_.h: Likewise.
1627         * lib/signal_.h: Likewise.
1628         * lib/stdint_.h: Likewise.
1629         * lib/stdio_.h: Likewise.
1630         * lib/stdlib_.h: Likewise.
1631         * lib/string_.h: Likewise.
1632         * lib/sys_stat_.h: Likewise.
1633         * lib/sys_time_.h: Likewise.
1634         * lib/time_.h: Likewise.
1635         * lib/unistd_.h: Likewise.
1636         * lib/wchar_.h: Likewise.
1637         * lib/wctype_.h: Likewise.
1638         * lib/dirent_.h: Likewise.
1639         * lib/iconv_.h: Likewise.
1640         * lib/locale_.h: Likewise.
1641         * lib/netinet_in_.h: Likewise.
1642         * lib/sys_select_.h: Likewise.
1643         * lib/sys_socket_.h: Likewise.
1644         * lib/sysexits_.h: Likewise.
1645         * modules/fcntl (Depends-on): Depend on include_next, not
1646         absolute_header.
1647         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
1648         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
1649         * modules/fchdir: Likewise.
1650         * modules/float: Likewise.
1651         * modules/iconv_open: Likewise.
1652         * modules/inttypes: Likewise.
1653         * modules/locale: Likewise.
1654         * modules/math: Likewise.
1655         * modules/netinet_in: Likewise.
1656         * modules/search: Likewise.
1657         * modules/signal: Likewise.
1658         * modules/stdint: Likewise.
1659         * modules/stdio: Likewise.
1660         * modules/stdlib: Likewise.
1661         * modules/string: Likewise.
1662         * modules/sys_select: Likewise.
1663         * modules/sys_socket: Likewise.
1664         * modules/sys_stat: Likewise.
1665         * modules/sys_time: Likewise.
1666         * modules/sysexits: Likewise.
1667         * modules/time: Likewise.
1668         * modules/unistd: Likewise.
1669         * modules/wchar: Likewise.
1670         * modules/wctype: Likewise.
1671         * modules/sys_stat: Change maintainer to "all".
1672         * modules/unistd: Likewise.
1673
1674 2007-06-20  Karl Berry  <karl@gnu.org>
1675
1676         * config/srclist.txt: track www changes in license files.
1677
1678 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
1679
1680         * build-aux/bootstrap: Remove stray dot.
1681         Make sure build_aux settings are honored when linking
1682         gnulib_extra_files.
1683
1684 2007-06-19  Eric Blake  <ebb9@byu.net>
1685
1686         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
1687         Allow compilation on cygwin.
1688
1689 2007-06-19  Jim Meyering  <jim@meyering.net>
1690
1691         xreadlink-with-size: Remove module.  No longer used.
1692         Ex-callers now use xreadlink or mreadlink-with-size.
1693         * modules/xreadlink-with-size: Remove module.
1694         * lib/xreadlink-with-size.c: Remove file.
1695         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
1696         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
1697         just before the function definition *is* accurate.
1698
1699         Eliminate one way canonicalize_filename_mode could exit.
1700         * lib/canonicalize.c (canonicalize_filename_mode):
1701         Use mreadlink_with_size, not xreadlink_with_size.
1702
1703 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
1704
1705         Detect porting problems to FreeBSD/arm, which has time_t wider than
1706         long int.  Original problem reported for GNU diff by Xin Li in
1707         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
1708         * modules/getdate (Depends-on): Add intprops, verify.
1709         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
1710         is an integer type no wider than long int.
1711
1712 2007-06-18  Jim Meyering  <jim@meyering.net>
1713
1714         New module: mreadlink-with-size.
1715         * MODULES.html.sh: Add mreadlink-with-size.
1716         * modules/mreadlink-with-size: New module
1717         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
1718         not xreadlink-with-size.
1719         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
1720
1721 2007-06-16  Bruno Haible  <bruno@clisp.org>
1722
1723         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
1724         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
1725         Reported by Gary V. Vaughan <gary@gnu.org>.
1726
1727 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
1728
1729         Revamp lchown so that it lives in unistd.h where it belongs.
1730         * lib/lchown.h: Remove.
1731         * lib/dirchownmod.c: Don't include lib/lchown.h.
1732         * lib/fchownat.c: Likewise.
1733         * lib/openat.c: Likewise.
1734         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
1735         does not follow symlinks.
1736         (EOPNOTSUPP): Define if not defined.
1737         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
1738         is defined to 0.
1739         (lchown): New decl.
1740         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
1741         Do not check for lchown decl.
1742         Set REPLACE_LCHOWN.
1743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
1744         REPLACE_LCHOWN.
1745         * modules/chown: Make it clear it follows symlinks.
1746         * modules/lchown: Make it clear it doesn't follow symlinks.
1747         (Files): Remove lib/lchown.h
1748         (Depends-on): Add unistd.
1749         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
1750         (Include): Include <unistd.h>, not "lchown.h".
1751         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
1752         REPLACE_LCHOWN.
1753
1754 2007-06-15  Jim Meyering  <jim@meyering.net>
1755
1756         Change license (GPL to LGPL) of fsusage and dependents.
1757         * modules/fsusage (License): Change to LGPL.
1758         * modules/full-read (License): Likewise.
1759         * modules/full-write (License): Likewise.
1760         * modules/safe-read (License): Likewise.
1761         * modules/safe-write (License): Likewise.
1762
1763 2007-06-14  Ben Pfaff  <blp@gnu.org>
1764
1765         Missing part of allocsa -> malloca transition.
1766         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
1767         gl_MALLOCA.
1768
1769 2007-06-12  Bruno Haible  <bruno@clisp.org>
1770
1771         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
1772         to ia64, x86_64, i386.
1773         Reported by Eric Blake.
1774
1775 2007-06-12  Bruno Haible  <bruno@clisp.org>
1776
1777         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
1778         cross-compiling to x86_64.
1779
1780 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
1781
1782         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
1783         glitch reported by Ralf Wildenhues in
1784         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
1785
1786         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
1787         Vin Shelton.
1788
1789 2007-06-11  Bruno Haible  <bruno@clisp.org>
1790
1791         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
1792         replacement string.
1793         Reported by Eric Blake.
1794
1795 2007-06-10  Bruno Haible  <bruno@clisp.org>
1796
1797         Prepare vasnprintf code for use with Unicode strings.
1798         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
1799         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
1800         TYPE_U32_STRING.
1801         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
1802         a_u32_string variants.
1803         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
1804         * lib/printf-args.c: Don't include config.h and the specification
1805         header if PRINTF_FETCHARGS is already defined.
1806         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
1807         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
1808         TYPE_U16_STRING, TYPE_U32_STRING.
1809         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
1810         u16_directive, u16_directives, u32_directive, u32_directives): New
1811         types.
1812         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
1813         New declarations.
1814         * lib/printf-parse.c: Don't include config.h and the specification
1815         header if PRINTF_PARSE is already defined. Eliminate the set of
1816         parameters for WIDE_CHAR_VERSION; the user of this file must provide
1817         them now. Include c-ctype.h.
1818         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
1819         directive and CHAR_T_ONLY_ASCII.
1820         * lib/vasnprintf.c: Don't include config.h and the specification header
1821         if VASNPRINTF is already defined.
1822         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
1823         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
1824         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
1825         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
1826         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
1827         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
1828         code accordingly.
1829         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
1830         pad_ourselves also in this case, with the 'c' and 's' directives, and
1831         with a different notion of "width".
1832         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
1833
1834 2007-06-10  Bruno Haible  <bruno@clisp.org>
1835
1836         * modules/unistr/u32-mbsnlen: New file.
1837         * lib/unistr/u32-mbsnlen.c: New file.
1838
1839         * modules/unistr/u16-mbsnlen: New file.
1840         * lib/unistr/u16-mbsnlen.c: New file.
1841
1842         * modules/unistr/u8-mbsnlen: New file.
1843         * lib/unistr/u8-mbsnlen.c: New file.
1844
1845         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
1846         declarations.
1847
1848 2007-06-10  Bruno Haible  <bruno@clisp.org>
1849
1850         * lib/string_.h (mbsnlen): New declaration.
1851         * lib/mbsnlen.c: New file.
1852         * m4/mbsnlen.m4: New file.
1853         * modules/mbsnlen: New file.
1854         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
1855         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
1856         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
1857
1858 2007-06-10  Bruno Haible  <bruno@clisp.org>
1859
1860         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
1861
1862 2007-06-10  Bruno Haible  <bruno@clisp.org>
1863
1864         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
1865         * lib/mbuiter.h: Likewise.
1866
1867 2007-06-10  Bruno Haible  <bruno@clisp.org>
1868
1869         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
1870         declaration.
1871
1872 2007-06-10  Karl Berry  <karl@gnu.org>
1873
1874         * config/srclist.txt: remove gettext entries, Bruno prefers
1875         to update individually.
1876
1877 2007-06-10  Bruno Haible  <bruno@clisp.org>
1878
1879         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
1880         'maxlen'. Ensure only length + width bytes are allocated, not
1881         length + 1 + width.
1882
1883 2007-06-09  Bruno Haible  <bruno@clisp.org>
1884
1885         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
1886         (CHAR_T): Remove macro.
1887         (VASNPRINTF): Update.
1888
1889 2007-06-09  Bruno Haible  <bruno@clisp.org>
1890
1891         * MODULES.html.sh (Unicode string functions): Add the new modules.
1892
1893         * modules/uniconv/u32-conv-to-enc: New file.
1894         * lib/uniconv/u32-conv-to-enc.c: New file.
1895         * modules/uniconv/u32-conv-to-enc-tests: New file.
1896         * tests/uniconv/test-u32-conv-to-enc.c: New file.
1897
1898         * modules/uniconv/u16-conv-to-enc: New file.
1899         * lib/uniconv/u16-conv-to-enc.c: New file.
1900         * lib/uniconv/u-conv-to-enc.h: New file.
1901         * modules/uniconv/u16-conv-to-enc-tests: New file.
1902         * tests/uniconv/test-u16-conv-to-enc.c: New file.
1903
1904         * modules/uniconv/u8-conv-to-enc: New file.
1905         * lib/uniconv/u8-conv-to-enc.c: New file.
1906         * modules/uniconv/u8-conv-to-enc-tests: New file.
1907         * tests/uniconv/test-u8-conv-to-enc.c: New file.
1908
1909         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
1910         u32_conv_to_encoding): New declarations.
1911
1912 2007-06-09  Bruno Haible  <bruno@clisp.org>
1913
1914         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
1915
1916 2007-06-09  Bruno Haible  <bruno@clisp.org>
1917
1918         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
1919         * modules/malloca: Renamed from modules/allocsa, updated.
1920         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
1921         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
1922         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
1923         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
1924         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
1925         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
1926         * modules/xmalloca: Renamed from modules/xallocsa, updated.
1927         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
1928         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
1929         * modules/c-strcasestr (Depends-on): Update.
1930         * lib/c-strcasestr.c: Update.
1931         * modules/c-strstr (Depends-on): Update.
1932         * lib/c-strstr.c: Update.
1933         * modules/canonicalize-lgpl (Depends-on): Update.
1934         * lib/canonicalize-lgpl.c: Update.
1935         * modules/clean-temp (Depends-on): Update.
1936         * lib/clean-temp.c: Update.
1937         * modules/csharpcomp (Depends-on): Update.
1938         * lib/csharpcomp.c: Update.
1939         * modules/csharpexec (Depends-on): Update.
1940         * lib/csharpexec.c: Update.
1941         * modules/javacomp (Depends-on): Update.
1942         * lib/javacomp.c: Update.
1943         * modules/javaexec (Depends-on): Update.
1944         * lib/javaexec.c: Update.
1945         * modules/mbscasestr (Depends-on): Update.
1946         * lib/mbscasestr.c: Update.
1947         * modules/mbsstr (Depends-on): Update.
1948         * lib/mbsstr.c: Update.
1949         * modules/setenv (Depends-on): Update.
1950         * lib/setenv.c: Update.
1951         * modules/strcasestr (Depends-on): Update.
1952         * lib/strcasestr.c: Update.
1953         * modules/striconveha (Depends-on): Update.
1954         * lib/striconveha.c: Update.
1955         * modules/relocatable-prog-wrapper (Files): Update.
1956         * lib/relocwrapper.c: Update.
1957         * build-aux/install-reloc: Update.
1958         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
1959
1960 2007-06-08  Bruno Haible  <bruno@clisp.org>
1961
1962         Port to uClibc.
1963         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
1964         * lib/fpurge.c (fpurge): Likewise.
1965         * lib/freading.c (freading): Likewise.
1966         * lib/fseeko.c (rpl_fseeko): Likewise.
1967         * lib/fseterr.c (fseterr): Likewise.
1968         * lib/fwriting.c (fwriting): Likewise.
1969         * tests/test-fflush.c (main): Avoid a failure on uClibc.
1970
1971 2007-06-08  Bruno Haible  <bruno@clisp.org>
1972
1973         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
1974         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
1975         * modules/gettext (Files): Add m4/intlmacosx.m4.
1976
1977 2007-06-07  Bruno Haible  <bruno@clisp.org>
1978
1979         * modules/localename-tests: New file.
1980         * tests/test-localename.c: New file.
1981
1982         New module 'localename'.
1983         * lib/localename.h: New file.
1984         * lib/localename.c: New file, from GNU gettext.
1985         * m4/localename.m4: New file.
1986         * modules/localename: New file.
1987
1988 2007-06-07  Bruno Haible  <bruno@clisp.org>
1989
1990         Work around the lack of <wchar.h> on some builds of uClibc.
1991         * doc/headers/wchar.texi: Update.
1992         * lib/wchar_.h: Include <wchar.h> only if it exists.
1993         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
1994         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
1995         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
1996         doesn't exist.
1997         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
1998         * modules/mbfile (Depends-on): Add wchar.
1999         * modules/mbiter (Depends-on): Likewise.
2000         * modules/mbuiter (Depends-on): Likewise.
2001         Reported by Simon Josefsson.
2002
2003 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
2004
2005         Work around problem reported by Steven M. Schweda in
2006         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
2007         Tru64 5.1B with the Compaq compiler environment installed declares
2008         an 'isblank' function but does not define it in the C library.
2009         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
2010         * lib/regex_internal.h (isblank): Likewise.
2011         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
2012         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2013
2014 2007-06-05  Bruno Haible  <bruno@clisp.org>
2015
2016         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
2017         ia64.
2018         * modules/printf-safe: New file.
2019         * modules/fprintf-posix (Depends-on): Add printf-safe.
2020         * modules/printf-posix (Depends-on): Likewise.
2021         * modules/snprintf-posix (Depends-on): Likewise.
2022         * modules/sprintf-posix (Depends-on): Likewise.
2023         * modules/vasnprintf-posix (Depends-on): Likewise.
2024         * modules/vasprintf-posix (Depends-on): Likewise.
2025         * modules/vfprintf-posix (Depends-on): Likewise.
2026         * modules/vprintf-posix (Depends-on): Likewise.
2027         * modules/vsnprintf-posix (Depends-on): Likewise.
2028         * modules/vsprintf-posix (Depends-on): Likewise.
2029         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2030         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
2031         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
2032         "no" on i386, x86_64, ia64.
2033         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
2034         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2035         on i386, x86_64, ia64.
2036         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
2037         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2038         on i386, x86_64, ia64.
2039         * tests/test-vasnprintf-posix.c: Include float.h.
2040         (LDBL80_WORDS): New macro.
2041         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2042         on i386, x86_64, ia64.
2043         * tests/test-vasprintf-posix.c: Include float.h.
2044         (LDBL80_WORDS): New macro.
2045         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2046         on i386, x86_64, ia64.
2047         * tests/test-snprintf-posix.c: Include float.h.
2048         * tests/test-sprintf-posix.c: Likewise.
2049         * tests/test-vsnprintf-posix.c: Likewise.
2050         * tests/test-vsprintf-posix.c: Likewise.
2051
2052 2007-06-05  Bruno Haible  <bruno@clisp.org>
2053
2054         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
2055         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
2056         non-IEEE numbers on i386, x86_64, ia64.
2057         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
2058         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
2059         * tests/test-isnanl.h: Include float.h.
2060         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
2061
2062 2007-06-05  Bruno Haible  <bruno@clisp.org>
2063
2064         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
2065         also the %a / %A. Handle the %a / %A code before this extra handling.
2066
2067 2007-06-05  Bruno Haible  <bruno@clisp.org>
2068
2069         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
2070         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
2071
2072 2007-06-05  Bruno Haible  <bruno@clisp.org>
2073
2074         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
2075         typo in variable name.
2076
2077 2007-06-05  Eric Blake  <ebb9@byu.net>
2078
2079         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
2080         Reported by Simon Josefsson.
2081
2082 2007-06-04  Bruno Haible  <bruno@clisp.org>
2083
2084         Avoid test failures on some PowerPC platforms.
2085         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
2086         Define differently for PowerPC.
2087         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
2088         Reported by Gary V. Vaughan <gary@gnu.org>.
2089
2090 2007-06-02  Bruno Haible  <bruno@clisp.org>
2091
2092         Fix test-stdint failure on FreeBSD/ia64.
2093         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
2094         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
2095         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
2096         * doc/headers/stdint.texi: Update.
2097
2098 2007-06-01  Bruno Haible  <bruno@clisp.org>
2099
2100         * tests/test-binary-io.c (main): Pass a third argument to open().
2101         Reported by Gary V. Vaughan <gary@gnu.org>.
2102
2103 2007-06-01  Bruno Haible  <bruno@clisp.org>
2104
2105         * doc/functions/frexpl.texi: Update for mingw.
2106
2107 2007-06-01  Bruno Haible  <bruno@clisp.org>
2108
2109         * tests/test-lseek.c (main): Disable test of errno for invalid third
2110         argument.
2111         * doc/functions/lseek.texi: Update.
2112         Reported by Gary V. Vaughan <gary@gnu.org>.
2113
2114 2007-05-28  Bruno Haible  <bruno@clisp.org>
2115
2116         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
2117
2118 2007-05-31  Eric Blake  <ebb9@byu.net>
2119
2120         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
2121         cross compiling.
2122
2123 2007-05-30  Eric Blake  <ebb9@byu.net>
2124         and Bruno Haible  <bruno@clisp.org>
2125
2126         Work around mingw test failures exposed by m4-1.4.9b.
2127         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
2128         * tests/test-unistd.c: Disable uid_t and git_t tests for the
2129         moment.
2130
2131 2007-05-30  Bruno Haible  <bruno@clisp.org>
2132
2133         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
2134         assuming that they are closed. Needed on HP-UX 11.
2135
2136 2007-05-29  Bruno Haible  <bruno@clisp.org>
2137
2138         Fix a problem with #include_next.
2139         * lib/dirent_.h: Split the double-inclusion guard.
2140         * lib/fcntl_.h: Likewise.
2141         * lib/float_.h: Likewise.
2142         * lib/iconv_.h: Likewise.
2143         * lib/inttypes_.h: Likewise.
2144         * lib/locale_.h: Likewise.
2145         * lib/math_.h: Likewise.
2146         * lib/netinet_in_.h: Likewise.
2147         * lib/search_.h: Likewise.
2148         * lib/signal_.h: Likewise.
2149         * lib/stdint_.h: Likewise.
2150         * lib/stdio_.h: Likewise.
2151         * lib/stdlib_.h: Likewise.
2152         * lib/string_.h: Likewise.
2153         * lib/sys_select_.h: Likewise.
2154         * lib/sys_socket_.h: Likewise.
2155         * lib/sys_stat_.h: Likewise.
2156         * lib/sys_time_.h: Likewise.
2157         * lib/sysexits_.h: Likewise.
2158         * lib/time_.h: Likewise.
2159         * lib/unistd_.h: Likewise.
2160         * lib/wchar_.h: Likewise.
2161         * lib/wctype_.h: Likewise.
2162
2163 2007-05-29  Bruno Haible  <bruno@clisp.org>
2164
2165         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
2166         for the moment.
2167
2168 2007-05-29  Bruno Haible  <bruno@clisp.org>
2169
2170         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
2171         invocation.
2172         Reported by Eric Blake.
2173
2174 2007-05-29  Bruno Haible  <bruno@clisp.org>
2175
2176         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
2177         compiling case.
2178
2179 2007-05-29  Eric Blake  <ebb9@byu.net>
2180             Bruno Haible  <bruno@clisp.org>
2181
2182         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
2183         cross compiles.
2184
2185 2007-05-28  Eric Blake  <ebb9@byu.net>
2186
2187         * modules/closein-tests (test_closein_LDADD): Support test on
2188         cygwin with libtool.
2189
2190 2007-05-28  Bruno Haible  <bruno@clisp.org>
2191
2192         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
2193         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
2194         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
2195         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
2196         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
2197         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
2198         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
2199         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
2200         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
2201
2202 2007-05-28  Eric Blake  <ebb9@byu.net>
2203
2204         Unconditionally include <config.h> in unit tests.
2205         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
2206         * tests/test-allocsa.c, tests/test-arcfour.c,
2207         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
2208         tests/test-array_list.c, tests/test-array_oset.c,
2209         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
2210         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
2211         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
2212         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
2213         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
2214         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
2215         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
2216         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
2217         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
2218         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
2219         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
2220         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
2221         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
2222         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
2223         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
2224         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
2225         test-md5.c, test-memmem.c, test-printf-posix.c,
2226         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
2227         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
2228         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
2229         test-strcasestr.c, test-striconv.c, test-striconveh.c,
2230         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
2231         test-vasnprintf-posix2.c, test-vasnprintf.c,
2232         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
2233         test-vfprintf-posix.c, test-vprintf-posix.c,
2234         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
2235         test-xvasprintf.c: Likewise.
2236
2237 2007-05-28  Bruno Haible  <bruno@clisp.org>
2238
2239         * gnulib-tool (func_import): Remember the --with-tests command-line
2240         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
2241         Reported by Eric Blake.
2242
2243 2007-05-28  Bruno Haible  <bruno@clisp.org>
2244
2245         * modules/ftell-tests: New file.
2246         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
2247         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
2248
2249         * lib/ftell.c: New file.
2250         * modules/ftell: New file.
2251         * m4/ftell.m4: New file.
2252         * doc/functions/ftell.texi: Update.
2253         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
2254         REPLACE_FTELL.
2255         * lib/stdio_.h (rpl_ftell): New declaration.
2256         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
2257         REPLACE_FTELL.
2258
2259 2007-05-28  Eric Blake  <ebb9@byu.net>
2260
2261         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
2262
2263 2007-05-28  Bruno Haible  <bruno@clisp.org>
2264
2265         * modules/fseek-tests: New file.
2266         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
2267         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
2268
2269         * lib/fseek.c: New file.
2270         * modules/fseek: New file.
2271         * m4/fseek.m4: New file.
2272         * doc/functions/fseek.texi: Update.
2273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
2274         REPLACE_FSEEK.
2275         * lib/stdio_.h (rpl_fseek): New declaration.
2276         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
2277         REPLACE_FSEEK.
2278
2279 2007-05-28  Bruno Haible  <bruno@clisp.org>
2280
2281         * lib/stdio_.h (fflush): More comments.
2282
2283 2007-05-28  Bruno Haible  <bruno@clisp.org>
2284
2285         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
2286         runtime test.
2287
2288 2007-05-28  Eric Blake  <ebb9@byu.net>
2289
2290         Improve lseek module.
2291         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
2292         * lib/unistd_.h (lseek): Scale back link warning message.
2293         * tests/test-lseek.c: Beef up test.
2294         * tests/test-lseek.sh: Exercise more facets of lseek.
2295         Reported by Bruno Haible.
2296
2297 2007-05-28  Bruno Haible  <bruno@clisp.org>
2298
2299         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
2300         to define.
2301
2302 2007-05-27  Bruno Haible  <bruno@clisp.org>
2303
2304         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
2305
2306 2007-05-27  Bruno Haible  <bruno@clisp.org>
2307
2308         * modules/openmp: New file.
2309         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
2310         Noah Misch.
2311
2312 2007-05-26  Bruno Haible  <bruno@clisp.org>
2313
2314         * modules/chdir-long (Depends-on): Add fchdir.
2315         * modules/chdir-safer (Depends-on): Likewise.
2316         * modules/fts (Depends-on): Likewise.
2317         * modules/fts-lgpl (Depends-on): Likewise.
2318         * modules/openat (Depends-on): Likewise.
2319         * modules/savewd (Depends-on): Likewise.
2320
2321 2007-05-24  Eric Blake  <ebb9@byu.net>
2322
2323         Fix lseek on mingw.
2324         * modules/lseek: New module.
2325         * m4/lseek.m4: New file.
2326         * lib/lseek.c: New file.
2327         * modules/lseek-tests: New file.
2328         * tests/test-lseek.c: New file.
2329         * tests/test-lseek.sh: New file.
2330         * MODULES.html.sh: Document lseek module.
2331         * modules/fflush (Depends-on): Add lseek, fseeko.
2332         * modules/fseeko (Depends-on): Likewise.
2333         * modules/ftello (Depends-on): Likewise.
2334         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
2335         broken.
2336         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
2337         broken.
2338         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
2339         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
2340         * lib/ftello.c (rpl_ftello): Likewise.
2341         * tests/test-fseeko.c (main): Test this.
2342         * tests/test-fseeko.sh: Likewise.
2343         * tests/test-ftello.c (main): Likewise.
2344         * tests/test-ftello.sh: Likewise.
2345         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
2346         implies replacing fseek.
2347         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
2348         HAVE_FTELLO.
2349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
2350         * modules/unistd (Makefile.am): Likewise.
2351         * lib/unistd_.h (lseek): Declare a replacement.
2352         * doc/functions/lseek.texi (lseek): Document this fix.
2353         * doc/functions/fseek.texi (fseek): Likewise.
2354         * doc/functions/ftell.texi (ftell): Likewise.
2355
2356 2007-05-24  Bruno Haible  <bruno@clisp.org>
2357
2358         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
2359         in the printed representation of a NaN.
2360         * tests/test-vasprintf-posix.c (test_function): Likewise.
2361         * tests/test-snprintf-posix.h (test_function): Likewise.
2362         * tests/test-sprintf-posix.h (test_function): Likewise.
2363         Reported by Eric Blake.
2364
2365 2007-05-23  Eric Blake  <ebb9@byu.net>
2366
2367         Fix fseeko/ftello on cygwin 1.5.24.
2368         * doc/functions/fseeko.texi (fseeko): Document the fix.
2369         * doc/functions/ftello.texi (ftello): Document the fix.
2370         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
2371         * doc/functions/stdout.text (stdout): New file.
2372         * doc/functions/stderr.text (stderr): New file.
2373         * doc/gnulib.texi (Function Substitutes): Use new files.
2374         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
2375         prior to 1.7.0.
2376         * tests/test-ftello.c (main): Likewise for ftello.
2377         * tests/test-fseeko.sh: New file.
2378         * tests/test-ftello.sh: New file.
2379         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
2380         with seekable stdin.
2381         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
2382         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
2383         (gl_REPLACE_FSEEKO): New macro.
2384         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
2385         * modules/fseeko (Files): Distribute fseeko.c.
2386         * modules/ftello (Files): Distribute ftello.c.
2387         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
2388         mode.
2389         * lib/ftello.c (rpl_ftello): New file.
2390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
2391         fseeko, ftello.
2392         (gl_STDIN_LARGE_OFFSET): New macro.
2393         * modules/stdio (Makefile.am): Perform the replacement.
2394         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
2395
2396 2007-05-23  Bruno Haible  <bruno@clisp.org>
2397
2398         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
2399         GNULIB_POSIXCHECK is defined.
2400
2401 2007-05-21  Bruno Haible  <bruno@clisp.org>
2402
2403         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
2404         Check also the output for NaN arguments. When cross-compiling, guess
2405         no on IRIX.
2406         * lib/vasnprintf.c: Update comments.
2407         * tests/test-vasnprintf-posix.c (strisnan): New function.
2408         (test_function): Use it.
2409         * tests/test-vasprintf-posix.c (strisnan): New function.
2410         (test_function): Use it.
2411         * tests/test-snprintf-posix.h (strisnan): New function.
2412         (test_function): Use it.
2413         * tests/test-sprintf-posix.h (strisnan): New function.
2414         (test_function): Use it.
2415         Reported by Eric Blake.
2416
2417 2007-05-20  Bruno Haible  <bruno@clisp.org>
2418
2419         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
2420         numbers that fails on BeOS.
2421         * doc/functions/frexpl.texi: Update.
2422
2423 2007-05-20  Jim Meyering  <jim@meyering.net>
2424
2425         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
2426         forced upon us by glibc-2.6.
2427
2428 2007-05-20  Bruno Haible  <bruno@clisp.org>
2429
2430         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
2431         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
2432         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
2433         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
2434         NEED_PRINTF_INFINITE.
2435         (is_infinitel): New function.
2436         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
2437         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
2438         gl_PREREQ_VASNPRINTF_INFINITE.
2439         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
2440         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2441         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
2442         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
2443         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
2444         gl_PREREQ_VASNPRINTF_INFINITE.
2445         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2446         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2447         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2448         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2449         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2450         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2451         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2452         * doc/functions/fprintf.texi: Update.
2453         * doc/functions/printf.texi: Update.
2454         * doc/functions/snprintf.texi: Update.
2455         * doc/functions/sprintf.texi: Update.
2456         * doc/functions/vfprintf.texi: Update.
2457         * doc/functions/vprintf.texi: Update.
2458         * doc/functions/vsnprintf.texi: Update.
2459         * doc/functions/vsprintf.texi: Update.
2460
2461 2007-05-20  Bruno Haible  <bruno@clisp.org>
2462
2463         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
2464         was not found in libc.
2465         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2466
2467 2007-05-20  Bruno Haible  <bruno@clisp.org>
2468
2469         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
2470         printed as "-nan" instead of "nan".
2471         * tests/test-vasprintf-posix.c (test_function): Likewise.
2472         * tests/test-snprintf-posix.h (test_function): Likewise.
2473         * tests/test-sprintf-posix.h (test_function): Likewise.
2474         Needed for HP-UX 11.
2475
2476 2007-05-20  Jim Meyering  <jim@meyering.net>
2477
2478         Fix buggy test for the fchownat-deref bug.
2479         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
2480         symlink required for the run-test.  Without it, this test would
2481         always declare that fchownat doesn't work, and client code would
2482         unnecessarily use the replacement function with fixed libc.
2483         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
2484         Reported by Greg Schafer.
2485
2486 2007-05-19  Bruno Haible  <bruno@clisp.org>
2487
2488         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
2489         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
2490         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
2491         Needed for IRIX 6.5 and Solaris 2.5.1.
2492
2493 2007-05-19  Bruno Haible  <bruno@clisp.org>
2494
2495         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
2496         (test_function): Skip tests involving -0.0 on platforms where
2497         -0.0 = 0.0.
2498         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
2499         (test_function): Skip tests involving -0.0 on platforms where
2500         -0.0 = 0.0.
2501         * tests/test-snprintf-posix.h (have_minus_zero): New function.
2502         (test_function): Skip tests involving -0.0 on platforms where
2503         -0.0 = 0.0.
2504         * tests/test-sprintf-posix.h (have_minus_zero): New function.
2505         (test_function): Skip tests involving -0.0 on platforms where
2506         -0.0 = 0.0.
2507         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
2508         tests.
2509         * tests/test-printf-posix.h (test_function): Likewise.
2510         * tests/test-printf-posix.output: Remove all -0.0 related results.
2511         Needed for IRIX 6.5.
2512
2513 2007-05-19  Bruno Haible  <bruno@clisp.org>
2514
2515         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
2516         printed as "nan0x7fffffff" instead of "nan".
2517         * tests/test-vasprintf-posix.c (test_function): Likewise.
2518         * tests/test-snprintf-posix.h (test_function): Likewise.
2519         * tests/test-sprintf-posix.h (test_function): Likewise.
2520         * tests/test-fprintf-posix.h (NaN): Remove macro.
2521         (test_function): Remove all NaN related tests.
2522         * tests/test-printf-posix.h (NaN): Remove macro.
2523         (test_function): Remove all NaN related tests.
2524         * tests/test-printf-posix.output: Remove all NaN related results.
2525         Needed for IRIX 6.5.
2526
2527 2007-05-19  Bruno Haible  <bruno@clisp.org>
2528
2529         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
2530         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2531
2532 2007-05-19  Bruno Haible  <bruno@clisp.org>
2533
2534         * lib/float_.h: New file.
2535         * m4/float_h.m4: New file.
2536         * modules/float: New file.
2537         * modules/isnanl (Dependencies): Add float.
2538         * modules/isnanl-nolibm (Dependencies): Likewise.
2539         * modules/mathl (Dependencies): Likewise.
2540         * modules/printf-frexpl (Dependencies): Likewise.
2541         * modules/signbit (Dependencies): Likewise.
2542         * modules/vasnprintf (Dependencies): Likewise.
2543         * doc/headers/float.texi: Update.
2544
2545 2007-05-19  Jim Meyering  <jim@meyering.net>
2546
2547         * lib/utimens.c (gl_futimens): Rename from futimens,
2548         now that glibc-2.6 declares futimens.
2549         * lib/utimens.h: Likewise.
2550
2551 2007-05-19  Bruno Haible  <bruno@clisp.org>
2552
2553         Avoid test failures on mingw.
2554         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
2555         * tests/test-printf-posix.sh: Likewise.
2556         * tests/test-vfprintf-posix.sh: Likewise.
2557         * tests/test-vprintf-posix.sh: Likewise.
2558
2559 2007-05-19  Bruno Haible  <bruno@clisp.org>
2560
2561         Fix *printf result for NaN, Inf, -0.0 on mingw.
2562         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
2563         * lib/vasnprintf.c: Include math.h and isnan.h.
2564         (is_infinite_or_zero): New function.
2565         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
2566         values in the %f, %F, %e, %E, %g, %G directives.
2567         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
2568         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2569         gl_PRINTF_INFINITE and test its result. Invoke
2570         gl_PREREQ_VASNPRINTF_INFINITE.
2571         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2572         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2573         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2574         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2575         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2576         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2577         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2578         * doc/functions/fprintf.texi: Update.
2579         * doc/functions/printf.texi: Update.
2580         * doc/functions/snprintf.texi: Update.
2581         * doc/functions/sprintf.texi: Update.
2582         * doc/functions/vfprintf.texi: Update.
2583         * doc/functions/vprintf.texi: Update.
2584         * doc/functions/vsnprintf.texi: Update.
2585         * doc/functions/vsprintf.texi: Update.
2586
2587 2007-05-19  Bruno Haible  <bruno@clisp.org>
2588
2589         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
2590         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
2591         Instead of multiplying with 10^k, set extra_zeroes to k.
2592         (scale10_round_long_double): Remove function.
2593
2594 2007-05-18  Bruno Haible  <bruno@clisp.org>
2595
2596         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
2597         introduced on 2007-05-06.
2598
2599 2007-05-18  Bruno Haible  <bruno@clisp.org>
2600
2601         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
2602         %g directives.
2603         * tests/test-vasprintf-posix.c (test_function): Likewise.
2604         * tests/test-snprintf-posix.h (test_function): Likewise.
2605         * tests/test-sprintf-posix.h (test_function): Likewise.
2606
2607 2007-05-18  Bruno Haible  <bruno@clisp.org>
2608
2609         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
2610         (strmatch): New function.
2611         (test_function): Test the %f directive on numbers of various exponents.
2612         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
2613         (strmatch): New function.
2614         (test_function): Test the %f directive on numbers of various exponents.
2615         * tests/test-snprintf-posix.h (strmatch): New function.
2616         (test_function): Test the %f directive on numbers of various exponents.
2617         * tests/test-sprintf-posix.h (strmatch): New function.
2618         (test_function): Test the %f directive on numbers of various exponents.
2619         * tests/test-snprintf-posix.c (SIZEOF): New macro.
2620         * tests/test-sprintf-posix.c (SIZEOF): New macro.
2621         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
2622         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
2623
2624 2007-05-18  Bruno Haible  <bruno@clisp.org>
2625
2626         Add support for 'long double' number output.
2627         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
2628         * lib/vasnprintf.c: Include math.h and float+.h.
2629         (mp_limb_t): New type.
2630         (GMP_LIMB_BITS): New macro.
2631         (mp_twolimb_t): New type.
2632         (GMP_TWOLIMB_BITS): New macro.
2633         (mpn_t): New type.
2634         (multiply, divide, convert_to_decimal, decode_long_double,
2635         scale10_round_long_double, scale10_round_decimal_long_double,
2636         floorlog10l): New functions.
2637         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
2638         for the %f, %F, %e, %E, %g, %G directives.
2639         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
2640         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2641         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
2642         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
2643         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2644         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2645         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2646         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2647         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2648         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2649         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2650         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
2651         * modules/snprintf-posix (Depends-on): Likewise.
2652         * modules/sprintf-posix (Depends-on): Likewise.
2653         * modules/vasnprintf-posix (Depends-on): Likewise.
2654         * modules/vasprintf-posix (Depends-on): Likewise.
2655         * modules/vfprintf-posix (Depends-on): Likewise.
2656         * modules/vsnprintf-posix (Depends-on): Likewise.
2657         * modules/vsprintf-posix (Depends-on): Likewise.
2658         * modules/vasnprintf (Files): Add lib/float+.h.
2659         * doc/functions/fprintf.texi: Update.
2660         * doc/functions/printf.texi: Update.
2661         * doc/functions/snprintf.texi: Update.
2662         * doc/functions/sprintf.texi: Update.
2663         * doc/functions/vfprintf.texi: Update.
2664         * doc/functions/vprintf.texi: Update.
2665         * doc/functions/vsnprintf.texi: Update.
2666         * doc/functions/vsprintf.texi: Update.
2667
2668 2007-05-18  Bruno Haible  <bruno@clisp.org>
2669
2670         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
2671
2672 2007-05-18  Bruno Haible  <bruno@clisp.org>
2673
2674         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
2675         for printing 64-bit integers. Needed for mingw.
2676
2677 2007-05-18  Bruno Haible  <bruno@clisp.org>
2678
2679         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
2680         gl_FUNC_FREXPL_WORKS.
2681         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
2682
2683 2007-05-18  Bruno Haible  <bruno@clisp.org>
2684
2685         * modules/frexpl-nolibm-tests: New file.
2686
2687         * modules/frexpl-nolibm: New file.
2688         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
2689
2690 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
2691
2692         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
2693         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
2694         GCC 4.2, which otherwise issues a lot of warnings.
2695         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
2696         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
2697         Likewise.
2698         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
2699         * modules/iconv_open (iconv.h): Likewise.
2700         * modules/locale (locale.h): Likewise.
2701         * modules/netinet_in (netinet/in.h): Likewise.
2702         * modules/sys_select (sys_select.h): Likewise.
2703         * modules/sys_socket (sys/socket.h): Likewise.
2704         * modules/sys_stat (sys/stat.h): Likewise.
2705         * modules/sysexits (sysexits.h): Likewise.
2706         * modules/unistd (unistd.h): Likewise.
2707
2708 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2709
2710         * modules/closein-tests (Makefile.am): Distribute
2711         `test-closein.sh'.
2712
2713 2007-05-17  Bruno Haible  <bruno@clisp.org>
2714
2715         * tests/test-printf-posix.output: Renamed from
2716         tests/test-fprintf-posix.out.
2717         * modules/fprintf-posix-tests: Update.
2718         * modules/printf-posix-tests: Update.
2719         * modules/vfprintf-posix-tests: Update.
2720         * modules/vprintf-posix-tests: Update.
2721         * tests/test-fprintf-posix.sh: Update.
2722         * tests/test-printf-posix.sh: Update.
2723         * tests/test-vfprintf-posix.sh: Update.
2724         * tests/test-vprintf-posix.sh: Update.
2725         Reported by Ralf Wildenhues.
2726
2727 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2728
2729         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
2730         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
2731         GCC 4.2, which otherwise issues a lot of warnings.
2732         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
2733         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
2734         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
2735         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
2736         it should no longer be needed.
2737         * lib/string_.h: Likewise.
2738         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
2739         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
2740         * modules/inttypes (inttypes.h): Likewise.
2741         * modules/math (math.h): Likewise.
2742         * modules/search (search.h): Likewise.
2743         * modules/signal (signal.h): Likewise.
2744         * modules/stdint (stdint.h): Likewise.
2745         * modules/stdio (stdio.h): Likewise.
2746         * modules/stdlib (stdlib.h): Likewise.
2747         * modules/string (string.h): Likewise.
2748         * modules/sys_time (sys/time.h): Likewise.
2749         * modules/time (time.h): Likewise.
2750         * modules/wchar (wchar.h): Likewise.
2751         * modules/wctype (wtype.h): Likewise.
2752
2753 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2754
2755         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
2756
2757 2007-05-13  Bruno Haible  <bruno@clisp.org>
2758
2759         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
2760         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2761         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
2762         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
2763         (gl_PREREQ_STRTOK_R): Don't require it here.
2764
2765 2007-05-13  Bruno Haible  <bruno@clisp.org>
2766
2767         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
2768         when used in C++ mode.
2769
2770 2007-05-12  Bruno Haible  <bruno@clisp.org>
2771
2772         * lib/linebuffer.h: Tweak doc.
2773         * lib/linebuffer.c: Likewise.
2774
2775 2007-05-12  James Youngman  <jay@gnu.org>
2776
2777         * lib/linebuffer.c (readlinebuffer_delim): New function,
2778         like readlinebuffer, but use a caller-specified delimiter.
2779         (readlinebuffer): Just call readlinebuffer_delim with '\n'
2780         as the delimiter.
2781         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
2782
2783 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
2784
2785         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
2786         * modules/openat (Files): Remove openat-die.c.
2787         (Depends-on): Add openat-die.
2788         * modules/openat-die: New module.
2789
2790 2007-05-06  Bruno Haible  <bruno@clisp.org>
2791
2792         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
2793         Update with info about Cygwin.
2794         * doc/functions/fprintf.texi: Update.
2795         * doc/functions/printf.texi: Update.
2796         * doc/functions/snprintf.texi: Update.
2797         * doc/functions/sprintf.texi: Update.
2798         * doc/functions/vfprintf.texi: Update.
2799         * doc/functions/vprintf.texi: Update.
2800         * doc/functions/vsnprintf.texi: Update.
2801         * doc/functions/vsprintf.texi: Update.
2802         Reported by Eric Blake.
2803
2804 2007-05-06  Bruno Haible  <bruno@clisp.org>
2805
2806         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
2807         padding ourselves for the floating-point directives.
2808         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
2809         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
2810         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2811         gl_PRINTF_FLAG_ZERO and test its result. Invoke
2812         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
2813         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2814         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
2815         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2816         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2817         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2818         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2819         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2820         * tests/test-snprintf-posix.h (test_function): Also check the width
2821         and some flags in the %f directive.
2822         * tests/test-sprintf-posix.h (test_function): Likewise.
2823         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2824         * tests/test-vasprintf-posix.c (test_function): Likewise.
2825         * doc/functions/fprintf.texi: Update.
2826         * doc/functions/printf.texi: Update.
2827         * doc/functions/snprintf.texi: Update.
2828         * doc/functions/sprintf.texi: Update.
2829         * doc/functions/vfprintf.texi: Update.
2830         * doc/functions/vprintf.texi: Update.
2831         * doc/functions/vsnprintf.texi: Update.
2832         * doc/functions/vsprintf.texi: Update.
2833
2834 2007-05-06  Bruno Haible  <bruno@clisp.org>
2835
2836         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
2837         pass the ' flag character to sprintf or snprintf.
2838         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
2839         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
2840         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2841         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
2842         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
2843         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2844         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
2845         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2846         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2847         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2848         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2849         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2850         * tests/test-snprintf-posix.h (test_function): Also check the grouping
2851         flag.
2852         * tests/test-sprintf-posix.h (test_function): Likewise.
2853         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2854         * tests/test-vasprintf-posix.c (test_function): Likewise.
2855         * doc/functions/fprintf.texi: Update.
2856         * doc/functions/printf.texi: Update.
2857         * doc/functions/snprintf.texi: Update.
2858         * doc/functions/sprintf.texi: Update.
2859         * doc/functions/vfprintf.texi: Update.
2860         * doc/functions/vprintf.texi: Update.
2861         * doc/functions/vsnprintf.texi: Update.
2862         * doc/functions/vsprintf.texi: Update.
2863
2864 2007-05-01  Bruno Haible  <bruno@clisp.org>
2865
2866         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
2867
2868 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
2869
2870         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
2871         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
2872
2873 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
2874
2875         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
2876         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
2877         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
2878
2879 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
2880
2881         * lib/argp-help.c (struct hol_entry): New member `ord'.
2882         (HOL_ENTRY_PTRCMP): Use ord for comparison
2883         (hol_sort): Initialize ord.
2884
2885 2007-05-01  Bruno Haible  <bruno@clisp.org>
2886
2887         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
2888         Reported by Eric Blake.
2889         * doc/gnulib.texi (Function Substitutes): Update.
2890
2891 2007-05-01  Bruno Haible  <bruno@clisp.org>
2892
2893         * doc/functions.texi: Remove file, now redundant through
2894         doc/functions/*.texi.
2895
2896 2007-05-01  Bruno Haible  <bruno@clisp.org>
2897
2898         * modules/argp (Depends-on): Add sleep.
2899
2900 2007-05-01  Bruno Haible  <bruno@clisp.org>
2901
2902         * modules/sleep-tests: New file.
2903         * tests/test-sleep.c: New file.
2904
2905         * modules/sleep: New file.
2906         * lib/sleep.c: New file.
2907         * m4/sleep.m4: New file.
2908         * lib/unistd_.h (sleep): New declaration.
2909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
2910         HAVE_SLEEP.
2911         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
2912         * doc/functions/sleep.texi: Document the sleep module.
2913
2914 2007-05-01  Bruno Haible  <bruno@clisp.org>
2915
2916         * lib/sigprocmask.h: Remove file.
2917         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
2918         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
2919         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
2920         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
2921         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2922         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
2923         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
2924         HAVE_SIGSET_T as a shell variable.
2925         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
2926         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
2927         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
2928         (Depends-on): Add signal. Remove verify.
2929         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
2930         (Include): Mention <signal.h> instead of sigprocmask.h.
2931         * NEWS: Mention the change.
2932         * lib/fatal-signal.c: Don't include sigprocmask.h.
2933
2934 2007-05-01  Bruno Haible  <bruno@clisp.org>
2935
2936         * modules/signal: New file.
2937         * lib/signal_.h: New file.
2938         * m4/signal_h.m4: New file.
2939
2940 2007-05-01  Bruno Haible  <bruno@clisp.org>
2941
2942         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
2943         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
2944         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
2945         HAVE_WCTYPE_CTMP_BUG into wctype.h.
2946
2947 2007-05-01  Bruno Haible  <bruno@clisp.org>
2948
2949         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
2950         configure time.
2951         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
2952         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
2953         * modules/sys_stat (Makefile.am): Substitute their values into
2954         sys/stat.h.
2955
2956 2007-05-01  Bruno Haible  <bruno@clisp.org>
2957
2958         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
2959         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
2960         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
2961
2962 2007-05-01  Bruno Haible  <bruno@clisp.org>
2963
2964         * doc/header/assert.texi: Undo last change: don't mention the gnulib
2965         'assert' module here.
2966
2967 2007-05-01  Bruno Haible  <bruno@clisp.org>
2968
2969         * doc/functions/*.texi: New files.
2970         * doc/functions/google-ranking.txt: New file.
2971         * doc/gnulib.texi (Function Substitutes): New chapter.
2972         (ctime, inet_ntoa): Remove sections.
2973         * doc/ctime.texi: Remove file.
2974         * doc/inet_ntoa.texi: Remove file.
2975         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
2976         dependencies.
2977         (%.info): New rule, specifying a --reference-limit.
2978
2979 2007-05-01  Bruno Haible  <bruno@clisp.org>
2980
2981         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
2982
2983 2007-05-01  Bruno Haible  <bruno@clisp.org>
2984
2985         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
2986         the portability of 'mkdir' to mingw systems.
2987
2988 2007-05-01  Bruno Haible  <bruno@clisp.org>
2989
2990         * doc/headers/google-ranking.txt: New file.
2991
2992 2007-04-30  Eric Blake  <ebb9@byu.net>
2993
2994         Prefer fseeko to fseek.
2995         * modules/getpass (Depends-on): Add fseeko.
2996         * lib/getpass.c (getpass): Use fseeko, not fseek.
2997
2998 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
2999
3000         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
3001         assumes the sorting is stable, while most qsort implementations
3002         are not.  Use argument addresses to ensure they never compare as
3003         equal.
3004
3005         * tests/test-argp-2.sh (usage-indent test): Fix output
3006         (func_compare): Restore diff options
3007         * tests/test-argp.c: Restore #include "progname.h"
3008
3009 2007-04-29  Bruno Haible  <bruno@clisp.org>
3010
3011         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
3012         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3013         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
3014         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3015         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
3016         (configure.ac): Define CHECK_SNPRINTF_POSIX.
3017         (TESTS, check_PROGRAMS): Add test-snprintf.
3018         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
3019         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
3020         (TESTS, check_PROGRAMS): Add test-vsnprintf.
3021         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
3022         assertions that fail on HP-UX, OSF/1, or IRIX.
3023         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
3024
3025 2007-04-29  Bruno Haible  <bruno@clisp.org>
3026
3027         * MODULES.html.sh (posix_functions): Remove 'contents'.
3028
3029 2007-04-29  Karl Berry  <karl@gnu.org>
3030
3031         * config/srclist.txt (gendocs_template_min): new entry.
3032
3033 2007-04-29  Bruno Haible  <bruno@clisp.org>
3034
3035         Work around fpurge bug on BSD systems.
3036         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
3037         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
3038         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
3039         fpurge to rpl_fpurge if the system already has this function.
3040         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
3041         the case where the system already has this function. Correct invariants
3042         on BSD systems.
3043         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
3044         BSD systems.
3045
3046 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
3047
3048         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
3049         proposed by Sven Verdoolaege.
3050
3051         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
3052         options.
3053         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
3054         (usage and help tests): Update
3055
3056 2007-04-29  Bruno Haible  <bruno@clisp.org>
3057
3058         * tests/test-fflush.c (main): Use a file of size 17, not 10.
3059         Print more information in case of failure. Disable a test on BeOS.
3060
3061 2007-04-29  Bruno Haible  <bruno@clisp.org>
3062
3063         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
3064         This helps debugging on systems on which no gdb is available.
3065
3066 2007-04-29  Bruno Haible  <bruno@clisp.org>
3067
3068         * lib/freading.h: Improve comments.
3069         * lib/fwriting.h: Likewise.
3070         * tests/test-freading.c (main): Don't check freading immediately after
3071         repositioning. Needed for glibc.
3072
3073 2007-04-29  Bruno Haible  <bruno@clisp.org>
3074
3075         * lib/freading.c (freading): Trivial simplification.
3076
3077 2007-04-28  Bruno Haible  <bruno@clisp.org>
3078
3079         * tests/test-fwriting.c (main): Also test the interaction between
3080         fflush and fwriting.
3081         * modules/fwriting-tests (Depends-on): Add fflush.
3082
3083         * tests/test-freading.c (main): Also test the interaction between
3084         fflush and freading.
3085         * modules/freading-tests (Depends-on): Add fflush.
3086
3087 2007-04-28  Bruno Haible  <bruno@clisp.org>
3088
3089         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
3090         fseeko and ftello.
3091         Suggested by Eric Blake.
3092
3093 2007-04-28  Jim Meyering  <jim@meyering.net>
3094
3095         Avoid false-negative in gl_STDINT_H's C99 conformance test.
3096         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
3097         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
3098
3099 2007-04-27  Eric Blake  <ebb9@byu.net>
3100
3101         * doc/headers/assert.texi (assert.h): Document assert module use.
3102
3103 2007-04-27  Bruno Haible  <bruno@clisp.org>
3104
3105         * doc/headers/*.texi: New files.
3106         * doc/gnulib.texi (Header File Substitutes): New chapter.
3107         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
3108         dependencies.
3109         (standards.info ,standards.html, standards.dvi): Update dependencies.
3110         (mostlyclean, clean): New targets.
3111
3112 2007-04-27  Bruno Haible  <bruno@clisp.org>
3113
3114         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
3115         * modules/sysexits (Files, Makefile.am): Update.
3116
3117         * lib/sys_socket_.h: Renamed from lib/socket_.h.
3118         * modules/sys_socket (Files, Makefile.am): Update.
3119
3120         * lib/sys_stat_.h: Renamed from lib/stat_.h.
3121         * modules/sys_stat (Files, Makefile.am): Update.
3122
3123 2007-04-27  Eric Blake  <ebb9@byu.net>
3124
3125         * lib/freading.h: Improve comments.
3126         * lib/fwriting.h: Likewise.
3127         * lib/fflush.c: Likewise.
3128
3129         Fix closein for mingw.
3130         * modules/closein-tests: Add tests for closein.
3131         * tests/test-closein.c: New file.
3132         * tests/test-closein.sh: Likewise.
3133         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
3134         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
3135
3136 2007-04-27  Bruno Haible  <bruno@clisp.org>
3137
3138         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
3139         version is < 6.
3140         * lib/math_.h [__DECC]: Likewise.
3141         * lib/stdio_.h [__DECC]: Likewise.
3142         * lib/stdlib_.h [__DECC]: Likewise.
3143         * lib/string_.h [__DECC]: Likewise.
3144         * lib/time_.h [__DECC]: Likewise.
3145         * lib/wchar_.h [__DECC]: Likewise.
3146         * lib/wctype_.h [__DECC]: Likewise.
3147
3148 2007-04-27  Bruno Haible  <bruno@clisp.org>
3149
3150         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
3151
3152 2007-04-27  Bruno Haible  <bruno@clisp.org>
3153
3154         * lib/fflush.c: Add comments.
3155         * modules/fpurge-tests (Depends-on): Add fflush.
3156         * modules/freadable-tests (Depends-on): Likewise.
3157         * modules/fwritable-tests (Depends-on): Likewise.
3158
3159 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
3160
3161         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
3162         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
3163         Report by Bruno Haible <bruno@clisp.org>.
3164
3165 2007-04-26  Eric Blake  <ebb9@byu.net>
3166
3167         Fix fflush on mingw.
3168         * modules/fflush (Depends-on): Add freading.
3169         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
3170         but unread data.
3171
3172 2007-04-26  Eric Blake  <ebb9@byu.net>
3173         and Bruno Haible  <bruno@clisp.org>
3174
3175         Implement freading and fwriting.
3176         * lib/freading.c: New file.
3177         * lib/freading.h: Likewise.
3178         * m4/freading.m4: Likewise.
3179         * modules/freading: Likewise.
3180         * modules/freading-tests: Likewise.
3181         * tests/test-freading.c: Likewise.
3182         * lib/fwriting.c: New file.
3183         * lib/fwriting.h: Likewise.
3184         * m4/fwriting.m4: Likewise.
3185         * modules/fwriting: Likewise.
3186         * modules/fwriting-tests: Likewise.
3187         * tests/test-fwriting.c: Likewise.
3188         * MODULES.html.sh (File stream based Input/Output): Mention them.
3189
3190 2007-04-26  Bruno Haible  <bruno@clisp.org>
3191
3192         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
3193         'long' when we assume it.
3194         Suggested by Eric Blake.
3195
3196 2007-04-26  Bruno Haible  <bruno@clisp.org>
3197
3198         Ensure fseeko, ftello are declared on glibc systems.
3199         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
3200         * modules/fseeko (configure.ac-early): Likewise.
3201         * modules/ftello (configure.ac-early): Likewise.
3202         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
3203         AC_FUNC_FSEEKO for this.
3204         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
3205         (gl_CHECK_FSEEKO): Remove macro.
3206
3207 2007-04-26  Bruno Haible  <bruno@clisp.org>
3208
3209         * tests/test-fflush.c (main): Also check the ftell result after
3210         fflush and fseek/fseeko.
3211         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
3212         file descriptor position cache in the stream.
3213         * lib/fseeko.c (rpl_fseeko): Likewise.
3214
3215 2007-04-26  Bruno Haible  <bruno@clisp.org>
3216
3217         * modules/fflush-tests (Depends-on): Add fseeko.
3218
3219 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
3220             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3221
3222         * lib/argz_.h: ensure error_t definition is obtained in same
3223         mechanism system argz.h would have.
3224         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
3225         argz facilities are known bad.  Err on the side of caution if
3226         cross-compiling.
3227
3228 2007-04-25  Eric Blake  <ebb9@byu.net>
3229
3230         * lib/fpurge.c (includes): Use stdlib.h for free.
3231         * tests/test-fflush.c (main): Also test fflush-fseeko.
3232
3233 2007-04-25  Bruno Haible  <bruno@clisp.org>
3234
3235         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
3236         * lib/fseeko.c: New file.
3237         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
3238         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
3239         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
3240         gl_FUNC_FSEEKO.
3241         (gl_FUNC_FSEEKO): Invoke it.
3242         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
3243         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
3244         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
3245
3246 2007-04-25  Bruno Haible  <bruno@clisp.org>
3247
3248         * modules/fflush (Depends-on): Add ftello.
3249
3250 2007-04-25  Bruno Haible  <bruno@clisp.org>
3251
3252         * modules/ftello-tests: New file.
3253         * tests/test-ftello.c: New file.
3254
3255         * modules/ftello: New file.
3256         * m4/ftello.m4: New file.
3257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
3258         HAVE_FTELLO.
3259         * lib/stdio_.h (ftello): New declaration.
3260         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
3261         HAVE_FTELLO.
3262
3263 2007-04-25  Bruno Haible  <bruno@clisp.org>
3264
3265         * modules/fseeko-tests: New file.
3266         * tests/test-fseeko.c: New file.
3267
3268         * modules/fseeko: New file.
3269         * m4/fseeko.m4: New file.
3270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
3271         HAVE_FSEEKO.
3272         * lib/stdio_.h (fseeko): New declaration.
3273         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
3274         HAVE_FSEEKO.
3275
3276 2007-04-25  Bruno Haible  <bruno@clisp.org>
3277
3278         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
3279
3280 2007-04-25  Bruno Haible  <bruno@clisp.org>
3281
3282         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
3283         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
3284         * tests/test-unistd.c: Likewise.
3285         * tests/test-fcntl.c: Likewise.
3286
3287 2007-04-23  Eric Blake  <ebb9@byu.net>
3288
3289         * lib/fflush.c: Fix missing include.
3290         Reported by Bruno Haible.
3291
3292 2007-04-23  Bruno Haible  <bruno@clisp.org>
3293
3294         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
3295         Reported by Eric Blake.
3296
3297 2007-04-23  Bruno Haible  <bruno@clisp.org>
3298
3299         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
3300
3301 2007-04-23  Bruno Haible  <bruno@clisp.org>
3302
3303         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
3304
3305 2007-04-23  Bruno Haible  <bruno@clisp.org>
3306
3307         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
3308         Needed on HP-UX 11.
3309
3310 2007-04-16  Eric Blake  <ebb9@byu.net>
3311
3312         Make fflush rely on fpurge.
3313         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
3314         open coding all variants.
3315         * modules/fflush (Depends-on): Add fpurge and unistd.
3316         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
3317         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
3318
3319         Fix --with-tests compilation on cygwin.
3320         * modules/argmatch-tests (Makefile.am): List gnulib library first
3321         in LDADD.
3322         * modules/argp-tests (Makefile.am): Likewise.
3323         * modules/array-list-tests (Makefile.am): Likewise.
3324         * modules/array-oset-tests (Makefile.am): Likewise.
3325         * modules/avltree-list-tests (Makefile.am): Likewise.
3326         * modules/avltree-oset-tests (Makefile.am): Likewise.
3327         * modules/avltreehash-list-tests (Makefile.am): Likewise.
3328         * modules/carray-list-tests (Makefile.am): Likewise.
3329         * modules/dirname-tests (Makefile.am): Likewise.
3330         * modules/frexp-tests (Makefile.am): Likewise.
3331         * modules/isnanl-tests (Makefile.am): Likewise.
3332         * modules/linked-list-tests (Makefile.am): Likewise.
3333         * modules/linkedhash-list-tests (Makefile.am): Likewise.
3334         * modules/lock-tests (Makefile.am): Likewise.
3335         * modules/rbtree-list-tests (Makefile.am): Likewise.
3336         * modules/rbtree-oset-tests (Makefile.am): Likewise.
3337         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
3338         * modules/tls-tests (Makefile.am): Likewise.
3339         * modules/tsearch-tests (Makefile.am): Likewise.
3340         * modules/xvasprintf-tests (Makefile.am): Likewise.
3341
3342         Fix fpurge for cygwin.
3343         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
3344         value.
3345         * modules/fpurge-tests (Depends-on): Clean up trash.
3346
3347 2007-04-16  Simon Josefsson  <simon@josefsson.org>
3348
3349         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
3350
3351         * m4/autobuild.m4: Re-indent.
3352
3353 2007-04-13  Bruno Haible  <bruno@clisp.org>
3354
3355         * modules/fpurge-tests: New file.
3356         * tests/test-fpurge.c: New file.
3357
3358         * modules/fpurge: New file.
3359         * lib/fpurge.h: New file.
3360         * lib/fpurge.c: New file.
3361         * m4/fpurge.m4: New file.
3362
3363 2007-04-13  Bruno Haible  <bruno@clisp.org>
3364
3365         * modules/fbufmode-tests: New file.
3366         * tests/test-fbufmode.c: New file.
3367
3368         * modules/fbufmode: New file.
3369         * lib/fbufmode.h: New file.
3370         * lib/fbufmode.c: New file.
3371         * m4/fbufmode.m4: New file.
3372
3373 2007-04-13  Bruno Haible  <bruno@clisp.org>
3374
3375         * modules/fwritable-tests: New file.
3376         * tests/test-fwritable.c: New file.
3377
3378         * modules/fwritable: New file.
3379         * lib/fwritable.h: New file.
3380         * lib/fwritable.c: New file.
3381         * m4/fwritable.m4: New file.
3382
3383 2007-04-13  Bruno Haible  <bruno@clisp.org>
3384
3385         * modules/freadable-tests: New file.
3386         * tests/test-freadable.c: New file.
3387
3388         * modules/freadable: New file.
3389         * lib/freadable.h: New file.
3390         * lib/freadable.c: New file.
3391         * m4/freadable.m4: New file.
3392
3393 2007-04-13  Bruno Haible  <bruno@clisp.org>
3394
3395         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
3396         MOSTLYCLEANFILES.
3397
3398 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
3399
3400         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
3401         gzip bootstrap.conf to avoid dragging in i18n machinery.
3402         (gnulib_tool_option): Use it.
3403
3404 2007-04-13  Bruno Haible  <bruno@clisp.org>
3405
3406         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
3407         %F directives.
3408         * tests/test-vasprintf-posix.c (test_function): Likewise.
3409         * tests/test-snprintf-posix.h (test_function): Likewise.
3410         * tests/test-sprintf-posix.h (test_function): Likewise.
3411         * tests/test-fprintf-posix.h (test_function): Likewise.
3412         * tests/test-printf-posix.h (test_function): Likewise.
3413         * tests/test-fprintf-posix.out: Likewise.
3414
3415 2007-04-13  Bruno Haible  <bruno@clisp.org>
3416
3417         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
3418         * modules/tls-tests (configure.ac): Likewise.
3419         Reported by Arto C. Nirkko <anirkko@insel.ch>.
3420
3421 2007-04-13  Bruno Haible  <bruno@clisp.org>
3422
3423         * lib/tls.c (glthread_tls_get): Fix return type.
3424         Patch by Arto C. Nirkko <anirkko@insel.ch>.
3425
3426 2007-04-12  Eric Blake  <ebb9@byu.net>
3427
3428         * modules/gettime (Depends-on): Remove gettime.
3429         Reported by Dmitry V. Levin.
3430
3431 2007-04-12  Bruno Haible  <bruno@clisp.org>
3432
3433         * modules/fflush (Include): Mention <stdio.h>.
3434         * modules/strtoimax (Include): Mention <inttypes.h>.
3435         * modules/strtoumax (Include): Likewise.
3436
3437 2007-04-12  Eric Blake  <ebb9@byu.net>
3438
3439         * .cvsignore: New file.
3440         * .gitignore: Likewise.
3441
3442 2007-04-12  Bruno Haible  <bruno@clisp.org>
3443
3444         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
3445         not before, since $(LDADD) often contains libgnu.a.
3446         * modules/striconv-tests (test_striconv_LDADD): Likewise.
3447         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
3448         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
3449         Needed on Cygwin.
3450
3451 2007-04-12  Eric Blake  <ebb9@byu.net>
3452
3453         Work around glibc's failure to flush stdin on fclose.
3454         * lib/closein.c (close_stdin): Flush stdin before closing.
3455
3456         Work around glibc's failure to reset seekable stdin on exit.
3457         * modules/closein: New module.
3458         * lib/closein.c: New file.
3459         * lib/closein.h: Likewise.
3460         * m4/closein.m4: Likewise.
3461         * MODULES.html.sh (File stream based Input/Output): Document it.
3462
3463 2007-04-12  Simon Josefsson  <simon@josefsson.org>
3464
3465         * gnulib-tool: Rename generated 'autobuild' script to
3466         'do-autobuild' in --create-megatestdir output.
3467
3468         * doc/gnulib.texi (Build robot for gnulib): Fix.
3469
3470 2007-04-12  Simon Josefsson  <simon@josefsson.org>
3471
3472         * modules/sysexits (Depends-on): Add absolute-header.
3473
3474 2007-04-12  Eric Blake  <ebb9@byu.net>
3475
3476         No need to preserve errno on success.
3477         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
3478         Reported by Bruno Haible.
3479
3480 2007-04-12  Simon Josefsson  <simon@josefsson.org>
3481
3482         * MODULES.html.sh (Support for maintaining and releasing
3483         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
3484
3485 2007-04-12  Simon Josefsson  <simon@josefsson.org>
3486
3487         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
3488
3489 2007-04-12  Simon Josefsson  <simon@josefsson.org>
3490
3491         * modules/autobuild: New module.
3492
3493         * m4/autobuild.m4: New file.
3494
3495 2007-04-11  Bruno Haible  <bruno@clisp.org>
3496
3497         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
3498         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
3499         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
3500         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
3501         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3502         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3503         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3504         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3505         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3506         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3507         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
3508         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3509         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3510         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
3511         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3512         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3513         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
3514         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3515         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3516         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
3517         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3518         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3519         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
3520         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3521         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3522         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
3523         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3524         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3525         Reported by Eric Blake.
3526
3527 2007-04-11  Bruno Haible  <bruno@clisp.org>
3528
3529         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
3530
3531 2007-04-10  Bruno Haible  <bruno@clisp.org>
3532
3533         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
3534         for NaN and Infinity. Needed on FreeBSD 6.1.
3535         * tests/test-vasnprintf-posix.c (test_function): Undo last change
3536         regarding results for "%010a" of Infinity and NaN.
3537         * tests/test-vasprintf-posix.c (test_function): Likewise.
3538         * tests/test-snprintf-posix.h (test_function): Likewise.
3539         * tests/test-sprintf-posix.h (test_function): Likewise.
3540         * tests/test-fprintf-posix.h (test_function): Likewise.
3541         * tests/test-printf-posix.h (test_function): Likewise.
3542         * tests/test-fprintf-posix.out: Likewise.
3543
3544 2007-04-10  Bruno Haible  <bruno@clisp.org>
3545
3546         * modules/locale-tests: New file.
3547         * tests/test-locale.c: New file.
3548
3549         * modules/locale: New file.
3550         * lib/locale_.h: New file.
3551         * m4/locale_h.m4: New file.
3552
3553 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
3554             Bruno Haible  <bruno@clisp.org>
3555
3556         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
3557         be determined, test for availability of the copysignf, copysign,
3558         copysignl functions.
3559         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
3560         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
3561         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
3562
3563 2007-04-09  Eric Blake  <ebb9@byu.net>
3564
3565         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
3566         * modules/stdio (Makefile.am): Support fflush.
3567         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3568         * modules/fflush: New file.
3569         * lib/fflush.c: Likewise.
3570         * m4/fflush.m4: Likewise.
3571         * modules/fflush-tests: New test.
3572         * tests/test-fflush.c: Likewise.
3573         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
3574
3575 2007-04-06  Bruno Haible  <bruno@clisp.org>
3576
3577         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
3578         (VASNPRINTF): Use signbit for faster determination whether to print a
3579         minus sign.
3580         * modules/vasnprintf (Files): Remove lib/float+.h.
3581         * modules/fprintf-posix (Depends-on): Add signbit.
3582         * modules/snprintf-posix (Depends-on): Likewise.
3583         * modules/sprintf-posix (Depends-on): Likewise.
3584         * modules/vasnprintf-posix (Depends-on): Likewise.
3585         * modules/vasprintf-posix (Depends-on): Likewise.
3586         * modules/vfprintf-posix (Depends-on): Likewise.
3587         * modules/vsnprintf-posix (Depends-on): Likewise.
3588         * modules/vsprintf-posix (Depends-on): Likewise.
3589
3590 2007-04-06  Bruno Haible  <bruno@clisp.org>
3591
3592         * tests/test-frexp.c (main): Test also the sign bit of zero results.
3593         * tests/test-frexpl.c (main): Likewise.
3594         * tests/test-ldexpl.c (main): Likewise.
3595         * modules/frexp-tests (Depends-on): Add signbit.
3596         * modules/frexpl-tests (Depdends-on): Likewise.
3597         * modules/ldexpl-tests (Depdends-on): Likewise.
3598
3599 2007-04-06  Bruno Haible  <bruno@clisp.org>
3600
3601         * modules/signbit-tests: New file.
3602         * tests/test-signbit.c: New file.
3603
3604         * modules/signbit: New file.
3605         * lib/signbitf.c: New file.
3606         * lib/signbitd.c: New file.
3607         * lib/signbitl.c: New file.
3608         * m4/signbit.m4: New file.
3609         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
3610         (signbit): New macro.
3611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
3612         REPLACE_SIGNBIT.
3613         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
3614         REPLACE_FREXPL into math.h.
3615
3616 2007-04-06  Bruno Haible  <bruno@clisp.org>
3617
3618         * modules/isnanf-nolibm-tests: New file.
3619         * tests/test-isnanf.c: New file.
3620
3621         * modules/isnanf-nolibm: New file.
3622         * lib/isnanf.h: New file.
3623         * lib/isnanf.c: New file.
3624         * lib/isnan.c: Consider the USE_FLOAT macro.
3625         * m4/isnanf.m4: New file.
3626
3627 2007-04-06  Bruno Haible  <bruno@clisp.org>
3628
3629         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
3630         (Link): New section.
3631
3632         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
3633
3634 2007-04-06  Bruno Haible  <bruno@clisp.org>
3635
3636         Assume the 'long double' type.
3637         * m4/longdouble.m4: Remove file.
3638         * config/srclist.txt: Don't mention longdouble.m4.
3639         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
3640         * lib/float+.h: Likewise.
3641         * lib/frexp.c: Likewise.
3642         * lib/printf-args.h: Likewise.
3643         * lib/printf-args.c: Likewise.
3644         * lib/printf-frexp.c: Likewise.
3645         * lib/printf-parse.c: Likewise.
3646         * lib/vasnprintf.c: Likewise.
3647         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
3648         * m4/intl.m4: Likewise.
3649         * m4/isnanl.m4: Likewise.
3650         * m4/printf.m4: Likewise.
3651         * m4/printf-frexpl.m4: Likewise.
3652         * m4/vasnprintf.m4: Likewise.
3653         * modules/allocsa (Files): Remove m4/longdouble.m4.
3654         * modules/gettext (Files): Likewise.
3655         * modules/relocatable-prog-wrapper (Files): Likewise.
3656         * modules/vasnprintf (Files): Likewise.
3657         * modules/isnanl (Files): Likewise.
3658         (Include): Simplify.
3659         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
3660         (Include): Simplify.
3661         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
3662         (Include): Simplify.
3663         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
3664         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3665         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
3666         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3667         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
3668         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3669         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
3670         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3671         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
3672         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3673         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
3674         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3675         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
3676         * tests/test-isnanl.c: Likewise.
3677         * tests/test-snprintf-posix.h: Likewise.
3678         * tests/test-sprintf-posix.h: Likewise.
3679         * tests/test-vasnprintf-posix.c: Likewise.
3680         * tests/test-vasnprintf-posix2.c: Likewise.
3681         * tests/test-vasprintf-posix.c: Likewise.
3682
3683 2007-04-06  Bruno Haible  <bruno@clisp.org>
3684
3685         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
3686         * lib/math_.h [__DECC]: Include the overridden include file through
3687         #include_next, outside the double-inclusion guard.
3688         * lib/stdio_.h [__DECC]: Likewise.
3689         * lib/stdlib_.h [__DECC]: Likewise.
3690         * lib/string_.h [__DECC]: Likewise.
3691         * lib/time_.h [__DECC]: Likewise.
3692         * lib/wchar_.h [__DECC]: Likewise.
3693         * lib/wctype_.h [__DECC]: Likewise.
3694         * lib/inttypes_.h [__DECC]: Likewise.
3695         Reported by Albert Chin <china@thewrittenword.com> in
3696         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
3697
3698 2007-04-04  Eric Blake  <ebb9@byu.net>
3699
3700         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
3701         1.5.x.
3702
3703 2007-04-04  Bruno Haible  <bruno@clisp.org>
3704
3705         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
3706         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
3707
3708 2007-04-04  Bruno Haible  <bruno@clisp.org>
3709
3710         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
3711         results for "%010a" of Infinity and NaN.
3712         * tests/test-vasprintf-posix.c (test_function): Likewise.
3713         * tests/test-snprintf-posix.h (test_function): Likewise.
3714         * tests/test-sprintf-posix.h (test_function): Likewise.
3715         * tests/test-fprintf-posix.h (test_function): Remove these tests.
3716         * tests/test-printf-posix.h (test_function): Likewise.
3717         * tests/test-fprintf-posix.out: Update.
3718         Needed for FreeBSD 6.1.
3719
3720 2007-04-04  Bruno Haible  <bruno@clisp.org>
3721
3722         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
3723         directly used by the gnulib modules nor by gnulib-tool.
3724
3725 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
3726
3727         * DEPENDENCIES: Give overall description of version dependency
3728         desirability.  Use more-typical names for apps.
3729         Add shell, coreutils, diffutils, grep, tar, gzip.
3730
3731 2007-04-04  Simon Josefsson  <simon@josefsson.org>
3732
3733         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
3734
3735 2007-04-04  Karl Berry  <karl@gnu.org>
3736
3737         * MODULES.html.sh (func_module): missing '.
3738
3739 2007-04-03  Bruno Haible  <bruno@clisp.org>
3740
3741         * modules/argmatch-tests (Makefile.am): New variable
3742         test_argmatch_LDADD.
3743         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
3744         * modules/array-list-tests (Makefile.am): New variable
3745         test_array_list_LDADD.
3746         * modules/array-oset-tests (Makefile.am): New variable
3747         test_array_oset_LDADD.
3748         * modules/avltree-list-tests (Makefile.am): New variable
3749         test_avltree_list_LDADD.
3750         * modules/avltree-oset-tests (Makefile.am): New variable
3751         test_avltree_oset_LDADD.
3752         * modules/avltreehash-list-tests (Makefile.am): New variable
3753         test_avltreehash_list_LDADD.
3754         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
3755         test_canonicalize_lgpl_LDADD.
3756         * modules/carray-list-tests (Makefile.am): New variable
3757         test_carray_list_LDADD.
3758         * modules/dirname-tests (Makefile.am): New variable
3759         test_dirname_LDADD.
3760         * modules/linked-list-tests (Makefile.am): New variable
3761         test_linked_list_LDADD.
3762         * modules/linkedhash-list-tests (Makefile.am): New variable
3763         test_linkedhash_list_LDADD.
3764         * modules/rbtree-list-tests (Makefile.am): New variable
3765         test_rbtree_list_LDADD.
3766         * modules/rbtree-oset-tests (Makefile.am): New variable
3767         test_rbtree_oset_LDADD.
3768         * modules/rbtreehash-list-tests (Makefile.am): New variable
3769         test_rbtreehash_list_LDADD.
3770         * modules/xvasprintf-tests (Makefile.am): New variable
3771         test_xvasprintf_LDADD.
3772         Reported by Eric Blake.
3773
3774 2007-04-03  Eric Blake  <ebb9@byu.net>
3775
3776         * DEPENDENCIES: Weaken m4 requirements.
3777
3778 2007-04-03  Bruno Haible  <bruno@clisp.org>
3779
3780         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
3781         * modules/isnanl-tests (configure.ac): Likewise.
3782
3783 2007-04-03  Ben Pfaff  <blp@gnu.org>
3784
3785         * modules/iconv_open: Add $(srcdir)/ to source directory
3786         references in Makefile fragments that call gperf, to fix VPATH
3787         builds.
3788
3789 2007-04-03  Bruno Haible  <bruno@clisp.org>
3790
3791         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
3792         * lib/ldexpl.c: Undo last change.
3793
3794 2007-04-03  Bruno Haible  <bruno@clisp.org>
3795
3796         * modules/printf-frexpl (Depends-on): Undo last change.
3797         (Files): Add m4/ldexpl.m4.
3798
3799 2007-04-03  Bruno Haible  <bruno@clisp.org>
3800
3801         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
3802         * modules/isnanl (Link): New section.
3803
3804         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
3805         * modules/frexp (Link): New section.
3806
3807         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
3808         * modules/frexpl (Link): New section.
3809
3810         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
3811         * modules/ldexpl (Link): New section.
3812
3813 2007-04-03  Bruno Haible  <bruno@clisp.org>
3814
3815         * modules/TEMPLATE-EXTENDED: New file.
3816         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
3817
3818 2007-04-03  Bruno Haible  <bruno@clisp.org>
3819
3820         * DEPENDENCIES: New file.
3821         Suggested by Simon Josefsson.
3822
3823 2007-04-03  Bruno Haible  <bruno@clisp.org>
3824
3825         * doc/gnulib.texi: Escape @.
3826
3827 2007-04-03  James Youngman  <jay@gnu.org>
3828         and Paul Eggert  <eggert@cs.ucla.edu>
3829
3830         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
3831         birthtime on all systems that have birthtime, not just those which
3832         use st_birthtimensec rather than st_birthtim.  Putting zero in
3833         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
3834         that the birth time is not available for files on an NFS mount.
3835
3836 2007-04-03  Simon Josefsson  <simon@josefsson.org>
3837
3838         * modules/memxor: Move back from crypto/, suggested by Bruno.
3839         * modules/crypto/hmac-sha1: Fix memxor dependency.
3840
3841         * modules/crypto/gc: Moved from ../.
3842
3843 2007-04-02  Eric Blake  <ebb9@byu.net>
3844
3845         * lib/ldexpl.c (includes): Avoid libm.
3846
3847         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
3848
3849 2007-04-02  Bruno Haible  <bruno@clisp.org>
3850
3851         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
3852         on IRIX.
3853
3854 2007-04-02  Bruno Haible  <bruno@clisp.org>
3855
3856         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
3857         x86 or x86_64 platforms running MacOS X.
3858         Reported by Ryan Schmidt <@ryandesign.com>.
3859
3860 2007-04-02  Bruno Haible  <bruno@clisp.org>
3861
3862         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
3863         i386.
3864
3865 2007-04-01  Simon Josefsson  <simon@josefsson.org>
3866
3867         * modules/crypto/arcfour: Moved from ../.
3868         * modules/crypto/arcfour-tests: Moved from ../.
3869         * modules/crypto/arctwo: Moved from ../.
3870         * modules/crypto/arctwo-tests: Moved from ../.
3871         * modules/crypto/des: Moved from ../.
3872         * modules/crypto/des-tests: Moved from ../.
3873         * modules/crypto/gc-arcfour: Moved from ../.
3874         * modules/crypto/gc-arcfour-tests: Moved from ../.
3875         * modules/crypto/gc-arctwo: Moved from ../.
3876         * modules/crypto/gc-arctwo-tests: Moved from ../.
3877         * modules/crypto/gc-des: Moved from ../.
3878         * modules/crypto/gc-des-tests: Moved from ../.
3879         * modules/crypto/gc-hmac-md5: Moved from ../.
3880         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
3881         * modules/crypto/gc-hmac-sha1: Moved from ../.
3882         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
3883         * modules/crypto/gc-md2: Moved from ../.
3884         * modules/crypto/gc-md2-tests: Moved from ../.
3885         * modules/crypto/gc-md4: Moved from ../.
3886         * modules/crypto/gc-md4-tests: Moved from ../.
3887         * modules/crypto/gc-md5: Moved from ../.
3888         * modules/crypto/gc-md5-tests: Moved from ../.
3889         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
3890         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
3891         * modules/crypto/gc-random: Moved from ../.
3892         * modules/crypto/gc-rijndael: Moved from ../.
3893         * modules/crypto/gc-rijndael-tests: Moved from ../.
3894         * modules/crypto/gc-sha1: Moved from ../.
3895         * modules/crypto/gc-sha1-tests: Moved from ../.
3896         * modules/crypto/gc-tests: Moved from ../.
3897         * modules/crypto/hmac-md5: Moved from ../.
3898         * modules/crypto/hmac-md5-tests: Moved from ../.
3899         * modules/crypto/hmac-sha1: Moved from ../.
3900         * modules/crypto/hmac-sha1-tests: Moved from ../.
3901         * modules/crypto/md2: Moved from ../.
3902         * modules/crypto/md2-tests: Moved from ../.
3903         * modules/crypto/md4: Moved from ../.
3904         * modules/crypto/md4-tests: Moved from ../.
3905         * modules/crypto/md5: Moved from ../.
3906         * modules/crypto/md5-tests: Moved from ../.
3907         * modules/crypto/memxor: Moved from ../.
3908         * modules/crypto/rijndael: Moved from ../.
3909         * modules/crypto/rijndael-tests: Moved from ../.
3910         * modules/crypto/sha1: Moved from ../.
3911
3912 2007-03-30  James Youngman  <jay@gnu.org>
3913
3914         * tests/test-stat-time.c (prepare_test): use chmod() rather than
3915         rename() to change the ctime of a file (because ctime is unaffected
3916         by rename on jfs2 on AIX 5.1).
3917         (main): Start by doing cleanup, in case a previous run failed leaving
3918         test files behind.
3919
3920 2007-03-31  Bruno Haible  <bruno@clisp.org>
3921
3922         Support old proprietary implementations of iconv.
3923         * modules/iconv_open: New file.
3924         * lib/iconv_.h: New file.
3925         * m4/iconv_h.m4: New file.
3926         * lib/iconv_open.c: New file.
3927         * lib/iconv_open-aix.gperf: New file.
3928         * lib/iconv_open-hpux.gperf: New file.
3929         * lib/iconv_open-irix.gperf: New file.
3930         * lib/iconv_open-osf.gperf: New file.
3931         * m4/iconv_open.m4: New file.
3932         * modules/linebreak (Depends-on): Add iconv_open.
3933         * modules/striconv (Depends-on): Likewise.
3934         * modules/striconveh (Depends-on): Likewise.
3935         * modules/unicodeio (Depends-on): Likewise.
3936         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
3937         (iconv_t)(-1).
3938         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
3939         conversion if cd is (iconv_t)(-1).
3940         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
3941         is not possible.
3942
3943 2007-03-31  Bruno Haible  <bruno@clisp.org>
3944
3945         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
3946         work on Solaris either. Protect also second use of "autodetect_jp".
3947
3948 2007-03-31  Bruno Haible  <bruno@clisp.org>
3949
3950         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
3951         the function is not present.
3952
3953 2007-03-31  Bruno Haible  <bruno@clisp.org>
3954
3955         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
3956         the function is not present.
3957
3958 2007-03-31  Bruno Haible  <bruno@clisp.org>
3959
3960         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
3961         a bug in HP-UX iconv_open().
3962
3963 2007-03-31  Bruno Haible  <bruno@clisp.org>
3964
3965         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
3966         (Mathematics <math.h>): New section, add fpieee.
3967         (Input/output <stdio.h>): Add fseterr.
3968         (Mathematics <math.h>): New section, add printf-frexp.
3969         (Container data structures): Add sublist.
3970         (Core language properties): Add fpucw, inline.
3971         (Functions for greatest-width integer types <inttypes.h>): Add
3972         imaxabs, imaxdiv, inttypes.
3973         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
3974         isnanl-nolibm, ldexp.
3975         (Mathematics <math.h>): New section, add printf-frexpl.
3976         (Support for systems lacking POSIX:2001): Add fprintf-posix,
3977         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
3978         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
3979         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
3980         (Unicode string functions): Add unistr/u*-mbtoucr.
3981         (Java): Add javacomp-script, javaexec-script.
3982         (C#): Add csharpcomp-script, csharpexec-script.
3983         (Support for building libraries and executables): Add havelib,
3984         relocatable-*.
3985         (Support for maintaining and releasing projects): Renamed from
3986         'Support for maintaining and release projects'. Add announce-gen.
3987
3988 2007-03-31  Bruno Haible  <bruno@clisp.org>
3989
3990         * README: Talk primarily about git.
3991         (git and CVS): Renamed from CVS.
3992         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
3993         gnulib is available through git.
3994         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
3995
3996 2007-03-30  Bruno Haible  <bruno@clisp.org>
3997
3998         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
3999         * lib/poll_.h: Likewise.
4000         * lib/stat_.h: Likewise.
4001         * lib/sys_time_.h: Likewise.
4002         * lib/sysexit_.h: Likewise.
4003         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
4004         * lib/stdbool_.h: Likewise.
4005         * lib/byteswap_.h: Add double-inclusion guard.
4006
4007 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
4008
4009         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
4010
4011 2007-03-30  Karl Berry  <karl@gnu.org>
4012
4013         * config/srclist-update: double space after USA in the license
4014         substitution, since that's how it's usually (?) written.
4015
4016 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4017
4018         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
4019         reported by Bruno Haible.
4020
4021 2007-03-29  Bruno Haible  <bruno@clisp.org>
4022
4023         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
4024         a bug in AIX iconv().
4025
4026 2007-03-29  Bruno Haible  <bruno@clisp.org>
4027
4028         * modules/ldexpl-tests: New file.
4029         * tests/test-ldexpl.c: New file.
4030
4031 2007-03-29  Bruno Haible  <bruno@clisp.org>
4032
4033         * lib/ldexpl.c: Include fpucw.h.
4034         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
4035         multiplication.
4036         * modules/ldexpl (Depends-on): Add fpucw.
4037
4038 2007-03-29  Bruno Haible  <bruno@clisp.org>
4039
4040         * modules/ldexpl: New file.
4041         * m4/ldexpl.m4: New file.
4042         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
4043         set.
4044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
4045         REPLACE_LDEXPL.
4046         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
4047         REPLACE_LDEXPL.
4048         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
4049         gl_FUNC_LDEXPL_WORKS.
4050         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
4051         * modules/mathl (Files): Remove lib/ldexpl.c.
4052         (Depends-on): Add ldexpl.
4053
4054 2007-03-29  Bruno Haible  <bruno@clisp.org>
4055
4056         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
4057
4058 2007-03-29  Bruno Haible  <bruno@clisp.org>
4059
4060         * tests/test-striconveh.c (main): Don't assume that a direct conversion
4061         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
4062         and possibly also HP-UX.
4063         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
4064         work on AIX, IRIX, HP-UX, OSF/1.
4065         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
4066         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
4067         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
4068         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
4069         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
4070         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
4071
4072 2007-03-29  Bruno Haible  <bruno@clisp.org>
4073
4074         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
4075
4076 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
4077
4078         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
4079         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
4080
4081 2007-03-29  Eric Blake  <ebb9@byu.net>
4082
4083         * lib/acl-internal.h: Remove redundant include.
4084         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
4085         Cygwin when a file is locked.
4086
4087 2007-03-29  Bruno Haible  <bruno@clisp.org>
4088
4089         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
4090         file.
4091         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
4092
4093 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
4094
4095         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
4096         try to remove a parent directory if the child couldn't be removed
4097         (except for the first rmdir, which could fail because the child
4098         doesn't exist).  Problem reported by Jeff Blaine in
4099         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
4100
4101 2007-03-28  Bruno Haible  <bruno@clisp.org>
4102
4103         * lib/striconveh.c (utf8conv_carefully): New function.
4104         (mem_cd_iconveh_internal): Invoke it.
4105
4106 2007-03-28  Bruno Haible  <bruno@clisp.org>
4107
4108         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
4109         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
4110         input.
4111         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
4112         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
4113         unistr/u8-uctomb.
4114
4115 2007-03-28  Bruno Haible  <bruno@clisp.org>
4116
4117         * modules/unistr/u8-mbtoucr: New file.
4118         * lib/unistr/u8-mbtoucr.c: New file.
4119         * modules/unistr/u16-mbtoucr: New file.
4120         * lib/unistr/u16-mbtoucr.c: New file.
4121         * modules/unistr/u16-mbtoucr: New file.
4122         * lib/unistr/u16-mbtoucr.c: New file.
4123         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
4124
4125 2007-03-27  Simon Josefsson  <simon@josefsson.org>
4126             Bruno Haible  <bruno@clisp.org>
4127
4128         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
4129         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
4130         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
4131
4132         * m4/stdio_h.m4: Add stubs for vasprintf too.
4133
4134         * modules/stdio: Support vasprintf in sed command.
4135
4136         * modules/vasprintf: Depend on stdio for prototypes.  Remove
4137         vasprintf.h.  Add stdio module indicator.
4138
4139         * lib/stdio_.h: Declare asprintf and vasprintf, based on
4140         vasprintf.h.
4141
4142         * lib/vasprintf.h: File removed.
4143
4144         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
4145         * lib/vasprintf.c: Ditto.
4146         * lib/xvasprintf.c: Ditto.
4147         * tests/test-vasprintf-posix.c: Ditto.
4148         * tests/test-vasprintf.c: Ditto.
4149
4150 2007-03-27  Bruno Haible  <bruno@clisp.org>
4151
4152         Make vasnprintf multithread-safe.
4153         * lib/vasnprintf.c (decimal_point_char): New function.
4154         (VASNPRINTF): Use it.
4155         Suggested by Simon Josefsson.
4156
4157 2007-03-27  Eric Blake  <ebb9@byu.net>
4158
4159         Support sub-second birthtime on cygwin.
4160         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
4161         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
4162         (get_stat_birthtime): Also work with st_birthtim.
4163
4164 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
4165
4166         * lib/stat-time.h (USE_BIRTHTIME): Remove.
4167         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
4168         (get_stat_birthtime_ns): Do not try to use "spare" fields.
4169         (get_stat_birthtime_ns): Simplify compile-time tests.
4170         (get_stat_birthtime): Change the API to look like
4171         get_stat_mtime etc., except return a negative tv_nsec on error.
4172         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
4173         Don't check for "spare" fields.
4174         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
4175         or for struct stat.st_birthtime, as these tests aren't used.
4176         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
4177
4178 2007-03-27  Bruno Haible  <bruno@clisp.org>
4179
4180         * lib/stat-time.h: Include <sys/stat.h>.
4181
4182 2007-03-27  James Youngman  <jay@gnu.org>
4183
4184         * lib/stat-time.h (get_stat_birthtime): New function for
4185           retrieving st_birthtime as provided by UFS2 (hence *BSD).
4186         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
4187           and its variants.
4188         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
4189         * modules/stat-time-test: New file.
4190         * tests/test-stat-time.c: New test, devised by Bruno Haible.
4191
4192 2007-03-26  Bruno Haible  <bruno@clisp.org>
4193
4194         Better support of signalling NaNs.
4195         * lib/atanl.c: Include isnanl.h.
4196         (atanl): Perform test for NaN at the beginning of the function and
4197         through a call to isnanl.
4198         * lib/cosl.c: Include isnanl.h.
4199         (cosl): Perform test for NaN at the beginning of the function and
4200         through a call to isnanl.
4201         * lib/ldexpl.c: Include isnanl.h.
4202         (ldexpl): Perform test for NaN through a call to isnanl.
4203         * lib/logl.c: Include isnanl.h.
4204         (logl): Perform test for NaN at the beginning of the function and
4205         through a call to isnanl.
4206         * lib/sinl.c: Include isnanl.h.
4207         (sinl): Perform test for NaN at the beginning of the function and
4208         through a call to isnanl.
4209         * lib/sqrtl.c: Include isnanl.h.
4210         (sqrtl): Perform test for NaN at the beginning of the function and
4211         through a call to isnanl.
4212         * lib/tanl.c: Include isnanl.h.
4213         (tanl): Perform test for NaN at the beginning of the function and
4214         through a call to isnanl.
4215         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
4216         * modules/mathl (Depends-on): Add isnanl.
4217
4218 2007-03-26  Eric Blake  <ebb9@byu.net>
4219
4220         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
4221         regression in logic sense of previous patch.
4222
4223 2007-03-26  Bruno Haible  <bruno@clisp.org>
4224
4225         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
4226         unportable shell command "if ! ...".
4227         Reported by Ralf Wildenhues.
4228
4229 2007-03-25  Bruno Haible  <bruno@clisp.org>
4230
4231         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
4232         <sysexits.h> file, and only add EX_CONFIG.
4233         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
4234         absolute file name and whether it is sufficient. Substitute also
4235         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
4236         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
4237         ABSOLUTE_SYSEXITS_H into sysexits.h.
4238
4239 2007-03-25  Bruno Haible  <bruno@clisp.org>
4240
4241         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
4242         hints is NULL.
4243
4244 2007-03-25  Bruno Haible  <bruno@clisp.org>
4245
4246         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
4247         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
4248
4249 2007-03-25  Bruno Haible  <bruno@clisp.org>
4250
4251         * lib/vasnprintf.c: Include langinfo.h.
4252         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
4253         multithread-safe.
4254         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
4255         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
4256         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4257         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4258         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4259         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4260         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4261         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
4262         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4263         Reported by Simon Josefsson.
4264
4265 2007-03-25  Bruno Haible  <bruno@clisp.org>
4266
4267         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
4268         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
4269         * modules/vasnprintf (Depends-on): Add stdint.
4270
4271 2007-03-25  Bruno Haible  <bruno@clisp.org>
4272
4273         * modules/fpieee: New file.
4274         * m4/fpieee.m4: New file.
4275         * modules/isnan-nolibm (Depends-on): Add fpieee.
4276         * modules/isnanl-nolibm (Depends-on): Add fpieee.
4277         * modules/isnanl (Depends-on): Add fpieee.
4278
4279 2007-03-25  Bruno Haible  <bruno@clisp.org>
4280
4281         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
4282
4283 2007-03-25  Bruno Haible  <bruno@clisp.org>
4284
4285         Avoid test failures on IRIX 6.5.
4286         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
4287         (main): Use it.
4288         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
4289         macros.
4290         (main): Use them.
4291
4292 2007-03-25  Bruno Haible  <bruno@clisp.org>
4293
4294         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
4295         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
4296         exists but doesn't work.
4297         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
4298         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
4299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
4300         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
4301
4302 2007-03-25  Bruno Haible  <bruno@clisp.org>
4303
4304         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
4305         returns inf. Needed on IRIX 6.5.
4306
4307 2007-03-25  Bruno Haible  <bruno@clisp.org>
4308
4309         * tests/test-frexpl.c: Include isnanl-nolibm.h.
4310         (main): Use isnanl instead of x != x idiom.
4311         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
4312
4313         * tests/test-frexp.c: Include isnan.h.
4314         (main): Use isnan instead of x != x idiom.
4315         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
4316
4317 2007-03-25  Bruno Haible  <bruno@clisp.org>
4318
4319         * tests/test-frexp.c (NaN): New function/macro.
4320         (main): Use it instead of 0.0 / 0.0.
4321         * tests/test-isnan.c (NaN): New function/macro.
4322         (main): Use it instead of 0.0 / 0.0.
4323         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
4324         (test_function): Use it instead of 0.0 / 0.0.
4325         * tests/test-vasprintf-posix.c (NaN): New function/macro.
4326         (test_function): Use it instead of 0.0 / 0.0.
4327         * tests/test-snprintf-posix.h (NaN): New function/macro.
4328         (test_function): Use it instead of 0.0 / 0.0.
4329         * tests/test-sprintf-posix.h (NaN): New function/macro.
4330         (test_function): Use it instead of 0.0 / 0.0.
4331         * tests/test-fprintf-posix.h (NaN): New function/macro.
4332         (test_function): Use it instead of 0.0 / 0.0.
4333         * tests/test-printf-posix.h (NaN): New function/macro.
4334         (test_function): Use it instead of 0.0 / 0.0.
4335
4336         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
4337
4338 2007-03-25  Bruno Haible  <bruno@clisp.org>
4339
4340         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
4341
4342 2007-03-25  Bruno Haible  <bruno@clisp.org>
4343
4344         * lib/regexec.c (merge_state_with_log): Make static.
4345
4346 2007-03-25  Bruno Haible  <bruno@clisp.org>
4347
4348         * lib/trigl.c (kernel_rem_pio2): Make static.
4349
4350 2007-03-25  Bruno Haible  <bruno@clisp.org>
4351
4352         * lib/sincosl.c (sincosl_table): Make static.
4353
4354 2007-03-25  Bruno Haible  <bruno@clisp.org>
4355
4356         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
4357         if the compiler does not support C99.
4358
4359 2007-03-25  Bruno Haible  <bruno@clisp.org>
4360
4361         * modules/time (Makefile.am): Ensure all rule action lines start with a
4362         tab.
4363
4364 2007-03-24  Bruno Haible  <bruno@clisp.org>
4365
4366         * modules/tsearch-tests: New file.
4367         * tests/test-tsearch.sh: New file.
4368         * tests/test-tsearch.c: New file, mostly copied from glibc.
4369
4370         * modules/search-tests: New file.
4371         * tests/test-search.c: New file.
4372
4373         * modules/search: New file.
4374         * lib/search_.h: New file, incorporating lib/tsearch.h.
4375         * m4/search_h.m4: New file.
4376         * lib/tsearch.h: Remove file.
4377         * lib/tsearch.c: Include search.h instead of tsearch.h.
4378         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
4379         HAVE_TSEARCH.
4380         * modules/tsearch (Files): Remove lib/tsearch.h.
4381         (Depends-on): Add search.
4382         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
4383         (Include): Change tsearch.h into search.h.
4384
4385 2007-03-24  Bruno Haible  <bruno@clisp.org>
4386
4387         * modules/fpucw: New file.
4388         * lib/fpucw.h: New file.
4389         * lib/frexp.c: Include fpucw.h.
4390         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
4391         (FUNC): Use them.
4392         * lib/printf-frexp.c: Include fpucw.h.
4393         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
4394         (FUNC): Use them.
4395         * lib/vasnprintf.c: Include fpucw.h.
4396         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
4397         'long double' calculations.
4398         * tests/test-frexpl.c: Include fpucw.h.
4399         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
4400         * tests/test-printf-frexpl.c: Include fpucw.h.
4401         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
4402         * modules/frexpl (Depends-on): Add fpucw.
4403         * modules/printf-frexpl (Depends-on): Likewise.
4404         * modules/fprintf-posix (Depends-on): Likewise.
4405         * modules/snprintf-posix (Depends-on): Likewise.
4406         * modules/sprintf-posix (Depends-on): Likewise.
4407         * modules/vasnprintf-posix (Depends-on): Likewise.
4408         * modules/vasprintf-posix (Depends-on): Likewise.
4409         * modules/vfprintf-posix (Depends-on): Likewise.
4410         * modules/vsnprintf-posix (Depends-on): Likewise.
4411         * modules/vsprintf-posix (Depends-on): Likewise.
4412         * modules/frexpl-tests (Depends-on): Likewise.
4413         * modules/printf-frexpl-tests (Depends-on): Likewise.
4414
4415 2007-03-24  Bruno Haible  <bruno@clisp.org>
4416
4417         * lib/float+.h: New file.
4418         * lib/isnan.c: Include float+.h.
4419         (SIZE): New macro.
4420         (FUNC): Compare only SIZE bytes of the value.
4421         * lib/vasnprintf.c: Include float+.h.
4422         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
4423         SIZEOF_LDBL or SIZEOF_DBL bytes.
4424         * modules/isnan-nolibm (Files): Add lib/float+.h.
4425         * modules/isnanl-nolibm (Files): Add lib/float+.h.
4426         * modules/isnanl (Files): Add lib/float+.h.
4427         * modules/vasnprintf (Files): Add lib/float+.h.
4428
4429 2007-03-24  Bruno Haible  <bruno@clisp.org>
4430
4431         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
4432         include isnanl-nolibm.h.
4433
4434 2007-03-24  Bruno Haible  <bruno@clisp.org>
4435
4436         * tests/test-read-file.c (main): Don't produce spurious output for
4437         expected situations. Make the test fail if it encountered unexpected
4438         results.
4439
4440 2007-03-24  Bruno Haible  <bruno@clisp.org>
4441
4442         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
4443         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
4444
4445 2007-03-24  Bruno Haible  <bruno@clisp.org>
4446
4447         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
4448
4449 2007-03-24  Bruno Haible  <bruno@clisp.org>
4450
4451         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
4452         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
4453
4454         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
4455         * modules/utf8-ucs4: Turn into a symbolic link to module
4456         unistr/u8-mbtouc.
4457
4458         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
4459         utf8-ucs4-unsafe.
4460         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
4461         unistr/u8-mbtouc-unsafe.
4462
4463         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
4464         * modules/utf16-ucs4: Turn into a symbolic link to module
4465         unistr/u16-mbtouc.
4466
4467         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
4468         utf16-ucs4-unsafe.
4469         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
4470         unistr/u16-mbtouc-unsafe.
4471
4472         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
4473         * modules/ucs4-utf8: Turn into a symbolic link to module
4474         unistr/u8-ubtomb.
4475
4476         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
4477         * modules/ucs4-utf16: Turn into a symbolic link to module
4478         unistr/u16-ubtomb.
4479
4480 2007-03-24  Bruno Haible  <bruno@clisp.org>
4481
4482         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
4483         Enable the function only if HAVE_INLINE.
4484         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
4485         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
4486         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
4487         Enable the function only if HAVE_INLINE.
4488         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
4489         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
4490         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
4491         Enable the function only if HAVE_INLINE.
4492         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
4493         Enable the function only if HAVE_INLINE.
4494         * modules/utf8-ucs4: Update.
4495         * modules/utf8-ucs4-unsafe: Update.
4496         * modules/utf16-ucs4: Update.
4497         * modules/utf16-ucs4-unsafe: Update.
4498         * modules/ucs4-utf8: Update.
4499         * modules/ucs4-utf16: Update.
4500
4501 2007-03-24  Bruno Haible  <bruno@clisp.org>
4502
4503         * lib/utf8-ucs4.h: Remove file.
4504         * lib/utf8-ucs4-unsafe.h: Remove file.
4505         * lib/utf16-ucs4.h: Remove file.
4506         * lib/utf16-ucs4-unsafe.h: Remove file.
4507         * lib/ucs4-utf8.h: Remove file.
4508         * lib/ucs4-utf16.h: Remove file.
4509         * lib/unistr.h: Include their previous contents.
4510         * m4/utf-ucs4.m4: Remove file.
4511         * m4/ucs4-utf.m4: Remove file.
4512         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
4513         (Depends-on): Add unistr/base.
4514         (configure.ac): Remove gl_UTF_UCS4.
4515         (Makefile.am): Update.
4516         (Include): Change to unistr.h.
4517         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
4518         (Depends-on): Add unistr/base.
4519         (configure.ac): Remove gl_UTF_UCS4.
4520         (Makefile.am): Update.
4521         (Include): Change to unistr.h.
4522         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
4523         (Depends-on): Add unistr/base.
4524         (configure.ac): Remove gl_UTF_UCS4.
4525         (Makefile.am): Update.
4526         (Include): Change to unistr.h.
4527         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
4528         (Depends-on): Add unistr/base.
4529         (configure.ac): Remove gl_UTF_UCS4.
4530         (Makefile.am): Update.
4531         (Include): Change to unistr.h.
4532         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
4533         (Depends-on): Add unistr/base.
4534         (configure.ac): Remove gl_UCS4_UTF.
4535         (Makefile.am): Update.
4536         (Include): Change to unistr.h.
4537         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
4538         (Depends-on): Add unistr/base.
4539         (configure.ac): Remove gl_UCS4_UTF.
4540         (Makefile.am): Update.
4541         (Include): Change to unistr.h.
4542         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
4543         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
4544         utf8-ucs4-unsafe.h.
4545         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
4546         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
4547         utf16-ucs4-unsafe.h.
4548         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
4549         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
4550         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
4551         * lib/unistr/u8-strchr.c: Likewise.
4552         * lib/unistr/u8-strrchr.c: Likewise.
4553         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
4554         * lib/unistr/u16-strchr.c: Likewise.
4555         * lib/unistr/u16-strrchr.c: Likewise.
4556         * lib/striconveh.c: Update.
4557         * lib/linebreak.c: Update.
4558
4559 2007-03-24  Bruno Haible  <bruno@clisp.org>
4560
4561         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
4562         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
4563
4564 2007-03-22  Bruno Haible  <bruno@clisp.org>
4565
4566         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
4567
4568 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
4569
4570         * MODULES.html.sh (File system functions): New module write-any-file.
4571         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
4572         * m4/write-any-file.m4: New files.
4573
4574 2007-03-23  Eric Blake  <ebb9@byu.net>
4575
4576         * gnulib-tool: Rearrange space-tab sequences, since some editors
4577         like to eat them.
4578
4579 2007-03-23  Eric Blake  <ebb9@byu.net>
4580
4581         * lib/version-etc.c (version_etc_va): Update license wording to
4582         be more concise.  Recommended by Richard Stallman.
4583
4584 2007-03-22  Bruno Haible  <bruno@clisp.org>
4585
4586         * lib/poll.c (MSG_PEEK): New fallback definition.
4587
4588 2007-03-22  Bruno Haible  <bruno@clisp.org>
4589
4590         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
4591         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
4592         (main): Update.
4593         Fixes a compilation error on BeOS.
4594
4595 2007-03-22  Bruno Haible  <bruno@clisp.org>
4596
4597         * modules/frexpl-tests: New file.
4598         * tests/test-frexpl.c: New file.
4599
4600         * modules/frexpl: New file.
4601         * m4/frexpl.m4: New file.
4602         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
4603         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
4604         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
4605         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
4606         (Depends-on): Add frexpl. Remove isnanl-nolibm.
4607         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
4608
4609 2007-03-22  Bruno Haible  <bruno@clisp.org>
4610
4611         * lib/frexpl.c: Share code with lib/frexp.c.
4612         * modules/mathl (Files): Add lib/frexp.c.
4613         (Depends-on): Add isnanl-nolibm.
4614
4615 2007-03-22  Bruno Haible  <bruno@clisp.org>
4616
4617         * modules/printf-frexp (Files): Add m4/frexp.m4.
4618         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
4619         only if the found frexp function actually works.
4620
4621 2007-03-22  Bruno Haible  <bruno@clisp.org>
4622
4623         * lib/frexp.c: Remove older implementation that uses divisions.
4624
4625 2007-03-21  Bruno Haible  <bruno@clisp.org>
4626
4627         * modules/frexp-tests: New file.
4628         * tests/test-frexp.c: New file.
4629
4630         * modules/frexp: New file.
4631         * lib/frexp.c: New file.
4632         * m4/frexp.m4: New file.
4633         * lib/math_.h (frexp): New declaration.
4634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
4635         REPLACE_FREXP.
4636         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
4637
4638 2007-03-21  Bruno Haible  <bruno@clisp.org>
4639
4640         * modules/isnanl-tests: New file.
4641         * tests/test-isnanl.c: New file.
4642
4643         * modules/isnanl: New file.
4644         * lib/isnanl.h: New file.
4645         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
4646         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
4647         gl_FUNC_ISNANL_WORKS.
4648         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
4649         New macros.
4650
4651 2007-03-21  Bruno Haible  <bruno@clisp.org>
4652
4653         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
4654         lib/isnanl.h.
4655         (Include): Update.
4656         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
4657         * lib/vasnprintf.c: Update.
4658         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
4659         tests/test-isnanl.h, remove tests/test-isnanl.c.
4660         (Makefile.am): Update.
4661         * tests/test-isnanl-nolibm.c: New file.
4662         * tests/test-isnanl.h: New file.
4663         * tests/test-isnanl.c: Remove file.
4664
4665 2007-03-21  Jim Meyering  <jim@meyering.net>
4666
4667         When trying to open ".", treat ESTALE like EACCES.
4668         * lib/savewd.c (savewd_save): Resort to forking not just upon
4669         failure with EACCES, but also when errno is ESTALE.
4670
4671 2007-03-20  Bruno Haible  <bruno@clisp.org>
4672
4673         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
4674         Needed on AIX 5.1. Reported by Matthew Woehlke.
4675
4676 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4677
4678         Suggestions by Bruno Haible:
4679         * lib/acl-internal.h: Include "gettext.h" rather than rolling
4680         our own.
4681         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
4682         * modules/acl (Depends-on): Add gettext.
4683
4684 2007-03-19  Bruno Haible  <bruno@clisp.org>
4685
4686         * modules/iconvme: Remove file.
4687         * lib/iconvme.h: Remove file.
4688         * lib/iconvme.c: Remove file.
4689         * m4/iconvme.m4: Remove file.
4690
4691 2007-03-19  Bruno Haible  <bruno@clisp.org>
4692
4693         * doc/relocatable-maint.texi: Break long shell script line.
4694         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
4695
4696 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4697
4698         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
4699         handle file_has_acl.
4700         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
4701         * lib/acl.c: Move header inclusions and related macro defns into
4702         lib/acl-internal.h.
4703         (S_ISLNK): Remove defn, since that's now done for us.
4704         (file_has_acl): Move to lib/file-has-acl.c.
4705         Call acl_trivial if available.  This is the crucial part of the fix.
4706         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
4707         shared within the library.  Rewrite a bit, partly to make it compatible
4708         with the GNU coding style.
4709         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
4710         Remove unnecessary double-quotes.
4711         Don't test for acl_to_text; the build will catch that.
4712         Replace acl_entries if it doesn't exist and it is needed.
4713         Check for -lsec and acl_trivial (as used on Solaris 10).
4714         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
4715         lib/file-has-acl.c.
4716         (Depends-on): Add sys_stat, for S_ISLNK.
4717
4718 2007-03-19  Ben Pfaff  <blp@gnu.org>
4719
4720         * doc/gnulib.texi: Fix typos.
4721         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
4722
4723 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4724
4725         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
4726         If size is zero here, buf must be zero.
4727
4728 2007-03-19  Simon Josefsson  <simon@josefsson.org>
4729
4730         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
4731         <bruno@clisp.org>.
4732
4733 2007-03-18  Bruno Haible  <bruno@clisp.org>
4734
4735         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
4736         Suggested by Eric Blake.
4737
4738 2007-03-18  Ben Pfaff  <blp@gnu.org>
4739
4740         * doc/relocatable.texi: Recommend using as prefix a directory
4741         that does not exist and will never be created.  Based on
4742         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
4743         and others.
4744
4745 2007-03-17  Bruno Haible  <bruno@clisp.org>
4746
4747         * lib/fchownat.c: Include lchown.h.
4748
4749 2007-03-17  Bruno Haible  <bruno@clisp.org>
4750
4751         Fix endless loop when the given allocated size was > INT_MAX.
4752         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
4753         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
4754         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
4755         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
4756         * lib/sprintf.c (sprintf): Likewise.
4757
4758 2007-03-17  Bruno Haible  <bruno@clisp.org>
4759
4760         * tests/test-argp-2.sh (func_compare): Output a context diff.
4761
4762 2007-03-17  Bruno Haible  <bruno@clisp.org>
4763
4764         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
4765         locale's decimal-point character.
4766
4767 2007-03-17  Bruno Haible  <bruno@clisp.org>
4768
4769         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
4770         before comparing it. Needed because on some platforms (e.g. x86) a
4771         'long double' occupies less bytes than sizeof (long double).
4772
4773 2007-03-17  Bruno Haible  <bruno@clisp.org>
4774
4775         * tests/test-crc.c (main): Make printf statements 64-bit clean.
4776         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
4777         * tests/test-getaddrinfo.c (simple): Likewise.
4778         * tests/test-read-file.c (main): Likewise.
4779
4780 2007-03-17  Bruno Haible  <bruno@clisp.org>
4781
4782         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
4783
4784 2007-03-17  Bruno Haible  <bruno@clisp.org>
4785
4786         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
4787         unused variable.
4788
4789 2007-03-17  Bruno Haible  <bruno@clisp.org>
4790
4791         * tests/test-c-strcasecmp.c: Include c-strcase.h.
4792         * tests/test-c-strncasecmp.c: Likewise.
4793
4794 2007-03-17  Bruno Haible  <bruno@clisp.org>
4795
4796         * modules/stdlib (Depends-on): Add unistd.
4797         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
4798         Needed for MacOS X 10.3.
4799
4800 2007-03-17  Bruno Haible  <bruno@clisp.org>
4801
4802         * lib/unistr/u-strdup.h: Include <stdlib.h>.
4803
4804 2007-03-17  Bruno Haible  <bruno@clisp.org>
4805
4806         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
4807
4808 2007-03-17  Bruno Haible  <bruno@clisp.org>
4809
4810         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
4811         to reflect files copied from gnulib (with or without modifications).
4812         Suggested by Jim Meyering.
4813
4814 2007-03-17  Eric Blake  <ebb9@byu.net>
4815
4816         * NEWS: Document stdlib change from 2007-02-18.
4817
4818 2007-03-17  Jim Meyering  <jim@meyering.net>
4819
4820         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
4821         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
4822         someone uses a name containing shell meta-characters.
4823         Reported by Alfred M. Szmidt.
4824
4825         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
4826
4827 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
4828
4829         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
4830         and copy gettext configuration files only if configure.ac contains
4831         a use of AM_GNU_GETTEXT_VERSION.
4832
4833 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
4834
4835         * build-aux/bootstrap (gnulib_name): New variable.
4836         (gnulib_tool_options): Use it.
4837
4838 2007-03-13  Simon Josefsson  <simon@josefsson.org>
4839
4840         * tests/test-des.c: Use new namespace.
4841
4842 2007-03-15  Bruno Haible  <bruno@clisp.org>
4843
4844         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
4845         Reported by James Youngman <jay@gnu.org>.
4846
4847 2007-03-15  Bruno Haible  <bruno@clisp.org>
4848
4849         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
4850         declared prototype. Needed with cc on OSF/1 5.1.
4851
4852 2007-03-15  Bruno Haible  <bruno@clisp.org>
4853
4854         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
4855         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
4856         (struct gl_list_implementation): Add dispose_fn argument to the
4857         'create_empty', 'create' methods.
4858         (struct gl_list_impl_base): Add field 'dispose_fn'.
4859         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
4860         argument.
4861         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
4862         dispose_fn argument.
4863         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
4864         dispose_fn on the dropped values.
4865         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
4866         dispose_fn argument.
4867         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
4868         dropped values.
4869         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
4870         (gl_tree_remove_node): Call dispose_fn on the dropped value.
4871         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
4872         (gl_tree_remove_node): Call dispose_fn on the dropped value.
4873         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
4874         argument.
4875         (gl_tree_list_free): Call dispose_fn on the dropped values.
4876         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
4877         the dropped values.
4878         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
4879         Add dispose_fn argument.
4880         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
4881         Call dispose_fn on the dropped values.
4882         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
4883         Add dispose_fn argument.
4884         (gl_sublist_create): Initialize the 'dispose_fn' field.
4885         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
4886         * tests/test-array_list.c (main): Update.
4887         * tests/test-carray_list.c (main): Update.
4888         * tests/test-avltree_list.c (main): Update.
4889         * tests/test-rbtree_list.c (main): Update.
4890         * tests/test-avltreehash_list.c (main): Update.
4891         * tests/test-rbtreehash_list.c (main): Update.
4892         * tests/test-linked_list.c (main): Update.
4893         * tests/test-linkedhash_list.c (main): Update.
4894         * tests/test-array_oset.c (main): Update.
4895
4896 2007-03-15  Bruno Haible  <bruno@clisp.org>
4897
4898         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
4899         (gl_oset_create_empty): Add dispose_fn argument.
4900         (struct gl_oset_implementation): Add dispose_fn argument to
4901         'create_empty' method.
4902         (struct gl_oset_impl_base): Add dispose_fn field.
4903         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
4904         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
4905         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
4906         values.
4907         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
4908         (gl_tree_oset_free): Call dispose_fn on the dropped values.
4909         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
4910         dropped value.
4911         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
4912         dropped value.
4913         * tests/test-array_oset.c (main): Update.
4914         * tests/test-avltree_oset.c (main): Update.
4915         * tests/test-rbtree_oset.c (main): Update.
4916         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
4917
4918 2007-03-13  Bruno Haible  <bruno@clisp.org>
4919
4920         * tests/test-stdbool.c (i): Update after last patch.
4921
4922 2007-03-12  Bruno Haible  <bruno@clisp.org>
4923
4924         * lib/quotearg.c: Include <wctype.h> early, before the definition of
4925         the iswprint macro. Needed on Solaris 2.5.1.
4926
4927 2007-03-12  Bruno Haible  <bruno@clisp.org>
4928
4929         * tests/test-printf-frexp.c (main): Declare x as volatile.
4930
4931 2007-03-12  Simon Josefsson  <simon@josefsson.org>
4932
4933         * doc/gnulib.texi (Build robot for gnulib): New section.
4934
4935 2007-03-12  Jim Meyering  <jim@meyering.net>
4936
4937         * build-aux/bootstrap: New file.
4938         * build-aux/bootstrap.conf: New file, from coreutils.
4939
4940 2007-03-11  Bruno Haible  <bruno@clisp.org>
4941
4942         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
4943
4944 2007-03-12  Simon Josefsson  <simon@josefsson.org>
4945
4946         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
4947         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
4948         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
4949
4950 2007-03-11  Bruno Haible  <bruno@clisp.org>
4951
4952         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
4953         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
4954
4955 2007-03-11  Bruno Haible  <bruno@clisp.org>
4956
4957         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
4958         formula. Needed for SunPRO C 5.0.
4959
4960 2007-03-11  Bruno Haible  <bruno@clisp.org>
4961
4962         * modules/long-options (Depends-on): Add getopt.
4963
4964 2007-03-11  Bruno Haible  <bruno@clisp.org>
4965
4966         * modules/modechange (Depends-on): Add stdbool.
4967
4968 2007-03-11  Bruno Haible  <bruno@clisp.org>
4969
4970         * modules/i-ring (Depends-on): Add stdbool.
4971
4972 2007-03-11  Bruno Haible  <bruno@clisp.org>
4973
4974         * modules/gc-des (Depends-on): Add stdbool.
4975
4976 2007-03-11  Bruno Haible  <bruno@clisp.org>
4977
4978         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
4979
4980 2007-03-11  Bruno Haible  <bruno@clisp.org>
4981
4982         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
4983
4984 2007-03-11  Bruno Haible  <bruno@clisp.org>
4985
4986         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
4987
4988 2007-03-11  Bruno Haible  <bruno@clisp.org>
4989
4990         * lib/vasnprintf.c (sprintf): Undefine.
4991
4992 2007-03-11  Bruno Haible  <bruno@clisp.org>
4993
4994         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
4995         initializers in SunPRO C and Compaq C compilers.
4996
4997 2007-03-11  Bruno Haible  <bruno@clisp.org>
4998
4999         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
5000         decrementing code ANSI C compliant.
5001
5002 2007-03-11  Bruno Haible  <bruno@clisp.org>
5003
5004         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
5005         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
5006
5007 2007-03-11  Bruno Haible  <bruno@clisp.org>
5008
5009         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
5010         <stdbool.h> substitute doesn't pass.
5011
5012 2007-03-11  Bruno Haible  <bruno@clisp.org>
5013
5014         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
5015
5016 2007-03-11  Bruno Haible  <bruno@clisp.org>
5017
5018         * gnulib-tool (func_create_megatestdir): Create also an autobuild
5019         script, for submission to autobuild.josefsson.org.
5020
5021 2007-03-10  Bruno Haible  <bruno@clisp.org>
5022
5023         * modules/canonicalize-lgpl-tests: New file.
5024         * tests/test-canonicalize-lgpl.sh: New file.
5025         * tests/test-canonicalize-lgpl.c: New file.
5026
5027         * modules/c-strcase-tests: New file.
5028         * tests/test-c-strcase.sh: New file.
5029         * tests/test-c-strcasecmp.c: New file.
5030         * tests/test-c-strncasecmp.c: New file.
5031
5032         * modules/atexit-tests: New file.
5033         * tests/test-atexit.sh: New file.
5034         * tests/test-atexit.c: New file.
5035
5036 2007-03-10  Bruno Haible  <bruno@clisp.org>
5037
5038         * tests/test-binary-io.sh: Use temporary filenames that are not so
5039         likely to clash with those of other tests (in a parallel make).
5040         * tests/test-binary-io.c: Likewise.
5041
5042 2007-03-10  Bruno Haible  <bruno@clisp.org>
5043
5044         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
5045         fallback; use #error instead.
5046         Suggested by Simon Josefsson.
5047
5048 2007-03-10  Bruno Haible  <bruno@clisp.org>
5049
5050         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
5051         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
5052         first and the last.
5053
5054 2007-03-10  Bruno Haible  <bruno@clisp.org>
5055
5056         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
5057
5058 2007-03-10  Bruno Haible  <bruno@clisp.org>
5059
5060         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
5061         "make distcheck".
5062         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
5063         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
5064         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
5065
5066 2007-03-10  Bruno Haible  <bruno@clisp.org>
5067
5068         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
5069         variable.
5070         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
5071         variable.
5072
5073 2007-03-09  Eric Blake  <ebb9@byu.net>
5074         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
5075
5076         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
5077         types are not being provided by gnulib.
5078         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
5079         types are supported.
5080
5081 2007-03-10  Bruno Haible  <bruno@clisp.org>
5082
5083         * lib/stdio_.h (__attribute__): New macro.
5084         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
5085         vsprintf): Specify __attribute__ __format__ for GCC.
5086         Suggested by Eric Blake.
5087
5088 2007-03-09  Bruno Haible  <bruno@clisp.org>
5089
5090         * modules/printf-posix-tests: New file.
5091         * tests/test-printf-posix.sh: New file.
5092         * tests/test-printf-posix.c: New file.
5093
5094         * modules/printf-posix: New file.
5095         * lib/printf.c: New file.
5096         * m4/printf-posix-rpl.m4: New file.
5097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
5098         REPLACE_PRINTF.
5099         * lib/stdio_.h (printf): New declaration.
5100         (format, __format__, ____printf____, ____scanf____, ____strftime____,
5101         ____strfmon____): New macros.
5102         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
5103         REPLACE_PRINTF.
5104
5105 2007-03-09  Bruno Haible  <bruno@clisp.org>
5106
5107         * tests/test-vasnprintf-posix2.sh: New file.
5108         * tests/test-vasnprintf-posix2.c: New file.
5109         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
5110         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
5111         (Makefile.am): Activate test-vasnprintf-posix2.sh.
5112
5113         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
5114         a locale dependent decimal point, rather than always '.'.
5115
5116 2007-03-09  Eric Blake  <ebb9@byu.net>
5117
5118         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
5119         spite of platforms like Tandem/NSK that define it to -1.
5120
5121 2007-03-08  Bruno Haible  <bruno@clisp.org>
5122
5123         * modules/vprintf-posix-tests: New file.
5124         * tests/test-vprintf-posix.sh: New file.
5125         * tests/test-vprintf-posix.c: New file.
5126         * tests/test-printf-posix.h: New file.
5127
5128         * modules/vprintf-posix: New file.
5129         * lib/vprintf.c: New file.
5130         * m4/vprintf-posix.m4: New file.
5131         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
5132         REPLACE_VPRINTF.
5133         * lib/stdio_.h (vprintf): New declaration.
5134         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
5135         REPLACE_VPRINTF.
5136
5137 2007-03-08  Bruno Haible  <bruno@clisp.org>
5138
5139         * modules/fprintf-posix-tests: New file.
5140         * tests/test-fprintf-posix.sh: New file.
5141         * tests/test-fprintf-posix.c: New file.
5142
5143         * modules/fprintf-posix: New file.
5144         * lib/fprintf.c: New file.
5145         * m4/fprintf-posix.m4: New file.
5146         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
5147         REPLACE_FPRINTF.
5148         * lib/stdio_.h (fprintf): New declaration.
5149         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
5150         REPLACE_FPRINTF.
5151
5152 2007-03-08  Bruno Haible  <bruno@clisp.org>
5153
5154         * modules/vfprintf-posix-tests: New file.
5155         * tests/test-vfprintf-posix.sh: New file.
5156         * tests/test-vfprintf-posix.c: New file.
5157         * tests/test-fprintf-posix.h: New file.
5158         * tests/test-fprintf-posix.out: New file.
5159
5160         * modules/vfprintf-posix: New file.
5161         * lib/vfprintf.c: New file.
5162         * m4/vfprintf-posix.m4: New file.
5163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
5164         REPLACE_VFPRINTF.
5165         * lib/stdio_.h (vfprintf): New declaration.
5166         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
5167         REPLACE_VFPRINTF.
5168
5169 2007-03-08  Bruno Haible  <bruno@clisp.org>
5170
5171         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
5172
5173 2007-03-08  Bruno Haible  <bruno@clisp.org>
5174
5175         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
5176         instead of 'expr' invocations.
5177         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5178         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5179         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5180         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5181         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5182         Suggested by Paul Eggert.
5183
5184 2007-03-08  Bruno Haible  <bruno@clisp.org>
5185
5186         * modules/fseterr-tests: New file.
5187         * tests/test-fseterr.c: New file.
5188
5189         * modules/fseterr: New file.
5190         * lib/fseterr.h: New file.
5191         * lib/fseterr.c: New file.
5192
5193 2007-03-08  Bruno Haible  <bruno@clisp.org>
5194
5195         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
5196         * lib/getopt_.h: Likewise.
5197         * lib/mbswidth.h: Likewise.
5198         * lib/setenv.h: Likewise.
5199         * lib/vasnprintf.h: Likewise.
5200         * lib/vasprintf.h: Likewise.
5201         * lib/verror.h: Likewise.
5202         * lib/xsetenv.h: Likewise.
5203         * lib/xvasprintf.h: Likewise.
5204
5205 2007-03-08  Jim Meyering  <jim@meyering.net>
5206
5207         * users.txt: Add parted.
5208
5209         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
5210
5211 2007-03-07  Bruno Haible  <bruno@clisp.org>
5212
5213         * m4/printf.m4: Make the shell script snippets copy&pastable.
5214
5215 2007-03-02  Bruno Haible  <bruno@clisp.org>
5216
5217         * lib/netinet_in_.h: New file.
5218         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
5219         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
5220         * modules/netinet_in (Files): Add lib/netinet_in_.h.
5221         (Depends-on): Add absolute-header.
5222         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
5223         into netinet/in.h.
5224
5225 2007-03-03  Bruno Haible  <bruno@clisp.org>
5226
5227         * lib/sys_select_.h: New file.
5228         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
5229         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
5230         * modules/sys_select (Files): Add lib/sys_select_.h.
5231         (Depends-on): Add absolute-header.
5232         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
5233         into sys/select.h.
5234
5235 2007-03-02  Bruno Haible  <bruno@clisp.org>
5236
5237         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
5238         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
5239         values.
5240         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
5241         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
5242         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
5243         * modules/sys_socket (Depends-on): Add absolute-header.
5244         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
5245         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
5246         (Include): Remove requirement of inclusion of <sys/types.h>.
5247
5248 2007-03-02  Bruno Haible  <bruno@clisp.org>
5249
5250         * lib/byteswap_.h (bswap_32): Fix formula.
5251
5252 2007-03-06  Bruno Haible  <bruno@clisp.org>
5253
5254         * modules/sprintf-posix-tests: New file.
5255         * tests/test-sprintf-posix.c: New file.
5256
5257         * modules/sprintf-posix: New file.
5258         * lib/sprintf.c: New file.
5259         * m4/sprintf-posix.m4: New file.
5260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
5261         REPLACE_SPRINTF.
5262         * lib/stdio_.h (sprintf): New declaration.
5263         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
5264         REPLACE_SPRINTF.
5265
5266 2007-03-06  Bruno Haible  <bruno@clisp.org>
5267
5268         * modules/vsprintf-posix-tests: New file.
5269         * tests/test-vsprintf-posix.c: New file.
5270         * tests/test-sprintf-posix.h: New file.
5271
5272         * modules/vsprintf-posix: New file.
5273         * lib/vsprintf.c: New file.
5274         * m4/vsprintf-posix.m4: New file.
5275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
5276         REPLACE_VSPRINTF.
5277         * lib/stdio_.h (vsprintf): New declaration.
5278         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
5279         REPLACE_VSPRINTF.
5280
5281 2007-03-06  Bruno Haible  <bruno@clisp.org>
5282
5283         * modules/vsnprintf (Depend-on): Remove minmax.
5284
5285 2007-03-06  Bruno Haible  <bruno@clisp.org>
5286
5287         * modules/snprintf-posix-tests: New file.
5288         * tests/test-snprintf-posix.c: New file.
5289
5290         * modules/snprintf-posix: New file.
5291         * m4/snprintf-posix.m4: New file.
5292         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
5293         gl_FUNC_SNPRINTF.
5294         (gl_FUNC_SNPRINTF): Invoke it.
5295         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
5296         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
5297         is set.
5298         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
5299
5300 2007-03-06  Bruno Haible  <bruno@clisp.org>
5301
5302         * modules/vsnprintf-posix-tests: New file.
5303         * tests/test-vsnprintf-posix.c: New file.
5304         * tests/test-snprintf-posix.h: New file.
5305
5306         * modules/vsnprintf-posix: New file.
5307         * m4/vsnprintf-posix.m4: New file.
5308         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
5309         gl_FUNC_VSNPRINTF.
5310         (gl_FUNC_VSNPRINTF): Invoke it.
5311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
5312         * lib/stdio_.h (vsnprintf): Define as a replacement if
5313         REPLACE_VSNPRINTF is set.
5314         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
5315
5316 2007-03-06  Bruno Haible  <bruno@clisp.org>
5317
5318         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
5319         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
5320
5321 2007-03-06  Bruno Haible  <bruno@clisp.org>
5322
5323         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
5324         (asinl): Declare also if HAVE_DECL_ASINL is set.
5325         (atanl): Declare also if HAVE_DECL_ATANL is set.
5326         (ceill): Declare also if HAVE_DECL_CEILL is set.
5327         (cosl): Declare also if HAVE_DECL_COSL is set.
5328         (expl): Declare also if HAVE_DECL_EXPL is set.
5329         (floorl): Declare also if HAVE_DECL_FLOORL is set.
5330         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
5331         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
5332         (logl): Declare also if HAVE_DECL_LOGL is set.
5333         (sinl): Declare also if HAVE_DECL_SINL is set.
5334         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
5335         (tanl): Declare also if HAVE_DECL_TANL is set.
5336         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
5337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
5338         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
5339         declaration of frexpl, ldexpl.
5340         * modules/printf-frexpl (Depends-on): Add math.
5341         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
5342
5343 2007-03-05  Bruno Haible  <bruno@clisp.org>
5344
5345         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
5346         frexpl and ldexpl are declared.
5347         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
5348
5349 2007-03-05  Bruno Haible  <bruno@clisp.org>
5350
5351         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
5352         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
5353
5354 2007-03-05  Bruno Haible  <bruno@clisp.org>
5355
5356         * lib/stdio_.h: Include <stddef.h>.
5357
5358 2007-03-05  Bruno Haible  <bruno@clisp.org>
5359
5360         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
5361
5362 2007-03-05  Bruno Haible  <bruno@clisp.org>
5363
5364         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
5365         NetBSD 4, from Ralf Wildenhues.
5366
5367 2007-03-04  Bruno Haible  <bruno@clisp.org>
5368
5369         * lib/vasprintf.h: Update #if logic for the case when the functions
5370         exist but are overridden.
5371
5372 2007-03-04  Bruno Haible  <bruno@clisp.org>
5373
5374         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
5375         implementations: glibc-2.4 and MacOS X 10.3.
5376         * tests/test-vasnprintf-posix.c (test_function): Test also the case
5377         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
5378         * tests/test-vasprintf-posix.c (test_function): Likewise.
5379
5380 2007-03-04  Bruno Haible  <bruno@clisp.org>
5381
5382         * modules/vasprintf-posix-tests: New file.
5383         * tests/test-vasprintf-posix.c: New file.
5384
5385         * modules/vasprintf-posix: New file.
5386         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
5387         defined.
5388         * m4/vasprintf-posix.m4: New file.
5389         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
5390         gl_FUNC_VASPRINTF.
5391         (gl_FUNC_VASPRINTF): Invoke it.
5392         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
5393         here.
5394         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
5395
5396 2007-03-04  Bruno Haible  <bruno@clisp.org>
5397
5398         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
5399         REPLACE_GETTIMEOFDAY.
5400         * modules/sys_time (Makefile.am): Likewise.
5401         * m4/sys_time_h.m4: Likewise.
5402         * m4/gettimeofday.m4: Likewise.
5403
5404 2007-03-04  Bruno Haible  <bruno@clisp.org>
5405
5406         * modules/vasnprintf-posix-tests: New file.
5407         * tests/test-vasnprintf-posix.c: New file.
5408
5409         * modules/vasnprintf-posix: New file.
5410         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
5411         printf-frexpl.h.
5412         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
5413         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
5414         REPLACE_VASNPRINTF is defined.
5415         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
5416         gl_FUNC_VASNPRINTF.
5417         (gl_FUNC_VASNPRINTF): Invoke it.
5418         * m4/vasnprintf-posix.m4: New file.
5419         * m4/printf.m4: New file.
5420
5421 2007-03-04  Bruno Haible  <bruno@clisp.org>
5422
5423         Compile progreloc.c only if --enable-relocatable is specified.
5424         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
5425         if --enable-relocatable was specified.
5426         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
5427         lib_SOURCES.
5428
5429 2007-03-04  Jim Meyering  <jim@meyering.net>
5430
5431         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
5432         Use it consistently, rather than enumerating errno constants.
5433
5434 2007-03-04  Bruno Haible  <bruno@clisp.org>
5435
5436         * modules/xvasprintf-tests: New file.
5437         * tests/test-xvasprintf.c: New file.
5438
5439         * modules/vasprintf-tests: New file.
5440         * tests/test-vasprintf.c: New file.
5441
5442         * modules/vasnprintf-tests: New file.
5443         * tests/test-vasnprintf.c: New file.
5444
5445         * modules/vsnprintf-tests: New file.
5446         * tests/test-vsnprintf.c: New file.
5447
5448         * modules/snprintf-tests: New file.
5449         * tests/test-snprintf.c: New file.
5450
5451 2007-03-04  Bruno Haible  <bruno@clisp.org>
5452
5453         Compile relocatable.c only if --enable-relocatable is specified.
5454         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
5455         gl_RELOCATABLE_LIBRARY.
5456         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
5457         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
5458         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
5459         gl_RELOCATABLE_LIBRARY.
5460         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
5461         (Makefile.am): Remove lib_SOURCES.
5462         * modules/relocatable-lib-lgpl (configure.ac): Invoke
5463         gl_RELOCATABLE_LIBRARY.
5464         (Makefile.am): Remove lib_SOURCES.
5465         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
5466         always.
5467         * modules/relocatable-prog-wrapper (configure.ac): Invoke
5468         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
5469
5470 2007-03-04  Bruno Haible  <bruno@clisp.org>
5471
5472         * modules/argmatch-tests: New file.
5473         * tests/test-argmatch.c: New file.
5474
5475         * tests/test-allocsa.c (main): Halve the number of loop runs.
5476
5477         * modules/alloca-opt-tests: New file.
5478         * tests/test-alloca-opt.c: New file.
5479
5480 2007-03-04  Jim Meyering  <jim@meyering.net>
5481
5482         Work around difference between Linux ACLs and Solaris 10 ZFS.
5483         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
5484         for EINVAL.
5485
5486 2007-03-03  Bruno Haible  <bruno@clisp.org>
5487
5488         * modules/relocatable-prog (Depends-on): Add back progreloc's
5489         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
5490
5491 2007-03-03  Bruno Haible  <bruno@clisp.org>
5492
5493         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
5494         * modules/relocatable-lib: New file.
5495
5496 2007-03-03  Bruno Haible  <bruno@clisp.org>
5497
5498         * modules/relocatable-prog: Renamed from modules/relocatable.
5499         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
5500
5501 2007-03-03  Bruno Haible  <bruno@clisp.org>
5502
5503         * modules/relocatable-script (Files): Add doc/relocatable.texi,
5504         m4/relocatable-lib.m4.
5505         (Depends-on): Remove 'relocatable'.
5506         (configure.ac): Add gl_RELOCATABLE_NOP.
5507
5508 2007-03-03  Bruno Haible  <bruno@clisp.org>
5509
5510         * modules/relocatable-prog-wrapper: New file.
5511         * modules/relocatable (Depends-on): Add it. Remove all other
5512         dependencies except progname.
5513         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
5514
5515         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
5516         (gl_FUNC_STRERROR): Nop.
5517         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
5518
5519         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
5520         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
5521
5522         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
5523         (gl_FUNC_READLINK): Update.
5524
5525         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
5526
5527 2007-03-03  Bruno Haible  <bruno@clisp.org>
5528
5529         * lib/xreadlink.c: Include <unistd.h> unconditionally.
5530         * modules/xreadlink (Depends-on): Add unistd.
5531         * modules/xreadlink-with-size (Depends-on): Likewise.
5532
5533 2007-03-03  Bruno Haible  <bruno@clisp.org>
5534
5535         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
5536         extracted from gt_FUNC_SETENV.
5537         (gt_FUNC_SETENV): Remove macro.
5538         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
5539         remove gt_FUNC_SETENV.
5540
5541 2007-03-03  Bruno Haible  <bruno@clisp.org>
5542
5543         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
5544         ENABLE_RELOCATABLE here.
5545         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
5546
5547 2007-03-03  Bruno Haible  <bruno@clisp.org>
5548
5549         * modules/rbtreehash-list-tests (Depends-on): Add progname.
5550         * tests/test-rbtreehash_list.c: Include progname.h.
5551         (main): Call set_program_name.
5552
5553         * modules/rbtree-oset-tests (Depends-on): Add progname.
5554         * tests/test-rbtree_oset.c: Include progname.h.
5555         (main): Call set_program_name.
5556
5557         * modules/rbtree-list-tests (Depends-on): Add progname.
5558         * tests/test-rbtree_list.c: Include progname.h.
5559         (main): Call set_program_name.
5560
5561         * modules/linked-list-tests (Depends-on): Add progname.
5562         * tests/test-linked_list.c: Include progname.h.
5563         (main): Call set_program_name.
5564
5565 2007-03-03  Bruno Haible  <bruno@clisp.org>
5566
5567         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
5568         All uses of __restrict changed to _Restrict_.
5569         * lib/glob_.h (__restrict): Remove macro.
5570
5571 2007-03-02  Bruno Haible  <bruno@clisp.org>
5572
5573         * modules/gettext (configure.ac): Require gettext infrastructure
5574         from version 0.16.1.
5575
5576 2007-03-02  Bruno Haible  <bruno@clisp.org>
5577
5578         * modules/linkedhash-list-tests (Depends-on): Add progname.
5579         * tests/test-linkedhash_list.c: Include progname.h.
5580         (main): Call set_program_name.
5581
5582         * modules/carray-list-tests (Depends-on): Add progname.
5583         * tests/test-carray_list.c: Include progname.h.
5584         (main): Call set_program_name.
5585
5586         * modules/avltreehash-list-tests (Depends-on): Add progname.
5587         * tests/test-avltreehash_list.c: Include progname.h.
5588         (main): Call set_program_name.
5589
5590         * modules/avltree-oset-tests (Depends-on): Add progname.
5591         * tests/test-avltree_oset.c: Include progname.h.
5592         (main): Call set_program_name.
5593
5594         * modules/avltree-list-tests (Depends-on): Add progname.
5595         * tests/test-avltree_list.c: Include progname.h.
5596         (main): Call set_program_name.
5597
5598         * modules/array-oset-tests (Depends-on): Add progname.
5599         * tests/test-array_oset.c: Include progname.h.
5600         (main): Call set_program_name.
5601
5602         * modules/array-list-tests (Depends-on): Add progname.
5603         * tests/test-array_list.c: Include progname.h.
5604         (main): Call set_program_name.
5605
5606         * modules/argp-tests (Depends-on): Add progname.
5607         * tests/test-argp.c: Include argp.h first. Include progname.h.
5608         (main): Call set_program_name.
5609
5610 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
5611
5612         * doc/gnulib-tool.texi (Initial import): Reword description of
5613         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
5614         limited effect even if defined after the first system include.
5615
5616 2007-03-01  Bruno Haible  <bruno@clisp.org>
5617
5618         * build-aux/config.libpath: Update to libtool-1.5.22.
5619         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5620
5621 2007-03-01  Bruno Haible  <bruno@clisp.org>
5622
5623         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
5624         foo_CFLAGS.
5625         Reported by Ralf Wildenhues.
5626
5627 2007-03-01  Bruno Haible  <bruno@clisp.org>
5628
5629         * build-aux/install-reloc: Remove object files left over by some
5630         compilers.
5631         Reported by Ralf Wildenhues.
5632
5633 2007-03-01  Bruno Haible  <bruno@clisp.org>
5634
5635         * build-aux/install-reloc: Break long lines.
5636
5637 2007-03-01  Bruno Haible  <bruno@clisp.org>
5638
5639         * doc/relocatable.texi: Document that it may not work on OpenBSD.
5640         Reported by Ralf Wildenhues.
5641
5642 2007-03-01  Bruno Haible  <bruno@clisp.org>
5643
5644         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
5645         include ordering constraints.
5646
5647 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
5648
5649         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
5650         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
5651         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
5652         as another example.
5653         * lib/time_.h: Fix misspelling.
5654         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
5655         Require gl_HEADER_TIME_H_DEFAULTS.
5656         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
5657         * m4/time_r.m4 (gl_TIME_R): Likewise.
5658         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
5659
5660 2007-03-01  Bruno Haible  <bruno@clisp.org>
5661
5662         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
5663         * m4/utimens.m4 (gl_UTIMENS): Likewise.
5664
5665 2007-03-01  Jim Meyering  <jim@meyering.net>
5666
5667         * modules/xreadlink (Maintainer): Add my name.
5668         * modules/xreadlink-with-size (Depends-on): Alphabetize.
5669
5670 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
5671             Bruno Haible  <bruno@clisp.org>
5672
5673         * build-aux/install-reloc: Compile also c-ctype.c.
5674         * build-aux/relocatable.sh.in: New file.
5675         * doc/relocatable.texi: New file.
5676         * doc/relocatable-maint.texi: New file.
5677         * doc/gnulib.texi: Include relocatable-maint.texi.
5678         * lib/progreloc.c: Include unistd.h unconditionally.
5679         * lib/relocwrapper.c: Include unistd.h unconditionally.
5680         Include c-ctype.h.
5681         (add_dotbin): Use c_tolower.
5682         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
5683         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
5684         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
5685         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
5686         to m4/relocatable-lib.m4.
5687         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
5688         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
5689         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
5690         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
5691         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
5692         * modules/relocatable: New file.
5693         * modules/relocatable-lib: New file.
5694         * modules/relocatable-script: New file.
5695
5696 2007-02-28  Bruno Haible  <bruno@clisp.org>
5697
5698         Import --enable-relocatable infrastructure.
5699         * build-aux/config.libpath: New file, from GNU gettext.
5700         * build-aux/install-reloc: New file, from GNU gettext.
5701         * build-aux/reloc-ldflags: New file, from GNU gettext.
5702         * lib/relocatable.h: New file, from GNU gettext.
5703         * lib/relocatable.c: New file, from GNU gettext.
5704         * lib/relocwrapper.c: New file, from GNU gettext.
5705         * m4/relocatable.m4: New file, from GNU gettext.
5706
5707 2007-02-28  Bruno Haible  <bruno@clisp.org>
5708
5709         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
5710
5711         * modules/xreadlink: New file, from GNU gettext with modifications.
5712         * lib/xreadlink.c: New file, from GNU gettext.
5713         * lib/xreadlink.h: Add comments.
5714         (xreadlink): New declaration.
5715
5716         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
5717         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
5718         lib/xreadlink-with-size.c.
5719         (configure.ac): Remove gl_XREADLINK invocation.
5720         (Makefile.am): Augment lib_SOURCES.
5721         * m4/xreadlink.m4: Remove file.
5722         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
5723         (xreadlink_with_size): Renamed from xreadink.
5724         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
5725         * modules/canonicalize (Depends-on): Replace xreadlink with
5726         xreadlink-with-size.
5727         * lib/canonicalize.c (canonicalize_filename_mode): Update.
5728
5729 2007-02-25  Jim Meyering  <jim@meyering.net>
5730
5731         * build-aux/announce-gen: When complaining about excess arguments,
5732         list them.
5733
5734 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
5735
5736         * README: Document signed integer overflow situation more
5737         accurately.
5738
5739 2007-02-25  Bruno Haible  <bruno@clisp.org>
5740
5741         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
5742         'a' or 'A' conversion.
5743
5744 2007-02-25  Bruno Haible  <bruno@clisp.org>
5745
5746         * modules/filename: Renamed from modules/pathname.
5747         (Files): Replace lib/pathname.h with lib/filename.h. Replace
5748         lib/concatpath.c with lib/concat-filename.c.
5749         (Makefile.am): Update.
5750         (Include): Replace pathname.h with filename.h.
5751         * lib/filename.h: Renamed from lib/pathname.h.
5752         (concatenated_filename): Renamed from concatenated_pathname.
5753         * lib/concat-filename.c: Renamed from lib/concatpath.c.
5754         (concatenated_filename): Renamed from concatenated_pathname.
5755         * lib/findprog.c: Include filename.h instead of pathname.h.
5756         (find_in_path): Update.
5757         * lib/javacomp.c: Include filename.h instead of pathname.h.
5758         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
5759         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
5760         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
5761         is_oldgcj_14_13_usable, is_javac_usable): Update.
5762         * lib/javaexec.c: Include filename.h instead of pathname.h.
5763         (execute_java_class): Update.
5764         * modules/findprog: Update.
5765         * modules/javacomp: Update.
5766         * modules/javaexec: Update.
5767         * MODULES.html.sh (File system functions): Add 'filename', remove
5768         'pathname'.
5769
5770 2007-02-25  Bruno Haible  <bruno@clisp.org>
5771
5772         * modules/printf-frexpl-tests: New file.
5773         * tests/test-printf-frexpl.c: New file.
5774
5775         * modules/printf-frexpl: New file.
5776         * lib/printf-frexpl.h: New file.
5777         * lib/printf-frexpl.c: New file.
5778         * m4/printf-frexpl.m4: New file.
5779
5780 2007-02-25  Bruno Haible  <bruno@clisp.org>
5781
5782         * modules/printf-frexp-tests: New file.
5783         * tests/test-printf-frexp.c: New file.
5784
5785         * modules/printf-frexp: New file.
5786         * lib/printf-frexp.h: New file.
5787         * lib/printf-frexp.c: New file.
5788         * m4/printf-frexp.m4: New file.
5789
5790 2007-02-25  Bruno Haible  <bruno@clisp.org>
5791
5792         Assume automake >= 1.10 for the tests.
5793         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
5794         * modules/arctwo-tests: Likewise.
5795         * modules/argp-tests: Likewise.
5796         * modules/avltree-list-tests: Likewise.
5797         * modules/avltree-oset-tests: Likewise.
5798         * modules/avltreehash-list-tests: Likewise.
5799         * modules/carray-list-tests: Likewise.
5800         * modules/crc-tests: Likewise.
5801         * modules/des-tests: Likewise.
5802         * modules/gc-arcfour-tests: Likewise.
5803         * modules/gc-arctwo-tests: Likewise.
5804         * modules/gc-des-tests: Likewise.
5805         * modules/gc-hmac-md5-tests: Likewise.
5806         * modules/gc-hmac-sha1-tests: Likewise.
5807         * modules/gc-md2-tests: Likewise.
5808         * modules/gc-md4-tests: Likewise.
5809         * modules/gc-md5-tests: Likewise.
5810         * modules/gc-pbkdf2-sha1-tests: Likewise.
5811         * modules/gc-rijndael-tests: Likewise.
5812         * modules/gc-sha1-tests: Likewise.
5813         * modules/gc-tests: Likewise.
5814         * modules/getaddrinfo-tests: Likewise.
5815         * modules/hmac-md5-tests: Likewise.
5816         * modules/hmac-sha1-tests: Likewise.
5817         * modules/linked-list-tests: Likewise.
5818         * modules/linkedhash-list-tests: Likewise.
5819         * modules/lock-tests: Likewise.
5820         * modules/md2-tests: Likewise.
5821         * modules/md4-tests: Likewise.
5822         * modules/md5-tests: Likewise.
5823         * modules/rbtree-list-tests: Likewise.
5824         * modules/rbtree-oset-tests: Likewise.
5825         * modules/rbtreehash-list-tests: Likewise.
5826         * modules/read-file-tests: Likewise.
5827         * modules/rijndael-tests: Likewise.
5828         * modules/stdint-tests: Likewise.
5829         * modules/tls-tests: Likewise.
5830
5831 2007-02-24  Bruno Haible  <bruno@clisp.org>
5832
5833         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
5834         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
5835         function; instead check whether isnan with a double argument links.
5836         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
5837         function; instead check whether isnan with a 'long double' argument
5838         links.
5839         Reported by Eric Blake <ebb9@byu.net>.
5840
5841 2007-02-24  Bruno Haible  <bruno@clisp.org>
5842
5843         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
5844         defined.
5845         * lib/isnanl.c: Remove all code. Just include isnan.c.
5846         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
5847
5848 2007-02-25  Jim Meyering  <jim@meyering.net>
5849
5850         Avoid conflicting types for 'unsetenv' on FreeBSD.
5851         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
5852         conflicting with FreeBSD's (5.0 and 6.1) function declaration
5853         in stdlib.h.
5854
5855 2007-02-24  Bruno Haible  <bruno@clisp.org>
5856
5857         * modules/isnanl-nolibm-tests: New file.
5858         * tests/test-isnanl.c: New file.
5859
5860         * modules/isnanl-nolibm: New file.
5861         * lib/isnanl.h: New file.
5862         * lib/isnanl.c: New file.
5863         * m4/isnanl.m4: New file.
5864
5865 2007-02-24  Bruno Haible  <bruno@clisp.org>
5866
5867         * modules/isnan-nolibm-tests: New file.
5868         * tests/test-isnan.c: New file.
5869
5870         * modules/isnan-nolibm: New file.
5871         * lib/isnan.h: New file.
5872         * lib/isnan.c: New file.
5873         * m4/isnan.m4: New file.
5874
5875 2007-02-24  Bruno Haible  <bruno@clisp.org>
5876
5877         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
5878         assume that an exponent fits in 20 bits.
5879
5880 2007-02-24  Jim Meyering  <jim@meyering.net>
5881
5882         * m4/regex.m4: Update the description of the configure-time option,
5883         --without-included-regex, to state accurately what the defaults are,
5884         and perhaps to give people an idea why using this option is risky.
5885
5886 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5887
5888         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
5889         loops on small arguments.  This attempts to avoid the problem
5890         Bruno Haible reported for AIX 4.3.2 in
5891         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
5892
5893 2007-02-23  Bruno Haible  <bruno@clisp.org>
5894
5895         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
5896         Needed for help2man.
5897
5898 2007-02-23  Karl Berry  <karl@gnu.org>
5899
5900         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
5901         exists, foo.h should be cvs-ignored, not committed.
5902
5903 2007-02-23  Eric Blake  <ebb9@byu.net>
5904
5905         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
5906         * lib/stat-time.h (includes): Likewise.
5907         * lib/utimecmp.c (includes): Likewise.
5908         * lib/utimens.h (includes): Likewise.
5909         * lib/getdate.y (includes): Also include "timespec.h" for use
5910         internal to the module.
5911         * modules/utimens (Depends-on): Revert yesterday's patch.
5912         * modules/nanosleep (Depends-on): Add missing dependency.
5913
5914 2007-02-22  Bruno Haible  <bruno@clisp.org>
5915
5916         * lib/glob.c: Don't include getlogin_r.h.
5917
5918 2007-02-22  Jim Meyering  <jim@meyering.net>
5919
5920         * modules/utimens (Depends-on): Add timespec, required for
5921         utimens.h's inclusion of timespec.h.
5922
5923 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
5924
5925         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
5926         long unreadable paths in GNU/Linux.  Problem reported by Andreas
5927         Schwab in
5928         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
5929         I'll try to think of a better way to fix the Solaris problem.
5930
5931         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
5932         like glibc; on Solaris 10, it fails with errno == EINVAL.
5933         POSIX says the behavior is unspecified if the first argument is NULL,
5934         so play it safe and never pass NULL to the system getcwd.
5935
5936 2007-02-21  Jim Meyering  <jim@meyering.net>
5937
5938         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
5939         of gettimeofday.  It would conflict with the one now always
5940         provided via sys_time_.h.  Reported by Matthew Woehlke, as
5941         an IRIX 6.5 build failure.
5942
5943 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
5944
5945         Minor fixups to port to Solaris 10 with Sun C 5.8.
5946         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
5947         * modules/getcwd (Depends-on): Add dirfd.
5948         * lib/putenv.c (putenv): #undef it.
5949         (rpl_putenv): New decl.
5950         (malloc, free): Include <stdlib.h> rather than prototyping separately.
5951
5952 2007-02-20  Bruno Haible  <bruno@clisp.org>
5953
5954         * modules/stdio-tests: New file.
5955         * tests/test-stdio.c: New file.
5956
5957         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
5958         (Depends-on): Add stdio.
5959         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
5960         (Include): Use <stdio.h> instead of vsnprintf.h.
5961         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
5962         HAVE_DECL_VSNPRINTF.
5963         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
5964
5965         * modules/snprintf (Files): Remove lib/snprintf.h.
5966         (Depends-on): Add stdio.
5967         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
5968         (Include): Use <stdio.h> instead of snprintf.h.
5969         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
5970         HAVE_DECL_SNPRINTF.
5971         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
5972         * lib/getaddrinfo.c: Likewise.
5973
5974         * modules/stdio: New file.
5975         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
5976         * lib/snprintf.h: Remove file.
5977         * lib/vsnprintf.h: Remove file.
5978         * lib/.cppi-disable: Remove snprintf.h.
5979         * m4/stdio_h.m4: New file.
5980         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
5981
5982 2007-02-20  Jim Meyering  <jim@meyering.net>
5983
5984         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
5985         used by e.g., mingw.  From Bruno Haible.
5986
5987 2007-02-19  Bruno Haible  <bruno@clisp.org>
5988
5989         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
5990         warnings.
5991         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5992
5993 2007-02-19  Bruno Haible  <bruno@clisp.org>
5994
5995         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
5996         from mingw users.
5997
5998 2007-02-19  Bruno Haible  <bruno@clisp.org>
5999
6000         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
6001         warnings.
6002         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
6003
6004 2007-02-19  Jim Meyering  <jim@meyering.net>
6005
6006         Don't use FD after a successful "fdopendir (fd)".
6007         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
6008         Reset it by calling dirfd on the just-obtained DIR*.
6009
6010         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
6011         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
6012
6013 2007-02-18  Bruno Haible  <bruno@clisp.org>
6014
6015         * lib/readlink.c: Include <unistd.h>.
6016         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
6017         HAVE_READLINK.
6018         * modules/readlink (Depends-on): Add unistd.
6019         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6020         (Include): Add <unistd.h>.
6021
6022         * lib/getlogin_r.h: Remove file.
6023         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
6024         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
6025         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
6026         HAVE_DECL_GETLOGIN_R.
6027         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
6028         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6029         (Include): Use <unistd.h> instead of getlogin_r.h.
6030
6031         * lib/getcwd.h: Remove file.
6032         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
6033         * lib/xgetcwd.c: Likewise.
6034         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
6035         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
6036         * modules/getcwd (Files): Remove lib/getcwd.h.
6037         (Depends-on): Add unistd.
6038         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6039         (Include): Use <unistd.h> instad of getcwd.h.
6040
6041         * lib/ftruncate.c: Include <unistd.h> first.
6042         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
6043         Set HAVE_FTRUNCATE.
6044         * modules/ftruncate (Depends-on): Add unistd.
6045         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6046
6047         * lib/fchdir.c: Include <unistd.h> first.
6048         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
6049         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
6050         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
6051         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6052         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
6053
6054         * lib/dup2.c: Include <unistd.h> first.
6055         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
6056         HAVE_DUP2.
6057         * modules/dup2 (Depends-on): Add unistd.
6058         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6059
6060         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
6061         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
6062         REPLACE_CHOWN. Don't define chown as a macro here.
6063         * modules/chown (Depends-on): Add unistd.
6064         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6065
6066         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
6067         Add definition for GL_LINK_WARNING.
6068         (chown, dup2): New declarations.
6069         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
6070         link warning.
6071         (ftruncate): New declaration.
6072         (getcwd): New declaration, taken from old getcwd.h.
6073         (getlogin_r): New declaration, taken from old getlogin_r.h.
6074         (readlink): New declaration.
6075         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
6076         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
6077         (gl_PREREQ_UNISTD): Remove macro.
6078         (gl_UNISTD_MODULE_INDICATOR): New macro.
6079         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
6080         many new variables. Don't set UNISTD_H.
6081         * modules/unistd (Description): Change.
6082         (Depends-on): Add link-warning.
6083         (configure.ac): Update.
6084         (Makefile.am): Create unistd.h always. Substitute many new variables
6085         into it.
6086
6087 2007-02-18  Bruno Haible  <bruno@clisp.org>
6088
6089         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
6090         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
6091         HAVE_GETSUBOPT.
6092         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
6093         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
6094         * lib/getsubopt.h: Remove file.
6095         * modules/getsubopt (Files): Remove lib/getsubopt.h.
6096         (Depends-on): Add stdlib.
6097         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6098         (Includes): Use <stdlib.h> instead of getsubopt.h.
6099         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
6100         Set HAVE_GETSUBOPT.
6101         * lib/getsubopt.c: Don't include getsubopt.h.
6102
6103 2007-02-18  Bruno Haible  <bruno@clisp.org>
6104
6105         * modules/fchdir (Depends-on): Add dup2.
6106
6107 2007-02-18  Bruno Haible  <bruno@clisp.org>
6108
6109         * lib/stdlib_.h: Handle glibc's special invocation convention
6110         specially.
6111
6112 2007-02-18  Bruno Haible  <bruno@clisp.org>
6113
6114         * modules/stdlib-tests: New file.
6115         * tests/test-stdlib.c: New file.
6116
6117         * modules/mkstemp (Files): Remove lib/mkstemp.h.
6118         (Depends-on): Add stdlib.
6119         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6120         (Includes): Use <stdlib.h> instead of mkstemp.h.
6121         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
6122         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
6123         * lib/mkstemp.c: Don't include mkstemp.h.
6124         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
6125         * lib/stdlib--.h: Don't include mkstemp.h.
6126
6127         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
6128         (Depends-on): Add stdlib.
6129         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6130         (Includes): Use <stdlib.h> instead of mkdtemp.h.
6131         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
6132         HAVE_MKDTEMP.
6133         * lib/mkdtemp.c: Don't include mkdtemp.h.
6134         * lib/clean-temp.c: Don't include mkdtemp.h.
6135
6136         * modules/exit (Files): Remove lib/exit.h.
6137         (Depends-on): Add stdlib.
6138         (Makefile.am): Remove lib_SOURCES.
6139         (Include): Use <stdlib.h> instead of exit.h.
6140         * lib/argmatch.c: Don't include exit.h.
6141         * lib/execute.c: Likewise.
6142         * lib/pagealign_alloc.c: Likewise.
6143         * lib/pipe.c: Likewise.
6144         * lib/wait-process.c: Likewise.
6145         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
6146         * lib/exitfail.c: Likewise.
6147         * lib/savewd.c: Likewise.
6148         * lib/xsetenv.c: Likewise.
6149
6150         * modules/stdlib: New file.
6151         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
6152         and extra comments about mkstemp().
6153         * lib/exit.h: Remove file.
6154         * lib/mkdtemp.h: Remove file.
6155         * lib/mkstemp.h: Remove file.
6156         * m4/stdlib_h.m4: New file.
6157         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
6158
6159 2007-02-18  Bruno Haible  <bruno@clisp.org>
6160
6161         * modules/math-tests: New file.
6162         * tests/test-math.c: New file.
6163
6164         * modules/math: New file.
6165         * modules/mathl (Files): Remove lib/mathl.h.
6166         (Depends-on): Add math.
6167         (Makefile.am): Don't mention mathl.h.
6168         (Include): Use <math.h> instead of mathl.h.
6169         * lib/math_.h: New file.
6170         * lib/mathl.h: Remove file.
6171         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
6172         mathl.h.
6173         * lib/asinl.c: Likewise.
6174         * lib/atanl.c: Likewise.
6175         * lib/ceill.c: Likewise.
6176         * lib/cosl.c: Likewise.
6177         * lib/expl.c: Likewise.
6178         * lib/floorl.c: Likewise.
6179         * lib/frexpl.c: Likewise.
6180         * lib/ldexpl.c: Likewise.
6181         * lib/logl.c: Likewise.
6182         * lib/sincosl.c: Likewise.
6183         * lib/sinl.c: Likewise.
6184         * lib/sqrtl.c: Likewise.
6185         * lib/tanl.c: Likewise.
6186         * lib/trigl.c: Likewise.
6187         * m4/math_h.m4: New file.
6188         * MODULES.html.sh (Mathematics): Add math.
6189
6190 2007-02-17  Bruno Haible  <bruno@clisp.org>
6191
6192         * modules/wctype-tests: New file.
6193         * tests/test-wctype.c: New file.
6194
6195         * modules/wchar-tests: New file.
6196         * tests/test-wchar.c: New file.
6197
6198         * modules/unistd-tests: New file.
6199         * tests/test-unistd.c: New file.
6200
6201         * modules/time-tests: New file.
6202         * tests/test-time.c: New file.
6203
6204         * modules/sysexits-tests: New file.
6205         * tests/test-sysexits.c: New file.
6206
6207         * modules/sys_time-tests: New file.
6208         * tests/test-sys_time.c: New file.
6209
6210         * modules/sys_stat-tests: New file.
6211         * tests/test-sys_stat.c: New file.
6212
6213         * modules/sys_socket-tests: New file.
6214         * tests/test-sys_socket.c: New file.
6215
6216         * modules/sys_select-tests: New file.
6217         * tests/test-sys_select.c: New file.
6218
6219         * modules/string-tests: New file.
6220         * tests/test-string.c: New file.
6221
6222         * modules/stdbool-tests: New file.
6223         * tests/test-stdbool.c: New file.
6224
6225         * modules/netinet_in-tests: New file.
6226         * tests/test-netinet_in.c: New file.
6227
6228         * modules/inttypes-tests: New file.
6229         * tests/test-inttypes.c: New file.
6230
6231         * modules/fcntl-tests: New file.
6232         * tests/test-fcntl.c: New file.
6233
6234         * modules/byteswap-tests: New file.
6235         * tests/test-byteswap.c: New file.
6236
6237         * modules/arpa_inet-tests: New file.
6238         * tests/test-arpa_inet.c: New file.
6239
6240 2007-02-17  Bruno Haible  <bruno@clisp.org>
6241
6242         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
6243         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
6244         if the corresponding module is not enabled. Emit link warnings if
6245         the function is used nevertheless.
6246         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
6247         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
6248         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
6249         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
6250         * modules/inttypes (Depends-on): Add link-warning.
6251         (Makefile.am): Copy the contents of build-aux/link-warning.h into
6252         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
6253         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
6254         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
6255         * modules/imaxdiv (configure.ac): Likewise.
6256         * modules/strtoimax (configure.ac): Likewise.
6257         * modules/strtoumax (configure.ac): Likewise.
6258
6259 2007-02-17  Bruno Haible  <bruno@clisp.org>
6260
6261         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
6262         gl_STRING_MODULE_INDICATOR_DEFAULTS.
6263         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
6264         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
6265
6266 2007-02-17  Bruno Haible  <bruno@clisp.org>
6267
6268         * modules/link-warning: New file.
6269         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
6270         * lib/string_.h (GL_LINK_WARNING): Remove definition.
6271         * modules/string (Depends-on): Add link-warning.
6272         (Makefile.am): Copy the contents of build-aux/link-warning.h into
6273         string.h.
6274         * MODULES.html.sh (Support for building libraries and executables): Add
6275         link-warning.
6276
6277 2007-02-17  Bruno Haible  <bruno@clisp.org>
6278
6279         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
6280         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
6281         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
6282         long lines.
6283
6284 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
6285             Bruno Haible  <bruno@clisp.org>
6286
6287         * modules/tmpfile: New file.
6288         * lib/tmpfile.c: New file.
6289         * m4/tmpfile.m4: New file.
6290         * MODULES.html.sh (func_all_modules): New section "Input/output".
6291
6292 2007-02-15  Bruno Haible  <bruno@clisp.org>
6293
6294         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
6295         (supports_delete_on_close): New function.
6296         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
6297
6298 2007-02-14  Bruno Haible  <bruno@clisp.org>
6299
6300         * modules/mbspcasecmp-tests: New file.
6301         * tests/test-mbspcasecmp.sh: New file.
6302         * tests/test-mbspcasecmp.c: New file.
6303
6304         New module mbspcasecmp.
6305         * modules/mbspcasecmp: New file.
6306         * lib/mbspcasecmp.c: New file.
6307         * lib/string_.h (strncasecmp): Change warning message.
6308         (mbspcasecmp): New declaration.
6309         * m4/mbspcasecmp.m4: New file.
6310         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6311         GNULIB_MBSPCASECMP.
6312         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
6313         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
6314
6315 2007-02-14  Bruno Haible  <bruno@clisp.org>
6316
6317         * modules/mbsncasecmp-tests: New file.
6318         * tests/test-mbsncasecmp.sh: New file.
6319         * tests/test-mbsncasecmp.c: New file.
6320
6321         New module mbsncasecmp.
6322         * modules/mbsncasecmp: New file.
6323         * lib/mbsncasecmp.c: New file.
6324         * lib/string_.h (mbsncasecmp): New declaration.
6325         * m4/mbsncasecmp.m4: New file.
6326         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6327         GNULIB_MBSNCASECMP.
6328         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
6329         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
6330
6331 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
6332
6333         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
6334         Verify that it doesn't overlap with our flags.
6335         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
6336         do not have the desired effect in multibyte locales; instead, use
6337         mbscasecmp.
6338         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
6339         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
6340         we don't require GNU fnmatch ourselves (if our users require it, they
6341         should do so explicitly).
6342
6343         Fix regex code so it doesn't rely on strcasecmp.
6344         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
6345         Otherwise, include gnulib's langinfo.h.
6346         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
6347         undesirable behavior in non-C locales.  Instead, rely on localecharset.
6348         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
6349         * modules/regex (FILES): Remove m4/codeset.m4.
6350         (Depends-on): Add localcharset.  Remove strcase.
6351
6352 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6353
6354         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
6355         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6356
6357 2007-02-13  Bruno Haible  <bruno@clisp.org>
6358
6359         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
6360         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6361
6362 2007-02-12  Bruno Haible  <bruno@clisp.org>
6363
6364         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
6365         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
6366         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
6367         time warning rather than a link error.
6368
6369 2007-02-12  Bruno Haible  <bruno@clisp.org>
6370
6371         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
6372         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6373         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6374
6375 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6376
6377         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
6378         args, not 2.
6379
6380 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6381
6382         New module 'time', so that apps can include <time.h> as per
6383         POSIX and GNU instead of separate include files like time_r.h
6384         and timegm.h.  This implementation tries out a simpler approach
6385         for replacing decls in standard include files (as compared to
6386         the string module), somewhat as an experiment.
6387
6388         * config/srclist.txt: Comment out mktime.c for now.
6389         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
6390         since it doesn't apply any more.  Use generic wording instead.
6391         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
6392         'time'.
6393         * lib/time_.h, m4/time_h.m4, modules/time: New files.
6394         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
6395         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
6396         Don't include <sys/types.h>; no longer needed since we assume C89.
6397         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
6398         * lib/strftime.c: Likewise.
6399         * lib/time_r.c: Likewise.
6400         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
6401         * lib/nanosleep.c: Include <time.h> first, to check interface.
6402         * lib/strptime.c: Likewise.
6403         * lib/time_r.c: Likewise.
6404         * lib/timegm.c: Likewise.
6405         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
6406         needed.
6407         * lib/timegm.c: Don't include timegm.h; no longer needed.
6408         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
6409         time.h now handles any problems in that area.
6410         (struct timespec, nanosleep): Remove; time.h now arranges for these.
6411         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
6412         that time.h defines struct timespec.
6413         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
6414         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
6415         handles that.
6416         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
6417         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
6418         needed.  Set REPLACE_LOCALTIME.
6419         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
6420         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
6421         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
6422         nanosleep; time_h.m4 now does that.  Don't require
6423         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
6424         module handles this now.
6425         * modules/getdate (Depends-on): Remove timespec.  Add time.
6426         * modules/nanosleep (Depends-on): Likewise.
6427         * modules/stat-time (Depends-on): Likewise.
6428         * modules/nanosleep (Include): Include time.h, not timespec.h.
6429         * modules/strptime (Files): Remove lib/strptime.h.
6430         (Depends-on): Add extensions, time.
6431         (Include): Include time.h, not strptime.h.
6432         * modules/time_r (Files): Remove lib/time_r.h.
6433         (Depends-on): Add time.
6434         (Include): Include time.h, not time_r.h.
6435         * modules/timegm: Likewise.
6436         * modules/timespec (Description): Now does timespec-related decls
6437         of our own, instead of struct timespec itself.
6438         (Depends-on): Add time; remove extensions.
6439         (Maintainer): Add self.
6440         * modules/utimecmp (Depends-on): Add time; remove timespec.
6441         * modules/utimens (Depends-on): Likewise.
6442         * modules/xnanosleep (Depends-on): Likewise.
6443
6444 2007-02-11  Bruno Haible  <bruno@clisp.org>
6445
6446         * lib/c-strstr.c: Include allocsa.h.
6447         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
6448         * lib/c-strcasestr.c: Include allocsa.h.
6449         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
6450         * lib/strcasestr.c: Include allocsa.h.
6451         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
6452         * lib/mbsstr.c: Include allocsa.h.
6453         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
6454         allocsa/freesa instead of malloc/free.
6455         * lib/mbscasestr.c: Include allocsa.h.
6456         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
6457         allocsa/freesa instead of malloc/free.
6458         * modules/c-strstr (Depends-on): Add allocsa.
6459         * modules/c-strcasestr (Depends-on): Likewise.
6460         * modules/strcasestr (Depends-on): Likewise.
6461         * modules/mbsstr (Depends-on): Likewise.
6462         * modules/mbscasestr (Depends-on): Likewise.
6463
6464 2007-02-11  Bruno Haible  <bruno@clisp.org>
6465
6466         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
6467
6468         * modules/mbsspn-tests: New file.
6469         * tests/test-mbsspn.sh: New file.
6470         * tests/test-mbsspn.c: New file.
6471
6472 2007-02-11  Bruno Haible  <bruno@clisp.org>
6473
6474         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
6475
6476         * modules/mbspbrk-tests: New file.
6477         * tests/test-mbspbrk.sh: New file.
6478         * tests/test-mbspbrk.c: New file.
6479
6480 2007-02-11  Bruno Haible  <bruno@clisp.org>
6481
6482         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
6483         unneeded cast.
6484
6485         * modules/mbscspn-tests: New file.
6486         * tests/test-mbscspn.sh: New file.
6487         * tests/test-mbscspn.c: New file.
6488
6489 2007-02-11  Bruno Haible  <bruno@clisp.org>
6490
6491         * modules/mbscasecmp-tests: New file.
6492         * tests/test-mbscasecmp.sh: New file.
6493         * tests/test-mbscasecmp.c: New file.
6494
6495 2007-02-11  Bruno Haible  <bruno@clisp.org>
6496
6497         Ensure O(n) worst-case complexity of mbscasestr.
6498         * lib/mbscasestr.c: Include stdbool.h.
6499         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
6500         functions.
6501         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
6502         the bookkeeping indicates that it's worth it.
6503         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
6504
6505         * modules/mbscasestr-tests: New file.
6506         * tests/test-mbscasestr1.c: New file.
6507         * tests/test-mbscasestr2.sh: New file.
6508         * tests/test-mbscasestr2.c: New file.
6509         * tests/test-mbscasestr3.sh: New file.
6510         * tests/test-mbscasestr3.c: New file.
6511         * tests/test-mbscasestr4.sh: New file.
6512         * tests/test-mbscasestr4.c: New file.
6513         * m4/locale-tr.m4: New file.
6514
6515 2007-02-11  Bruno Haible  <bruno@clisp.org>
6516
6517         Ensure O(n) worst-case complexity of mbsstr.
6518         * lib/mbsstr.c: Include stdbool.h.
6519         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
6520         functions.
6521         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
6522         bookkeeping indicates that it's worth it.
6523         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
6524
6525         * modules/mbsstr-tests: New file.
6526         * tests/test-mbsstr1.c: New file.
6527         * tests/test-mbsstr2.sh: New file.
6528         * tests/test-mbsstr2.c: New file.
6529         * tests/test-mbsstr3.sh: New file.
6530         * tests/test-mbsstr3.c: New file.
6531         * m4/locale-fr.m4: New file.
6532
6533 2007-02-11  Bruno Haible  <bruno@clisp.org>
6534
6535         * lib/mbsrchr.c (mbsrchr): Fix bug.
6536
6537         * modules/mbsrchr-tests: New file.
6538         * tests/test-mbsrchr.sh: New file.
6539         * tests/test-mbsrchr.c: New file.
6540
6541 2007-02-11  Bruno Haible  <bruno@clisp.org>
6542
6543         * lib/mbschr.c (mbschr): Fix bug.
6544
6545         * modules/mbschr-tests: New file.
6546         * tests/test-mbschr.sh: New file.
6547         * tests/test-mbschr.c: New file.
6548         * m4/locale-zh.m4: New file.
6549
6550 2007-02-11  Bruno Haible  <bruno@clisp.org>
6551
6552         Support for copying multibyte string iterators.
6553         * lib/mbiter.h: Include <string.h>.
6554         (mbiter_multi_copy): New function.
6555         (mbi_copy): New macro.
6556         * lib/mbuiter.h: Include <string.h>.
6557         (mbuiter_multi_copy): New function.
6558         (mbui_copy): New macro.
6559
6560 2007-02-11  Bruno Haible  <bruno@clisp.org>
6561
6562         New module mbslen.
6563         * modules/mbslen: New file.
6564         * lib/mbslen.c: New file.
6565         * lib/string_.h (mbslen): New declaration.
6566         * m4/mbslen.m4: New file.
6567         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6568         GNULIB_MBSLEN.
6569         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
6570         * MODULES.html.sh (Internationalization functions): Add mbslen.
6571
6572 2007-02-11  Bruno Haible  <bruno@clisp.org>
6573
6574         Ensure O(n) worst-case complexity of strcasestr substitute.
6575         * lib/strcasestr.c: Include stdbool.h.
6576         (knuth_morris_pratt): New function.
6577         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
6578         bookkeeping indicates that it's worth it.
6579         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
6580
6581         * modules/strcasestr-tests: New file.
6582         * tests/test-strcasestr.c: New file.
6583
6584 2007-02-11  Bruno Haible  <bruno@clisp.org>
6585
6586         Ensure O(n) worst-case complexity of c_strcasestr.
6587         * lib/c-strcasestr.c: Include stdbool.h, string.h.
6588         (knuth_morris_pratt): New function.
6589         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
6590         the bookkeeping indicates that it's worth it.
6591         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
6592
6593         * modules/c-strcasestr-tests: New file.
6594         * tests/test-c-strcasestr.c: New file.
6595
6596 2007-02-11  Bruno Haible  <bruno@clisp.org>
6597
6598         Ensure O(n) worst-case complexity of c_strstr.
6599         * lib/c-strstr.c: Include stdbool.h, string.h.
6600         (knuth_morris_pratt): New function.
6601         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
6602         bookkeeping indicates that it's worth it.
6603         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
6604
6605         * lib/c-strstr.c: Complete rewrite for maintainability.
6606
6607         * modules/c-strstr-tests: New file.
6608         * tests/test-c-strstr.c: New file.
6609
6610 2007-02-11  Bruno Haible  <bruno@clisp.org>
6611
6612         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
6613         5.2.1 and earlier, whereby \055 was treated just like the range
6614         delimiter '-'.
6615         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
6616
6617 2007-02-08  Bruno Haible  <bruno@clisp.org>
6618
6619         * modules/regex (Depends-on): Add stdbool.
6620         Reported by Dalibor Topic <robilad@kaffe.org>.
6621
6622 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
6623
6624         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
6625         Prefer returning from main to exiting from it.
6626         Remove unnecessary parens after sizeof.
6627
6628 2007-02-05  Bruno Haible  <bruno@clisp.org>
6629
6630         New module mbssep.
6631         * modules/mbssep: New file.
6632         * lib/mbssep.c: New file.
6633         * lib/string_.h (strsep): Add a conditional link warning.
6634         (mbssep): New declaration.
6635         * m4/mbssep.m4: New file.
6636         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6637         GNULIB_MBSSEP.
6638         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
6639         * MODULES.html.sh (Internationalization functions): Add mbssep.
6640
6641 2007-02-05  Bruno Haible  <bruno@clisp.org>
6642
6643         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
6644         Optimize search in case of 1 delimiter.
6645
6646 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
6647
6648         * lib/acl.h: Include sys/types.h before sys/acl.h.
6649
6650 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
6651
6652         Merge upstream fix for glibc bugzilla #3957:
6653
6654         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
6655
6656         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
6657         bit for RE_HAT_LISTS_NOT_NEWLINE.
6658         (build_charclass_op): Remove bogus comment.
6659
6660 2007-02-05  Simon Josefsson  <simon@josefsson.org>
6661
6662         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
6663
6664 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
6665
6666         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
6667         * lib/memmem.c [!defined _LIBC]: Include config.h.
6668
6669 2007-02-04  Bruno Haible  <bruno@clisp.org>
6670
6671         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
6672         warning message.
6673
6674 2007-02-04  Bruno Haible  <bruno@clisp.org>
6675
6676         New module mbstok_r.
6677         * modules/mbstok_r: New file.
6678         * lib/mbstok_r.c: New file.
6679         * lib/string_.h (strtok_r): Change argument names to match the
6680         comments. Add a conditional link warning.
6681         (mbstok_r): New declaration.
6682         * m4/mbstok_r.m4: New file.
6683         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6684         GNULIB_MBSTOK_R.
6685         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
6686         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
6687
6688 2007-02-04  Bruno Haible  <bruno@clisp.org>
6689
6690         New module mbsspn.
6691         * modules/mbsspn: New file.
6692         * lib/mbsspn.c: New file.
6693         * lib/string_.h (strspn): Add a conditional link warning.
6694         (mbsspn): New declaration.
6695         * m4/mbsspn.m4: New file.
6696         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6697         GNULIB_MBSSPN.
6698         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
6699         * MODULES.html.sh (Internationalization functions): Add mbsspn.
6700
6701 2007-02-04  Bruno Haible  <bruno@clisp.org>
6702
6703         New module mbspbrk.
6704         * modules/mbspbrk: New file.
6705         * lib/mbspbrk.c: New file.
6706         * lib/string_.h (strpbrk): Add a conditional link warning.
6707         (mbspbrk): New declaration.
6708         * m4/mbspbrk.m4: New file.
6709         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6710         GNULIB_MBSPBRK.
6711         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
6712         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
6713
6714 2007-02-04  Bruno Haible  <bruno@clisp.org>
6715
6716         New module mbscspn.
6717         * modules/mbscspn: New file.
6718         * lib/mbscspn.c: New file.
6719         * lib/string_.h (strcspn): Add a conditional link warning.
6720         (mbscspn): New declaration.
6721         * m4/mbscspn.m4: New file.
6722         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6723         GNULIB_MBSCSPN.
6724         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
6725         * MODULES.html.sh (Internationalization functions): Add mbscspn.
6726
6727 2007-02-04  Bruno Haible  <bruno@clisp.org>
6728
6729         New module mbscasestr, reduced goal of strcasestr.
6730         * modules/mbscasestr: New file.
6731         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
6732         (mbscasestr): Renamed from strcasestr.
6733         * lib/strcasestr.c: Don't include mbuiter.h.
6734         (strcasestr): Remove support for multibyte locales.
6735         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
6736         Change the conditional link warning.
6737         (mbscasestr): New declaration.
6738         * m4/mbscasestr.m4: New file.
6739         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
6740         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
6741         REPLACE_STRCASESTR.
6742         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
6743         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6744         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
6745         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
6746         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
6747         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
6748         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
6749         (Depends-on): Remove mbuiter.
6750         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
6751
6752 2007-02-04  Bruno Haible  <bruno@clisp.org>
6753
6754         Simplify handling of strncasecmp.
6755         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
6756         the conditional link warning.
6757         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6758         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
6759         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
6760         * modules/strcase (configure.ac): Don't invoke
6761         gl_STRING_MODULE_INDICATOR.
6762         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
6763
6764 2007-02-04  Bruno Haible  <bruno@clisp.org>
6765
6766         New module mbscasecmp, reduced goal of strcasecmp.
6767         * modules/mbscasecmp: New file.
6768         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
6769         (mbscasecmp): Renamed from strcasecmp.
6770         * lib/strcasecmp.c: Don't include mbuiter.h.
6771         (strcasecmp): Remove support for multibyte locales.
6772         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
6773         Change the conditional link warning.
6774         (mbscasecmp): New declaration.
6775         * m4/mbscasecmp.m4: New file.
6776         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
6777         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
6778         REPLACE_STRCASECMP.
6779         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
6780         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6781         GNULIB_MBSCASECMP.
6782         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
6783         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
6784         * modules/strcase (Files): Remove m4/mbrtowc.m4.
6785         (Depends-on): Remove mbuiter.
6786         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
6787
6788 2007-02-04  Bruno Haible  <bruno@clisp.org>
6789
6790         New module mbsstr. Remove module strstr.
6791         * modules/mbsstr: New file.
6792         * modules/strstr: Remove file.
6793         * lib/mbsstr.c: Renamed from lib/strstr.c.
6794         (mbsstr): Renamed from strstr.
6795         * lib/string_.h (strstr): Remove declaration. Change the conditional
6796         link warning.
6797         (mbsstr): New declaration.
6798         * m4/mbsstr.m4: New file.
6799         * m4/strstr.m4: Remove file.
6800         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
6801         REPLACE_STRSTR.
6802         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
6803         Don't initialize GNULIB_STRSTR.
6804         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
6805         substitute GNULIB_STRSTR and REPLACE_STRSTR.
6806         * MODULES.html.sh (Internationalization functions): Add mbsstr.
6807         (Support for systems lacking ANSI C 89): Remove strstr.
6808
6809 2007-02-04  Bruno Haible  <bruno@clisp.org>
6810
6811         New module mbsrchr.
6812         * modules/mbsrchr: New file.
6813         * lib/mbsrchr.c: New file.
6814         * lib/string_.h (strrchr): Add a conditional link warning.
6815         (mbsrchr): New declaration.
6816         * m4/mbsrchr.m4: New file.
6817         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6818         GNULIB_MBSRCHR.
6819         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
6820         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
6821
6822 2007-02-04  Bruno Haible  <bruno@clisp.org>
6823
6824         New module mbschr.
6825         * modules/mbschr: New file.
6826         * lib/mbschr.c: New file.
6827         * lib/string_.h (strchr): Add a conditional link warning.
6828         (mbschr): New declaration.
6829         * m4/mbschr.m4: New file.
6830         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6831         GNULIB_MBSCHR.
6832         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
6833         * MODULES.html.sh (Internationalization functions): Add mbschr.
6834
6835 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
6836
6837         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
6838
6839         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
6840
6841 2007-02-04  Bruno Haible  <bruno@clisp.org>
6842
6843         New module description section 'configure.ac-early'.
6844         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
6845         (func_get_autoconf_early_snippet): New function.
6846         (func_import, func_create_testdir): Use it. Remove special cases for
6847         modules 'extensions' and 'lock'.
6848         * modules/extensions (configure.ac-early): Require
6849         gl_USE_SYSTEM_EXTENSIONS.
6850         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
6851
6852 2007-02-04  Bruno Haible  <bruno@clisp.org>
6853
6854         Make use of gcj-4.3's -fsource and -ftarget option.
6855         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
6856         and if so try the options -fsource and -ftarget.
6857         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
6858         source_version, ftarget_option, target_version arguments.
6859         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
6860         (is_envjavac_oldgcj_14_14_usable): Renamed from
6861         is_envjavac_gcj_14_14_usable.
6862         (is_envjavac_oldgcj_14_13_usable): Renamed from
6863         is_envjavac_gcj_14_13_usable.
6864         (is_gcj_present): Update.
6865         (is_gcj_43, is_gcj43_usable): New functions.
6866         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
6867         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
6868         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
6869         try the options -fsource and -ftarget.
6870
6871 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
6872
6873         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
6874         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
6875         larger value.
6876
6877 2007-02-03  Jim Meyering  <jim@meyering.net>
6878
6879         Give tools a better chance to allocate space for very large buffers.
6880         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
6881
6882         Make pwd and readlink work also when run with an unreadable parent dir
6883         on systems with openat support.
6884         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
6885         provided getcwd function, even when we have openat support.
6886         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
6887
6888 2007-02-02  Bruno Haible  <bruno@clisp.org>
6889
6890         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
6891         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
6892         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
6893         portability problems if one of these functions is only used on specific
6894         platforms.
6895         Reported by Paul Eggert.
6896
6897 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
6898
6899         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
6900         is causing more trouble than it's curing.
6901         * lib/regex_internal.h (__mempcpy): Remove.
6902         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
6903         (and make the code a tad smaller to boot).
6904         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
6905
6906 2007-02-02  Jim Meyering  <jim@meyering.net>
6907
6908         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
6909         section, not in the Makefile.am: one.
6910
6911 2007-02-02  Eric Blake  <ebb9@byu.net>
6912
6913         * lib/strchrnul.c: Always include config.h first.
6914
6915         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
6916         gnulib strstr is not necessary here.
6917
6918 2007-02-02  Simon Josefsson  <simon@josefsson.org>
6919
6920         * m4/socklen.m4: Fix typo.
6921
6922 2007-02-02  Eric Blake  <ebb9@byu.net>
6923
6924         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
6925         * modules/netinet_in (Makefile.am): Likewise.
6926
6927 2007-02-01  Bruno Haible  <bruno@clisp.org>
6928
6929         * lib/string_.h (GL_LINK_WARNING): New macro.
6930         (strcasecmp, strstr, strcasestr): If provided by the system,
6931         conditionally define as a macro that leads to a warning instead of to
6932         an error.
6933         (strncasecmp): Conditionally define as a macro that leads to a warning.
6934
6935 2007-02-01  Karl Berry  <karl@gnu.org>
6936
6937         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
6938
6939 2007-02-01  Bruno Haible  <bruno@clisp.org>
6940
6941         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
6942         renamings.
6943
6944 2007-02-01  Eric Blake  <ebb9@byu.net>
6945
6946         * modules/regex (Depends-on): Revert dependence on mempcpy.
6947         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
6948         module's definition of mempcpy.
6949         Reported by Paul Eggert.
6950
6951 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
6952
6953         * lib/string_.h: If the gnulib module XYZ is not present, undefine
6954         the symbol XYZ before redefining it.  This fixes a problem with
6955         programs that don't use XYZ, when compiled on systems that define
6956         XYZ to something else.
6957
6958 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
6959
6960         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
6961         occurs when "mkdir -m foo" creates a setgid directory that is (1)
6962         writeable to group or other and (2) is intended to have a special
6963         mode bit that is set or cleared.  In such a case, the directory
6964         should be neither group- nor other-writeable until the special
6965         mode bits are right.
6966
6967 2007-01-31  Eric Blake  <ebb9@byu.net>
6968
6969         * modules/mountlist (Depends-on): Add strstr.
6970
6971         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
6972         bug.
6973         * modules/string (Makefile.am): Remove redundant replacement.
6974         * modules/regex (Depends-on): Add mempcpy.
6975
6976 2007-01-31  Bruno Haible  <bruno@clisp.org>
6977
6978         New module description field 'Link'.
6979         * gnulib-tool (func_usage): Document --extract-link-directive.
6980         (sed_extract_prog): Recognize 'Link' directive.
6981         (func_get_link_directive): New function.
6982         (func_import): Show summary of link directives.
6983         Handle --extract-link-directive option.
6984         * modules/acl (Link): New section.
6985         * modules/clock-time (Link): New section.
6986         * modules/euidaccess (Link): New section.
6987         * modules/gettext (Link): New section.
6988         * modules/iconv (Link): New section.
6989         * modules/lock (Link): New section.
6990         * modules/nanosleep (Link): New section.
6991         * modules/readline (Link): New section.
6992
6993 2007-01-27  Bruno Haible  <bruno@clisp.org>
6994
6995         Enforce the use of gnulib modules for unportable <string.h> functions.
6996         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
6997         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
6998         (gl_HEADER_STRING_H_BODY): Require it.
6999         * lib/string_.h: If the gnulib module XYZ is not present, redefine
7000         the symbol XYZ to one that gives a link error.
7001         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
7002         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
7003         * modules/mempcpy (configure.ac): Likewise.
7004         * modules/memrchr (configure.ac): Likewise.
7005         * modules/stpcpy (configure.ac): Likewise.
7006         * modules/stpncpy (configure.ac): Likewise.
7007         * modules/strcase (configure.ac): Likewise.
7008         * modules/strcasestr (configure.ac): Likewise.
7009         * modules/strchrnul (configure.ac): Likewise.
7010         * modules/strdup (configure.ac): Likewise.
7011         * modules/strndup (configure.ac): Likewise.
7012         * modules/strnlen (configure.ac): Likewise.
7013         * modules/strpbrk (configure.ac): Likewise.
7014         * modules/strsep (configure.ac): Likewise.
7015         * modules/strstr (configure.ac): Likewise.
7016         * modules/strtok_r (configure.ac): Likewise.
7017
7018 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
7019
7020         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
7021
7022 2007-01-30  Jim Meyering  <jim@meyering.net>
7023
7024         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
7025
7026 2007-01-29  Bruno Haible  <bruno@clisp.org>
7027
7028         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
7029         * lib/execute.c: Likewise.
7030         * lib/pipe.c: Likewise.
7031         * lib/printf-args.h: Likewise.
7032         * lib/printf-args.c: Likewise.
7033         * lib/printf-parse.c: Likewise.
7034         * lib/vasnprintf.c: Likewise.
7035
7036 2007-01-29  Eric Blake  <ebb9@byu.net>
7037
7038         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
7039         declaration.
7040
7041 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7042
7043         * lib/strptime.h (strptime): Use 'restrict' for args where
7044         POSIX requires this.
7045         * lib/strptime.c (strptime): Likewise.
7046         Change license notice from LGPL to GPL, since gnulib-tool will
7047         change this as needed.
7048         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
7049         defined.
7050         Include "strptime.h" first, to check interface.
7051         Do not #undef _LIBC and _NL_CURRENT.
7052         Do not include <stdlib.h>; no longer needed.
7053         Include "time_r.h" and declare ptime_locale_status
7054         only if _LIBC is not defined.
7055         (__P): Remove unused macro.
7056         (match_string): Bring back glibc version, but use it only if _LIBC
7057         is defined.
7058         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
7059         Remove unnecessary assertion and abort() call.
7060         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
7061         * m4/strptime.m4: Fix serial number comment.
7062         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
7063         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
7064         (Depends-on): Add time_r.
7065
7066 2007-01-29  Bruno Haible  <bruno@clisp.org>
7067
7068         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
7069         strptime.
7070         * modules/strptime (Depends-on): Add stdbool.
7071         * lib/strptime.h: Include <time.h> always. Add comments.
7072
7073 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
7074
7075         * modules/strptime: New file.
7076         * lib/strptime.h: New file.
7077         * lib/strptime.c: New file.
7078         * m4/strptime.m4: New file.
7079
7080 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7081
7082         * MODULES.html.sh: New module mpsort.
7083         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
7084
7085         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
7086         a circularity problem with HP-UX ia64 reported by Bob Proulx in
7087         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
7088         All uses changed.
7089         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
7090         All uses changed.
7091         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
7092         to _Restrict_.
7093         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
7094         the parameter matches the prototype.
7095
7096 2007-01-28  Jim Meyering  <jim@meyering.net>
7097
7098         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
7099         sys/time.h here, reverting that part of the previous patch:
7100         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
7101
7102 2007-01-28  Bruno Haible  <bruno@clisp.org>
7103
7104         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
7105         value of $(SYS_TIME_H).
7106         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
7107         remove it conditionally, too. [added by Jim Meyering]
7108         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
7109         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
7110         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
7111         GETTIMEOFDAY_REPLACEMENT to 1.
7112
7113 2007-01-28  Bruno Haible  <bruno@clisp.org>
7114
7115         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
7116         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
7117         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
7118         Set UNISTD_H instead of UNISTD_H2.
7119         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
7120
7121 2007-01-28  Bruno Haible  <bruno@clisp.org>
7122
7123         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
7124         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
7125
7126 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7127
7128         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
7129         (func_create_testdir): Ensure C locale for `grep' and `tr'
7130         character ranges.
7131         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
7132         ACLOCAL_AMFLAGS parsing state machine.
7133
7134 2007-01-27  Bruno Haible  <bruno@clisp.org>
7135
7136         * modules/unistr/base: Update.
7137
7138 2007-01-27  Bruno Haible  <bruno@clisp.org>
7139
7140         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
7141         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
7142         * modules/unistr/u32-mbtouc-unsafe: Renamed from
7143         modules/unistr/u32-mbtouc.
7144         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
7145         * lib/unistr.h: Update.
7146         * lib/linebreak.c: Update.
7147         * modules/unistr/u32-mbtouc: Renamed from
7148         modules/unistr/u32-mbtouc-safe.
7149         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
7150         * lib/unistr.h: Update.
7151         * lib/unistr/u32-to-u8.c: Update.
7152         * lib/unistr/u32-to-u16.c: Update.
7153
7154 2007-01-27  Bruno Haible  <bruno@clisp.org>
7155
7156         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
7157         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
7158         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
7159         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
7160         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
7161         * modules/unistr/u16-mbtouc-unsafe: Renamed from
7162         modules/unistr/u16-mbtouc.
7163         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
7164         * lib/unistr.h: Update.
7165         * lib/linebreak.c: Update.
7166         * modules/linebreak: Update.
7167         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
7168         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
7169         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
7170         * modules/unistr/u16-mbtouc: Renamed from
7171         modules/unistr/u16-mbtouc-safe.
7172         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
7173         * lib/unistr.h: Update.
7174         * lib/unistr/u16-to-u8.c: Update.
7175         * modules/unistr/u16-to-u8: Update.
7176         * lib/unistr/u16-to-u32.c: Update.
7177         * modules/unistr/u16-to-u32: Update.
7178
7179 2007-01-27  Bruno Haible  <bruno@clisp.org>
7180
7181         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
7182         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
7183         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
7184         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
7185         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
7186         * modules/unistr/u8-mbtouc-unsafe: Renamed from
7187         modules/unistr/u8-mbtouc.
7188         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
7189         * lib/unistr.h: Update.
7190         * lib/striconveh.c: Update.
7191         * modules/striconveh: Update.
7192         * lib/linebreak.c: Update.
7193         * modules/linebreak: Update.
7194         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
7195         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
7196         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
7197         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
7198         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
7199         * lib/unistr.h: Update.
7200         * lib/striconveh.c: Update.
7201         * modules/striconveh: Update.
7202         * lib/unistr/u8-to-u16.c: Update.
7203         * modules/unistr/u8-to-u16: Update.
7204         * lib/unistr/u8-to-u32.c: Update.
7205         * modules/unistr/u8-to-u32: Update.
7206
7207 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7208
7209         Sync from Libtool.
7210         * lib/argz.c: Do not include strings.h nor memory.h, include
7211         string.h unconditionally.  Patch by Simon Josefsson.
7212
7213 2007-01-27  Bruno Haible  <bruno@clisp.org>
7214
7215         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
7216         from gl_HEADER_STRING_H_BODY.
7217         (gl_HEADER_STRING_H_BODY): Require it.
7218         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
7219         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
7220         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
7221         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
7222         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7223         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
7224         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7225         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
7226         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
7227         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
7228         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
7229         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
7230         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
7231         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7232         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
7233
7234 2007-01-27  Bruno Haible  <bruno@clisp.org>
7235
7236         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
7237         check_PROGRAMS into noinst_PROGRAMS.
7238         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
7239         check_PROGRAMS in this case.
7240         (func_import): Set for_test to false.
7241         (func_create_testdir): Set for_test to true.
7242
7243 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7244             Bruno Haible  <bruno@clisp.org>
7245
7246         * modules/strcasestr (Files): Remove lib/strcasestr.h.
7247         (Depends-on): Add string.
7248         (Includes): Use <string.h> instead of strcasestr.h.
7249         * modules/string (Makefile.am): Also substitute the value of
7250         REPLACE_STRCASESTR.
7251         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
7252         assume strcasestr is declared in <string.h> not <strings.h>. Also
7253         set REPLACE_STRCASESTR.
7254         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
7255         REPLACE_STRCASESTR.
7256         * lib/strcasestr.h: Remove file.
7257         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
7258         * lib/string_.h (strcasestr): New declaration.
7259
7260 2007-01-27  Bruno Haible  <bruno@clisp.org>
7261
7262         * lib/string_.h: Use 'extern'.
7263
7264 2007-01-27  Jim Meyering  <jim@meyering.net>
7265
7266         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
7267         of set-but-not-used local, "q".
7268
7269         * lib/mempcpy.c: Include <config.h> before <string.h>.
7270         This fixes a compilation error on HP-UX, due to the system's
7271         "restrict"-using mempcpy prototype.
7272
7273 2007-01-26  Bruno Haible  <bruno@clisp.org>
7274
7275         Small optimization.
7276         * lib/javacomp.c: Include c-strstr.h.
7277          (is_envjavac_gcj): Use c_strstr instead of strstr.
7278         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
7279
7280 2007-01-26  Bruno Haible  <bruno@clisp.org>
7281
7282         * MODULES.html.sh (Unicode string functions): Add the new modules.
7283
7284         * modules/uniconv/u32-strconv-to-locale: New file.
7285         * lib/uniconv/u32-strconv-to-locale.c: New file.
7286
7287         * modules/uniconv/u16-strconv-to-locale: New file.
7288         * lib/uniconv/u16-strconv-to-locale.c: New file.
7289
7290         * modules/uniconv/u8-strconv-to-locale: New file.
7291         * lib/uniconv/u8-strconv-to-locale.c: New file.
7292
7293         * modules/uniconv/u32-strconv-from-locale: New file.
7294         * lib/uniconv/u32-strconv-from-locale.c: New file.
7295
7296         * modules/uniconv/u16-strconv-from-locale: New file.
7297         * lib/uniconv/u16-strconv-from-locale.c: New file.
7298
7299         * modules/uniconv/u8-strconv-from-locale: New file.
7300         * lib/uniconv/u8-strconv-from-locale.c: New file.
7301
7302         * modules/uniconv/u32-strconv-to-enc: New file.
7303         * lib/uniconv/u32-strconv-to-enc.c: New file.
7304         * modules/uniconv/u32-strconv-to-enc-tests: New file.
7305         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
7306
7307         * modules/uniconv/u16-strconv-to-enc: New file.
7308         * lib/uniconv/u16-strconv-to-enc.c: New file.
7309         * lib/uniconv/u-strconv-to-enc.h: New file.
7310         * modules/uniconv/u16-strconv-to-enc-tests: New file.
7311         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
7312
7313         * modules/uniconv/u8-strconv-to-enc: New file.
7314         * lib/uniconv/u8-strconv-to-enc.c: New file.
7315         * modules/uniconv/u8-strconv-to-enc-tests: New file.
7316         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
7317
7318         * modules/uniconv/u32-strconv-from-enc: New file.
7319         * lib/uniconv/u32-strconv-from-enc.c: New file.
7320         * modules/uniconv/u32-strconv-from-enc-tests: New file.
7321         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
7322
7323         * modules/uniconv/u16-strconv-from-enc: New file.
7324         * lib/uniconv/u16-strconv-from-enc.c: New file.
7325         * modules/uniconv/u16-strconv-from-enc-tests: New file.
7326         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
7327
7328         * modules/uniconv/u8-strconv-from-enc: New file.
7329         * lib/uniconv/u8-strconv-from-enc.c: New file.
7330         * lib/uniconv/u-strconv-from-enc.h: New file.
7331         * modules/uniconv/u8-strconv-from-enc-tests: New file.
7332         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
7333
7334         * modules/uniconv/u32-conv-from-enc: New file.
7335         * lib/uniconv/u32-conv-from-enc.c: New file.
7336         * modules/uniconv/u32-conv-from-enc-tests: New file.
7337         * tests/uniconv/test-u32-conv-from-enc.c: New file.
7338
7339         * modules/uniconv/u16-conv-from-enc: New file.
7340         * lib/uniconv/u16-conv-from-enc.c: New file.
7341         * lib/uniconv/u-conv-from-enc.h: New file.
7342         * modules/uniconv/u16-conv-from-enc-tests: New file.
7343         * tests/uniconv/test-u16-conv-from-enc.c: New file.
7344
7345         * modules/uniconv/u8-conv-from-enc: New file.
7346         * lib/uniconv/u8-conv-from-enc.c: New file.
7347         * modules/uniconv/u8-conv-from-enc-tests: New file.
7348         * tests/uniconv/test-u8-conv-from-enc.c: New file.
7349
7350         * modules/uniconv/base: New file.
7351         * lib/uniconv.h: New file.
7352
7353 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
7354
7355         * doc/gnulib-tool.texi (Initial import): Update to match current
7356         behavior with strdup module.
7357         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
7358         * lib/memmem.h: Remove; all uses removed.  This is now done
7359         by <string.h>.
7360         * lib/mempcpy.h: Likewise.
7361         * lib/memrchr.h: Likewise.
7362         * lib/stpcpy.h: Likewise.
7363         * lib/stpncpy.h: Likewise.
7364         * lib/strcase.h: Likewise.
7365         * lib/strchrnul.h: Likewise.
7366         * lib/strdup.h: Likewise.
7367         * lib/strndup.h: Likewise.
7368         * lib/strnlen.h: Likewise.
7369         * lib/strpbrk.h: Likewise.
7370         * lib/strsep.h: Likewise.
7371         * lib/strstr.h: Likewise.
7372         * lib/strtok_r.h: Likewise.
7373         * lib/string_.h: New file.
7374         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
7375         Rely on <string.h> instead.
7376         * lib/canon-host.c: Likewise.
7377         * lib/chdir-long.c: Likewise.
7378         * lib/concatpath.c: Likewise.
7379         * lib/exclude.c: Likewise.
7380         * lib/fchdir.c: Likewise.
7381         * lib/getaddrinfo.c: Likewise.
7382         * lib/getcwd.c: Likewise.
7383         * lib/getsubopt.c: Likewise.
7384         * lib/glob.c: Likewise.
7385         * lib/hard-locale.c: Likewise.
7386         * lib/iconvme.c: Likewise.
7387         * lib/javacomp.c: Likewise.
7388         * lib/mempcpy.c: Likewise.
7389         * lib/memrchr.c: Likewise.
7390         * lib/regex_internal.h: Likewise.
7391         * lib/stpncpy.c: Likewise.
7392         * lib/strcasecmp.c: Likewise.
7393         * lib/strchrnul.c: Likewise.
7394         * lib/strdup.c: Likewise.
7395         * lib/striconv.c: Likewise.
7396         * lib/striconveh.c: Likewise.
7397         * lib/striconveha.c: Likewise.
7398         * lib/strncasecmp.c: Likewise.
7399         * lib/strndup.c: Likewise.
7400         * lib/strnlen.c: Likewise.
7401         * lib/strsep.c: Likewise.
7402         * lib/strstr.c: Likewise.
7403         * lib/strtok_r.c: Likewise.
7404         * lib/userspec.c: Likewise.
7405         * lib/w32spawn.h: Likewise.
7406         * lib/xstrndup.c: Likewise.
7407         * lib/mountlist.c (strstr): Remove decl.
7408         * m4/string_h.m4: New file.
7409         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
7410         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
7411         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
7412         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
7413         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
7414         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
7415         Set REPLACE_STRCASECMP if necessary.
7416         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
7417         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
7418         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
7419         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
7420         HAVE_DECL_STRDUP if necessary.
7421         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
7422         since gl_FUNC_STRNDUP does that now.
7423         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
7424         Check for decl here...
7425         (gl_PREREQ_STRNLEN): ... not here.
7426         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
7427         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
7428         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
7429         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
7430         necessary.
7431         * modules/string: New file.
7432         * modules/memmem (Files): Remove special-purpose include file.
7433         (Depends-on): Add string.
7434         (Include): Include <string.h>, not the removed file.
7435         * modules/mempcpy: Likewise.
7436         * modules/memrchr: Likewise.
7437         * modules/stpcpy: Likewise.
7438         * modules/stpncpy: Likewise.
7439         * modules/strcase: Likewise.
7440         * modules/strchrnul: Likewise.
7441         * modules/strdup: Likewise.
7442         * modules/strndup: Likewise.
7443         * modules/strnlen: Likewise.
7444         * modules/strpbrk: Likewise.
7445         * modules/strsep: Likewise.
7446         * modules/strstr: Likewise.
7447         * modules/strtok_r: Likewise.
7448         * tests/test-dirname.c: Don't include "strdup.h", since
7449         <string.h> now suffices.
7450         * tests/test-memmem.c: Don't include "memmem.h", since
7451         <string.h> now suffices.
7452
7453 2007-01-25  Bruno Haible  <bruno@clisp.org>
7454
7455         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
7456         *resultp is 0.
7457
7458         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
7459         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
7460         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
7461         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
7462
7463         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
7464         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
7465         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
7466         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
7467         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
7468         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
7469
7470 2007-01-24  Bruno Haible  <bruno@clisp.org>
7471
7472         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
7473         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
7474         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
7475         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
7476         gl_FUNC_FTS_CORE.
7477         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
7478         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
7479         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7480         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
7481         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
7482         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
7483         gl_FUNC_FCHOWNAT.
7484         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
7485         gl_FUNC_STRFTIME.
7486         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
7487         Reported by Ralf Wildenhues.
7488
7489 2007-01-24  Bruno Haible  <bruno@clisp.org>
7490
7491         Drop AC_REQUIRE calls that are redundant with the module dependencies.
7492         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
7493         gl_GETADDRINFO.
7494         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
7495         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
7496         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
7497
7498 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
7499
7500         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
7501         Don't use 'exit'; just return from 'main'.
7502         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
7503
7504         * lib/fnmatch_.h: Readjust white space and comments to match
7505         glibc, to avoid spurious diffs.
7506
7507 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7508
7509         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
7510         2004-12-01 change by Jakub Jelinek, since this code won't compile
7511         if !LIBC.  Problem reported by Bob Proulx.
7512
7513 2007-01-23  Bruno Haible  <bruno@clisp.org>
7514
7515         * lib/striconveh.c: Include c-strcaseeq.h.
7516         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
7517         * modules/striconveh (Depends-on): Add c-strcaseeq.
7518
7519 2007-01-23  Bruno Haible  <bruno@clisp.org>
7520
7521         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
7522
7523         * modules/c-strcaseeq: New file.
7524         * lib/c-strcaseeq.h: New file.
7525
7526         * modules/streq: New file.
7527         * lib/streq.h: New file.
7528
7529 2007-01-23  Bruno Haible  <bruno@clisp.org>
7530
7531         * modules/striconveha-tests: New file.
7532         * tests/test-striconveha.c: New file.
7533
7534         * lib/striconveha.h: Include <stdbool.h>.
7535         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
7536         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
7537         (mem_iconveha_notranslit): Renamed from mem_iconveha.
7538         (mem_iconveha): New function.
7539         (str_iconveha_notranslit): Renamed from str_iconveha.
7540         (str_iconveha): New function.
7541         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
7542         c-strcase.
7543
7544 2007-01-23  Bruno Haible  <bruno@clisp.org>
7545
7546         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
7547         encodings without forgiving before trying any encoding with handler.
7548         (str_iconveha): Try all encodings without forgiving before trying any
7549         encoding with handler.
7550
7551 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7552
7553         Import the following changes from libc.
7554
7555         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
7556
7557         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
7558
7559         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
7560
7561         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
7562         normal_bracket label.
7563
7564         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
7565
7566         [BZ #361]
7567         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
7568         to normal_bracket after fetching the next character.
7569
7570 2007-01-22  Bruno Haible  <bruno@clisp.org>
7571
7572         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
7573         argument.
7574         * lib/striconveh.c (iconv_carefully_1): New function.
7575         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
7576         argument.
7577         (str_cd_iconveh): Update.
7578         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
7579         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
7580         * tests/test-striconveh.c (MAGIC): New macro.
7581         (new_offsets): New function.
7582         (main): Test call with and without offsets.
7583
7584 2007-01-22  Bruno Haible  <bruno@clisp.org>
7585
7586         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
7587         * modules/sys_select (Makefile.am): Likewise.
7588         * modules/sys_socket (Makefile.am): Likewise.
7589         * modules/sys_time (Makefile.am): Likewise.
7590
7591 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
7592
7593         * modules/gettimeofday (License): Change from GPL to LGPL, since
7594         gettimeofday is a library function.
7595
7596 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7597
7598         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
7599
7600 2007-01-21  Bruno Haible  <bruno@clisp.org>
7601
7602         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
7603
7604 2007-01-21  Bruno Haible  <bruno@clisp.org>
7605
7606         * modules/striconveha: New file.
7607         * lib/striconveha.h: New file.
7608         * lib/striconveha.c: New file.
7609         * MODULES.html.sh (Internationalization functions): Add striconveha.
7610         * lib/striconv.c (str_iconv): Optimize the case of an empty input
7611         string.
7612         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
7613
7614 2007-01-21  Bruno Haible  <bruno@clisp.org>
7615
7616         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
7617         * lib/striconveh.c (str_iconveh): Likewise.
7618
7619 2007-01-21  Bruno Haible  <bruno@clisp.org>
7620
7621         * lib/striconveh.h (mem_iconveh): New declaration.
7622         * lib/striconveh.c (mem_iconveh): New function.
7623         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
7624
7625 2007-01-21  Bruno Haible  <bruno@clisp.org>
7626
7627         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
7628
7629         * lib/striconveh.h (mem_cd_iconveh): Change specification.
7630         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
7631         original result buffer.
7632         (str_cd_iconveh): Update.
7633         * tests/test-striconveh.c (main): Update.
7634
7635         * lib/striconv.h (mem_cd_iconv): Change specification.
7636         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
7637         result buffer.
7638         (str_cd_iconv): Update.
7639         * tests/test-striconv.c (main): Update.
7640
7641 2007-01-21  Bruno Haible  <bruno@clisp.org>
7642
7643         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
7644
7645 2007-01-20  Jim Meyering  <jim@meyering.net>
7646
7647         * lib/userspec.c (parse_with_separator): If a user or group string
7648         starts with "+", skip the corresponding name-to-ID look-up, since
7649         such a look-up must fail: user and group names may not include "+".
7650
7651 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
7652
7653         * lib/poll.c: Include sys/time.h and time.h unconditionally,
7654         since we now assume the sys_time module.
7655         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
7656         check for sys/time.h; no longer needed.
7657         * modules/poll (Depends-on): Depend on sys_time.
7658
7659 2007-01-18  Bruno Haible  <bruno@clisp.org>
7660
7661         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
7662         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
7663
7664         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
7665         gettimeofday.
7666
7667         * tests/test-gettimeofday.c: Include <time.h>.
7668         (dummy): Remove variable.
7669
7670         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
7671         gl_HEADER_SYS_TIME_H.
7672         (gl_HEADER_SYS_TIME_H): New macro.
7673
7674         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
7675         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7676         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
7677         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
7678         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7679         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
7680         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
7681         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7682         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
7683         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
7684         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7685
7686         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
7687         last change; it caused a compilation error when cross-compiling to
7688         Cygwin.
7689
7690 2007-01-18  Jim Meyering  <jim@meyering.net>
7691
7692         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
7693         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
7694         than the race-prone "test -d sys || mkdir sys".
7695         (configure.ac): Use AC_PROG_MKDIR_P.
7696         * modules/sys_select: Likewise.
7697         * modules/sys_socket: Likewise.
7698         * modules/sys_time: Likewise.
7699
7700 2007-01-18  Eric Blake  <ebb9@byu.net>
7701
7702         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
7703         replace gettimeofday.
7704         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
7705         name, to avoid infinite recursion.
7706
7707 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
7708
7709         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
7710         module sys_time.
7711         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
7712         assume timespec.h defines struct timeval.
7713         * lib/settime.c: Likewise.
7714         * lib/utimens.c: Likewise.
7715         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
7716         since we now assume the gettimeofday module.
7717         * lib/tempname.c (__gen_tempname): Likewise.
7718         * lib/gettimeofday.h: Remove.
7719         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
7720         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
7721         Include <time.h>, for 'time()'.
7722         (localtime_buffer_addr): Also use this workaround if
7723         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
7724         to simplify the uses.  All uses changed.
7725         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
7726         that #undef is inside {}, and 'const' follows type name consistently.
7727         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
7728         (gettimeofday): Do not use the maximum possible value for
7729         tv->tv_usec, since that might break usages other than ls.c.
7730         Instead, we'll leave ls.c alone.  This undoes today's patch
7731         by Bruno.  Add a compile-time warning for 1s-clock resolution;
7732         we've never observed the problem but might as well keep the
7733         canary.
7734         * lib/nanosleep.c: Include timespec.h first, for interface check.
7735         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
7736         now assume the sys_time module.
7737         * lib/tempname.c: Likewise.
7738         * lib/timespec.h: Likewise.
7739         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
7740         needed.
7741         * lib/strftime.c: Likewise.
7742         * lib/timespec.h: Likewise.
7743         * lib/posixtm.c: Include posixtm.h first, for interface check.
7744         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
7745         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
7746         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
7747         * lib/sys_time_.h: New file.
7748         * lib/timespec.h (struct timespec): Use long int, not long.
7749         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
7750         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
7751         Remove obsolescent call to AC_HEADER_TIME.
7752         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7753         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7754         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
7755         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
7756         Likewise.
7757         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
7758         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
7759         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
7760         into the sys_time module.  Check for gettimeofday just once.
7761         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
7762         for gettimeofday signature to just check the signature.  Merely
7763         compile it, since linking doesn't test signature.  Improve test for
7764         whether gettimeofday.o is actually needed.
7765         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
7766         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
7767         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
7768         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7769         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
7770         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
7771         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
7772         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
7773         than worrying about sys/time.h.
7774         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
7775         Don't bother worrying about TIME_WITH_SYS_TIME.
7776         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
7777         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
7778         * m4/sys_time_h.m4: New file.
7779         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
7780         Don't include sys/time.h.  Return from main rather than exiting.
7781         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
7782         all uses changed.
7783         * modules/gethrxtime (Depends-on): Add sys_time.
7784         * modules/gettime (Depends-on): Likewise.
7785         * modules/gettimeofday (Depends-on): Likewise.
7786         * modules/nanosleep (Depends-on): Likewise.
7787         * modules/settime (Depends-on): Likewise.
7788         * modules/tempname (Depends-on): Likewise.
7789         * modules/utimens (Depends-on): Likewise.
7790         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
7791         (Include:) Change back to <sys/time.h>.
7792         (Maintainer:) Add self.
7793         * modules/sys_time: New file.
7794         * modules/tempname (Depends-on): Add gettimeofday.
7795         * tests/test-gettimeofday.c: Include <sys/time.h>
7796         rather than gettimeofday.h.
7797
7798 2007-01-17  Bruno Haible  <bruno@clisp.org>
7799
7800         * gnulib-tool (func_get_license): Revert last patch. Instead, let
7801         the license default to GPL.
7802         (func_create_testdir): Don't complain if a module is LGPL and its
7803         tests module depends on GPLed modules.
7804
7805 2007-01-17  Bruno Haible  <bruno@clisp.org>
7806
7807         * lib/gettimeofday.c (gettimeofday): Add code for the case
7808         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
7809         maximum possible value for tv->tv_usec, rather than the minimum one.
7810
7811 2005-10-08  Martin Lambers  <marlam@marlam.de>
7812 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
7813 2007-01-16  Bruno Haible  <bruno@clisp.org>
7814
7815         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
7816         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
7817         gl_FUNC_GETTIMEOFDAY.
7818         (Include): Add gettimeofday.h.
7819         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
7820         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
7821         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
7822         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
7823         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
7824         * lib/gettimeofday.h: New file.
7825         * lib/gettimeofday.c: Include <sys/timeb.h>.
7826         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
7827         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7828         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
7829         fall back on time().
7830
7831         * tests/test-gettimeofday.c: New file.
7832         * modules/gettimeofday-tests: New file.
7833
7834 2007-01-16  Eric Blake  <ebb9@byu.net>
7835
7836         * modules/fnmatch (Depends-on): Depend on wchar.
7837         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
7838         * m4/fnmatch.m4: Likewise.
7839         * modules/mbchar (Makefile.am): Assume <wchar.h>.
7840         * m4/mbchar.m4: Likewise.
7841         * modules/mbswidth (Depends-on): Depend on wchar.
7842         * lib/mbswidth.c: Assume <wchar.h>.
7843         * m4/mbswidth.m4: Likewise.
7844         * modules/quotearg (Depends-on): Depend on wchar.
7845         * lib/quotearg.c: Assume <wchar.h>.
7846         * m4/quotearg.m4: Likewise.
7847         * modules/regex (Depends-on): Depend on wchar.
7848         * lib/regex_internal.h: Assume <wchar.h>.
7849         * m4/regex.m4: Likewise.
7850         * modules/stdint (Depends-on): Depend on wchar.
7851         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
7852         * m4/stdint.m4: Likewise.
7853         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
7854         * modules/strftime (Depends-on): Depend on wchar.
7855         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
7856         * modules/strtol (Depends-on): Depend on wchar.
7857         * lib/strtol.c: Assume <wchar.h>.
7858         * modules/wcwidth (Depends-on): Depend on wchar.
7859         * lib/wcwidth.h: Assume <wchar.h>.
7860         * m4/wcwidth.m4: Likewise.
7861
7862 2007-01-16  Bruno Haible  <bruno@clisp.org>
7863
7864         * modules/csharpexec-script: New, created from...
7865         * modules/csharpexec: ... this.
7866
7867 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
7868
7869         * modules/javaexec-script: New, created from...
7870         * modules/javaexec: ... this.
7871
7872 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7873
7874         * modules/poll (Dependencies): Add sys_select.
7875
7876 2007-01-15  Jim Meyering  <jim@meyering.net>
7877
7878         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
7879         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
7880         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
7881         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
7882
7883 2007-01-15  Bruno Haible  <bruno@clisp.org>
7884
7885         * modules/striconveh: New file.
7886         * lib/striconveh.h: New file.
7887         * lib/striconveh.c: New file.
7888         * MODULES.html.sh (Internationalization functions): Add striconveh.
7889
7890         * modules/striconveh-tests: New file.
7891         * tests/test-striconveh.c: New file.
7892
7893 2007-01-15  Bruno Haible  <bruno@clisp.org>
7894
7895         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
7896         not from GNU libiconv or GNU libc.
7897
7898 2007-01-15  Bruno Haible  <bruno@clisp.org>
7899
7900         * doc/gnulib-intro.texi (Copyright): Explain the different license
7901         terms for module descriptions, autoconf macros, tests, documentation.
7902
7903 2007-01-14  Bruno Haible  <bruno@clisp.org>
7904
7905         * modules/striconv-tests: New file.
7906         * tests/test-striconv.c: New file.
7907
7908 2007-01-14  Bruno Haible  <bruno@clisp.org>
7909
7910         * modules/iconv-tests: New file.
7911         * tests/test-iconv.c: New file.
7912
7913 2007-01-14  Bruno Haible  <bruno@clisp.org>
7914
7915         * gnulib-tool (func_get_license): For test modules, use the license of
7916         the main module.
7917
7918 2007-01-14  Bruno Haible  <bruno@clisp.org>
7919
7920         * modules/iconv (Include): Clarify that <iconv.h> can only be included
7921         if iconv is found to exist.
7922
7923 2007-01-14  Bruno Haible  <bruno@clisp.org>
7924
7925         * modules/c-ctype-tests: New file.
7926         * tests/test-c-ctype.c: New file.
7927
7928 2007-01-14  Bruno Haible  <bruno@clisp.org>
7929
7930         * modules/binary-io-tests: New file.
7931         * tests/test-binary-io.sh: New file.
7932         * tests/test-binary-io.c: New file.
7933
7934 2007-01-14  Bruno Haible  <bruno@clisp.org>
7935
7936         * modules/array-oset-tests: New file.
7937         * tests/test-array_oset.c: New file.
7938
7939 2007-01-14  Bruno Haible  <bruno@clisp.org>
7940
7941         * modules/array-list-tests: New file.
7942         * tests/test-array_list.c: New file.
7943
7944 2007-01-14  Bruno Haible  <bruno@clisp.org>
7945
7946         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
7947         and make.
7948         Reported by Simon Josefsson in
7949         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
7950
7951 2007-01-14  Bruno Haible  <bruno@clisp.org>
7952
7953         * modules/allocsa-tests: New file.
7954         * tests/test-allocsa.c: New file.
7955
7956 2007-01-14  Bruno Haible  <bruno@clisp.org>
7957
7958         * modules/fchdir (Depends-on): Add absolute-header.
7959         * modules/unistd (Depends-on): Likewise.
7960
7961 2006-12-30  Bruno Haible  <bruno@clisp.org>
7962
7963         * modules/fchdir: New file.
7964         * modules/unistd (Files): Add lib/unistd_.h.
7965         (Makefile.am): Generate unistd.h from unistd_.h.
7966         * lib/fchdir.c: New file.
7967         * lib/dirent_.h: New file.
7968         * lib/unistd_.h: New file.
7969         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
7970         * m4/fchdir.m4: New file.
7971         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
7972         (gl_HEADER_UNISTD): Invoke it.
7973         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
7974         function.
7975         * lib/backupfile.c (opendir, closedir): Undefine.
7976         * lib/chown.c (open, close): Undefine.
7977         * lib/clean-temp.c (open, close): Undefine.
7978         * lib/copy-file.c (open, close): Undefine.
7979         * lib/execute.c (open, close): Undefine.
7980         * lib/fsusage.c (open, close): Undefine.
7981         * lib/gc-gnulib.c (open, close): Undefine.
7982         * lib/getcwd.c (opendir, closedir): Undefine.
7983         * lib/glob.c (opendir, closedir): Undefine.
7984         * lib/javacomp.c (open, close): Undefine.
7985         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
7986         * lib/openat-proc.c (open, close): Undefine.
7987         * lib/pagealign_alloc.c (open, close): Undefine.
7988         * lib/pipe.c (open, close): Undefine.
7989         * lib/progreloc.c (open, close): Undefine.
7990         * lib/savedir.c (opendir, closedir): Undefine.
7991         * lib/utime.c (open, close): Undefine.
7992         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
7993
7994 2007-01-10  Bruno Haible  <bruno@clisp.org>
7995
7996         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
7997
7998 2007-01-12  Eric Blake  <ebb9@byu.net>
7999
8000         Provide a robust <wchar.h>.  Further simplifications are now
8001         possible in other modules, but not included here.
8002         * modules/wchar: New module.
8003         * m4/wchar.m4: New file.
8004         * lib/wchar_.h: Likewise.
8005         * modules/mbchar (Depends-on): Depend on wchar, as the first use
8006         of the new module.
8007         * MODULES.html.sh (Extended multibyte and wide character utilities):
8008         New section.
8009
8010 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
8011
8012         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
8013         to a reasonable default for memory allocation.
8014         (xreadlink): Don't allocate a huge buffer, to work around a buggy
8015         file system that reports garbage st_size values for symlinks.
8016         Problem reported by Liyang Hu.
8017
8018 2007-01-11  Simon Josefsson  <simon@josefsson.org>
8019
8020         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
8021         Emacs .#* auto-save files).
8022
8023 2007-01-11  Bruno Haible  <bruno@clisp.org>
8024
8025         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
8026         directory.
8027
8028 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
8029
8030         Use @...@ consistently in lib/wctype_.h.
8031         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
8032         on it being set to 1 or 0.
8033         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
8034         go back to AC_SUBSTing it.
8035         * modules/wctype (Makefile.am): Undo previous change.
8036
8037 2007-01-10  Eric Blake  <ebb9@byu.net>
8038
8039         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
8040         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
8041         * modules/wctype (Makefile.am): Likewise.
8042         Reported by Chris McGuire.
8043
8044 2007-01-10  Jim Meyering  <jim@meyering.net>
8045
8046         fts.c: a small readability/maintainability improvement
8047         * lib/fts.c (fts_read): Make this code slightly more readable and
8048         maintainable by hoisting the "sp->fts_cur = p" assignments to
8049         immediately follow the statements that set P.  Derived from
8050         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
8051
8052 2007-01-10  Eric Blake  <ebb9@byu.net>
8053
8054         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
8055         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
8056         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8057         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
8058         Reported by Chris McGuire.
8059
8060 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8061
8062         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
8063         in sed script.
8064
8065 2007-01-09  Bruno Haible  <bruno@clisp.org>
8066
8067         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
8068         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
8069         variables.
8070         (func_module): Use them.
8071
8072 2007-01-09  Bruno Haible  <bruno@clisp.org>
8073
8074         * modules/unistr/base: New file.
8075         * lib/unistr.h: New file.
8076
8077         * modules/unistr/u8-to-u16: New file.
8078         * lib/unistr/u8-to-u16.c: New file.
8079
8080         * modules/unistr/u8-to-u32: New file.
8081         * lib/unistr/u8-to-u32.c: New file.
8082
8083         * modules/unistr/u16-to-u8: New file.
8084         * lib/unistr/u16-to-u8.c: New file.
8085
8086         * modules/unistr/u16-to-u32: New file.
8087         * lib/unistr/u16-to-u32.c: New file.
8088
8089         * modules/unistr/u32-to-u8: New file.
8090         * lib/unistr/u32-to-u8.c: New file.
8091
8092         * modules/unistr/u32-to-u16: New file.
8093         * lib/unistr/u32-to-u16.c: New file.
8094
8095         * modules/unistr/u8-check: New file.
8096         * modules/unistr/u16-check: New file.
8097         * modules/unistr/u32-check: New file.
8098         * lib/unistr/u8-check.c: New file.
8099         * lib/unistr/u16-check.c: New file.
8100         * lib/unistr/u32-check.c: New file.
8101
8102         * modules/unistr/u8-chr: New file.
8103         * modules/unistr/u16-chr: New file.
8104         * modules/unistr/u32-chr: New file.
8105         * lib/unistr/u8-chr.c: New file.
8106         * lib/unistr/u16-chr.c: New file.
8107         * lib/unistr/u32-chr.c: New file.
8108
8109         * modules/unistr/u8-cmp: New file.
8110         * modules/unistr/u16-cmp: New file.
8111         * modules/unistr/u32-cmp: New file.
8112         * lib/unistr/u8-cmp.c: New file.
8113         * lib/unistr/u16-cmp.c: New file.
8114         * lib/unistr/u32-cmp.c: New file.
8115
8116         * modules/unistr/u8-cpy: New file.
8117         * modules/unistr/u16-cpy: New file.
8118         * modules/unistr/u32-cpy: New file.
8119         * lib/unistr/u8-cpy.c: New file.
8120         * lib/unistr/u16-cpy.c: New file.
8121         * lib/unistr/u32-cpy.c: New file.
8122         * lib/unistr/u-cpy.h: New file.
8123
8124         * modules/unistr/u8-cpy-alloc: New file.
8125         * modules/unistr/u16-cpy-alloc: New file.
8126         * modules/unistr/u32-cpy-alloc: New file.
8127         * lib/unistr/u8-cpy-alloc.c: New file.
8128         * lib/unistr/u16-cpy-alloc.c: New file.
8129         * lib/unistr/u32-cpy-alloc.c: New file.
8130         * lib/unistr/u-cpy-alloc.h: New file.
8131
8132         * modules/unistr/u8-endswith: New file.
8133         * modules/unistr/u16-endswith: New file.
8134         * modules/unistr/u32-endswith: New file.
8135         * lib/unistr/u8-endswith.c: New file.
8136         * lib/unistr/u16-endswith.c: New file.
8137         * lib/unistr/u32-endswith.c: New file.
8138         * lib/unistr/u-endswith.h: New file.
8139
8140         * modules/unistr/u8-mblen: New file.
8141         * modules/unistr/u16-mblen: New file.
8142         * modules/unistr/u32-mblen: New file.
8143         * lib/unistr/u8-mblen.c: New file.
8144         * lib/unistr/u16-mblen.c: New file.
8145         * lib/unistr/u32-mblen.c: New file.
8146
8147         * modules/unistr/u8-mbtouc: New file.
8148         * modules/unistr/u16-mbtouc: New file.
8149         * modules/unistr/u32-mbtouc: New file.
8150         * lib/unistr/u8-mbtouc.c: New file.
8151         * lib/unistr/u16-mbtouc.c: New file.
8152         * lib/unistr/u32-mbtouc.c: New file.
8153
8154         * modules/unistr/u8-mbtouc-safe: New file.
8155         * modules/unistr/u16-mbtouc-safe: New file.
8156         * modules/unistr/u32-mbtouc-safe: New file.
8157         * lib/unistr/u8-mbtouc-safe.c: New file.
8158         * lib/unistr/u16-mbtouc-safe.c: New file.
8159         * lib/unistr/u32-mbtouc-safe.c: New file.
8160
8161         * modules/unistr/u8-move: New file.
8162         * modules/unistr/u16-move: New file.
8163         * modules/unistr/u32-move: New file.
8164         * lib/unistr/u8-move.c: New file.
8165         * lib/unistr/u16-move.c: New file.
8166         * lib/unistr/u32-move.c: New file.
8167         * lib/unistr/u-move.h: New file.
8168
8169         * modules/unistr/u8-next: New file.
8170         * modules/unistr/u16-next: New file.
8171         * modules/unistr/u32-next: New file.
8172         * lib/unistr/u8-next.c: New file.
8173         * lib/unistr/u16-next.c: New file.
8174         * lib/unistr/u32-next.c: New file.
8175
8176         * modules/unistr/u8-prev: New file.
8177         * modules/unistr/u16-prev: New file.
8178         * modules/unistr/u32-prev: New file.
8179         * lib/unistr/u8-prev.c: New file.
8180         * lib/unistr/u16-prev.c: New file.
8181         * lib/unistr/u32-prev.c: New file.
8182
8183         * modules/unistr/u8-set: New file.
8184         * modules/unistr/u16-set: New file.
8185         * modules/unistr/u32-set: New file.
8186         * lib/unistr/u8-set.c: New file.
8187         * lib/unistr/u16-set.c: New file.
8188         * lib/unistr/u32-set.c: New file.
8189         * lib/unistr/u-set.h: New file.
8190
8191         * modules/unistr/u8-startswith: New file.
8192         * modules/unistr/u16-startswith: New file.
8193         * modules/unistr/u32-startswith: New file.
8194         * lib/unistr/u8-startswith.c: New file.
8195         * lib/unistr/u16-startswith.c: New file.
8196         * lib/unistr/u32-startswith.c: New file.
8197         * lib/unistr/u-startswith.h: New file.
8198
8199         * modules/unistr/u8-stpcpy: New file.
8200         * modules/unistr/u16-stpcpy: New file.
8201         * modules/unistr/u32-stpcpy: New file.
8202         * lib/unistr/u8-stpcpy.c: New file.
8203         * lib/unistr/u16-stpcpy.c: New file.
8204         * lib/unistr/u32-stpcpy.c: New file.
8205         * lib/unistr/u-stpcpy.h: New file.
8206
8207         * modules/unistr/u8-stpncpy: New file.
8208         * modules/unistr/u16-stpncpy: New file.
8209         * modules/unistr/u32-stpncpy: New file.
8210         * lib/unistr/u8-stpncpy.c: New file.
8211         * lib/unistr/u16-stpncpy.c: New file.
8212         * lib/unistr/u32-stpncpy.c: New file.
8213         * lib/unistr/u-stpncpy.h: New file.
8214
8215         * modules/unistr/u8-strcat: New file.
8216         * modules/unistr/u16-strcat: New file.
8217         * modules/unistr/u32-strcat: New file.
8218         * lib/unistr/u8-strcat.c: New file.
8219         * lib/unistr/u16-strcat.c: New file.
8220         * lib/unistr/u32-strcat.c: New file.
8221         * lib/unistr/u-strcat.h: New file.
8222
8223         * modules/unistr/u8-strchr: New file.
8224         * modules/unistr/u16-strchr: New file.
8225         * modules/unistr/u32-strchr: New file.
8226         * lib/unistr/u8-strchr.c: New file.
8227         * lib/unistr/u16-strchr.c: New file.
8228         * lib/unistr/u32-strchr.c: New file.
8229
8230         * modules/unistr/u8-strcmp: New file.
8231         * modules/unistr/u16-strcmp: New file.
8232         * modules/unistr/u32-strcmp: New file.
8233         * lib/unistr/u8-strcmp.c: New file.
8234         * lib/unistr/u16-strcmp.c: New file.
8235         * lib/unistr/u32-strcmp.c: New file.
8236
8237         * modules/unistr/u8-strcpy: New file.
8238         * modules/unistr/u16-strcpy: New file.
8239         * modules/unistr/u32-strcpy: New file.
8240         * lib/unistr/u8-strcpy.c: New file.
8241         * lib/unistr/u16-strcpy.c: New file.
8242         * lib/unistr/u32-strcpy.c: New file.
8243         * lib/unistr/u-strcpy.h: New file.
8244
8245         * modules/unistr/u8-strcspn: New file.
8246         * modules/unistr/u16-strcspn: New file.
8247         * modules/unistr/u32-strcspn: New file.
8248         * lib/unistr/u8-strcspn.c: New file.
8249         * lib/unistr/u16-strcspn.c: New file.
8250         * lib/unistr/u32-strcspn.c: New file.
8251         * lib/unistr/u-strcspn.h: New file.
8252
8253         * modules/unistr/u8-strdup: New file.
8254         * modules/unistr/u16-strdup: New file.
8255         * modules/unistr/u32-strdup: New file.
8256         * lib/unistr/u8-strdup.c: New file.
8257         * lib/unistr/u16-strdup.c: New file.
8258         * lib/unistr/u32-strdup.c: New file.
8259         * lib/unistr/u-strdup.h: New file.
8260
8261         * modules/unistr/u8-strlen: New file.
8262         * modules/unistr/u16-strlen: New file.
8263         * modules/unistr/u32-strlen: New file.
8264         * lib/unistr/u8-strlen.c: New file.
8265         * lib/unistr/u16-strlen.c: New file.
8266         * lib/unistr/u32-strlen.c: New file.
8267         * lib/unistr/u-strlen.h: New file.
8268
8269         * modules/unistr/u8-strmblen: New file.
8270         * modules/unistr/u16-strmblen: New file.
8271         * modules/unistr/u32-strmblen: New file.
8272         * lib/unistr/u8-strmblen.c: New file.
8273         * lib/unistr/u16-strmblen.c: New file.
8274         * lib/unistr/u32-strmblen.c: New file.
8275
8276         * modules/unistr/u8-strmbtouc: New file.
8277         * modules/unistr/u16-strmbtouc: New file.
8278         * modules/unistr/u32-strmbtouc: New file.
8279         * lib/unistr/u8-strmbtouc.c: New file.
8280         * lib/unistr/u16-strmbtouc.c: New file.
8281         * lib/unistr/u32-strmbtouc.c: New file.
8282
8283         * modules/unistr/u8-strncat: New file.
8284         * modules/unistr/u16-strncat: New file.
8285         * modules/unistr/u32-strncat: New file.
8286         * lib/unistr/u8-strncat.c: New file.
8287         * lib/unistr/u16-strncat.c: New file.
8288         * lib/unistr/u32-strncat.c: New file.
8289         * lib/unistr/u-strncat.h: New file.
8290
8291         * modules/unistr/u8-strncmp: New file.
8292         * modules/unistr/u16-strncmp: New file.
8293         * modules/unistr/u32-strncmp: New file.
8294         * lib/unistr/u8-strncmp.c: New file.
8295         * lib/unistr/u16-strncmp.c: New file.
8296         * lib/unistr/u32-strncmp.c: New file.
8297
8298         * modules/unistr/u8-strncpy: New file.
8299         * modules/unistr/u16-strncpy: New file.
8300         * modules/unistr/u32-strncpy: New file.
8301         * lib/unistr/u8-strncpy.c: New file.
8302         * lib/unistr/u16-strncpy.c: New file.
8303         * lib/unistr/u32-strncpy.c: New file.
8304         * lib/unistr/u-strncpy.h: New file.
8305
8306         * modules/unistr/u8-strnlen: New file.
8307         * modules/unistr/u16-strnlen: New file.
8308         * modules/unistr/u32-strnlen: New file.
8309         * lib/unistr/u8-strnlen.c: New file.
8310         * lib/unistr/u16-strnlen.c: New file.
8311         * lib/unistr/u32-strnlen.c: New file.
8312         * lib/unistr/u-strnlen.h: New file.
8313
8314         * modules/unistr/u8-strpbrk: New file.
8315         * modules/unistr/u16-strpbrk: New file.
8316         * modules/unistr/u32-strpbrk: New file.
8317         * lib/unistr/u8-strpbrk.c: New file.
8318         * lib/unistr/u16-strpbrk.c: New file.
8319         * lib/unistr/u32-strpbrk.c: New file.
8320         * lib/unistr/u-strpbrk.h: New file.
8321
8322         * modules/unistr/u8-strrchr: New file.
8323         * modules/unistr/u16-strrchr: New file.
8324         * modules/unistr/u32-strrchr: New file.
8325         * lib/unistr/u8-strrchr.c: New file.
8326         * lib/unistr/u16-strrchr.c: New file.
8327         * lib/unistr/u32-strrchr.c: New file.
8328
8329         * modules/unistr/u8-strspn: New file.
8330         * modules/unistr/u16-strspn: New file.
8331         * modules/unistr/u32-strspn: New file.
8332         * lib/unistr/u8-strspn.c: New file.
8333         * lib/unistr/u16-strspn.c: New file.
8334         * lib/unistr/u32-strspn.c: New file.
8335         * lib/unistr/u-strspn.h: New file.
8336
8337         * modules/unistr/u8-strstr: New file.
8338         * modules/unistr/u16-strstr: New file.
8339         * modules/unistr/u32-strstr: New file.
8340         * lib/unistr/u8-strstr.c: New file.
8341         * lib/unistr/u16-strstr.c: New file.
8342         * lib/unistr/u32-strstr.c: New file.
8343         * lib/unistr/u-strstr.h: New file.
8344
8345         * modules/unistr/u8-strtok: New file.
8346         * modules/unistr/u16-strtok: New file.
8347         * modules/unistr/u32-strtok: New file.
8348         * lib/unistr/u8-strtok.c: New file.
8349         * lib/unistr/u16-strtok.c: New file.
8350         * lib/unistr/u32-strtok.c: New file.
8351         * lib/unistr/u-strtok.h: New file.
8352
8353         * modules/unistr/u8-uctomb: New file.
8354         * modules/unistr/u16-uctomb: New file.
8355         * modules/unistr/u32-uctomb: New file.
8356         * lib/unistr/u8-uctomb.c: New file.
8357         * lib/unistr/u16-uctomb.c: New file.
8358         * lib/unistr/u32-uctomb.c: New file.
8359
8360         * MODULES.html.sh (Unicode string functions): Add the new modules.
8361
8362 2007-01-08  Bruno Haible  <bruno@clisp.org>
8363
8364         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
8365         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
8366         subdirectories.
8367
8368 2007-01-08  Karl Berry  <karl@gnu.org>
8369
8370         * doc/error.texi: mention that main() fns must set program_name
8371         when progname is used.
8372
8373 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
8374
8375         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
8376         WCTYPE_H is empty, for the benefit of builds from non-distclean
8377         directories.  Problem reported by Eric Blake in
8378         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
8379
8380 2007-01-08  Bruno Haible  <bruno@clisp.org>
8381
8382         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
8383         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
8384         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
8385         PROVIDE_CANONICALIZE_FILENAME_MODE.
8386         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
8387
8388 2007-01-08  Bruno Haible  <bruno@clisp.org>
8389
8390         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
8391         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
8392         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
8393         * lib/fts.c: Likewise.
8394         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
8395
8396 2006-12-25  Bruno Haible  <bruno@clisp.org>
8397
8398         * modules/utf8-ucs4-safe: New file.
8399         * lib/utf8-ucs4-safe.h: New file.
8400         * lib/unistr/utf8-ucs4-safe.c: New file.
8401
8402         * modules/utf16-ucs4-safe: New file.
8403         * lib/utf16-ucs4-safe.h: New file.
8404         * lib/unistr/utf16-ucs4-safe.c: New file.
8405
8406         * MODULES.html.sh (Unicode string functions): Add the new modules.
8407
8408 2007-01-08  Bruno Haible  <bruno@clisp.org>
8409
8410         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
8411         (Depends-on): Add unitypes.
8412         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
8413         (u8_mbtouc_aux): Move out to separate file.
8414         (u8_mbtouc): Use ucs4_t, uint8_t types.
8415         * lib/unistr/utf8-ucs4.c: New file.
8416
8417         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
8418         (Depends-on): Add unitypes.
8419         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
8420         (u16_mbtouc_aux): Move out to separate file.
8421         (u16_mbtouc): Use ucs4_t, uint16_t types.
8422         * lib/unistr/utf16-ucs4.c: New file.
8423
8424         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
8425         (Depends-on): Add unitypes.
8426         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
8427         (u8_uctomb_aux): Move out to separate file.
8428         (u8_uctomb): Use ucs4_t, uint8_t types.
8429         * lib/unistr/ucs4-utf8.c: New file.
8430
8431         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
8432         (Depends-on): Add unitypes.
8433         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
8434         (u16_uctomb_aux): Move out to separate file.
8435         (u16_uctomb): Use ucs4_t, uint16_t types.
8436         * lib/unistr/ucs4-utf16.c: New file.
8437
8438 2006-12-25  Bruno Haible  <bruno@clisp.org>
8439
8440         * modules/unitypes: New file.
8441         * lib/unitypes.h: New file.
8442         * MODULES.html.sh (func_all_modules): New section "Unicode string
8443         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
8444         this section. Add unitypes.
8445
8446 2007-01-08  Bruno Haible  <bruno@clisp.org>
8447
8448         Avoid variable names that conflict with those from libtool.
8449         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
8450         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
8451         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
8452         library_names_spec to acl_library_names_spec, hardcode_* to
8453         acl_hardcode_*.
8454         Reported by Ralf Wildenhues.
8455
8456 2007-01-08  Bruno Haible  <bruno@clisp.org>
8457
8458         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
8459         definition.
8460         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
8461         definition.
8462         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
8463         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
8464         definition.
8465         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
8466         definition.
8467         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
8468         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
8469         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
8470         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
8471         definition.
8472         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
8473         definition.
8474         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
8475         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
8476         GC_USE_<algorithm>.
8477         * lib/gc-libgcrypt.c: Likewise.
8478         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
8479         * modules/gc-arctwo (configure.ac): Likewise.
8480         * modules/gc-des (configure.ac): Likewise.
8481         * modules/gc-hmac-md5 (configure.ac): Likewise.
8482         * modules/gc-hmac-sha1 (configure.ac): Likewise.
8483         * modules/gc-md2 (configure.ac): Likewise.
8484         * modules/gc-md4 (configure.ac): Likewise.
8485         * modules/gc-md5 (configure.ac): Likewise.
8486         * modules/gc-random (configure.ac): Likewise.
8487         * modules/gc-rijndael (configure.ac): Likewise.
8488         * modules/gc-sha1 (configure.ac): Likewise.
8489
8490 2007-01-08  Bruno Haible  <bruno@clisp.org>
8491
8492         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
8493         macro definition.
8494         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
8495         definition.
8496         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
8497         definition.
8498         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
8499         * modules/fcntl-safer (configure.ac): Likewise.
8500         * modules/fopen-safer (configure.ac): Likewise.
8501         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
8502         GNULIB_FWRITEERROR macro definition.
8503
8504 2007-01-08  Bruno Haible  <bruno@clisp.org>
8505
8506         * m4/gnulib-common.m4: New file.
8507         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
8508         (func_get_filelist): Add m4/gnulib-common.m4.
8509
8510 2007-01-08  Bruno Haible  <bruno@clisp.org>
8511
8512         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
8513         command.
8514
8515 2007-01-08  Jim Meyering  <jim@meyering.net>
8516
8517         Use a more robust test for a "can't happen" condition.
8518         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
8519         narrowed the st_size value.  Presuming the "can't happen" condition
8520         is true, that narrowing could conceivably convert an invalid st_size
8521         value into a valid one.  Instead, use a change based on Matthew
8522         Woehlke's original patch.
8523
8524         Slight readability improvement: use an assert-like macro
8525         in place of literal "abort ()" uses.
8526         * lib/fts.c (fts_assert): Define.
8527         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
8528         Use this macro instead of a bare 'abort'.
8529
8530 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8531
8532         Don't worry about using IRIX 5.3's wctype.h broken definitions;
8533         simply work around them.
8534         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
8535         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
8536         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
8537         declaring.
8538         Don't bother to define as macros, since the standard doesn't require it.
8539         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
8540         longer worry about IRIX 5.3.
8541         (HAVE_WCTYPE_CTMP_BUG): Remove.
8542
8543 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8544
8545         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
8546         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
8547         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
8548         Problems reported by Georg Schwarz for IRIX 5.3.
8549
8550         * gnulib-tool (autoconf_minversion): Take the maximum version number
8551         found, not the minimum.  Problem reported by James Youngman.
8552
8553 2007-01-03  Karl Berry  <karl@gnu.org>
8554
8555         * doc/error.texi: new file, explaining interaction with progname.
8556         * doc/gnulib.texi: include it.  Update copyright.
8557
8558 2007-01-03  Simon Josefsson  <simon@josefsson.org>
8559
8560         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
8561         AC_CANONICAL_HOST, to improve autobuild outputs.
8562
8563 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
8564             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8565
8566         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
8567         sockets, server sockets, and other file descriptors.  Count errors
8568         to compute the return value.  Reorder the code a bit to be easier
8569         to follow.  Don't set event bits that were not requested (except
8570         POLLERR and POLLHUP).
8571
8572 2007-01-01  Bruno Haible  <bruno@clisp.org>
8573
8574         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
8575
8576 2007-01-03  Jim Meyering  <jim@meyering.net>
8577
8578         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
8579
8580 2007-01-02  Bruno Haible  <bruno@clisp.org>
8581
8582         * modules/settime (Include): Require timespec.h.
8583         * modules/nanosleep (Include): Likewise.
8584
8585 2007-01-01  Bruno Haible  <bruno@clisp.org>
8586
8587         * gnulib-tool (func_emit_copyright_notice): Bump year.
8588         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
8589
8590 2007-01-01  Bruno Haible  <bruno@clisp.org>
8591
8592         Improve support for OpenBSD.
8593         * build-aux/config.rpath (libname_spec): Export.
8594         (library_names_spec): New variable. Export.
8595         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
8596         library_names_spec from the config.rpath output. Locate shared library
8597         through the name pattern in library_names_spec.
8598
8599 2007-01-01  Eric Blake  <ebb9@byu.net>
8600
8601         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
8602
8603 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
8604
8605         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
8606         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
8607         assume the C locale, and avoid an "eval" that could cause trouble.
8608         Problem with SORT reported by Bob Proulx.
8609
8610         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
8611         Define.  Trivial patch from Henning Nielsen Lund, originally
8612         sent to bug-grep@gnu.org today.
8613
8614 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8615
8616         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
8617         struct stat.  Problem reported by Henning Nielsen Lund.
8618         * lib/acl.c: Include acl.h first, to check interface.  Don't
8619         bother to include sys/types.h and sys/stat.h again.
8620
8621 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
8622
8623         Import the following change from libc; problem reported by
8624         Sven Verdoolaege.
8625
8626         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
8627
8628         [BZ #1373]
8629         * lib/argp.h: Remove __NTH for __argp_usage inline function.
8630
8631 2006-12-28  Jim Meyering  <jim@meyering.net>
8632
8633         * build-aux/announce-gen: Do not assume that the package
8634         builds any of tar.gz, tar.bz2, and .xdelta files.
8635         Suggestion from Simon Josefsson.
8636
8637 2006-12-28  Simon Josefsson  <simon@josefsson.org>
8638
8639         * modules/announce-gen: New file.
8640
8641 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8642
8643         * lib/mbchar.h: Just include <wctype.h>; the wctype module
8644         handles its gotchas now.
8645         * lib/mbswidth.c: Likewise.
8646         * lib/wcwidth.h: Likewise.
8647         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
8648         and iswcntrl; the wctype module does this stuff now.
8649         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
8650         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8651         * modules/mbchar (Depends-on): Add wctype.
8652         * modules/mbswidth (Depends-on): Likewise.
8653         * modules/wcwidth (Depends-on): Likewise.
8654
8655 2006-12-27  Eric Blake  <ebb9@byu.net>
8656
8657         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
8658         module uses more than what <wctype.h> is required to provide.
8659
8660 2006-12-26  Eric Blake  <ebb9@byu.net>
8661
8662         * gnulib-tool (sed_extract_prog): Avoid space-tab.
8663
8664 2006-12-26  Eric Blake  <ebb9@byu.net>
8665
8666         * modules/absolute-header: New module.
8667         * modules/fcntl (Depends-on): Depend on it.
8668         * modules/inttypes (Depends-on): Likewise.
8669         * modules/stdint (Depends-on): Likewise.
8670         * modules/sys_stat (Depends-on): Likewise.
8671         * modules/wctype (Depends-on): Likewise.
8672         * MODULES.html.sh (Support for building libraries and
8673         executables): Document it.
8674
8675 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8676
8677         * gnulib-tool (SED): Remove, undoing previous change.
8678         The problem was that it broke coreutils on Solaris, because
8679         "sed --posix" leaked into a makefile.
8680         (sed): New alias, if 'alias' and GNU sed.
8681
8682 2006-12-24  Jim Meyering  <jim@meyering.net>
8683
8684         Work around an fchownat bug in glibc-2.4:
8685         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
8686         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
8687         in spite of the -P option.
8688         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
8689         New macros.
8690         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
8691         * modules/openat (Files): Add lib/fchownat.c.
8692         * lib/openat.c (fchownat): Don't define here.  Move to...
8693         * lib/fchownat.c: ...this new file.
8694
8695 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8696
8697         Fix bug reported by Bruno Haible in
8698         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
8699         where quotearg.c didn't compile on Mac OS X 10.2 because it
8700         lacks <wchar.h> and wint_t.
8701         * lib/wctype_.h (__wctype_wint_t): New type.
8702         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
8703         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
8704         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
8705         Arg is now of type __wctype_wint_t, not wint_t.
8706         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
8707         substitute HAVE_WINT_T.
8708         * modules/wctype (Files): Add m4/wint_t.m4.
8709         (wctype.h): Substitute HAVE_WINT_T.
8710
8711 2006-12-23  Bruno Haible  <bruno@clisp.org>
8712
8713         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
8714
8715 2006-12-23  Bruno Haible  <bruno@clisp.org>
8716
8717         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
8718         S_ISLNK.
8719         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
8720         mingw.
8721
8722 2006-12-22  Bruno Haible  <bruno@clisp.org>
8723
8724         * lib/copy-file.c: Include acl.h.
8725         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
8726         Close the file descriptors only after being done with copy_acl.
8727         * modules/copy-file (Depends-on): Add acl.
8728
8729 2006-12-22  Bruno Haible  <bruno@clisp.org>
8730
8731         * gnulib-tool (SED): New variable.
8732         Use $SED instead of sed everywhere.
8733
8734 2006-12-22  Bruno Haible  <bruno@clisp.org>
8735
8736         * modules/no-c++: New file.
8737         * m4/no-c++.m4: New file.
8738         * MODULES.html.sh (Support for building libraries and executables):
8739         Add no-c++.
8740
8741 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8742
8743         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
8744         Include <limits.h>, and use its INT_MAX to rewrite the
8745         j loop so that it does not overflow 'int'.  Problem reported by
8746         Ralf Wildenhues in
8747         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
8748         Play it safe by shifting left by 1 rather than multiplying by 2,
8749         as GCC is less likely to optimize this away when the value
8750         is signed (when it assumes overflow leads to undefined behavior).
8751         Also, don't assume time_t uses two's complement.
8752
8753 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
8754
8755         * MODULES.html.sh: New module wctype.
8756         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
8757         * lib/fnmatch.c: Don't bother to include <wchar.h> before
8758         <wctype.h>, since the new wctype module should fix this.
8759         * lib/quotearg.c: Include <wctype.h> unconditionally, since
8760         the wctype module should arrange for it.
8761         * lib/regex_internal.h: Likewise.
8762         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
8763         since the wctype module should handle this now.
8764         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
8765         * modules/fnmatch (Depends-on): Add wctype.
8766         * modules/quotearg (Depends-on): Likewise.
8767         * modules/regex (Depends-on): Likewise.
8768
8769 2006-12-19  Bruno Haible  <bruno@clisp.org>
8770
8771         * lib/strdup.h [C++]: Wrap definitions in extern "C".
8772         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
8773
8774 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8775
8776         * modules/savewd (Depends-on): Fix dependency on fcntl.
8777
8778 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8779
8780         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
8781         conforms to C99, rather than relying on the user's environment
8782         setting of STDINT_H.
8783
8784 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8785         and Eric Blake  <ebb9@byu.net>
8786
8787         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
8788         This is more consistent with the other defines here.
8789         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
8790         Port to z/OS.  Problem reported by Paul Gilmartin.
8791         Change local vars to use gl_ prefix rather than ac_.
8792         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
8793         with other defines.
8794         * modules/double-slash-root: New module.
8795         * modules/dirname (Files): Remove m4/double-slash-root.m4.
8796         (Depends-on): Add double-slash-root.
8797         * MODULES.html.sh (File system functions): Mention new module.
8798
8799 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
8800
8801         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
8802         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
8803         This is for the benefit of gzip, which doesn't do i18n.
8804
8805 2006-12-12  Jim Meyering  <jim@meyering.net>
8806
8807         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
8808         Reported by Andreas Schwab <schwab@suse.de>.
8809
8810 2006-12-12  Bruno Haible  <bruno@clisp.org>
8811
8812         Merge these changes.
8813         2006-09-05  Bruno Haible  <bruno@clisp.org>
8814         * lib/iconvme.c (iconv_string): No need to save and restore errno when
8815         iconv_alloc succeeded.
8816         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
8817         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
8818         test for " && dest " at the end - dest is always != NULL there. Call
8819         iconv with 4xNULL arguments initially, to reset the state. Call iconv
8820         with 2xNULL arguments, also to flush the state storage. Handle the
8821         IRIX iconv behaviour. Realloc the final result, to throw away unused
8822         memory.
8823
8824 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
8825
8826         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
8827         and fchmodat unconditionally, since glibc 2.4 has them.
8828         Problem reported by Arkadiusz Miskiewicz.
8829
8830 2006-12-10  Bruno Haible  <bruno@clisp.org>
8831
8832         * gnulib-tool (func_import): Show the include files only for those
8833         modules that are copied and specified.
8834         Reported by Karl Berry.
8835
8836 2006-12-08  Jim Meyering  <jim@meyering.net>
8837
8838         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
8839         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
8840
8841         * build-aux/announce-gen: Add two new options, both optional:
8842         --bootstrap-tools=TOOL_LIST
8843               a comma-separated list of tools, e.g.,
8844               autoconf,automake,bison,gnulib
8845         --gnulib-snapshot-date=DATE
8846               if gnulib is in the bootstrap tool list,
8847               then report this as the snapshot date.
8848               If not specified, use the current date/time.
8849               If you specify a date here, be sure it's UTC.
8850
8851 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8852
8853         * tests/test-argp-2.sh: Fix test to match actual output.
8854         (func_compare): Fix sed script to be portable.
8855
8856 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
8857
8858         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
8859         workaround for this case.  It is not autoconfigured now; offhand
8860         it's hard to see how to autoconfigure it.
8861
8862 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
8863
8864         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
8865         a directory that is about to be chowned.  Such a directory's
8866         initial file permissions should permit the owner only and this
8867         should not be changed until after the chown, since the group and
8868         other bits would be incorrect if they granted permission before
8869         the chown.
8870
8871         Fix porting problem for iswctype reported by Georg Schwarz in:
8872         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
8873         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
8874         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
8875         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
8876         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8877
8878 2006-12-03  Jim Meyering  <jim@meyering.net>
8879
8880         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
8881         p->fts_statp may not yet be defined.
8882         (fts_read): Instead, set it in the caller, once p->fts_statp is
8883         sure to be defined, and corresponds to a top-level directory.
8884         This bug made du -x fail.  Here's the coreutils test case:
8885         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
8886         Reported by Mike Frysinger.
8887
8888 2006-12-01  Jim Meyering  <jim@meyering.net>
8889
8890         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
8891         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
8892         Reported by Simon Josefsson.
8893
8894 2006-11-30  Jim Meyering  <jim@meyering.net>
8895
8896         * m4/warning.m4: Use the all-permissive copyright notice
8897         recommended by RMS (rather than LGPL).
8898         * m4/vararrays.m4: Likewise.
8899         * m4/flexmember.m4: Likewise.
8900
8901 2006-11-29  Bruno Haible  <bruno@clisp.org>
8902
8903         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
8904         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
8905         using +=.
8906         Reported by Simon Josefsson <simon@josefsson.org>.
8907
8908 2006-11-28  James Youngman <jay@gnu.org>
8909
8910         * README: Advise users that they might find the bug-gnulib@gnu.org
8911         and autotools-announce@gnu.org mailing lists useful.
8912
8913 2006-11-28  Bruno Haible  <bruno@clisp.org>
8914
8915         * m4/ptrdiff_max.m4: Remove file.
8916
8917 2006-11-21  Bruno Haible  <bruno@clisp.org>
8918
8919         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
8920         _AC_COMPUTE_INT.
8921         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8922         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
8923         _AC_COMPUTE_INT.
8924         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8925         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
8926         _AC_COMPUTE_INT.
8927         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8928
8929 2006-11-28  Jim Meyering  <jim@meyering.net>
8930
8931         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
8932         warning from "gcc -Wshadow" about shadowing the builtin.
8933
8934 2006-11-27  Bruno Haible  <bruno@clisp.org>
8935
8936         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
8937         _AC_COMPUTE_INT.
8938         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8939
8940 2006-11-27  Bruno Haible  <bruno@clisp.org>
8941             Paul Eggert  <eggert@cs.ucla.edu>
8942
8943         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
8944
8945 2006-11-26  Bruno Haible  <bruno@clisp.org>
8946
8947         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
8948         noinst_LTLIBRARIES.
8949
8950 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
8951             Bruno Haible  <bruno@clisp.org>
8952
8953         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
8954         if compiling with "gcc -ansi".
8955
8956 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
8957
8958         Fix some incompatibilities with gcc -ansi -pedantic.
8959         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
8960         if compiling pedantically with GCC, unless it's C99 or later.
8961         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
8962         it mishandles gcc -ansi -pedantic as well.
8963         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
8964         if gcc -pedantic.
8965         * lib/regexec.c (check_node_accept_bytes): Don't use auto
8966         initializers for struct if -pedantic, unless it's C99 or later.
8967
8968 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
8969
8970         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
8971         Don't close an fd more than once. Identical atimes indicate
8972         success, not failure.
8973
8974 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
8975
8976         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
8977
8978 2006-11-23  Jim Meyering  <jim@meyering.net>
8979
8980         * build-aux/announce-gen: New file.  From coreutils.
8981
8982 2006-11-22  Jim Meyering  <jim@meyering.net>
8983
8984         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
8985         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
8986         (fts_read): Use a temporary to narrow the overused st_size member
8987         before using it in a switch statement.  Reported by Matthew Woehlke.
8988
8989         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
8990         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8991
8992 2006-11-20  Bruno Haible  <bruno@clisp.org>
8993
8994         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
8995         changequote instead of pairs of brackets.
8996         Reported by Andreas Schwab <schwab@suse.de>.
8997
8998 2006-11-21  Jim Meyering  <jim@meyering.net>
8999
9000         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
9001         so as to remain compatible with older compilers.
9002         Patch from Michael Deutschmann.
9003
9004 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
9005
9006         * MODULES.html.sh (File system functions): Add openat.
9007
9008         * lib/openat.h (rpl_fstatat): New macro, if
9009         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
9010         (fstatat): Define to rpl_fstatat under the same conditions,
9011         unless COMPILING_FSTATAT.
9012         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
9013         seems to have the bug.
9014         * lib/fstatat.c: New file.
9015         * modules/openat (Files): Add it.
9016
9017 2006-11-20  Bruno Haible  <bruno@clisp.org>
9018
9019         * Makefile: New file.
9020
9021 2006-11-20  Jim Meyering  <jim@meyering.net>
9022
9023         The beginnings of syntax-related checks for gnulib.
9024         * lib/Makefile: New file.
9025         * lib/t-idcache: New script.  Ensure that the two halves of
9026         idcache.c stay in sync.
9027
9028         * lib/idcache.c: Adjust comments in user- and group- portions to
9029         be more accurate, and to be consistent with one another.
9030
9031 2006-11-20  Jim Meyering  <jim@meyering.net>
9032
9033         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
9034         continue using the flexible array member (thus, this module performs
9035         half as many malloc calls), with the addition that...
9036         (getgroup, getuser): Consistently record a non-match via an empty
9037         "name" string, and map an empty string match to a NULL return value.
9038         * modules/idcache (Depends-on): Re-add flexmember.
9039
9040         * lib/idcache.c (getuser): Remove all uses of the register keyword.
9041         (getuidbyname, getgroup, getgidbyname): Likewise.
9042
9043         Use cleaner syntax: NULL rather than 0.
9044         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
9045
9046 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
9047
9048         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
9049         It mishandled the case where the group was missing.
9050         Problem reported by Greg Schafer.
9051         * modules/idcache: Likewise.
9052
9053 2006-11-18  Jim Meyering  <jim@meyering.net>
9054
9055         * check-module (%exempt_header): Add exception for some
9056         conditionally-included headers.
9057
9058         * modules/i-ring (Depends-on): Add verify.
9059         (License): Change to LGPL.
9060
9061 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
9062
9063         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
9064         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
9065         and inttostr.h.  Use snprintf rather than uinttostr, so that
9066         LGPLed code doesn't depend on GPLed.
9067
9068 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9069
9070         * modules/inline (License): Change from GPL to LGPL.
9071
9072 2006-11-17  Jim Meyering  <jim@meyering.net>
9073
9074         * modules/d-type (License): Switch to LGPL.
9075
9076 2006-11-15  Bruno Haible  <bruno@clisp.org>
9077
9078         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
9079
9080 2006-11-15  Eric Blake  <ebb9@byu.net>
9081
9082         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
9083         the module dependency.
9084
9085 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9086             Bruno Haible  <bruno@clisp.org>
9087
9088         * gnulib-tool (func_create_testdir): Add license consistency check.
9089
9090 2006-11-15  Eric Blake  <ebb9@byu.net>
9091
9092         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
9093         random "(cached)" in configure output.
9094
9095 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9096
9097         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
9098         test for conforming inttypes.h is both announced and cached.
9099
9100         * MODULES.html.sh (seen_modules, seen_files): New variables.
9101         (func_module): Rewrite to use a few less gnulib-tool and sed
9102         invocations.  Avoid a couple of quadratic algorithms for ...
9103         (missed_modules, missed_files): ... these, with ...
9104         (func_append, func_tmpdir): ... these new functions, from
9105         gnulib-tool.  Analogously, install traps for cleanup.
9106
9107         * tests/test-gc.c (main): Remove unused variables.
9108         * tests/test-read-file.c: Include stdlib.h, for 'free'.
9109
9110 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
9111
9112         * modules/inttostr (License): Change to LGPL.
9113
9114 2006-11-14  Eric Blake  <ebb9@byu.net>
9115
9116         * modules/tempname (License): Change to LGPL.
9117
9118 2006-11-14  Eric Blake  <ebb9@byu.net>
9119
9120         * doc/functions.texi (Function Portability): *printf functions on
9121         Cygwin now understand all POSIX size specifiers.
9122
9123 2006-11-14  Bruno Haible  <bruno@clisp.org>
9124
9125         * modules/c-ctype (License): Change to LGPL.
9126
9127 2006-11-12  Bruno Haible  <bruno@clisp.org>
9128
9129         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
9130         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
9131         for GNOME libraries, for which the include files are installed in
9132         subdirectories of $prefix/include.
9133
9134 2006-11-12  Bruno Haible  <bruno@clisp.org>
9135
9136         * m4/lib-link.m4: Require at least autoconf-2.54.
9137         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
9138         name to underscores for the --with option.
9139
9140 2006-11-13  Bruno Haible  <bruno@clisp.org>
9141
9142         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
9143         the tests directory.
9144         Reported by Ralf Wildenhues.
9145
9146 2006-11-13  Bruno Haible  <bruno@clisp.org>
9147
9148         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
9149         (func_emit_initmacro_end): Undo the override here.
9150         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
9151         Works around the famous automake error in coreutils.
9152
9153 2006-11-13  Eric Blake  <ebb9@byu.net>
9154
9155         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
9156         element, not its node.
9157
9158 2006-11-12  Bruno Haible  <bruno@clisp.org>
9159
9160         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
9161         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
9162
9163 2006-11-12  Bruno Haible  <bruno@clisp.org>
9164
9165         * gnulib-tool: New option --local-symlink.
9166         (func_usage): Document it.
9167         (lsymbolic): New variable.
9168         (func_import, func_create_testdir): If --symlink was not specified,
9169         test whether --local-symlink was specified and the file comes from
9170         the local_gnulib_dir.
9171
9172 2006-11-12  Bruno Haible  <bruno@clisp.org>
9173
9174         * gnulib-tool (func_ln): New function.
9175         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
9176
9177 2006-11-12  Bruno Haible  <bruno@clisp.org>
9178
9179         Finish support for source files in subdirectories.
9180         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
9181         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
9182         AUTOMAKE_OPTIONS.
9183         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
9184
9185 2006-11-12  Bruno Haible  <bruno@clisp.org>
9186
9187         * gnulib-tool (func_get_automake_snippet): Synthesize also an
9188         EXTRA_lib_SOURCES augmentation.
9189         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
9190
9191 2006-11-12  Jim Meyering  <jim@meyering.net>
9192
9193         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
9194         file descriptors.  This also averts a failure on systems with
9195         native openat support when a traversed directory lacks "x" access.
9196         * lib/fts_.h: Include "i-ring.h"
9197         (struct FTS) [fts_fd_ring]: New member.
9198         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
9199         (FCHDIR): Add parentheses.
9200         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
9201         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
9202         When descending, rather than simply closing the previous
9203         fts_cwd_fd value, push that file descriptor onto the ring.
9204         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
9205         (fts_open): Initialize the new fd_ring member.
9206         (fts_close): Clear the ring.
9207         (fts_safe_changedir): When possible, use our new fd_ring to skip
9208         the diropen and fstat and dev/ino comparison that would normally
9209         accompany a virtual `chdir ("..")'.
9210
9211         * modules/fts (Depends-on): Add i-ring.
9212         * modules/i-ring: New module.
9213         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
9214         * m4/i-ring.m4: New file.
9215
9216 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9217
9218         * gnulib-tool (func_create_testdir): Fix replacement of
9219         `build-aux' in configure.ac.  Run autotools in gltests
9220         subdirectory.
9221         (func_create_testdir, func_create_megatestdir, test): There is
9222         no need for '--force' in most autotool invocations in a new
9223         tree.  Actually fail the whole test if any of the tools, or the
9224         configure or make stages fail.
9225
9226         Sync from Automake.
9227         * build-aux/gnupload: Revert last change.  Add pointer to upload
9228         instructions of the GNU Maintenance Instructions.
9229         Suggestion by Karl Berry.
9230
9231 2006-11-10  Jim Meyering  <jim@meyering.net>
9232
9233         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
9234
9235 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9236
9237         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
9238         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
9239         (bind_textdomain_codeset) [! ENABLE_NLS]:
9240         Evaluate all the arguments.  That way, callers get compatible behavior
9241         if the arguments have side effects.  Also, it avoids some GCC
9242         diagnostics in some cases; Joel E. Denny reported problems when Bison
9243         was configured with --enable-gcc-warnigs.
9244
9245 2006-11-10  Jim Meyering  <jim@meyering.net>
9246
9247         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
9248         relevant options in CFLAGS (like -O, -fno-inline) are taken into
9249         account.
9250
9251 2006-11-10  Jim Meyering  <jim@meyering.net>
9252
9253         * modules/inline: New file/module.
9254         * modules/xalloc (Files): Remove m4/inline.m4.
9255         (Depends-on): Add inline, instead.
9256         * modules/oset: Likewise.
9257         * modules/list: Likewise.
9258
9259 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9260
9261         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
9262         Problem reported by Matthew Woehlke.
9263
9264 2006-11-09  Bruno Haible  <bruno@clisp.org>
9265
9266         * lib/tempname.c (gen_tempname): Remove variant that invokes
9267         __gen_tempname.
9268         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
9269         __gen_tempname.
9270
9271 2006-11-08  Bruno Haible  <bruno@clisp.org>
9272
9273         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
9274         to 'yes' instead of 'cross-compiling'.
9275
9276 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
9277
9278         * lib/quotearg.h (quotearg_free): New decl.
9279         * lib/quotearg.c (quotearg_free): New function.
9280         (slot0, nslots, slotvec0, slotvec):
9281         Now file-scope so that quotearg_free can get at them.
9282
9283 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9284
9285         Sync from Automake.
9286         * build-aux/gnupload: Add missing 'gnu' to example URL.
9287         Report by Karl Berry.
9288
9289 2006-11-08  Bruno Haible  <bruno@clisp.org>
9290
9291         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
9292         Suggested by Paul Eggert.
9293
9294 2006-11-08  Jim Meyering  <jim@meyering.net>
9295
9296         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
9297         It's already included if !_LIBC.
9298         (fts_safe_changedir): Add a comment.
9299
9300 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9301
9302         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
9303         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
9304         Matthew Woehlke.
9305
9306         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
9307         definitions up, to avoid colliding with change below.
9308         (static_inline) [HAVE_INLINE]: New macro.
9309         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
9310         Provide extern decls when !HAVE_INLINE.  Do not define unless
9311         static_inline is defined, either by us or by xmalloc.c.  Use
9312         static_inline rather than static inline.
9313         (XCALLOC): Optimize sizeof(T) = 1 case.
9314         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
9315
9316 2006-11-07  Bruno Haible  <bruno@clisp.org>
9317
9318         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
9319         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
9320         AC_C_INLINE.
9321         * modules/xalloc (Files): Add m4/inline.m4.
9322
9323 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9324
9325         * README: Fix typo.
9326         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
9327         (Miscellanous Notes): ...from this.
9328
9329 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9330
9331         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9332         Mention that offsetof should be used instead of sizeof.
9333         From Bruno Haible.
9334
9335 2006-11-07  Bruno Haible  <bruno@clisp.org>
9336
9337         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
9338
9339 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9340
9341         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
9342         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
9343         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
9344         (gl_tree_add_before, gl_tree_add_after):
9345         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
9346         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
9347         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
9348         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
9349         (gl_linked_add_after, gl_linked_add_at): Likewise.
9350         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
9351         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
9352         (gl_tree_add_before, gl_tree_add_after): Likewise.
9353         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
9354         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
9355         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
9356
9357 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9358
9359         * lib/gl_oset.h: Use C comment style, not C++ comment style.
9360
9361 2006-11-06  Bruno Haible  <bruno@clisp.org>
9362
9363         * m4/inline.m4: New file.
9364         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
9365         * modules/list (Files): Add m4/inline.m4.
9366         * modules/oset (Files): Likewise.
9367
9368 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9369
9370         * lib/idcache.c: Include <stddef.h>, for offsetof.
9371         (struct userid.name): Change from char * to a flexible array member.
9372         All uses changed.
9373         * modules/idcache (Depends-on): Add flexmember.
9374
9375         * MODULES.html.sh (Core language properties): New module flexmember.
9376         * modules/flexmember, m4/flexmember.m4: New files.
9377
9378         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
9379         inline functions that are identical with the old xnmalloc_inline,
9380         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
9381         that we can avoid some unnecessary integer multiplications and
9382         divisions in the common case where the element size is known at
9383         compile time.
9384         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
9385         needed.
9386         (xnboundedmalloc): Remove.
9387         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
9388         arguments, for consistency with rest of this header.
9389         (xcharalloc): Rewrite using XNMALLOC.
9390         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
9391         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
9392         versions have been moved to lib/xalloc.h and renamed to be the
9393         non-*_inline versions.
9394         (xmalloc, xrealloc): Implement without reference to the xnmalloc
9395         and xnrealloc functions, since those functions are now inline and
9396         now call us.
9397         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
9398         renaming described above.
9399         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
9400         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
9401         captures the dependency in AC_C_INLINE.
9402
9403         New module canonicalize-lgpl, proposed by Charles Wilson in
9404         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
9405         with a few small changes afterwards.
9406         * MODULES.html.sh (File system functions): New module
9407         canonicalize-lgpl.
9408         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
9409         and canonicalize_file_name.
9410         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
9411         * modules/canonicalize-lgpl: New files.
9412
9413 2006-11-05  Bruno Haible  <bruno@clisp.org>
9414
9415         * gnulib-tool (func_import, func_create_testdir): Create directories
9416         also for files in subdirectories of lib/.
9417
9418 2006-11-05  Bruno Haible  <bruno@clisp.org>
9419
9420         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
9421         ANSI C compliant.
9422
9423 2006-11-03  Bruno Haible  <bruno@clisp.org>
9424
9425         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
9426         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
9427         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
9428         (xnboundedmalloc): New inline function.
9429         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
9430         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
9431         xmalloc.
9432         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
9433         xmalloc.
9434         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
9435         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
9436         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
9437         xmalloc.
9438         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
9439         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
9440         xmalloc.
9441         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
9442         gl_tree_add_after): Use XMALLOC instead of xmalloc.
9443         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
9444         xmalloc.
9445         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
9446         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
9447         gl_tree_add_after): Use XMALLOC instead of xmalloc.
9448         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
9449         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
9450         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
9451         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
9452
9453 2006-11-03  Bruno Haible  <bruno@clisp.org>
9454
9455         * lib/c-ctype.h [C++]: Define functions without name mangling.
9456         * lib/fwriteerror.h [C++]: Likewise.
9457         * lib/gcd.h [C++]: Likewise.
9458         * lib/linebreak.h [C++]: Likewise.
9459
9460 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
9461
9462         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
9463         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
9464         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
9465         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
9466         Check for functions and headers just once.
9467         Check for declaration of canonicalize_file_name.
9468         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
9469
9470 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
9471
9472         * gnulib-tool (func_import): Fix typo in actioncmd.
9473
9474 2006-11-02  Bruno Haible  <bruno@clisp.org>
9475
9476         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
9477         newline sequence in the Makefile.am snippet as a space, like "make"
9478         does.
9479         Reported by Roger Persson <perrog@gmail.com>.
9480
9481 2006-11-01  Bruno Haible  <bruno@clisp.org>
9482
9483         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
9484         already declared in <string.h>.
9485         * lib/strcase.h (strncasecmp): Don't declare it if yes.
9486
9487 2006-11-01  Bruno Haible  <bruno@clisp.org>
9488
9489         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
9490         * lib/strcase.h: Include <string.h>.
9491         (strcasecmp): Define to rpl_strcasecmp here.
9492
9493 2006-11-01  Bruno Haible  <bruno@clisp.org>
9494
9495         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
9496
9497 2006-11-01  Eric Blake  <ebb9@byu.net>
9498
9499         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
9500
9501         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
9502
9503 2006-10-29  Bruno Haible  <bruno@clisp.org>
9504
9505         Make it compile in C++ mode.
9506         * lib/full-write.c (full_rw): Add a cast.
9507
9508 2006-11-01  Bruno Haible  <bruno@clisp.org>
9509
9510         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
9511         be POSIX compliant.
9512         Reported by Roger Persson <perrog@gmail.com>.
9513
9514 2006-11-01  Eric Blake  <ebb9@byu.net>
9515
9516         * lib/getopt_.h: Fix comments.
9517
9518 2006-10-31  Eric Blake  <ebb9@byu.net>
9519
9520         * modules/tmpdir (Depends-on): Add sys_stat.
9521         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
9522         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
9523         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
9524         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
9525         tempname.
9526
9527 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
9528
9529         Avoid some C++ diagnostics reported by Bruno Haible.
9530         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
9531         xmalloc.
9532         (quotearg_alloc): Use xcharalloc rather than xmalloc.
9533         (struct slotvec): Move to top level.
9534         (quotearg_n_options): Rewrite to avoid xmalloc.
9535         * lib/xalloc.h (xcharalloc): New function.
9536         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
9537         [defined __cplusplus]: Add function template that provides result
9538         type propagation.  This part of the change is from Bruno Haible.
9539
9540 2006-10-29  Bruno Haible  <bruno@clisp.org>
9541
9542         Make it compile in C++ mode.
9543         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
9544         * lib/strnlen1.c (strnlen1): Cast memchr result.
9545         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
9546         * lib/clean-temp.c (string_equals, string_hash): Add casts.
9547         (create_temp_dir): Rename local variable 'template'.
9548         (compile_csharp_using_sscli): Add cast.
9549         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
9550         * lib/findprog.c (find_in_path): Likewise.
9551         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
9552         * lib/wait-process.c (register_slave_subprocess): Likewise.
9553
9554 2006-10-22  Bruno Haible  <bruno@clisp.org>
9555
9556         * modules/tsearch: New file.
9557         * lib/tsearch.h: New file.
9558         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
9559         * m4/tsearch.m4: New file.
9560         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
9561
9562 2006-10-29  Eric Blake  <ebb9@byu.net>
9563
9564         * lib/arcfour.c: Assume config.h.
9565         * lib/arctwo.c: Likewise.
9566         * lib/base64.c: Likewise.
9567         * lib/check-version.c: Likewise.
9568         * lib/crc.c: Likewise.
9569         * lib/des.c: Likewise.
9570         * lib/gc-gnulib.c: Likewise.
9571         * lib/gc-libgcrypt.c: Likewise.
9572         * lib/gc-pbkdf2-sha1.c: Likewise.
9573         * lib/getaddrinfo.c: Likewise.
9574         * lib/getdelim.c: Likewise.
9575         * lib/getline.c: Likewise.
9576         * lib/hmac-md5.c: Likewise.
9577         * lib/hmac-sha1.c: Likewise.
9578         * lib/iconvme.c: Likewise.
9579         * lib/md2.c: Likewise.
9580         * lib/md4.c: Likewise.
9581         * lib/memxor.c: Likewise.
9582         * lib/read-file.c: Likewise.
9583         * lib/readline.c: Likewise.
9584         * lib/rijndael-alg-fst.c: Likewise.
9585         * lib/rijndael-api-fst.c: Likewise.
9586         * lib/xgetdomainname.c: Likewise.
9587
9588 2006-10-28  Eric Blake  <ebb9@byu.net>
9589
9590         * lib/xstrndup.c: Assume config.h.
9591
9592 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9593
9594         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
9595         stat-macros.h is now for our own macros, whereas stat_h is for
9596         macros in the <sys/stat.h> name space.
9597         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
9598         (STAT_MACROS_H): Remove.
9599         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
9600         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
9601         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
9602         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
9603         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
9604         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
9605         Move these macros to ...
9606         * lib/stat_.h: here.  Don't include stat-macros.h.
9607         * lib/canonicalize.c: Don't include stat-macros.h.
9608         * lib/chown.c: Likewise.
9609         * lib/euidaccess.c: Likewise.
9610         * lib/file-type.c: Likewise.
9611         * lib/filemode.c: Likewise.
9612         * lib/glob.c: Likewise.
9613         * lib/isapipe.c: Likewise.
9614         * lib/lchown.c: Likewise.
9615         * lib/lstat.c: Likewise.
9616         * lib/mkdir-p.c: Likewise.
9617         * lib/rmdir.c: Likewise.
9618         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
9619         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
9620         unless mkdir isn't declared, to speed up 'configure'.
9621         Always create sys/stat.h, since it's unlikely any real sys/stat.h
9622         would define all the S_* symbols.
9623         * modules/canonicalize (Depends-on):
9624         Depend on sys_stat, not stat-macros.
9625         * modules/chown: Likewise.
9626         * modules/euidaccess: Likewise.
9627         * modules/filemode: Likewise.
9628         * modules/file-type: Likewise.
9629         * modules/glob: Likewise.
9630         * modules/isapipe: Likewise.
9631         * modules/lchown: Likewise.
9632         * modules/lstat: Likewise.
9633         * modules/mkancesdirs: Likewise.
9634         * modules/rmdir: Likewise.
9635         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
9636         * modules/modechange: Likewise.
9637         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
9638         (configure.ac): Remove gl_STAT_MACROS.
9639         * modules/sys_stat (Depends-on): Remove stat-macros.
9640
9641 2006-10-27  Bruno Haible  <bruno@clisp.org>
9642
9643         * m4/signed.m4: Remove file.
9644         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
9645         invocation.
9646         * modules/vasnprintf (Files): Remove m4/signed.m4.
9647
9648 2006-10-27  Bruno Haible  <bruno@clisp.org>
9649
9650         Update to GNU gettext 0.16.
9651         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
9652         m4/inttypes-h.m4, m4/signed.m4.
9653         * m4/gettext.m4: Update to GNU gettext 0.16.
9654         * m4/intl.m4: New file, from GNU gettext.
9655         * m4/intldir.m4: New file, from GNU gettext.
9656         * config/srclist.txt: Update
9657
9658 2006-10-27  Eric Blake  <ebb9@byu.net>
9659
9660         * MODULES.html.sh: Document tempname.
9661         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
9662         dependencies.
9663         (Files): Move lib/tempname.c...
9664         * modules/tempname: ...to this new module.
9665         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
9666         (gl_PREREQ_TEMPNAME): Move...
9667         * m4/tempname.m4: ...to this new file.
9668         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
9669         * modules/sys_stat (Depends-on): Add stat-macros.
9670         * lib/stat_.h (includes): Pick up stat macros.
9671         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
9672         if stat macros are broken.
9673         * lib/tempname.c (includes): No need to include "stat-macros.h".
9674         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
9675         (direxists, __path_search) [!_LIBC]: Don't compile these in
9676         gnulib; the tmpdir module covers that.
9677         * lib/tempname.h: New file.
9678
9679 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
9680
9681         * COPYING: Explain how gnulib-tool converts licence headers.
9682         Almost all wording by Eric Blake.
9683
9684 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
9685
9686         * lib/mbchar.h (is_basic_table): Make read-only.
9687         * lib/mbchar.c (is_basic_table): Likewise.
9688         Reported by John Darrington.
9689
9690 2006-10-25  Bruno Haible  <bruno@clisp.org>
9691
9692         * lib/progname.h (set_program_name): Undefine before defining.
9693
9694 2006-10-25  Bruno Haible  <bruno@clisp.org>
9695
9696         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
9697         false for non-gcc C++ compilers.
9698         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9699
9700 2006-10-24  Bruno Haible  <bruno@clisp.org>
9701
9702         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
9703         iconv implementations like Irix iconv.
9704
9705 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9706
9707         * modules/vararrays: New file.
9708         * m4/vararrays.m4: New file, taken from diffutils.
9709         * MODULES.html.sh: New module vararrays.
9710
9711 2006-10-24  Karl Berry  <karl@gnu.org>
9712
9713         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
9714         Don't call GNU Unix.
9715
9716 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9717
9718         * users.txt: Add Libtool.
9719
9720         Sync from Libtool:
9721
9722         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9723
9724         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
9725         to gnulib's policy of including config.h unconditionally.
9726
9727 2006-10-24  Bruno Haible  <bruno@clisp.org>
9728
9729         * modules/wcwidth (Files): Add m4/wint_t.m4.
9730         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
9731         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
9732
9733 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9734
9735         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
9736         to pacify GCC with some -W flags enabled.  Problem reported by
9737         Bruno Haible.
9738
9739 2006-10-24  Jim Meyering  <jim@meyering.net>
9740
9741         * MODULES.html.sh: Remove uinttostr.  It's not a module.
9742         Reported by Karl Berry.
9743
9744 2006-10-23  Bruno Haible  <bruno@clisp.org>
9745
9746         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
9747
9748 2006-10-24  Bruno Haible  <bruno@clisp.org>
9749
9750         * lib/gl_list.h: Use C comment style, not C++ comment style.
9751
9752 2006-10-23  Eric Blake  <ebb9@byu.net>
9753
9754         * lib/getaddrinfo.c (includes): Add missing include.
9755
9756 2006-10-23  Bruno Haible  <bruno@clisp.org>
9757             Paul Eggert  <eggert@cs.ucla.edu>
9758
9759         Ability to rename obstack_free.
9760         * lib/obstack.h (__obstack_free): New macro. Declare instead of
9761         obstack_free.
9762         (obstack_free): Invoke the __obstack_free macro.
9763         * lib/obstack.c (obstack_free): Use __obstack_free macro.
9764
9765 2006-10-23  Bruno Haible  <bruno@clisp.org>
9766             Paul Eggert  <eggert@cs.ucla.edu>
9767
9768         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
9769         __argc, __argv from the declaration. (They are defined as macros on
9770         mingw.)
9771
9772 2006-10-22  Bruno Haible  <bruno@clisp.org>
9773
9774         * doc/gnulib-intro.texi: New file.
9775         * doc/gnulib.texi: Include it.
9776
9777 2006-10-21  Bruno Haible  <bruno@clisp.org>
9778
9779         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
9780         "Introduction", "Miscellanous Notes", "Particular Modules".
9781
9782 2006-10-21  Bruno Haible  <bruno@clisp.org>
9783
9784         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9785         Change mostlyclean-local rule to avoid sh syntax error from bash
9786         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
9787
9788 2006-10-23  Jim Meyering  <jim@meyering.net>
9789
9790         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
9791         in place of snprintf.
9792
9793         * modules/inttostr (Files): Add lib/uinttostr.c.
9794         * lib/uinttostr.c (inttostr): New file/function.
9795         * lib/inttostr.h (uinttostr): Declare.
9796         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
9797         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
9798         Add uinttostr.
9799         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
9800
9801 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
9802
9803         * lib/canonicalize.c (ELOOP): Define if not already defined.
9804         Problem reported by Bruno Haible in
9805         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
9806
9807 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
9808
9809         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
9810         Problem reported by Perry Smith and Ville Laurikari.
9811
9812         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
9813         uses.
9814
9815 2006-10-19  Bruno Haible  <bruno@clisp.org>
9816
9817         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
9818         for mingw.
9819
9820 2006-10-19  Bruno Haible  <bruno@clisp.org>
9821
9822         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
9823         Needed for mingw.
9824
9825 2006-10-19  Bruno Haible  <bruno@clisp.org>
9826
9827         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
9828
9829 2006-10-19  Bruno Haible  <bruno@clisp.org>
9830
9831         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
9832         it.
9833
9834 2006-10-19  Bruno Haible  <bruno@clisp.org>
9835
9836         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
9837         invocation.
9838
9839 2006-10-19  Bruno Haible  <bruno@clisp.org>
9840
9841         * gnulib-tool (func_create_testdir): Don't include ftruncate and
9842         mountlist by default.
9843
9844 2006-10-16  Bruno Haible  <bruno@clisp.org>
9845
9846         * lib/c-strstr.c: Include c-strstr.h.
9847
9848 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
9849
9850         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
9851         in a slash.
9852
9853 2006-10-18  Bruno Haible  <bruno@clisp.org>
9854
9855         * lib/lock.h [C++]: Wrap definitions in extern "C".
9856
9857 2006-10-18  Bruno Haible  <bruno@clisp.org>
9858
9859         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
9860         gl_LIBOBJS list.
9861
9862 2006-10-18  Bruno Haible  <bruno@clisp.org>
9863
9864         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
9865
9866 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
9867
9868         * lib/xstrtol.h: Include gettext.h.
9869         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
9870         Problem reported by Eric Blake.
9871         * modules/xstrtol (Depends-on): Add gettext-h.
9872
9873 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
9874
9875         * lib/strftime.c (advance): New macro.
9876         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
9877         incomplete type, so you can't add 0 to it.  Problem and patch
9878         reported by Eelco Dolstra for dietlibc.
9879
9880 2006-10-18  Jim Meyering  <jim@meyering.net>
9881
9882         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
9883         type for a local, and rename it: s/up/user_proc/.
9884
9885 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
9886
9887         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
9888         READ_UTMP_USER_PROCESS.
9889         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
9890
9891 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
9892
9893         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
9894         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
9895
9896 2006-10-17  Eric Blake  <ebb9@byu.net>
9897
9898         * lib/sigprocmask.c (sigprocmask): Fix typo.
9899
9900         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
9901
9902         * modules/clean-temp (Makefile.am): Don't add to make output...
9903         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
9904         config.h.
9905
9906 2006-10-17  Bruno Haible  <bruno@clisp.org>
9907
9908         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
9909         differently if DEFAULT_TEXT_DOMAIN is set.
9910
9911 2006-10-16  Bruno Haible  <bruno@clisp.org>
9912
9913         * lib/clean-temp.c: Include fwriteerror.h.
9914
9915 2006-10-16  Bruno Haible  <bruno@clisp.org>
9916
9917         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
9918
9919 2006-10-16  Bruno Haible  <bruno@clisp.org>
9920
9921         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
9922         * lib/sigprocmask.h: Include <sys/types.h>.
9923         (sigset_t): Use the system's definition if present.
9924
9925 2006-10-17  Eric Blake  <ebb9@byu.net>
9926
9927         * lib/xvasprintf.c (includes): Assume config.h.
9928         * lib/xasprintf.c (includes): Likewise.
9929
9930 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
9931
9932         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
9933         at least as wide as intmax_t.
9934
9935 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
9936
9937         (Imported from Automake.)
9938         * build-aux/gnupload: Update to version 1.1 of directive file.
9939
9940 2006-10-16  Eric Blake  <ebb9@byu.net>
9941
9942         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
9943         match Automake 1.10a.
9944
9945 2006-10-14  Bruno Haible  <bruno@clisp.org>
9946
9947         * modules/sigprocmask: New file.
9948         * lib/sigprocmask.h: New file.
9949         * lib/sigprocmask.c: New file.
9950         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
9951         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
9952         request sigprocmask.o.
9953         (gl_PREREQ_SIGPROCMASK): New macro.
9954         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
9955         (Depends-on): Add sigprocmask.
9956         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
9957         gt_SIGNALBLOCKING. Test for 'raise' only once.
9958         * lib/fatal-signal.c: Include sigprocmask.h.
9959         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
9960         unblock_fatal_signals): Define always.
9961         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9962         sigprocmask.
9963
9964 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
9965
9966         Sync from Automake.
9967         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
9968         which incorrectly sets the mode of an existing destination
9969         directory.  In some cases the unpatched install-sh could do the
9970         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
9971         system.  We hope this is rare in practice, but it's clearly worth
9972         fixing.  Problem reported by Alex Unleashed in
9973         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
9974         Also, don't bother to check for -m bugs unless we're using -m;
9975         suggested by Stepan Kasal.
9976
9977 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9978
9979         Sync from Automake.
9980         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
9981         `-c' flag, so they appear at the same position as in %FASTDEP%
9982         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
9983         which ignores unknown options only after the first non-option.
9984         Bug report against M4 by Nelson H. F. Beebe.
9985
9986 2006-10-13  Jim Meyering  <jim@meyering.net>
9987
9988         Fix a bug in yesterday's change.
9989         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
9990         p->fts_statp->st_dev would be used uninitialized.
9991         Ensures that we always call fts_stat on the very first entry.
9992         Miklos Szeredi reported that find -xdev stopped working.
9993
9994 2006-10-12  Bruno Haible  <bruno@clisp.org>
9995
9996         * gnulib-tool (func_get_automake_snippet): Append an automatically
9997         computed EXTRA_DIST augmentation.
9998         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
9999         * modules/alloca-opt (Makefile.am): Likewise.
10000         * modules/allocsa (Makefile.am): Likewise.
10001         * modules/arcfour (Makefile.am): Likewise.
10002         * modules/arctwo (Makefile.am): Likewise.
10003         * modules/argmatch (Makefile.am): Likewise.
10004         * modules/argz (Makefile.am): Likewise.
10005         * modules/atexit (Makefile.am): Likewise.
10006         * modules/backupfile (Makefile.am): Likewise.
10007         * modules/byteswap (Makefile.am): Likewise.
10008         * modules/c-strtod (Makefile.am): Likewise.
10009         * modules/c-strtold (Makefile.am): Likewise.
10010         * modules/calloc (Makefile.am): Likewise.
10011         * modules/canon-host (Makefile.am): Likewise.
10012         * modules/canonicalize (Makefile.am): Likewise.
10013         * modules/chdir-long (Makefile.am): Likewise.
10014         * modules/chdir-safer (Makefile.am): Likewise.
10015         * modules/check-version (Makefile.am): Likewise.
10016         * modules/chown (Makefile.am): Likewise.
10017         * modules/cloexec (Makefile.am): Likewise.
10018         * modules/close-stream (Makefile.am): Likewise.
10019         * modules/closeout (Makefile.am): Likewise.
10020         * modules/crc (Makefile.am): Likewise.
10021         * modules/csharpexec (Makefile.am): Likewise.
10022         * modules/cycle-check (Makefile.am): Likewise.
10023         * modules/des (Makefile.am): Likewise.
10024         * modules/dev-ino (Makefile.am): Likewise.
10025         * modules/dirfd (Makefile.am): Likewise.
10026         * modules/dirname (Makefile.am): Likewise.
10027         * modules/dup2 (Makefile.am): Likewise.
10028         * modules/eealloc (Makefile.am): Likewise.
10029         * modules/error (Makefile.am): Likewise.
10030         * modules/euidaccess (Makefile.am): Likewise.
10031         * modules/exclude (Makefile.am): Likewise.
10032         * modules/exitfail (Makefile.am): Likewise.
10033         * modules/fcntl-safer (Makefile.am): Likewise.
10034         * modules/fcntl (Makefile.am): Likewise.
10035         * modules/file-type (Makefile.am): Likewise.
10036         * modules/fileblocks (Makefile.am): Likewise.
10037         * modules/filemode (Makefile.am): Likewise.
10038         * modules/filenamecat (Makefile.am): Likewise.
10039         * modules/fnmatch (Makefile.am): Likewise.
10040         * modules/fopen-safer (Makefile.am): Likewise.
10041         * modules/fpending (Makefile.am): Likewise.
10042         * modules/fprintftime (Makefile.am): Likewise.
10043         * modules/free (Makefile.am): Likewise.
10044         * modules/fsusage (Makefile.am): Likewise.
10045         * modules/ftruncate (Makefile.am): Likewise.
10046         * modules/fts (Makefile.am): Likewise.
10047         * modules/gc-arcfour (Makefile.am): Likewise.
10048         * modules/gc-des (Makefile.am): Likewise.
10049         * modules/gc-hmac-md5 (Makefile.am): Likewise.
10050         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
10051         * modules/gc-md4 (Makefile.am): Likewise.
10052         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
10053         * modules/gc-sha1 (Makefile.am): Likewise.
10054         * modules/gc (Makefile.am): Likewise.
10055         * modules/getaddrinfo (Makefile.am): Likewise.
10056         * modules/getcwd (Makefile.am): Likewise.
10057         * modules/getdelim (Makefile.am): Likewise.
10058         * modules/getdomainname (Makefile.am): Likewise.
10059         * modules/getgroups (Makefile.am): Likewise.
10060         * modules/gethostname (Makefile.am): Likewise.
10061         * modules/gethrxtime (Makefile.am): Likewise.
10062         * modules/getline (Makefile.am): Likewise.
10063         * modules/getloadavg (Makefile.am): Likewise.
10064         * modules/getlogin_r (Makefile.am): Likewise.
10065         * modules/getndelim2 (Makefile.am): Likewise.
10066         * modules/getopt (Makefile.am): Likewise.
10067         * modules/getpagesize (Makefile.am): Likewise.
10068         * modules/getpass-gnu (Makefile.am): Likewise.
10069         * modules/getpass (Makefile.am): Likewise.
10070         * modules/getsubopt (Makefile.am): Likewise.
10071         * modules/gettime (Makefile.am): Likewise.
10072         * modules/gettimeofday (Makefile.am): Likewise.
10073         * modules/getugroups (Makefile.am): Likewise.
10074         * modules/getusershell (Makefile.am): Likewise.
10075         * modules/glob (Makefile.am): Likewise.
10076         * modules/group-member (Makefile.am): Likewise.
10077         * modules/hard-locale (Makefile.am): Likewise.
10078         * modules/hash (Makefile.am): Likewise.
10079         * modules/hmac-md5 (Makefile.am): Likewise.
10080         * modules/hmac-sha1 (Makefile.am): Likewise.
10081         * modules/human (Makefile.am): Likewise.
10082         * modules/idcache (Makefile.am): Likewise.
10083         * modules/imaxabs (Makefile.am): Likewise.
10084         * modules/imaxdiv (Makefile.am): Likewise.
10085         * modules/inet_ntop (Makefile.am): Likewise.
10086         * modules/inet_pton (Makefile.am): Likewise.
10087         * modules/intprops (Makefile.am): Likewise.
10088         * modules/inttostr (Makefile.am): Likewise.
10089         * modules/inttypes (Makefile.am): Likewise.
10090         * modules/isapipe (Makefile.am): Likewise.
10091         * modules/javaversion (Makefile.am): Likewise.
10092         * modules/lchmod (Makefile.am): Likewise.
10093         * modules/lchown (Makefile.am): Likewise.
10094         * modules/localcharset (Makefile.am): Likewise.
10095         * modules/long-options (Makefile.am): Likewise.
10096         * modules/lstat (Makefile.am): Likewise.
10097         * modules/malloc (Makefile.am): Likewise.
10098         * modules/mathl (Makefile.am): Likewise.
10099         * modules/mbchar (Makefile.am): Likewise.
10100         * modules/md2 (Makefile.am): Likewise.
10101         * modules/md4 (Makefile.am): Likewise.
10102         * modules/md5 (Makefile.am): Likewise.
10103         * modules/memcasecmp (Makefile.am): Likewise.
10104         * modules/memchr (Makefile.am): Likewise.
10105         * modules/memcmp (Makefile.am): Likewise.
10106         * modules/memcoll (Makefile.am): Likewise.
10107         * modules/memcpy (Makefile.am): Likewise.
10108         * modules/memmem (Makefile.am): Likewise.
10109         * modules/memmove (Makefile.am): Likewise.
10110         * modules/mempcpy (Makefile.am): Likewise.
10111         * modules/memrchr (Makefile.am): Likewise.
10112         * modules/memset (Makefile.am): Likewise.
10113         * modules/memxor (Makefile.am): Likewise.
10114         * modules/mkancesdirs (Makefile.am): Likewise.
10115         * modules/mkdir-p (Makefile.am): Likewise.
10116         * modules/mkdir (Makefile.am): Likewise.
10117         * modules/mkdtemp (Makefile.am): Likewise.
10118         * modules/mkstemp (Makefile.am): Likewise.
10119         * modules/mktime (Makefile.am): Likewise.
10120         * modules/modechange (Makefile.am): Likewise.
10121         * modules/mountlist (Makefile.am): Likewise.
10122         * modules/nanosleep (Makefile.am): Likewise.
10123         * modules/obstack (Makefile.am): Likewise.
10124         * modules/openat (Makefile.am): Likewise.
10125         * modules/pagealign_alloc (Makefile.am): Likewise.
10126         * modules/pathmax (Makefile.am): Likewise.
10127         * modules/physmem (Makefile.am): Likewise.
10128         * modules/poll (Makefile.am): Likewise.
10129         * modules/posixtm (Makefile.am): Likewise.
10130         * modules/posixver (Makefile.am): Likewise.
10131         * modules/putenv (Makefile.am): Likewise.
10132         * modules/quote (Makefile.am): Likewise.
10133         * modules/quotearg (Makefile.am): Likewise.
10134         * modules/raise (Makefile.am): Likewise.
10135         * modules/read-file (Makefile.am): Likewise.
10136         * modules/readline (Makefile.am): Likewise.
10137         * modules/readlink (Makefile.am): Likewise.
10138         * modules/readtokens (Makefile.am): Likewise.
10139         * modules/readutmp (Makefile.am): Likewise.
10140         * modules/realloc (Makefile.am): Likewise.
10141         * modules/regex (Makefile.am): Likewise.
10142         * modules/rename-dest-slash (Makefile.am): Likewise.
10143         * modules/rename (Makefile.am): Likewise.
10144         * modules/rijndael (Makefile.am): Likewise.
10145         * modules/rmdir (Makefile.am): Likewise.
10146         * modules/rpmatch (Makefile.am): Likewise.
10147         * modules/safe-read (Makefile.am): Likewise.
10148         * modules/safe-write (Makefile.am): Likewise.
10149         * modules/same-inode (Makefile.am): Likewise.
10150         * modules/same (Makefile.am): Likewise.
10151         * modules/save-cwd (Makefile.am): Likewise.
10152         * modules/savedir (Makefile.am): Likewise.
10153         * modules/setenv (Makefile.am): Likewise.
10154         * modules/settime (Makefile.am): Likewise.
10155         * modules/sha1 (Makefile.am): Likewise.
10156         * modules/sig2str (Makefile.am): Likewise.
10157         * modules/snprintf (Makefile.am): Likewise.
10158         * modules/stat-macros (Makefile.am): Likewise.
10159         * modules/stat-time (Makefile.am): Likewise.
10160         * modules/stdbool (Makefile.am): Likewise.
10161         * modules/stdint (Makefile.am): Likewise.
10162         * modules/stdlib-safer (Makefile.am): Likewise.
10163         * modules/stpcpy (Makefile.am): Likewise.
10164         * modules/stpncpy (Makefile.am): Likewise.
10165         * modules/strcase (Makefile.am): Likewise.
10166         * modules/strcasestr (Makefile.am): Likewise.
10167         * modules/strchrnul (Makefile.am): Likewise.
10168         * modules/strcspn (Makefile.am): Likewise.
10169         * modules/strdup (Makefile.am): Likewise.
10170         * modules/strerror (Makefile.am): Likewise.
10171         * modules/strftime (Makefile.am): Likewise.
10172         * modules/strndup (Makefile.am): Likewise.
10173         * modules/strnlen (Makefile.am): Likewise.
10174         * modules/strpbrk (Makefile.am): Likewise.
10175         * modules/strsep (Makefile.am): Likewise.
10176         * modules/strstr (Makefile.am): Likewise.
10177         * modules/strtod (Makefile.am): Likewise.
10178         * modules/strtoimax (Makefile.am): Likewise.
10179         * modules/strtok_r (Makefile.am): Likewise.
10180         * modules/strtol (Makefile.am): Likewise.
10181         * modules/strtoll (Makefile.am): Likewise.
10182         * modules/strtoul (Makefile.am): Likewise.
10183         * modules/strtoull (Makefile.am): Likewise.
10184         * modules/strtoumax (Makefile.am): Likewise.
10185         * modules/strverscmp (Makefile.am): Likewise.
10186         * modules/sys_socket (Makefile.am): Likewise.
10187         * modules/sys_stat (Makefile.am): Likewise.
10188         * modules/sysexits (Makefile.am): Likewise.
10189         * modules/time_r (Makefile.am): Likewise.
10190         * modules/timegm (Makefile.am): Likewise.
10191         * modules/timespec (Makefile.am): Likewise.
10192         * modules/tmpfile-safer (Makefile.am): Likewise.
10193         * modules/trim (Makefile.am): Likewise.
10194         * modules/unistd-safer (Makefile.am): Likewise.
10195         * modules/unlinkdir (Makefile.am): Likewise.
10196         * modules/unlocked-io (Makefile.am): Likewise.
10197         * modules/userspec (Makefile.am): Likewise.
10198         * modules/utime (Makefile.am): Likewise.
10199         * modules/utimecmp (Makefile.am): Likewise.
10200         * modules/utimens (Makefile.am): Likewise.
10201         * modules/vasnprintf (Makefile.am): Likewise.
10202         * modules/vasprintf (Makefile.am): Likewise.
10203         * modules/vsnprintf (Makefile.am): Likewise.
10204         * modules/xalloc (Makefile.am): Likewise.
10205         * modules/xgetcwd (Makefile.am): Likewise.
10206         * modules/xnanosleep (Makefile.am): Likewise.
10207         * modules/xreadlink (Makefile.am): Likewise.
10208         * modules/xstrtod (Makefile.am): Likewise.
10209         * modules/xstrtol (Makefile.am): Likewise.
10210         * modules/xstrtold (Makefile.am): Likewise.
10211         * modules/yesno (Makefile.am): Likewise.
10212         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
10213
10214 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
10215
10216         * modules/error (Makefile.am): Distribute files through
10217         EXTRA_DIST, not lib_SOURCES.
10218
10219 2006-10-12  Eric Blake  <ebb9@byu.net>
10220
10221         * modules/error (Makefile.am): Distribute files in /lib.
10222         * modules/obstack (Makefile.am): Likewise.
10223
10224 2006-10-12  Bruno Haible  <bruno@clisp.org>
10225
10226         * modules/acl (Makefile.am): Distribute all files in lib/ through
10227         EXTRA_DIST.
10228         * modules/arcfour (Makefile.am): Likewise.
10229         * modules/arctwo (Makefile.am): Likewise.
10230         * modules/argmatch (Makefile.am): Likewise.
10231         * modules/argz (Makefile.am): Likewise.
10232         * modules/atexit (Makefile.am): Likewise.
10233         * modules/backupfile (Makefile.am): Likewise.
10234         * modules/c-strtod (Makefile.am): Likewise.
10235         * modules/c-strtold (Makefile.am): Likewise.
10236         * modules/calloc (Makefile.am): Likewise.
10237         * modules/canon-host (Makefile.am): Likewise.
10238         * modules/canonicalize (Makefile.am): Likewise.
10239         * modules/chdir-long (Makefile.am): Likewise.
10240         * modules/chdir-safer (Makefile.am): Likewise.
10241         * modules/check-version (Makefile.am): Likewise.
10242         * modules/chown (Makefile.am): Likewise.
10243         * modules/cloexec (Makefile.am): Likewise.
10244         * modules/close-stream (Makefile.am): Likewise.
10245         * modules/closeout (Makefile.am): Likewise.
10246         * modules/crc (Makefile.am): Likewise.
10247         * modules/cycle-check (Makefile.am): Likewise.
10248         * modules/des (Makefile.am): Likewise.
10249         * modules/dirfd (Makefile.am): Likewise.
10250         * modules/dirname (Makefile.am): Likewise.
10251         * modules/dup2 (Makefile.am): Likewise.
10252         * modules/euidaccess (Makefile.am): Likewise.
10253         * modules/exclude (Makefile.am): Likewise.
10254         * modules/exitfail (Makefile.am): Likewise.
10255         * modules/fcntl-safer (Makefile.am): Likewise.
10256         * modules/file-type (Makefile.am): Likewise.
10257         * modules/fileblocks (Makefile.am): Likewise.
10258         * modules/filemode (Makefile.am): Likewise.
10259         * modules/filenamecat (Makefile.am): Likewise.
10260         * modules/fnmatch (Makefile.am): Likewise.
10261         * modules/fopen-safer (Makefile.am): Likewise.
10262         * modules/fpending (Makefile.am): Likewise.
10263         * modules/fprintftime (Makefile.am): Likewise.
10264         * modules/free (Makefile.am): Likewise.
10265         * modules/fsusage (Makefile.am): Likewise.
10266         * modules/ftruncate (Makefile.am): Likewise.
10267         * modules/fts (Makefile.am): Likewise.
10268         * modules/gc (Makefile.am): Likewise.
10269         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
10270         * modules/getaddrinfo (Makefile.am): Likewise.
10271         * modules/getcwd (Makefile.am): Likewise.
10272         * modules/getdelim (Makefile.am): Likewise.
10273         * modules/getdomainname (Makefile.am): Likewise.
10274         * modules/getgroups (Makefile.am): Likewise.
10275         * modules/gethostname (Makefile.am): Likewise.
10276         * modules/gethrxtime (Makefile.am): Likewise.
10277         * modules/getline (Makefile.am): Likewise.
10278         * modules/getloadavg (Makefile.am): Likewise.
10279         * modules/getlogin_r (Makefile.am): Likewise.
10280         * modules/getopt (Makefile.am): Likewise.
10281         * modules/getpass (Makefile.am): Likewise.
10282         * modules/getpass-gnu (Makefile.am): Likewise.
10283         * modules/getsubopt (Makefile.am): Likewise.
10284         * modules/gettime (Makefile.am): Likewise.
10285         * modules/gettimeofday (Makefile.am): Likewise.
10286         * modules/getugroups (Makefile.am): Likewise.
10287         * modules/getusershell (Makefile.am): Likewise.
10288         * modules/glob (Makefile.am): Likewise.
10289         * modules/group-member (Makefile.am): Likewise.
10290         * modules/hard-locale (Makefile.am): Likewise.
10291         * modules/hash (Makefile.am): Likewise.
10292         * modules/hmac-md5 (Makefile.am): Likewise.
10293         * modules/hmac-sha1 (Makefile.am): Likewise.
10294         * modules/human (Makefile.am): Likewise.
10295         * modules/idcache (Makefile.am): Likewise.
10296         * modules/imaxabs (Makefile.am): Likewise.
10297         * modules/imaxdiv (Makefile.am): Likewise.
10298         * modules/inet_ntop (Makefile.am): Likewise.
10299         * modules/inet_pton (Makefile.am): Likewise.
10300         * modules/inttostr (Makefile.am): Likewise.
10301         * modules/isapipe (Makefile.am): Likewise.
10302         * modules/lchown (Makefile.am): Likewise.
10303         * modules/long-options (Makefile.am): Likewise.
10304         * modules/lstat (Makefile.am): Likewise.
10305         * modules/malloc (Makefile.am): Likewise.
10306         * modules/mathl (Makefile.am): Likewise.
10307         * modules/mbchar (Makefile.am): Likewise.
10308         * modules/md2 (Makefile.am): Likewise.
10309         * modules/md4 (Makefile.am): Likewise.
10310         * modules/md5 (Makefile.am): Likewise.
10311         * modules/memcasecmp (Makefile.am): Likewise.
10312         * modules/memchr (Makefile.am): Likewise.
10313         * modules/memcmp (Makefile.am): Likewise.
10314         * modules/memcoll (Makefile.am): Likewise.
10315         * modules/memcpy (Makefile.am): Likewise.
10316         * modules/memmem (Makefile.am): Likewise.
10317         * modules/memmove (Makefile.am): Likewise.
10318         * modules/mempcpy (Makefile.am): Likewise.
10319         * modules/memrchr (Makefile.am): Likewise.
10320         * modules/memset (Makefile.am): Likewise.
10321         * modules/memxor (Makefile.am): Likewise.
10322         * modules/mkancesdirs (Makefile.am): Likewise.
10323         * modules/mkdir (Makefile.am): Likewise.
10324         * modules/mkdir-p (Makefile.am): Likewise.
10325         * modules/mkdtemp (Makefile.am): Likewise.
10326         * modules/mkstemp (Makefile.am): Likewise.
10327         * modules/mktime (Makefile.am): Likewise.
10328         * modules/modechange (Makefile.am): Likewise.
10329         * modules/mountlist (Makefile.am): Likewise.
10330         * modules/nanosleep (Makefile.am): Likewise.
10331         * modules/openat (Makefile.am): Likewise.
10332         * modules/pagealign_alloc (Makefile.am): Likewise.
10333         * modules/physmem (Makefile.am): Likewise.
10334         * modules/poll (Makefile.am): Likewise.
10335         * modules/posixtm (Makefile.am): Likewise.
10336         * modules/posixver (Makefile.am): Likewise.
10337         * modules/putenv (Makefile.am): Likewise.
10338         * modules/quote (Makefile.am): Likewise.
10339         * modules/quotearg (Makefile.am): Likewise.
10340         * modules/raise (Makefile.am): Likewise.
10341         * modules/read-file (Makefile.am): Likewise.
10342         * modules/readline (Makefile.am): Likewise.
10343         * modules/readlink (Makefile.am): Likewise.
10344         * modules/readtokens (Makefile.am): Likewise.
10345         * modules/readutmp (Makefile.am): Likewise.
10346         * modules/realloc (Makefile.am): Likewise.
10347         * modules/regex (Makefile.am): Likewise.
10348         * modules/rename (Makefile.am): Likewise.
10349         * modules/rename-dest-slash (Makefile.am): Likewise.
10350         * modules/rijndael (Makefile.am): Likewise.
10351         * modules/rmdir (Makefile.am): Likewise.
10352         * modules/rpmatch (Makefile.am): Likewise.
10353         * modules/safe-read (Makefile.am): Likewise.
10354         * modules/safe-write (Makefile.am): Likewise.
10355         * modules/same (Makefile.am): Likewise.
10356         * modules/save-cwd (Makefile.am): Likewise.
10357         * modules/savedir (Makefile.am): Likewise.
10358         * modules/setenv (Makefile.am): Likewise.
10359         * modules/settime (Makefile.am): Likewise.
10360         * modules/sha1 (Makefile.am): Likewise.
10361         * modules/sig2str (Makefile.am): Likewise.
10362         * modules/snprintf (Makefile.am): Likewise.
10363         * modules/stdlib-safer (Makefile.am): Likewise.
10364         * modules/stpcpy (Makefile.am): Likewise.
10365         * modules/stpncpy (Makefile.am): Likewise.
10366         * modules/strcase (Makefile.am): Likewise.
10367         * modules/strcasestr (Makefile.am): Likewise.
10368         * modules/strchrnul (Makefile.am): Likewise.
10369         * modules/strcspn (Makefile.am): Likewise.
10370         * modules/strdup (Makefile.am): Likewise.
10371         * modules/strerror (Makefile.am): Likewise.
10372         * modules/strftime (Makefile.am): Likewise.
10373         * modules/strndup (Makefile.am): Likewise.
10374         * modules/strnlen (Makefile.am): Likewise.
10375         * modules/strpbrk (Makefile.am): Likewise.
10376         * modules/strsep (Makefile.am): Likewise.
10377         * modules/strstr (Makefile.am): Likewise.
10378         * modules/strtod (Makefile.am): Likewise.
10379         * modules/strtoimax (Makefile.am): Likewise.
10380         * modules/strtok_r (Makefile.am): Likewise.
10381         * modules/strtol (Makefile.am): Likewise.
10382         * modules/strtoll (Makefile.am): Likewise.
10383         * modules/strtoul (Makefile.am): Likewise.
10384         * modules/strtoull (Makefile.am): Likewise.
10385         * modules/strtoumax (Makefile.am): Likewise.
10386         * modules/strverscmp (Makefile.am): Likewise.
10387         * modules/time_r (Makefile.am): Likewise.
10388         * modules/timegm (Makefile.am): Likewise.
10389         * modules/tmpfile-safer (Makefile.am): Likewise.
10390         * modules/unistd-safer (Makefile.am): Likewise.
10391         * modules/unlinkdir (Makefile.am): Likewise.
10392         * modules/userspec (Makefile.am): Likewise.
10393         * modules/utime (Makefile.am): Likewise.
10394         * modules/utimecmp (Makefile.am): Likewise.
10395         * modules/utimens (Makefile.am): Likewise.
10396         * modules/vasnprintf (Makefile.am): Likewise.
10397         * modules/vasprintf (Makefile.am): Likewise.
10398         * modules/vsnprintf (Makefile.am): Likewise.
10399         * modules/xalloc (Makefile.am): Likewise.
10400         * modules/xgetcwd (Makefile.am): Likewise.
10401         * modules/xnanosleep (Makefile.am): Likewise.
10402         * modules/xreadlink (Makefile.am): Likewise.
10403         * modules/xstrtod (Makefile.am): Likewise.
10404         * modules/xstrtol (Makefile.am): Likewise.
10405         * modules/xstrtold (Makefile.am): Likewise.
10406         * modules/yesno (Makefile.am): Likewise.
10407
10408 2006-10-12  Jim Meyering  <jim@meyering.net>
10409
10410         * m4/getloadavg.m4: Revert the change below.
10411
10412         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
10413         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
10414         fail with a symlink, which is what coreutils' ./bootstrap now
10415         creates by default.
10416
10417 2006-10-12  Bruno Haible  <bruno@clisp.org>
10418
10419         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
10420         mingw.
10421         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
10422         MSVC and mingw explicitly.
10423
10424 2006-10-11  Simon Josefsson  <jas@extundo.com>
10425             Bruno Haible  <bruno@clisp.org>
10426
10427         Add support for multiple gnulib-tool invocations in the scope of a
10428         single configure.ac file.
10429         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
10430         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
10431         with the same contents as the _LIBADD variable.
10432         (func_emit_initmacro_start, func_emit_initmacro_end,
10433         func_emit_initmacro_done): New functions.
10434         (func_import, func_create_testdir): Invoke them. Allow the identifiers
10435         gl_LIBOBJS and gl_LTLIBOBJS.
10436
10437 2006-10-11  Bruno Haible  <bruno@clisp.org>
10438
10439         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
10440         (func_create_testdir): Don't create po/Makefile.am, don't invoke
10441         autoreconf. Instead, invoke autopoint explicitly but move back the
10442         *.m4 files from gnulib.
10443
10444 2006-10-11  Bruno Haible  <bruno@clisp.org>
10445
10446         * gnulib-tool (func_usage): Make module names after --create-testdir
10447         optional.
10448         (func_create_testdir): If no module was specified, use nearly all
10449         modules.
10450
10451 2006-10-12  Jim Meyering  <jim@meyering.net>
10452
10453         Big performance improvement for fts-based tools that use FTS_NOSTAT.
10454         Avoid spurious inode-mismatch problems on non-POSIX file systems.
10455         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
10456         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
10457         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
10458         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
10459         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
10460         (fts_set_stat_required): New function.
10461         (fts_open): Defer the calls to fts_stat, if possible or requested.
10462         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
10463         into fts_stat itself.
10464         (fts_read): Perform any required (deferred) fts_stat call.
10465         (fts_build): Likewise, for the directory we're about to open and read.
10466         In the readdir loop, carefully decide whether each entry will require
10467         an eventual call to fts_stat, using dirent.d_type info if available.
10468         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
10469         a command line argument into this function.  Update all callers.
10470         Map a return value of FTS_DOT to FTS_D for a command line argument.
10471         * modules/fts (Depends-on): Add d-type.  Alphabetize.
10472         Thanks to Miklos Szeredi for his tenacity and for the initial
10473         bug report about "find" failing on a FUSE-based file system.
10474
10475         * lib/fts.c (fts_open): Use consistent indentation.
10476
10477 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
10478
10479         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
10480         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
10481         reported by Jim Meyering.  All uses of cache variables renamed
10482         to match Autoconf's.
10483         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
10484         the other one.
10485
10486         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10487         Fix misspelling in diagnostic.
10488
10489 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10490
10491         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
10492         defined.  Problem reported by Matthew Woehlke.
10493
10494         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
10495         Add support for Tandem NonStop R series.
10496         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
10497         Use new macro.
10498
10499         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
10500         (has_trailing_slash): Omit size arg; all callers changed.
10501         Omit 'inline', since it doesn't help performance and we'd
10502         need to configure it.
10503         Don't count //, ///, etc. as having a trailing slash.
10504         As a side effect, this removes a C99ism reported by Matthew Woehlke.
10505         (rpl_rename_dest_slash): On failure, use rename's errno rather
10506         than (in some cases) an incorrect or junk errno.
10507         Simplify code by removing need to compute length; this does
10508         cause it to make two passes instead of one over the file name,
10509         but it's worth it.
10510
10511         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
10512         change, since Autoconf's version may no longer be appropriate now
10513         that we are using CVS Autoconf's version.  Add support for Tandem.
10514
10515 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10516             Bruno Haible  <bruno@clisp.org>
10517
10518         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
10519         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
10520         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
10521         gl_AC_TYPE_LONG_LONG.
10522
10523         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
10524         instead of HAVE_LONG_LONG.
10525         * lib/printf-args.c (printf_fetchargs): Likewise.
10526         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10527         * lib/vasnprintf.c (VASNPRINTF): Likewise.
10528         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
10529         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
10530         gl_AC_TYPE_LONG_LONG.
10531
10532 2006-10-11  Bruno Haible  <bruno@clisp.org>
10533
10534         * m4/longlong.m4: Add comments.
10535         * m4/ulonglong.m4: Likewise.
10536
10537 2006-10-10  Bruno Haible  <bruno@clisp.org>
10538
10539         Make it possible to #define stpcpy, strdup to aliases.
10540         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
10541         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
10542
10543 2006-10-10  Bruno Haible  <bruno@clisp.org>
10544
10545         Make it possible to #define gcd to an alias.
10546         * lib/gcd.c: Include config.h.
10547
10548 2006-10-10  Bruno Haible  <bruno@clisp.org>
10549
10550         Make it possible to #define c_isascii to an alias.
10551         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
10552         defined. Undefine the macros before defining them, to avoid gcc
10553         warnings.
10554         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
10555         define NO_C_CTYPE_MACROS early.
10556
10557 2006-10-10  Bruno Haible  <bruno@clisp.org>
10558
10559         Make it possible to #define set_program_name to an alias.
10560         * lib/progname.c: Don't undefine set_program_name; instead, undefine
10561         ENABLE_RELOCATABLE early.
10562
10563 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10564
10565         Port to Tandem NSK OSS, which has 64-bit signed int but at most
10566         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
10567         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
10568         More generally, don't assume that 64-bit signed int is available
10569         if unsigned int is, and vice versa.
10570         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
10571         unsigned symbols, not on their signed counterparts.
10572         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
10573         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
10574         (UINT64_C, UINTMAX_C):
10575         Likewise.
10576         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
10577         unsigned counterparts.
10578         (Have_long_long, Unsigned): New macros.
10579         (Int): Renamed from INT.
10580         (strtoimax): Use the new macros.
10581         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
10582         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
10583         * modules/inttypes (inttypes.h): Substitute
10584         HAVE_UNSIGNED_LONG_LONG_INT.
10585         * modules/stdint (stdint.h): Likewise.
10586         (Files): Add m4/ulonglong.m4.
10587
10588 2006-10-10  Bruno Haible  <bruno@clisp.org>
10589
10590         Fix a gcc -Wshadow warning.
10591         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
10592         to 'bucket'.
10593         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
10594         gl_linked_indexof_from_to): Likewise.
10595         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
10596         Likewise.
10597         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
10598         Likewise.
10599         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
10600         Reported by Eric Blake.
10601
10602 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
10603
10604         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
10605         for NetBSD.  Problem reported by Bruno Haible.
10606
10607 2006-10-09  Jim Meyering  <jim@meyering.net>
10608
10609         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
10610         Patch from Bruno Haible.
10611
10612 2006-10-09  Jim Meyering  <jim@meyering.net>
10613
10614         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
10615         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
10616         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
10617
10618 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10619
10620         Don't include <config.h> twice; this doesn't work in some cases,
10621         e.g., when config.h has "#define intmax_t long long int" and
10622         we include <config.h>, <inttypes.h>, <config.h> in that order.
10623         Problem reported by Matthew Woehlke in:
10624         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
10625         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
10626         * lib/fts-cycle.c: Don't include config.h.
10627         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
10628         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
10629         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
10630         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
10631         inttypes.h.
10632         * lib/xstrtoumax.c: Likewise.
10633         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
10634         __strtol and the like, so that this module is more like its siblings.
10635         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
10636         Remove; no longer needed now that we assume gnulib inttypes.h.
10637
10638 2006-10-08  Bruno Haible  <bruno@clisp.org>
10639
10640         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
10641         option.
10642
10643 2006-10-07  Jim Meyering  <jim@meyering.net>
10644
10645         * modules/inttypes (inttypes.h): Revert what seems to have been
10646         an inadvertent part of today's change: use "|", not "/" in the
10647         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
10648
10649 2006-10-07  Bruno Haible  <bruno@clisp.org>
10650
10651         * modules/sublist: New file.
10652
10653 2006-10-07  Bruno Haible  <bruno@clisp.org>
10654
10655         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
10656         * modules/argz (argz.h): Likewise.
10657         * modules/arpa_inet (arpa/inet.h): Likewise.
10658         * modules/byteswap (byteswap.h): Likewise.
10659         * modules/configmake (configmake.h): Likewise.
10660         * modules/fcntl (fcntl.h): Likewise.
10661         * modules/fnmatch (fnmatch.h): Likewise.
10662         * modules/getopt (getopt.h): Likewise.
10663         * modules/glob (glob.h): Likewise.
10664         * modules/inttypes (inttypes.h): Likewise.
10665         * modules/netinet_in (netinet/in.h): Likewise.
10666         * modules/poll (poll.h): Likewise.
10667         * modules/stdbool (stdbool.h): Likewise.
10668         * modules/stdint (stdint.h): Likewise.
10669         * modules/sys_select (sys/select.h): Likewise.
10670         * modules/sys_socket (sys/socket.h): Likewise.
10671         * modules/sys_stat (sys/stat.h): Likewise.
10672         * modules/sysexits (sysexits.h): Likewise.
10673         * modules/unistd (unistd.h): Likewise.
10674         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10675         Add a "DO NOT EDIT" comment to the generated file.
10676         (func_import): Likewise for gnulib-comp.m4.
10677
10678 2006-10-07  Bruno Haible  <bruno@clisp.org>
10679
10680         * lib/gl_sublist.h: New file.
10681         * lib/gl_sublist.c: New file.
10682
10683 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
10684
10685         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
10686         name (relative to the original working directory) and the file
10687         name component (relative to the temporary working directory).  All
10688         callers changed.
10689         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
10690         * lib/mkdir-p.c (make_dir_parents): Likewise.
10691         * lib/mkdir-p.h (make_dir_parents): Likewise.
10692
10693 2006-10-06  Eric Blake  <ebb9@byu.net>
10694
10695         Define several macros for use by the clean-temp module.
10696         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
10697         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
10698         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
10699
10700         * lib/clean-temp.h (close_stream_temp): New declaration.
10701         * lib/clean-temp.c (includes): Pull in headers according to what
10702         other modules are in use.
10703         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
10704
10705 2006-10-06  Bruno Haible  <bruno@clisp.org>
10706
10707         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
10708         instead of fopen, fwriteerror.
10709
10710 2006-10-06  Bruno Haible  <bruno@clisp.org>
10711
10712         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
10713         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
10714         int.
10715         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
10716         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
10717         Return an error indicator.
10718         Suggested by Eric Blake.
10719
10720 2006-10-06  Bruno Haible  <bruno@clisp.org>
10721
10722         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
10723         Reported by Eric Blake.
10724
10725 2006-10-06  Bruno Haible  <bruno@clisp.org>
10726
10727         * modules/closeout (Description): Mention stderr too.
10728
10729 2006-10-06  Bruno Haible  <bruno@clisp.org>
10730         and Paul Eggert  <eggert@cs.ucla.edu>
10731
10732         * lib/closeout.c (close_stdout): Also close stderr.
10733         * lib/closeout.h: Update comment.
10734
10735 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10736
10737         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
10738         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
10739         * lib/dirchownmod.c: Include lchown.h.
10740         * lib/lchown.c: Don't include files that lchown.h now includes.
10741         Don't declare chown, since lchown.h now does that.
10742         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
10743         (lchown): Define to rpl_chown if lchown is declared but
10744         does not exist.  Declare using a prototype if lchown is not
10745         declared.  Add a copyright notice.
10746         * lib/mkstemp.h: Include <unistd.h>.
10747         * lib/openat.c: Include lchown.h.
10748
10749         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
10750         we now test for that separately.
10751         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
10752         rather than O_NOFOLLOW, when testing whether it's possible to
10753         avoid a race condition reliably.
10754         * lib/savewd.c (savewd_chdir): Likewise.
10755
10756         Remove macros that are no longer needed now that stdint.h is
10757         reliable.
10758         * lib/fsusage.c (UINTMAX_MAX): Remove.
10759         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
10760         * lib/utimecmp.c (SIZE_MAX): Remove.
10761
10762         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
10763
10764         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
10765         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
10766         O_NOATIME works.
10767
10768 2006-10-05  Bruno Haible  <bruno@clisp.org>
10769
10770         * lib/gl_list.h (gl_sortedlist_search_from_to,
10771         gl_sortedlist_indexof_from_to): New declarations.
10772         (gl_list_implementation): New fields sortedlist_search_from_to,
10773         sortedlist_indexof_from_to.
10774         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
10775         inline functions.
10776         * lib/gl_list.c (gl_sortedlist_search_from_to,
10777         gl_sortedlist_indexof_from_to): New functions.
10778         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
10779         function.
10780         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
10781         (gl_array_sortedlist_search_from_to): New function.
10782         (gl_array_list_implementation): Update.
10783         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
10784         function.
10785         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
10786         (gl_carray_sortedlist_search_from_to): New function.
10787         (gl_carray_list_implementation): Update.
10788         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
10789         gl_linked_sortedlist_indexof_from_to): New functions.
10790         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
10791         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
10792         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
10793         gl_tree_sortedlist_indexof_from_to): New functions.
10794         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
10795         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
10796         Update.
10797         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
10798         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
10799         Update.
10800
10801 2006-10-05  Bruno Haible  <bruno@clisp.org>
10802
10803         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
10804         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
10805         (struct gl_list_implementation): Add fields search_from_to,
10806         indexof_from_to. Remove fields search, indexof.
10807         (gl_list_search): Use the search_from_to method.
10808         (gl_list_search_from, gl_list_search_from_to): New functions.
10809         (gl_list_indexof): Use the indexof_from_to method.
10810         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
10811         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
10812         (gl_list_search_from, gl_list_search_from_to): New functions.
10813         (gl_list_indexof): Use the indexof_from_to method.
10814         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
10815         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
10816         gl_array_indexof. Add start_index, end_index arguments.
10817         (gl_array_search_from_to): Renamed from gl_array_search. Add
10818         start_index, end_index arguments.
10819         (gl_array_remove, gl_array_list_implementation): Update.
10820         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
10821         gl_carray_indexof. Add start_index, end_index arguments.
10822         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
10823         start_index, end_index arguments.
10824         (gl_carray_remove, gl_carray_list_implementation): Update.
10825         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
10826         gl_linked_search. Add start_index, end_index arguments.
10827         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
10828         start_index, end_index arguments.
10829         (gl_linked_remove): Update.
10830         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
10831         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
10832         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
10833         field to 'size_t'.
10834         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
10835         gl_tree_search. Add start_index, end_index arguments.
10836         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
10837         start_index, end_index arguments.
10838         (gl_tree_remove): Update.
10839         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
10840         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
10841         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
10842         function.
10843         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
10844         gl_tree_search. Add start_index, end_index arguments.
10845         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
10846         start_index, end_index arguments.
10847         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
10848         Update.
10849         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
10850
10851 2006-10-05  Bruno Haible  <bruno@clisp.org>
10852
10853         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
10854
10855         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
10856         fwriteerror_temp): New declarations.
10857         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
10858         (descriptors): New variable.
10859         (cleanup): First, close the descriptors.
10860         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
10861         fclose_temp, fwriteerror_temp): New functions.
10862
10863 2006-10-04  Jim Meyering  <jim@meyering.net>
10864
10865         * lib/fts.c (fts_open): Tiny comment change.
10866
10867 2006-10-04  Bruno Haible  <bruno@clisp.org>
10868
10869         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
10870         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
10871         gl_LOCK_BODY.
10872         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
10873         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
10874         gl_LOCK_EARLY_BODY.
10875         (gl_LOCK): Require gl_LOCK_BODY.
10876
10877 2006-10-04  Bruno Haible  <bruno@clisp.org>
10878
10879         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
10880         (gl_oset_search_atleast): New declaration.
10881         (struct gl_oset_implementation): Add field 'search_atleast'.
10882         (gl_oset_search_atleast): New inline function.
10883         * lib/gl_oset.c (gl_oset_search_atleast): New function.
10884         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
10885         (gl_array_oset_implementation): Update.
10886         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
10887         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
10888         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
10889
10890 2006-10-04  Bruno Haible  <bruno@clisp.org>
10891
10892         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
10893
10894 2006-10-03  Bruno Haible  <bruno@clisp.org>
10895
10896         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
10897         from gl_avltreehash_list_implementation.
10898
10899 2006-10-03  Bruno Haible  <bruno@clisp.org>
10900
10901         * lib/gl_oset.c (gl_oset_add): Fix return type.
10902
10903 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
10904
10905         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
10906
10907 2006-10-02  Eric Blake  <ebb9@byu.net>
10908
10909         * modules/strnlen (Depends-on): Add extensions.
10910
10911 2006-10-02  Eric Blake  <ebb9@byu.net>
10912
10913         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
10914         definition in 2.60+.
10915
10916 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
10917
10918         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
10919         checks.
10920
10921 2006-10-02  Bruno Haible  <bruno@clisp.org>
10922
10923         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
10924         to the AUTOMAKE_OPTIONS.
10925         Reported by Jim Meyering.
10926
10927 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
10928
10929         Work around bug in Solaris 10 /proc file system:
10930         /proc/self/fd/NNN/.. isn't the parent directory of
10931         the directory whose file descriptor is NNN.  This needs to
10932         be worked around at run time, not compile time, since a
10933         program might be built on Solaris 8, where things work, and
10934         run on Solaris 10.
10935         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
10936         to use the following interface instead:
10937         (OPENAT_BUFFER_SIZE): New macro.
10938         (openat_proc_name): New function.
10939         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
10940         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
10941         Likewise.
10942         * lib/openat-proc.c: New file.
10943         * modules/openat (Files): Add lib/openat-proc.c.
10944         (Depends-on): Add same-inode, stdbool.
10945         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
10946
10947 2006-09-29  Bruno Haible  <bruno@clisp.org>
10948
10949         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
10950         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
10951         argument. Set stdout_closed before testing for ferror, not after.
10952         (fwriteerror, fwriteerror_no_ebadf): New functions.
10953
10954 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10955
10956         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
10957
10958 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
10959
10960         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
10961         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
10962
10963 2006-09-28  Jim Meyering  <jim@meyering.net>
10964
10965         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
10966         Include <unistd.h>.
10967
10968 2006-09-28  Bruno Haible  <bruno@clisp.org>
10969
10970         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
10971         * modules/linkedhash-list (Depends-on): Likewise.
10972         * modules/rbtreehash-list (Depends-on): Likewise.
10973
10974 2006-09-28  Bruno Haible  <bruno@clisp.org>
10975
10976         * lib/strndup.h: Simplify the redefinition of strndup.
10977         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
10978         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
10979
10980 2006-09-28  Bruno Haible  <bruno@clisp.org>
10981
10982         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
10983         * lib/gl_linkedhash_list.c: Likewise.
10984         * lib/gl_rbtreehash_list.c: Likewise.
10985
10986 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
10987
10988         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
10989         getaddrinfo.
10990
10991         * lib/__fpending.h: Don't include <stdio_ext.h> unless
10992         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
10993         it causes <stdio_ext.h> to cause a compile-time error.
10994         Problem reported by Nelson H. F. Beebe.
10995         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
10996         of HAVE_DECL___PENDING.
10997
10998         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
10999         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
11000         declaration.
11001
11002 2006-09-27  Jim Meyering  <jim@meyering.net>
11003
11004         This file could end up with a definition for a function
11005         named __strndup, rather than rpl_strndup on a system with
11006         incomplete weak_alias support.
11007         * lib/strndup.c (strndup): Rename from __strndup.
11008         Remove #defines that used to map __strndup to strndup.
11009         Don't use K&R prototypes.
11010         Remove LIBC-related code, since this file is not sync'd with glibc.
11011         * lib/strndup.h: Revamp, accordingly.
11012         * m4/strndup.m4: Modernize.
11013
11014 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11015
11016         * modules/savewd (Depends-on): Add 'raise'.
11017         * lib/savewd.c: Include <signal.h>, for 'raise'.
11018
11019 2006-09-26  Jim Meyering  <jim@meyering.net>
11020
11021         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
11022         when we detect Darwin 8.7.0's acl_get_file bug.
11023         Rearrange to perform the new (below) run-test while $LIBS
11024         contains any acl-related library.  Set USE_ACL at the end.
11025         (gl_ACL_GET_FILE): New function.
11026
11027 2006-09-26  Eric Blake  <ebb9@byu.net>
11028
11029         * lib/verror.c: Include <config.h> unconditionally.
11030
11031 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
11032
11033         * modules/clock-time (Maintainer): Add self.
11034         * modules/getlogin_r (Depends-on): Add extensions.
11035
11036 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11037
11038         * modules/clock-time: New module.
11039         * modules/nanosleep (Depends-on): Add clock-time.
11040         * modules/gethrxtime (Depends-on): Likewise.
11041         * modules/gettime (Depends-on): Likewise.
11042         * modules/settime (Depends-on): Likewise.
11043
11044         * modules/fts-lgpl: Depend on openat.
11045         * modules/mkancesdirs: Depend on savewd.
11046         * modules/mkdir-p: Likewise.
11047
11048 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11049
11050         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
11051
11052         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
11053         `gl_have_arbitrary_file_name_length_limit' to
11054         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
11055         actually works between configure runs.
11056
11057 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11058             Bruno Haible  <bruno@clisp.org>
11059
11060         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
11061
11062 2006-09-25  Jim Meyering  <jim@meyering.net>
11063
11064         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
11065         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
11066
11067 2006-09-25  Eric Blake  <ebb9@byu.net>
11068
11069         * gnulib-tool (func_import, func_create_testdir): Fix typos in
11070         exec's in 2006-09-18 patch when shuffling fds.
11071
11072 2006-09-25  Bruno Haible  <bruno@clisp.org>
11073
11074         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
11075         Reported by Jim Meyering.
11076
11077 2006-09-24  Jim Meyering  <jim@meyering.net>
11078
11079         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
11080         compare a pointer against a literal "0".  That caused failures with
11081         at least HP-UX's hpcc.
11082
11083 2006-09-22  Simon Josefsson  <jas@extundo.com>
11084
11085         * modules/gc-sha1:
11086         * modules/gc-md4:
11087         * modules/gc-hmac-sha1:
11088         * modules/gc-hmac-md5:
11089         * modules/gc-des:
11090         * modules/gc-arcfour: Distribute more files.
11091
11092 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11093
11094         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
11095         (gl_linked_iterator_from_to): Initialize struct completely.
11096         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
11097         (gl_tree_iterator_from_to): Likewise
11098         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
11099         * lib/gl_array_list.c [lint] (gl_array_iterator)
11100         (gl_array_iterator_from_to): Likewise.
11101         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
11102         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
11103         (gl_carray_iterator_from_to): Likewise.
11104
11105         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
11106         * lib/md4.c (md4_process_block): Remove unused variable.
11107         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
11108         parentheses for clarity.
11109
11110 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11111
11112         * modules/bison-i18n (Depends-on): Add gettext.
11113
11114 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11115
11116         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
11117         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
11118         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
11119         also add missing comma that caused broken test.
11120         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
11121         stdlib.h, for `abort'.
11122         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
11123         variables.
11124         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
11125         include unistd.h if present, for `rmdir'.
11126         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
11127         variables.
11128         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
11129         in the process include standard headers for prototypes.
11130         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
11131         gets declared on GNU/Linux.
11132         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
11133         unistd.h, for `rmdir'.
11134         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
11135
11136         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
11137         always true.
11138         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
11139
11140         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
11141
11142 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11143
11144         * gnulib-tool (func_version): Create output all at once.  This
11145         may help avoid triggering unnecessary SIGPIPEs, and at any
11146         rate it doesn't hurt.
11147
11148 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11149             Bruno Haible  <bruno@clisp.org>
11150
11151         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
11152         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11153         * m4/signed.m4 (bh_C_SIGNED): Likewise.
11154
11155         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
11156         (gl_FUNC_VASPRINTF): Invoke it.
11157
11158 2006-09-22  Bruno Haible  <bruno@clisp.org>
11159
11160         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
11161         getloadavg.c as first argument.
11162
11163 2006-09-22  Bruno Haible  <bruno@clisp.org>
11164
11165         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
11166         at the beginning of the gl_INIT macro.
11167         * modules/getloadavg (configure.ac): Pass $gl_source_base to
11168         gl_GETLOADAVG.
11169
11170 2006-09-22  Bruno Haible  <bruno@clisp.org>
11171
11172         * gnulib-tool (func_create_megatestdir): Don't include the config-h
11173         module.
11174         Suggested by Ralf Wildenhues.
11175
11176 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
11177
11178         Import this patch from libc:
11179
11180         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
11181
11182         * lib/regex_internal.c (re_string_reconstruct): Handle
11183         offset < pstr->valid_raw_len && pstr->offsets_needed case.
11184         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
11185         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
11186         re_string_context_at.
11187
11188         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
11189         now requires it.
11190         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
11191         gl_REGEX now does it for us.
11192         (gl_REGEX): Add test taken from
11193         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
11194
11195         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
11196         Check that large offsets work.  Modernize Autoconf usages.
11197         Prefer "yes" to mean a good thing rather than a bad.
11198         Don't put "#define mkstemp" in config.h, as this might interfere
11199         with standard system headers that "#define mkstemp mkstemp64".
11200
11201         * modules/mkstemp (Depends-on): Add extensions, so that
11202         mkstemp is visible on some platforms.
11203         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
11204         (Include): Change to "mkstemp.h" from <stdlib.h>.
11205         (Files): Add mkstemp.h.
11206
11207         * lib/mkstemp.h: New file, since some standard headers
11208         #define mkstemp.
11209         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
11210         Include "mkstemp.h".
11211         Make the _LIBC code resemble glibc original more,
11212         e.g., use K&R style.
11213         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
11214         (mkstemp): Remove, since mkstemp.h does this for us.
11215         * lib/stdlib--.h: Include mkstemp.h.
11216
11217         Import this patch from libc:
11218
11219         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
11220
11221         * lib/tempname.c (__gen_tempname): Change attempts_min
11222         into a macro.  Use preprocessor to decide how to initialize
11223         attempts [Coverity CID 67].
11224
11225 2006-09-20  Bruno Haible  <bruno@clisp.org>
11226
11227         * lib/mkdtemp.c: Import from libc.
11228         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
11229                 * sysdeps/posix/tempname.c (__gen_tempname): Change
11230                 attempts_min into a macro.  Use preprocessor to decide how to
11231                 initialize attempts [Coverity CID 67].
11232         2001-11-27  Paul Eggert  <eggert@twinsun.com>
11233                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11234                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11235
11236 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11237
11238         * gnulib-tool (func_exit): New function, to allow to pass the
11239         exit status portably through the trap.  Use everywhere.
11240         (--help, --version): Signal a write error.
11241         (trap): catch SIGPIPE, for write errors.
11242         Exit at the end of the trap, with the correct exit status.
11243
11244 2006-09-19  Karl Berry  <karl@gnu.org>
11245
11246         * doc/gnulib.texi: note about the license texinfo files.
11247
11248 2006-09-19  Eric Blake  <ebb9@byu.net>
11249
11250         * gnulib-tool: Avoid space-tab.
11251
11252 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
11253
11254         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
11255         that prevented coreutils 6.1 from building.  Problem reported
11256         by Petter Reinholdtsen.
11257
11258 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
11259
11260         * gnulib-tool (avoidlist): Fix typo that broke options like
11261         --avoid=lock that are used by coreutils bootstrap.
11262
11263 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
11264
11265         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
11266         more systematically.
11267
11268 2006-09-18  Jim Meyering  <jim@meyering.net>
11269
11270         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
11271
11272 2006-09-18  Bruno Haible  <bruno@clisp.org>
11273
11274         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
11275
11276 2006-09-18  Bruno Haible  <bruno@clisp.org>
11277
11278         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
11279         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
11280         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
11281         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
11282         * m4/gettext.m4: Require autoconf >= 2.52.
11283         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
11284         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
11285         of gl_cv_header_inttypes_h.
11286
11287 2006-09-18  Bruno Haible  <bruno@clisp.org>
11288
11289         * lib/javaversion.c: Include configmake.h.
11290
11291 2006-09-18  Bruno Haible  <bruno@clisp.org>
11292
11293         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
11294         avoid that the while loops be executed in a subshell.
11295
11296 2006-09-18  Bruno Haible  <bruno@clisp.org>
11297
11298         * MODULES.html.sh (func_module): Break long lines.
11299         Suggested by Bruce Korb <bkorb@gnu.org>.
11300
11301 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11302
11303         Speed up by a factor of 1.12.
11304         * gnulib-tool (nl): New variable.
11305         (func_import): Rewrite include directive extraction to only read each
11306         directive once.
11307
11308 2006-09-17  Bruno Haible  <bruno@clisp.org>
11309
11310         * modules/javaversion (Makefile.am): Remove DEFS setting.
11311         (Depends-on): Add configmake, for PKGDATADIR definition.
11312
11313 2006-09-17  Bruno Haible  <bruno@clisp.org>
11314
11315         * gnulib-tool (func_create_testdir): Rewrite all files at once.
11316
11317 2006-09-17  Bruno Haible  <bruno@clisp.org>
11318
11319         * gnulib-tool (func_append): New function, stolen from libtool.m4.
11320         (func_modules_transitive_closure, func_modules_add_dummy,
11321         func_modules_to_filelist, func_import, func_create_testdir,
11322         func_create_megatestdir, ...): Use it wherever possible.
11323         Suggested by Ralf Wildenhues.
11324
11325 2006-09-16  Karl Berry  <karl@gnu.org>
11326
11327         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
11328         to avoid sectioning errors.
11329         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
11330         [ifinfo]: blank line after @center-ed titles.
11331         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
11332         Spell FSF address consistently with others.
11333         (These changes approved by rms.)
11334
11335 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11336
11337         Speed up by a factor of 1.61.
11338         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
11339         already checked module names again.
11340
11341 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11342
11343         Speed up by a factor of 1.13.
11344         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
11345         for new_files, and the input to func_add_or_update.
11346
11347 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11348
11349         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
11350         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
11351
11352 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11353
11354         * modules/mkancesdirs (Depends-on): Add fcntl.
11355         * modules/savewd: New file.
11356         * MODULES.html.sh (File system functions): Add savewd.
11357
11358         * modules/configmake (Makefile.am): Add support for the
11359         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
11360
11361 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11362
11363         * m4/savewd.m4: New file.
11364
11365 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11366
11367         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
11368         (dirchownmod): New arg FD.  All callers changed.
11369         Use FD rather than opening the directory ourself, as opening is
11370         now the caller's responsibility.
11371         * lib/dirchownmod.h: Likewise.
11372         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
11373         hosts that require <sys/types.h> before <sys/stat.h>.  Include
11374         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
11375         (test_dir): Remove.
11376         (mkancesdirs): Return length of prefix of FILE that has already
11377         been made, or -2 if there is a child doing the work.  Redo
11378         algorithm so that it is O(N) rather than O(N**2).  Optimize away
11379         ".", and treat ".." specially since it might stray back into
11380         already-created areas.  Use a subprocess if necessary.  New arg
11381         WD; all users changed.  MAKE_DIR function should now return 1
11382         if it creates a directory that is not readable.  Return -2 if
11383         a child process is spun off.
11384         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
11385         Adjust signature to match code.
11386         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
11387         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
11388         all users changed.
11389         * lib/savewd.c, lib/savewd.h: New files.
11390
11391 2006-09-15  Jim Meyering  <jim@meyering.net>
11392
11393         * modules/rename-dest-slash: New module.
11394         * MODULES.html.sh (posix_compat): Add it here.
11395
11396         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
11397
11398 2006-09-15  Jim Meyering  <jim@meyering.net>
11399
11400         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
11401         file.
11402
11403         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
11404
11405 2006-09-15  Jim Meyering  <jim@meyering.net>
11406
11407         * lib/rename-dest-slash.c (has_trailing_slash): Use
11408         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
11409         (rpl_rename_dest_slash): Perform the cheaper trailing slash
11410         test before testing whether SRC is a directory.
11411         Suggestions from Bruno Haible.
11412
11413         Avoid a warning about an unused variable.
11414         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
11415         into the #ifdef block where it's used.
11416
11417         * lib/rename-dest-slash.c: New file.
11418
11419 2006-09-14  Bruno Haible  <bruno@clisp.org>
11420
11421         * lib/allocsa.c: Include <config.h> unconditionally.
11422         * lib/asnprintf.c: Likewise.
11423         * lib/asprintf.c: Likewise.
11424         * lib/c-strcasecmp.c: Likewise.
11425         * lib/c-strcasestr.c: Likewise.
11426         * lib/c-strncasecmp.c: Likewise.
11427         * lib/c-strstr.c: Likewise.
11428         * lib/classpath.c: Likewise.
11429         * lib/clean-temp.c: Likewise.
11430         * lib/concatpath.c: Likewise.
11431         * lib/copy-file.c: Likewise.
11432         * lib/csharpcomp.c: Likewise.
11433         * lib/csharpexec.c: Likewise.
11434         * lib/execute.c: Likewise.
11435         * lib/fatal-signal.c: Likewise.
11436         * lib/findprog.c: Likewise.
11437         * lib/fwriteerror.c: Likewise.
11438         * lib/gl_array_list.c: Likewise.
11439         * lib/gl_array_oset.c: Likewise.
11440         * lib/gl_avltree_list.c: Likewise.
11441         * lib/gl_avltree_oset.c: Likewise.
11442         * lib/gl_avltreehash_list.c: Likewise.
11443         * lib/gl_carray_list.c: Likewise.
11444         * lib/gl_linked_list.c: Likewise.
11445         * lib/gl_linkedhash_list.c: Likewise.
11446         * lib/gl_list.c: Likewise.
11447         * lib/gl_oset.c: Likewise.
11448         * lib/gl_rbtree_list.c: Likewise.
11449         * lib/gl_rbtree_oset.c: Likewise.
11450         * lib/gl_rbtreehash_list.c: Likewise.
11451         * lib/imaxabs.c: Likewise.
11452         * lib/imaxdiv.c: Likewise.
11453         * lib/javacomp.c: Likewise.
11454         * lib/javaexec.c: Likewise.
11455         * lib/javaversion.c: Likewise.
11456         * lib/linebreak.c: Likewise.
11457         * lib/localcharset.c: Likewise.
11458         * lib/lock.c: Likewise.
11459         * lib/mbchar.c: Likewise.
11460         * lib/mbswidth.c: Likewise.
11461         * lib/mkdtemp.c: Likewise.
11462         * lib/pipe.c: Likewise.
11463         * lib/printf-args.c: Likewise.
11464         * lib/printf-parse.c: Likewise.
11465         * lib/progname.c: Likewise.
11466         * lib/progreloc.c: Likewise.
11467         * lib/readlink.c: Likewise.
11468         * lib/sh-quote.c: Likewise.
11469         * lib/stpcpy.c: Likewise.
11470         * lib/stpncpy.c: Likewise.
11471         * lib/strcasecmp.c: Likewise.
11472         * lib/strcasestr.c: Likewise.
11473         * lib/strcspn.c: Likewise.
11474         * lib/striconv.c: Likewise.
11475         * lib/strncasecmp.c: Likewise.
11476         * lib/strnlen1.c: Likewise.
11477         * lib/strstr.c: Likewise.
11478         * lib/strtok_r.c: Likewise.
11479         * lib/tls.c: Likewise.
11480         * lib/tmpdir.c: Likewise.
11481         * lib/unicodeio.c: Likewise.
11482         * lib/unsetenv.c: Likewise.
11483         * lib/vasnprintf.c: Likewise.
11484         * lib/vasprintf.c: Likewise.
11485         * lib/wait-process.c: Likewise.
11486         * lib/xallocsa.c: Likewise.
11487         * lib/xsetenv.c: Likewise.
11488         * lib/xstriconv.c: Likewise.
11489
11490 2006-09-13  Simon Josefsson  <jas@extundo.com>
11491
11492         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
11493         that internally, suggested by Ralf Wildenhues
11494         <Ralf.Wildenhues@gmx.de>.
11495
11496 2006-09-13  Simon Josefsson  <jas@extundo.com>
11497
11498         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
11499         @LIBOBJS@.
11500         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11501
11502 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11503
11504         * lib/_fpending.c: Include <config.h> unconditionally, since we no
11505         longer worry about uses that don't define HAVE_CONFIG_H.
11506         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
11507         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
11508         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
11509         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
11510         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
11511         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
11512         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
11513         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
11514         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
11515         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
11516         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
11517         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
11518         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
11519         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
11520         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
11521         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
11522         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
11523         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
11524         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
11525         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
11526         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
11527         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
11528         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
11529         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
11530         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
11531         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
11532         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
11533         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
11534         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
11535         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
11536         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
11537         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
11538         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
11539         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
11540         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
11541         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
11542         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
11543         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
11544         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
11545         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
11546         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
11547         Likewise.
11548
11549 2006-09-13  Eric Blake  <ebb9@byu.net>
11550
11551         * lib/getopt.c: Fix typo in last commit.
11552
11553 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11554
11555         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
11556         dgettext.
11557
11558 2006-09-12  Jim Meyering  <jim@meyering.net>
11559
11560         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
11561         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
11562         Reported by Nelson H. F. Beebe.
11563
11564 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
11565
11566         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
11567         program_invocation_name and program_invocation_short_name are
11568         initialized.
11569         * lib/argp-namefrob.h: Move declarations of program_invocation_name
11570         and program_invocation_short_name to argp.h, so they are visible
11571         to user programs.
11572         * lib/argp.h: Likewise
11573
11574 2006-09-10  Bruno Haible  <bruno@clisp.org>
11575
11576         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
11577         m4/inttypes_h.m4, m4/uintmax_t.m4.
11578
11579 2006-09-10  Bruno Haible  <bruno@clisp.org>
11580
11581         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
11582         gl_AC_TYPE_UINTMAX_T.
11583
11584 2006-09-10  Bruno Haible  <bruno@clisp.org>
11585
11586         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
11587
11588 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
11589
11590         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
11591         convention.  Text proposed by Bruno Haible.
11592         (struct argp_option): Document the use of N_() wrappers.
11593
11594         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
11595         '\v', and translate the two parts separately, instead of feeding
11596         the whole string to gettext.  This allows to exclude
11597         '\v' from the strings visible to the translator by writing doc
11598         strings as N_("..") "\v" N_("..").
11599
11600 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
11601
11602         * config/srclist.txt: Undo latest change; the bug was fixed.
11603
11604 2006-09-09  Bruno Haible  <bruno@clisp.org>
11605
11606         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
11607         assignments if building a library without libtool.
11608         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
11609         in func_emit_lib_Makefile_am.
11610         (func_import): When building a static library libfoo.a, arrange to
11611         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
11612         (func_create_testdir): Likewise.
11613         * modules/gc (configure.ac, Makefile.am): If building statically,
11614         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
11615         * modules/iconvme (configure.ac, Makefile.am): Likewise.
11616         * modules/striconv (configure.ac, Makefile.am): Likewise.
11617         Based on a suggestion by Ralf Wildenhues.
11618
11619 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11620
11621         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
11622         Check for unistd.h too, since Autoconf doesn't assume POSIX.
11623         Also:
11624
11625         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11626         Add year_2050_test to catch glibc bug 2821
11627         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
11628
11629         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11630         Prefer #ifdef to #if.
11631
11632         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
11633         Return from 'main' instead of calling 'exit'.
11634
11635 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11636
11637         * lib/mktime.c (guess_time_tm): Fix bug where mktime
11638         returned the maximum time_t value rather than (time_t) -1.
11639         Problem originally reported by William Bardwell
11640         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
11641
11642         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
11643         Moved to here ...
11644         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
11645         ... from here.
11646
11647 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11648
11649         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
11650         2821 is fixed.
11651
11652 2006-09-08  Jim Meyering  <jim@meyering.net>
11653
11654         Don't make generated files read-only.  That would bother too many
11655         people.  However, do retain the ability to work when targets are
11656         read-only: remove the destination and temporary files before writing
11657         them (when generated via sed or echo), or by using the -f option for
11658         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
11659         * modules/alloca-opt, modules/argz, modules/arpa_inet:
11660         * modules/byteswap, modules/configmake, modules/fcntl:
11661         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
11662         * modules/localcharset, modules/netinet_in, modules/poll:
11663         * modules/stdbool, modules/stdint, modules/sys_select:
11664         * modules/sys_socket, modules/sys_stat, modules/sysexits:
11665
11666 2006-09-08  Jim Meyering  <jim@meyering.net>
11667
11668         Avoid new build failure on FreeBSD 6.0.
11669         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
11670         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
11671         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
11672
11673 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11674
11675         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
11676
11677 2006-09-07  Jim Meyering  <jim@meyering.net>
11678
11679         Fix global typo in last change: use chmod u-w, not chmod u-x.
11680         Spotted by Paul Eggert and Bruce Korb.
11681         * modules/alloca-opt, modules/argz, modules/arpa_inet:
11682         * modules/byteswap, modules/configmake, modules/fcntl:
11683         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
11684         * modules/localcharset, modules/netinet_in, modules/poll:
11685         * modules/stdbool, modules/stdint, modules/sys_select:
11686         * modules/sys_socket, modules/sys_stat, modules/sysexits:
11687
11688 2006-09-06  Jim Meyering  <jim@meyering.net>
11689
11690         Make generated files be read-only.
11691         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
11692         Ensure that each generated file is now read-only.
11693         * modules/argz: Likewise.
11694         * modules/arpa_inet: Likewise.
11695         * modules/byteswap: Likewise.
11696         * modules/configmake: Likewise.
11697         * modules/fcntl: Likewise.
11698         * modules/fnmatch: Likewise.
11699         * modules/getopt: Likewise.
11700         * modules/glob: Likewise.
11701         * modules/inttypes: Likewise.
11702         * modules/netinet_in: Likewise.
11703         * modules/poll: Likewise.
11704         * modules/stdbool: Likewise.
11705         * modules/stdint: Likewise.
11706         * modules/sys_select: Likewise.
11707         * modules/sys_socket: Likewise.
11708         * modules/sys_stat: Likewise.
11709         * modules/sysexits: Likewise.
11710         * modules/localcharset: Same as above, but continue using temporary
11711         file named "t-$@" (why different?) rather than the "$@-t" used
11712         everywhere else.
11713
11714         * modules/sysexits (Makefile.am): Replace literal occurrences
11715         of "sysexit.h" more readable, and more consistent, "$@".
11716
11717 2006-09-06  Bruno Haible  <bruno@clisp.org>
11718
11719         * modules/striconv: New file.
11720         * modules/xstriconv: New file.
11721         * MODULES.html.sh (Internationalization functions): Add striconv,
11722         xstriconv.
11723
11724 2006-09-06  Bruno Haible  <bruno@clisp.org>
11725
11726         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
11727         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
11728         not using libtool correctly.
11729
11730 2006-09-06  Bruno Haible  <bruno@clisp.org>
11731
11732         * lib/striconv.h: New file.
11733         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
11734         iconvstring.c.
11735         * lib/xstriconv.h: New file.
11736         * lib/xstriconv.c: New file.
11737
11738 2006-09-06  Bruno Haible  <bruno@clisp.org>
11739
11740         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
11741         lib_..._LDFLAGS.
11742
11743 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11744
11745         * lib/argz_.h: Sync from Libtool.
11746
11747         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
11748                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11749
11750         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
11751
11752 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
11753
11754         * modules/trim: New file.
11755
11756 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
11757
11758         * lib/trim.h: New file.
11759         * lib/trim.c: New file.
11760
11761 2006-09-05  Bruno Haible  <bruno@clisp.org>
11762
11763         * MODULES.html.sh (String handling): Add trim.
11764
11765 2006-09-04  Karl Berry  <karl@gnu.org>
11766
11767         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
11768         until next release.
11769
11770 2006-09-03  Bruno Haible  <bruno@clisp.org>
11771
11772         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
11773         correctly.
11774
11775 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11776
11777         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
11778         not gl_GETLOADAVG.  Omit unneeded semicolons.
11779         Problems reported by Ralf Wildenhues in
11780         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
11781         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
11782         at the end, which is the usual gnulib style.
11783
11784         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
11785         of doing all the work ourselves.
11786         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
11787         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
11788
11789 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11790
11791         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
11792         Problem reported by Ralf Wildenhues in
11793         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
11794
11795         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
11796         HAVE_STRUCT_STATFS_F_FSTYPENAME.
11797
11798 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11799
11800         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
11801         yesterday's patch by changing test -n to test -z.
11802
11803 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11804
11805         * modules/getloadavg (Files): Add m4/getloadavg.m4.
11806         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
11807         the former is now obsolescent.
11808
11809         * modules/chdir-long (Depends-on): Add fcntl.
11810
11811 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11812
11813         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
11814         obsolescent, and programs should use gnulib instead.
11815         * m4/getloadavg.m4: New file, with contents taken from Autoconf
11816         but with prefixes changed.
11817
11818 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11819
11820         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
11821         or stdbool.h, because they might not exist while configuring.
11822
11823         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
11824         Don't include unistd.h or limits.h; not needed, since chdir-long.h
11825         does that for us.
11826         (O_DIRECTORY): Remove.
11827
11828 2006-08-31  Eric Blake  <ebb9@byu.net>
11829
11830         * gnulib-tool: Don't let emacs change spaces to TAB.
11831
11832 2006-08-31  Bruno Haible  <bruno@clisp.org>
11833
11834         * gnulib-tool: When calling func_import more than once, do it in a
11835         subshell.
11836         Reported by Eric Blake <ebb9@byu.net>.
11837
11838 2006-08-31  Bruno Haible  <bruno@clisp.org>
11839
11840         * gnulib-tool (nl): Remove variable.
11841         (sed_transform_lib_file): Use more robust test for config-h module.
11842         (func_import): Fix typo in 2006-08-25 patch.
11843
11844 2006-08-31  Bruno Haible  <bruno@clisp.org>
11845
11846         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
11847         specified, augment Makefile.am variables instead of assigning them.
11848
11849 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11850
11851         Work around a bug in both the Linux and SunOS 64-bit kernels:
11852         nanosleep mishandles sleeps for longer than 2**31 seconds.
11853         Problem reported by Frank v Waveren in
11854         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
11855         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
11856         Check for nanosleep bug.
11857         (LIB_NANOSLEEP): Append clock_gettime library if needed.
11858
11859 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11860
11861         Work around a bug in both the Linux and SunOS 64-bit kernels:
11862         nanosleep mishandles sleeps for longer than 2**31 seconds.
11863         Problem reported by Frank v Waveren in
11864         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
11865         * lib/nanosleep.c (BILLION): New constant.
11866         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
11867         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
11868         implementation.
11869
11870 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11871
11872         * modules/nanosleep (Depends-on): Add gettime.
11873
11874 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11875         and Simon Josefsson  <jas@extundo.com>
11876         and Oskar Liljeblad  <oskar@osk.mine.nu>
11877
11878         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
11879         * gnulib-tool (func_import): New license type 'unmodifiable license
11880         text'.
11881         * modules/fdl: Use it.  Longer description.
11882         * module/gpl, module/lgpl: New files.
11883
11884 2006-08-30  Jim Meyering  <jim@meyering.net>
11885
11886         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
11887         shadowing the parameter.
11888
11889 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11890
11891         Sync from Libtool:
11892
11893         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11894
11895         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
11896         sharing with gnulib.  Report by Eric Blake.
11897
11898 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
11899
11900         * modules/isapipe: New file.
11901         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
11902
11903 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
11904
11905         * modules/configmake (Makefile.am): Add a comment, and omit
11906         the CONFIGMAKE_ prefix from generated macro names.  Suggested
11907         by Bruno Haible.
11908
11909 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
11910
11911         * m4/isapipe.m4: New file.
11912
11913 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
11914
11915         * lib/isapipe.c, lib/isapipe.h: New files.
11916
11917 2006-08-29  Jim Meyering  <jim@meyering.net>
11918
11919         * modules/configmake (Makefile.am): Make configmake.h depend on
11920         Makefile.  Otherwise, a stale configmake.h could hang around.
11921
11922 2006-08-29  Eric Blake  <ebb9@byu.net>
11923
11924         * lib/error.c (error_at_line, print_errno_message): Match libc, after
11925         resolution of upstream bug 3044.
11926
11927 2006-08-29  Bruno Haible  <bruno@clisp.org>
11928
11929         * modules/localcharset (Depends-on): Add configmake.
11930         (Makefile.am): Remove setting of LIBDIR through DEFS.
11931
11932 2006-08-29  Bruno Haible  <bruno@clisp.org>
11933
11934         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
11935         defined.
11936
11937 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
11938
11939         * modules/fcntl: New file.
11940         * modules/chdir-safer (Depends-on): Add fcntl.
11941         * modules/fts: Likewise.
11942         * modules/mkdir-p: Likewise.
11943
11944         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
11945         This undoes the most recent change, since we're now addressing the
11946         problem in a different way.
11947
11948         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
11949         into output, since the output might be called Makefile.am even
11950         if $makefile_name is something different.
11951         (func_import): Use $makefile_am rather than
11952         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
11953         empty.
11954
11955         * modules/inttypes (Files): Add m4/inttypes-h.m4.
11956
11957 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
11958
11959         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
11960         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
11961         recent change to stdint.m4, since we're now addressing the problem in a
11962         different way.
11963
11964 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
11965
11966         * m4/fcntl_h.m4: New file.
11967
11968 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
11969
11970         * lib/fcntl_.h: New file.
11971         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
11972         the fcntl module.
11973         * lib/dirchownmod.c: Likewise.
11974         * lib/fts.c: Likewise.
11975
11976         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
11977         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
11978         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
11979         just before including <inttypes.h>, to avoid circular inclusion.
11980
11981 2006-08-28  Jim Meyering  <jim@meyering.net>
11982
11983         * doc/visibility.texi: Actually read and correct the grammar of the
11984         sentence affected by yesterday's change.
11985
11986 2006-08-28  Eric Blake  <ebb9@byu.net>
11987
11988         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
11989         needs wrapper.
11990
11991 2006-08-28  Eric Blake  <ebb9@byu.net>
11992
11993         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
11994
11995 2006-08-28  Eric Blake  <ebb9@byu.net>
11996
11997         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
11998
11999 2006-08-28  Bruno Haible  <bruno@clisp.org>
12000
12001         * modules/c-strstr: New file, from GNU gettext.
12002         * MODULES.html.sh (String handling): Add c-strstr.
12003
12004 2006-08-28  Bruno Haible  <bruno@clisp.org>
12005
12006         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
12007         macros.
12008         Reported by Eric Blake.
12009
12010 2006-08-28  Bruno Haible  <bruno@clisp.org>
12011
12012         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
12013         (VASNPRINTF): Return a string of length > INT_MAX without failing.
12014         * lib/vasprintf.c: Include errno.h, limits.h.
12015         (EOVERFLOW): New fallback definition.
12016         (vasprintf): Test here whether the string length is > INT_MAX.
12017         * lib/vsnprintf.c: Include errno.h, limits.h.
12018         (EOVERFLOW): New fallback definition.
12019         (vsnprintf): Fix bug when generated string was too long for the buffer.
12020         Test here whether the string length is > INT_MAX.
12021
12022 2006-08-28  Bruno Haible  <bruno@clisp.org>
12023
12024         * lib/inttypes_.h (SCNX*): Remove definitions.
12025         Reported by Eric Blake.
12026
12027 2006-08-28  Bruno Haible  <bruno@clisp.org>
12028
12029         * lib/c-strstr.h: New file, from GNU gettext.
12030         * lib/c-strstr.c: New file, from GNU gettext.
12031
12032 2006-08-28  Bruno Haible  <bruno@clisp.org>
12033
12034         * gnulib-tool: Reorder some statements.
12035
12036 2006-08-28  Bruno Haible  <bruno@clisp.org>
12037
12038         * gnulib-tool: New option --makefile-name.
12039         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
12040         $makefile_name.
12041         (func_import): Write $makefile_name to the cache file, and read it from
12042         there unless explicitly specified. Use $makefile_name as file name
12043         instead of Makefile.am. Adjust the recommendations accordingly.
12044
12045 2006-08-28  Bruno Haible  <bruno@clisp.org>
12046
12047         * gnulib-tool (func_verify_module): Check against misapplying patch.
12048
12049 2006-08-28  Bruno Haible  <bruno@clisp.org>
12050
12051         * gnulib-tool (func_relativize, func_relconcat): New functions.
12052         Give an error if --local-dir is given with --update.
12053         Remove trailing slashes from $local_gnulib_dir.
12054         (func_import): Store the relativized $local_gnulib_dir in
12055         gnulib-cache.m4, and read it from there if not specified explicitly.
12056
12057 2006-08-28  Bruno Haible  <bruno@clisp.org>
12058
12059         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
12060         is the current directory. Respect also $local_gnulib_dir.
12061
12062 2006-08-28  Bruno Haible  <bruno@clisp.org>
12063             Simon Josefsson  <jas@extundo.com>
12064
12065         BeOS portability.
12066         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
12067
12068 2006-08-27  Jim Meyering  <jim@meyering.net>
12069
12070         * doc/visibility.texi: Remove duplicate word: "pointer".
12071
12072 2006-08-26  Bruno Haible  <bruno@clisp.org>
12073
12074         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
12075         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
12076         (Makefile.am): Create inttypes.h from inttypes_.h.
12077         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
12078
12079         * modules/imaxabs: New file.
12080
12081         * modules/imaxdiv: New file.
12082
12083 2006-08-26  Bruno Haible  <bruno@clisp.org>
12084
12085         * m4/inttypes.m4: New file.
12086         * m4/_inttypes_h.m4: Remove file.
12087         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
12088         PRI_MACROS_BROKEN.
12089         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
12090
12091         * m4/imaxabs.m4: New file.
12092
12093         * m4/imaxdiv.m4: New file.
12094
12095 2006-08-26  Bruno Haible  <bruno@clisp.org>
12096
12097         * lib/inttypes_.h: New file.
12098         * lib/inttypes.h: Remove file.
12099         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
12100
12101         * lib/imaxabs.c: New file.
12102
12103         * lib/imaxdiv.c: New file.
12104
12105 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12106
12107         New config-h module, so that "make" output needn't be cluttered
12108         by -DHAVE_CONFIG_H.
12109         * MODULES.html.sh (Support for building libraries and executables):
12110         Add config-h.
12111         * modules/config-h: New file.
12112         * gnulib-tool (nl, sed_transform_lib_file): New vars.
12113         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
12114         the config-h module is used.
12115
12116         New configmake module, so that "make" output needn't be cluttered
12117         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
12118         * MODULES.html.sh (Support for building libraries and executables):
12119         Add configmake.
12120         * modules/configmake: New file.
12121
12122 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12123
12124         * m4/config-h.m4: New file.
12125
12126 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12127
12128         * config/srclist.txt: Add elisp-comp.
12129
12130 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12131
12132         * MODULES.html.sh (Support for building libraries and executables):
12133         Add elisp-comp.
12134         * build-aux/elisp-comp: New file.
12135         * modules/elisp-comp: New file.
12136
12137 2006-08-24  Bruno Haible  <bruno@clisp.org>
12138
12139         * gnulib-tool (func_create_testdir): Use non-default values of
12140         sourcebase and m4base.
12141
12142 2006-08-24  Bruno Haible  <bruno@clisp.org>
12143
12144         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
12145         HTML structure.
12146
12147 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12148
12149         * modules/openat (Depends-on): Add lchown.
12150
12151 2006-08-23  Bruno Haible  <bruno@clisp.org>
12152
12153         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
12154         of gl_LOCK_EARLY instead of gl_LOCK.
12155
12156 2006-08-23  Bruno Haible  <bruno@clisp.org>
12157
12158         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
12159         on OSF/1 to no.
12160         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
12161
12162 2006-08-23  Bruno Haible  <bruno@clisp.org>
12163
12164         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
12165         as unusable.
12166
12167         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
12168         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
12169         (gl_LOCK): New macro.
12170
12171 2006-08-22  Simon Josefsson  <jas@extundo.com>
12172
12173         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
12174         to md5 module.
12175
12176 2006-08-22  Simon Josefsson  <jas@extundo.com>
12177
12178         * MODULES.html.sh: Add "Support for maintaining and release
12179         projects".
12180
12181         * build-aux/gnupload: New file, from coreutils.
12182
12183 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
12184
12185         Avoid the need for AC_LIBSOURCES in m4 macros.
12186         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
12187         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
12188         * modules/check-version (EXTRA_DIST): Add check-version.h.
12189         * modules/crc (EXTRA_DIST): Add crc.h.
12190         * modules/des (EXTRA_DIST): Add des.h.
12191         * modules/gc (EXTRA_DIST): Add gc.h.
12192         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
12193         * modules/getline (EXTRA_DIST): Add getline.h.
12194         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
12195         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
12196         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
12197         * modules/md2 (EXTRA_DIST): Add md2.h.
12198         * modules/md4 (EXTRA_DIST): Add md4.h.
12199         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
12200         * modules/read-file (EXTRA_DIST): Add read-file.h.
12201         * modules/readline (EXTRA_DIST): Add readline.h.
12202         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
12203         rijndael-api-fst.h.
12204
12205 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
12206
12207         * m4/rijndael.m4 (gl_ARCFOUR):
12208         * m4/arctwo.m4 (gl_ARCTWO):
12209         * m4/check-version.m4 (gl_CHECK_VERSION):
12210         * m4/crc.m4 (gl_CRC):
12211         * m4/des.m4 (gl_DES):
12212         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
12213         * m4/gc.m4 (gl_GC):
12214         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
12215         * m4/getline.m4 (gl_FUNC_GETLINE):
12216         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
12217         * m4/hmac-md5.m4 (gl_HMAC_MD5):
12218         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
12219         * m4/md2.m4 (gl_MD2):
12220         * m4/md4.m4 (gl_MD4):
12221         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
12222         * m4/read-file.m4 (gl_FUNC_READ_FILE):
12223         * m4/readline.m4 (gl_FUNC_READLINE):
12224         * m4/rijndael.m4 (gl_RIJNDAEL):
12225         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
12226         to get the necessary .h files and whatnot.
12227
12228 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
12229
12230         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
12231         gnulib rather than the other way around.
12232         * config/srclistvars.sh (COREUTILS): Remove.
12233
12234 2006-08-22  Jim Meyering  <jim@meyering.net>
12235
12236         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
12237
12238         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
12239
12240 2006-08-22  Eric Blake  <ebb9@byu.net>
12241
12242         * modules/regexprops-generic: New file.
12243         * MODULES.html.sh (Support for building documentation): List it.
12244
12245 2006-08-22  Eric Blake  <ebb9@byu.net>
12246
12247         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
12248         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
12249         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
12250         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
12251
12252 2006-08-22  Bruno Haible  <bruno@clisp.org>
12253
12254         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
12255         and lib_LTLIBRARIES like the other lib_* variables.
12256
12257 2006-08-22  Bruno Haible  <bruno@clisp.org>
12258
12259         * build-aux/x-to-1.in: New file, from GNU gettext.
12260
12261 2006-08-22  Bruno Haible  <bruno@clisp.org>
12262
12263         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
12264         <utmpx.h> exists.
12265
12266 2006-08-22  Bruno Haible  <bruno@clisp.org>
12267
12268         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
12269         <utmpx.h> exists.
12270
12271 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
12272
12273         BeOS portability.
12274         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
12275         exist.
12276         Problem reported by Bruno Haible.
12277
12278 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
12279
12280         Avoid the need for AC_LIBSOURCES in m4 macros.
12281         * modules/acl (EXTRA_DIST): Add acl.h.
12282         * modules/argmatch (Files): Add m4/argmatch.m4.
12283         (configure.ac): Add gl_ARGMATCH.
12284         (EXTRA_DIST): Renamed from lib_SOURCES, for
12285         consistency with the other modules.  Remove argmatch.c.
12286         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
12287         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
12288         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
12289         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
12290         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
12291         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
12292         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
12293         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
12294         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
12295         * modules/closeout (EXTRA_DIST): Add closeout.h.
12296         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
12297         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
12298         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
12299         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
12300         dirname.h; remove basename.c and stripslash.c.
12301         * modules/exclude (EXTRA_DIST): Add exclude.h.
12302         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
12303         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
12304         * modules/file-type (EXTRA_DIST): Add file-type.h.
12305         * modules/filemode (EXTRA_DIST): Add filemode.h.
12306         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
12307         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
12308         * modules/fpending (EXTRA_DIST): Add __fpending.h.
12309         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
12310         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
12311         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
12312         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
12313         * modules/getdate (EXTRA_DIST): Add getdate.c.
12314         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
12315         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
12316         * modules/getpass (EXTRA_DIST): Add getpass.h.
12317         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
12318         * modules/group-member (EXTRA_DIST): Add group-member.h.
12319         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
12320         * modules/hash (EXTRA_DIST): Add hash.h.
12321         * modules/human (EXTRA_DIST): Add human.h.
12322         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
12323         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
12324         * modules/lchown (EXTRA_DIST): Add lchown.h.
12325         * modules/long-options (EXTRA_DIST): Add long-options.h.
12326         * modules/lstat (EXTRA_DIST): Add lstat.h.
12327         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
12328         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
12329         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
12330         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
12331         * modules/memxor (EXTRA_DIST): Add memxor.h.
12332         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
12333         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
12334         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
12335         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
12336         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
12337         * modules/physmem (EXTRA_DIST): Add physmem.h.
12338         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
12339         * modules/posixver (EXTRA_DIST): Add posixver.h.
12340         * modules/quote (EXTRA_DIST): Add quote.h.
12341         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
12342         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
12343         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
12344         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
12345         regex_internal.h regexec.c.
12346         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
12347         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
12348         * modules/same (EXTRA_DIST): Add same.h.
12349         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
12350         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
12351         * modules/savedir (EXTRA_DIST): Add savedir.h.
12352         * modules/sha1 (EXTRA_DIST): Add sha1.h.
12353         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
12354         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
12355         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
12356         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
12357         * modules/strdup (EXTRA_DIST): Add strdup.h.
12358         * modules/strftime (EXTRA_DIST): Add strftime.h.
12359         * modules/strndup (EXTRA_DIST): Add strndup.h.
12360         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
12361         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
12362         * modules/time_r (EXTRA_DIST): Add time_r.h.
12363         * modules/timespec (EXTRA_DIST): Add timespec.h.
12364         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
12365         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
12366         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
12367         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
12368         * modules/userspec (EXTRA_DIST): Add userspec.h.
12369         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
12370         * modules/utimens (EXTRA_DIST): Add utimens.h.
12371         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
12372         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
12373         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
12374         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
12375         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
12376         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
12377         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
12378         * modules/yesno (EXTRA_DIST): Add yesno.h.
12379
12380 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
12381
12382         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
12383
12384         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
12385         * m4/dev-ino.m4, same-inode.m4: Remove.
12386
12387         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
12388         * m4/acl.m4 (AC_FUNC_ACL):
12389         * m4/backupfile.m4 (gl_BACKUPFILE):
12390         * m4/c-strtod.m4 (gl_C99_STRTOLD):
12391         * m4/canon-host.m4 (gl_CANON_HOST):
12392         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
12393         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
12394         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
12395         * m4/cloexec.m4 (gl_CLOEXEC):
12396         * m4/close-stream.m4 (gl_CLOSE_STREAM):
12397         * m4/closeout.m4 (gl_CLOSEOUT):
12398         * m4/dirfd.m4 (gl_FUNC_DIRFD):
12399         * m4/dirname.m4 (gl_DIRNAME):
12400         * m4/exclude.m4 (gl_EXCLUDE):
12401         * m4/exitfail.m4 (gl_EXITFAIL):
12402         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
12403         * m4/file-type.m4 (gl_FILE_TYPE):
12404         * m4/filemode.m4 (gl_FILEMODE):
12405         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
12406         * m4/fpending.m4 (gl_FUNC_FPENDING):
12407         * m4/fprintftime.m4 (gl_FPRINTFTIME):
12408         * m4/fts.m4 (gl_FUNC_FTS):
12409         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
12410         * m4/getdate.m4 (gl_GETDATE):
12411         * m4/gethrxtime.m4 (gl_GETHRXTIME):
12412         * m4/getpagesize.m4 (gl_GETPAGESIZE):
12413         * m4/getpass.m4 (gl_FUNC_GETPASS):
12414         * m4/gettime.m4 (gl_GETTIME):
12415         * m4/getugroups.m4 (gl_GETUGROUPS):
12416         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
12417         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
12418         * m4/hard-locale.m4 (gl_HARD_LOCALE):
12419         * m4/hash.m4 (gl_HASH):
12420         * m4/idcache.m4 (gl_IDCACHE):
12421         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
12422         * m4/lchown.m4 (gl_FUNC_LCHOWN):
12423         * m4/long-options.m4 (gl_LONG_OPTIONS):
12424         * m4/lstat.m4 (gl_FUNC_LSTAT):
12425         * m4/md5.m4 (gl_MD5):
12426         * m4/memcasecmp.m4 (gl_MEMCASECMP):
12427         * m4/memcoll.m4 (gl_MEMCOLL):
12428         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
12429         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
12430         * m4/memxor.m4 (gl_MEMXOR):
12431         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
12432         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
12433         * m4/modechange.m4 (gl_MODECHANGE):
12434         * m4/mountlist.m4 (gl_MOUNTLIST):
12435         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
12436         * m4/openat.m4 (gl_FUNC_OPENAT):
12437         * m4/pathmax.m4 (gl_PATHMAX):
12438         * m4/physmem.m4 (gl_PHYSMEM):
12439         * m4/posixtm.m4 (gl_POSIXTM):
12440         * m4/posixver.m4 (gl_POSIXVER):
12441         * m4/quote.m4 (gl_QUOTE):
12442         * m4/quotearg.m4 (gl_QUOTEARG):
12443         * m4/readtokens.m4 (gl_READTOKENS):
12444         * m4/readutmp.m4 (gl_READUTMP):
12445         * m4/regex.m4 (gl_REGEX):
12446         * m4/safe-read.m4 (gl_SAFE_READ):
12447         * m4/safe-write.m4 (gl_SAFE_WRITE):
12448         * m4/same.m4 (gl_SAME):
12449         * m4/save-cwd.m4 (gl_SAVE_CWD):
12450         * m4/savedir.m4 (gl_SAVEDIR):
12451         * m4/settime.m4 (gl_SETTIME):
12452         * m4/sha1.m4 (gl_SHA1):
12453         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
12454         * m4/stat-macros.m4 (gl_STAT_MACROS):
12455         * m4/stat-time.m4 (gl_STAT_TIME):
12456         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
12457         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
12458         * m4/strdup.m4 (gl_FUNC_STRDUP):
12459         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
12460         * m4/strndup.m4 (gl_FUNC_STRNDUP):
12461         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
12462         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
12463         * m4/time_r.m4 (gl_TIME_R):
12464         * m4/timespec.m4 (gl_TIMESPEC):
12465         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
12466         * m4/unlinkdir.m4 (gl_UNLINKDIR):
12467         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
12468         * m4/userspec.m4 (gl_USERSPEC):
12469         * m4/utimecmp.m4 (gl_UTIMECMP):
12470         * m4/utimens.m4 (gl_UTIMENS):
12471         * m4/xalloc.m4 (gl_XALLOC):
12472         * m4/xgetcwd.m4 (gl_XGETCWD):
12473         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
12474         * m4/xreadlink.m4 (gl_XREADLINK):
12475         * m4/xstrtod.m4 (gl_XSTRTOD):
12476         * m4/yesno.m4 (gl_YESNO):
12477         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
12478         to get the necessary .h files and whatnot.
12479
12480 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
12481             Bruno Haible  <bruno@clisp.org>
12482
12483         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
12484         /bin/sh understanding of '!' conditional negation.
12485
12486 2006-08-21  Jim Meyering  <jim@meyering.net>
12487
12488         * modules/openat (Depends-on): Really alphabetize.
12489
12490         * modules/acl (Depends-on): Add error and quote.
12491
12492         * check-module (find_included_lib_files): Add at-func.c to the
12493         ok-to-include-more-than-once white list.
12494
12495         * modules/openat (Depends-on): Add lstat.  Alphabetize.
12496
12497 2006-08-21  Bruno Haible  <bruno@clisp.org>
12498
12499         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12500         Emit a pkgdata_DATA variable only if some snippets add contents to it.
12501         Reported by Martin Lambers <marlam@marlam.de>.
12502
12503 2006-08-21  Bruno Haible  <bruno@clisp.org>
12504
12505         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
12506         specify an installation location, don't emit a noinst_LIBRARIES or
12507         noinst_LTLIBRARIES assignment.
12508
12509 2006-08-21  Bruno Haible  <bruno@clisp.org>
12510
12511         BeOS portability.
12512         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
12513         BeOS has mbrtowc() but no <wctype.h>.
12514
12515 2006-08-21  Bruno Haible  <bruno@clisp.org>
12516
12517         BeOS portability.
12518         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
12519         exist.
12520
12521 2006-08-21  Bruno Haible  <bruno@clisp.org>
12522
12523         BeOS portability.
12524         * lib/mbchar.h: Include <wctype.h> only if it exists.
12525
12526 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12527
12528         Remove files that are no longer needed by their respective modules.
12529         * m4/obstack.m4: Remove.
12530         * m4/strerror_r.m4: Remove.
12531         * m4/uint32_t.m4: Remove.
12532         * m4/uintptr_t.m4: Remove.
12533         * m4/ullong_max.m4: Remove.
12534         * m4/xstrtoimax.m4: Remove.
12535         * m4/xstrtoumax.m4: Remove.
12536
12537         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
12538         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
12539         dependencies now capture this.
12540
12541         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
12542         Do not use AC_LIBSOURCES, since gnulib modules now do this.
12543         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
12544         * m4/human.m4 (gl_HUMAN): Likewise.
12545         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
12546         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
12547
12548         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
12549
12550         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
12551         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
12552         stdint.
12553         * m4/human.m4 (gl_HUMAN): Likewise.
12554         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
12555         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
12556         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
12557         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
12558         * m4/xstrtol (gl_XSTRTOL): Likewise.
12559
12560         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
12561         AC_TYPE_LONG_LONG_INT.
12562         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
12563         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
12564         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
12565         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
12566
12567         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
12568         on stdbool.
12569
12570         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
12571         (gl_PREREQ_XSTRTOUL): Remove.
12572
12573         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
12574
12575         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
12576         mode.
12577
12578 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12579
12580         Add and change modules to make it easier for coreutils to use
12581         gnulib-tool.
12582         * modules/backupfile (Files): Remove m4/d-ino.m4.
12583         (Depends-on): Add d-ino.
12584         * modules/cycle-check (Depends-on): Add stdint.
12585         (lib_SOURCES): Add cycle-check.h.
12586         * modules/d-ino: New module.
12587         * modules/d-type: New module.
12588         * modules/error (Files): Remove m4/strerror_r.m4.
12589         * modules/filemode (Files): Add m4/st_dm_mode.m4.
12590         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
12591         m4/inttypes_h.m4, m4/uintmax_t.m4.
12592         (Depends-on): Add stdint.
12593         (lib_SOURCES): Add fsusage.h.
12594         * modules/getcwd (Files): Remove d-ino.m4.
12595         (Depends-on): Add d-ino.
12596         * modules/getndelim2 (Depends-on): Add stdint.
12597         * modules/glob (Files): Remove m4/d-type.m4.
12598         (Depends-on): Add d-type.
12599         * modules/host-os: New module.
12600         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
12601         m4/inttypes_h.m4, m4/uintmax_t.m4.
12602         * Depends-on: Add stdint.
12603         (lib_SOURCES): Add human.h.
12604         * modules/inttostr (Files): Remove m4/intmax_t.m4,
12605         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
12606         m4/uintmax_t.m4, m4/ulonglong.m4.
12607         (Depends-on): Add stdint.
12608         (EXTRA_DIST): Add inttostr.h.
12609         * modules/lchmod: New module.
12610         * modules/link-follow: New module.
12611         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
12612         (Depends-on): Add lchmod.
12613         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
12614         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
12615         (Depends-on): Add stdint.
12616         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
12617         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
12618         (Depends-on): Add stdint.
12619         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
12620         * modules/perl: New module.
12621         * modules/regex (Depends-on): Add stdint.
12622         * modules/rmdir-errno: New module.
12623         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
12624         m4/intmax_t.m4.
12625         (Depends-on): Add stdint.
12626         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
12627         m4/uintmax_t.m4.
12628         (Depends-on): Add stdint.
12629         * modules/unlink-busy: New module.
12630         * modules/utimecmp (Depends-on): Add stdint.
12631         * modules/uptime: New module.
12632         * modules/winsz-ioctl: New module.
12633         * modules/winsz-termios: New module.
12634         * modules/xnanosleep (Depends-on): Add nanosleep.
12635         * modules/ullong_max: Remove.
12636         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
12637         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
12638         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
12639         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
12640         (Depends-on): Add inttypes.
12641         (lib_SOURCES): Add xstrtol.h.
12642         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
12643         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
12644         * MODULES.html.sh: Move 'assert' into the assert section.
12645         Move 'dummy' into the linking section.
12646         Remove ullong_max.
12647         Add section for compatibility checks for POSIX:2001 functions,
12648         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
12649         winsz-ioctl, and winsz-termios into it.
12650         Add lchmod.
12651         Add top-level Misc section and put host-os, perl, and uptime
12652         into it.
12653
12654 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12655
12656         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
12657         now assume the stdint module.  Do not include inttypes.h.
12658         * lib/fsusage.h: Likewise.
12659         * lib/getndelim2.c: Likewise.
12660         * lib/human.h: Likewise.
12661         * lib/inttostr.h: Likewise.
12662         * lib/obstack.c: Likewise.
12663         * lib/regex_internal.h: Likewise.
12664         * lib/tempname.c: Likewise.
12665         * lib/utimecmp.c: Likewise.
12666         * lib/xstrtol.h: Likewise.
12667
12668         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
12669
12670         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
12671         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
12672         * lib/xtime.h: Likewise.
12673
12674 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12675
12676         * modules/openat (Files): Add lib/fchmodat.c.
12677         Fixes problem reported by Jay Youngman.
12678
12679 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12680
12681         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
12682         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
12683
12684 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
12685             Bruno Haible  <bruno@clisp.org>
12686
12687         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
12688         and is a script that invokes bison. Tighten the code. Add comments.
12689
12690 2006-08-18  Jim Meyering  <jim@meyering.net>
12691
12692         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
12693         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
12694         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
12695         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
12696
12697 2006-08-18  Bruno Haible  <bruno@clisp.org>
12698
12699         * modules/bison-i18n: New file.
12700         * MODULES.html.sh (Internationalization functions): Add it.
12701
12702 2006-08-18  Bruno Haible  <bruno@clisp.org>
12703
12704         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
12705         sys/statvfs.h. When getmntinfo was found, check its declaration and
12706         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
12707
12708 2006-08-18  Bruno Haible  <bruno@clisp.org>
12709
12710         * m4/bison-i18n.m4: New file, from bison.
12711
12712 2006-08-18  Bruno Haible  <bruno@clisp.org>
12713
12714         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
12715         (ME_DUMMY): Treat "kernfs" as a dummy.
12716         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
12717
12718 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12719
12720         Update from coreutils.
12721
12722         2006-08-15  Jim Meyering  <jim@meyering.net>
12723
12724         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
12725
12726         2006-01-17  Jim Meyering  <jim@meyering.net>
12727
12728         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
12729
12730         2006-01-11  Jim Meyering  <jim@meyering.net>
12731
12732         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
12733         Check for the lchmod function.
12734
12735 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12736
12737         Update from coreutils.
12738
12739         * lib/__fpending.h: Add copyright notice.
12740         * lib/fprintftime.h: Likewise.
12741         * lib/savedir.c: Use (C) in copyright notice.
12742         * lib/savedir.h: Likewise.
12743
12744         2006-08-15  Jim Meyering  <jim@meyering.net>
12745
12746         * lib/at-func.c: New file, with the logic of all emulated at-functions.
12747         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
12748         in support of the EXPECTED_ERRNO macro.
12749         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
12750         definitions.  Instead, define the appropriate symbols and include
12751         "at-func.c".
12752         * lib/mkdirat.c (mkdirat): Likewise.
12753         * lib/fchmodat.c (fchmodat): Likewise.
12754         (ENOSYS): Remove definition.
12755         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
12756         it.  Don't include "unistd--.h" -- it wasn't ever used.
12757
12758         2006-01-17  Jim Meyering  <jim@meyering.net>
12759
12760         Rewrite fts.c not to change the current working directory,
12761         by using openat, fstatat, fdopendir, etc..
12762
12763         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
12764         (HAVE_OPENAT_SUPPORT): Define.
12765         [_LIBC] (fchdir): Don't undef or define; no longer used.
12766         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
12767         Now, this `function' always succeeds, and consumes its file descriptor
12768         parameter -- so callers must not close such FDs.  Update callers.
12769         (diropen_fd, opendirat, cwd_advance_fd): New functions.
12770         (diropen): Add parameter, SP.  Adjust all callers.
12771         Implement using diropen_fd, rather than open.
12772         (fts_open): Initialize new member, fts_cwd_fd.
12773         Remove fts_rft-setting code.
12774         (fts_close): Close fts_cwd_fd, if necessary.
12775         (__opendir2): Define in terms of opendir or opendirat,
12776         depending on whether the FST_NOCHDIR flag is set.
12777         (fts_build): Since fts_safe_changedir consumes its FD, and since
12778         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
12779         and close the dup'd file descriptor upon failure.
12780         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
12781         (fts_safe_changedir): Tweak semantics to reflect that this function
12782         now calls cwd_advance_fd and hence consumes its FD argument.
12783         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
12784         [struct FTS] (fts_rft): Remove now-unused member.
12785         [struct FTS] (fts_cycle.state): Improve comment.
12786
12787         * lib/openat.c (openat_needs_fchdir): New function.
12788         * lib/openat.h (openat_needs_fchdir): Declare it.
12789
12790 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
12791
12792         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
12793         Problem and fix reported by Pádraig Brady in
12794         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
12795
12796 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
12797
12798         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
12799
12800 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
12801
12802         * lib/memcoll.c (memcoll): Optimize for the common case where the
12803         arguments are bytewise equal.
12804
12805 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
12806
12807         * doc/regexprops-generic.texi: Add a copyright notice.
12808
12809 2006-08-15  Bruno Haible  <bruno@clisp.org>
12810
12811         * modules/tmpdir (License): Change to LGPL.
12812
12813 2006-08-15  Bruno Haible  <bruno@clisp.org>
12814
12815         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
12816         module.
12817
12818 2006-08-14  Simon Josefsson  <jas@extundo.com>
12819
12820         * config/srclist.txt: Add gnupload.
12821
12822 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
12823
12824         Change copyright notice from LGPL 2 to GPL 2, since that's the
12825         standard form used in the gnulib repository.
12826         * tests/test-lock.c: Likewise.
12827         * tests/test-stdint.c: Likewise.
12828         * tests/test-tls.c: Likewise.
12829
12830         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
12831         prelude-manager.  User shorter URLs for GNU projects, without '?'.
12832         Add copyright notice.
12833
12834         * check-module: Add copyright notice.  Output a copyright
12835         notice if "--version" is specified.
12836         * modules/COPYING: New file.
12837         * tests/test-getaddrinfo.c: Add copyright notice.
12838         * tests/test-verify.c: Likewise.
12839
12840 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
12841
12842         Change copyright notice from LGPL 2 to GPL 2, since that's the
12843         standard form used in the gnulib repository.
12844         * lib/lock.c: LGPL -> GPL.
12845         * lib/lock.h: Likewise.
12846         * lib/strnlen1.c: Likewise.
12847         * lib/strnlen1.h: Likewise.
12848         * lib/tls.c: Likewise.
12849         * lib/tls.h: Likewise.
12850         * lib/tmpdir.c: Likewise.
12851
12852         * lib/TODO: Remove; this belongs only in coreutils.
12853
12854 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
12855
12856         Add copyright notices to long-enough files that lack them, since
12857         otherwise the files aren't clearly free.  Use the same notice that
12858         getdate.texi already uses.
12859         * doc/alloca-opt.texi: Add copyright notice.
12860         * doc/alloca.texi: Likewise.
12861         * doc/ctime.texi: Likewise.
12862         * doc/functions.texi: Likewise.
12863         * doc/gcd.texi: Likewise.
12864         * doc/gnulib-tool.texi: Likewise.
12865         * doc/inet_ntoa.texi: Likewise.
12866         * doc/visibility.texi: Likewise.
12867
12868         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
12869         * doc/quote.texi: Add copyright notice.
12870
12871         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
12872         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
12873         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
12874         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
12875         is now obsolete, and give a pointer to the Sun list.
12876         Add copyright notice.
12877
12878 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
12879
12880         * config/srclistvars.sh: Add copyright notice.
12881
12882 2006-08-14  Eric Blake  <ebb9@byu.net>
12883
12884         Import the following change from libc:
12885
12886         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
12887
12888         Upstream bug 2997.
12889         * lib/misc/error.c: Add space between program name and message if file
12890         name is missing.
12891
12892 2006-08-12  Karl Berry  <karl@gnu.org>
12893
12894         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
12895         remove, these originate in gnulib now.
12896
12897 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12898
12899         * doc/Makefile (standards.info standards.html standards.dvi):
12900         Also depend on make-stds.texi.
12901
12902 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
12903
12904         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
12905         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
12906
12907         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
12908         in wchar_t.  Problem reported by Eric Blake.
12909
12910         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
12911         LEN is smaller than SIZE.  Suggested by Bruno Haible.
12912         Also, help the compiler to keep LEN in a register.
12913
12914 2006-08-11  Eric Blake  <ebb9@byu.net>
12915
12916         * users.txt: Sort.  Add tar.
12917
12918 2006-08-11  Bruno Haible  <bruno@clisp.org>
12919
12920         * users.txt: New file.
12921
12922 2006-08-11  Bruno Haible  <bruno@clisp.org>
12923
12924         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
12925         before <wchar.h>. Needed for OSF/1 and BSD/OS.
12926
12927 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12928
12929         * modules/snprintf (Depends-on): Remove minmax.
12930         (Maintainer): Add self and Bruno.
12931
12932 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12933
12934         * lib/.cppi-disable: Add snprintf.h, socket_.h.
12935         * lib/snprintf.c: Include <errno.h> and <limits.h>.
12936         (EOVERFLOW): Define if the system does not.
12937         Do not include "minmax.h"; it wasn't used.
12938         (snprintf): Don't assume size_t promotes to an unsigned type.
12939         Fix bug when generated string was too long for the buffer: the
12940         buffer's contents are supposed to be the initial prefix of the
12941         output.  Don't assume vasnprintf returns EOVERFLOW if the size
12942         exceeds INT_MAX; do the check ourselves.
12943
12944         Import the following changes from libc:
12945
12946         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
12947
12948         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
12949         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
12950         set wc to the byte which couldn't be converted.
12951         (re_string_reconstruct): Don't clear valid_raw_len before calling
12952         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
12953         tip_context using re_string_context_at.
12954
12955         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
12956
12957         * lib/posix/regex.h: g++ still cannot handled [restrict].
12958
12959         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
12960
12961         * lib/posix/regex.h: Remove special handling for VMS.
12962
12963 2006-08-10  Jim Meyering  <jim@meyering.net>
12964
12965         * modules/same-inode: New module.
12966         * modules/dev-ino: New module.
12967         * modules/cycle-check: Depend on these modules, rather than simply
12968         including their .h files.
12969         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
12970         required via m4/cycle-check.m4.
12971         * modules/same: Depend on new same-inode module, rather than
12972         including same-inode.h.
12973         * modules/chdir-safer: New file.
12974
12975         * modules/chown (Depends-on): Add stat-macros.
12976
12977 2006-08-10  Jim Meyering  <jim@meyering.net>
12978
12979         * m4/cycle-check.m4: New file.
12980         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
12981         * m4/dev-ino.m4, m4/same-inode.m4: New files.
12982
12983 2006-08-10  Eric Blake  <ebb9@byu.net>
12984
12985         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
12986         in from original proposal.
12987
12988 2006-08-10  Eric Blake  <ebb9@byu.net>
12989         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12990
12991         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
12992         namespace.
12993
12994 2006-08-10  Bruno Haible  <bruno@clisp.org>
12995
12996         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
12997         as well.
12998
12999 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13000
13001         Sync from coreutils.
13002
13003         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
13004
13005         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
13006         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
13007
13008 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13009
13010         * modules/restrict: Remove; no longer needed now that we assume
13011         Autoconf 2.59 or later.
13012         * MODULES.html.sh: Remove 'restrict'.
13013         * modules/argp (Depends-on): Remove 'restrict'.
13014         * modules/base64 (Depends-on): Likewise.
13015         * modules/gc (Depends-on): Likewise.
13016         * modules/getaddrinfo (Depends-on): Likewise.
13017         * modules/glob (Depends-on): Likewise.
13018         * modules/inet_ntop (Depends-on): Likewise.
13019         * modules/inet_pton (Depends-on): Likewise.
13020         * modules/memxor (Depends-on): Likewise.
13021         * modules/regex (Depends-on): Likewise.
13022         * modules/strtok_r (Depends-on): Likewise.
13023         * modules/time_r (Depends-on): Likewise.
13024
13025 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13026
13027         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
13028         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
13029         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
13030         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
13031         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13032         * m4/memxor.m4 (gl_MEMXOR): Likewise.
13033         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
13034         gl_C_RESTRICT replaced by AC_C_RESTRICT.
13035
13036         Merge from coreutils.
13037         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
13038         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
13039         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
13040         * m4/time_r.m4 (gl_TIME_R): Likewise.
13041
13042 2006-08-09  Karl Berry  <karl@gnu.org>
13043
13044         * config/srclist.txt: no more gettext-tools, per Bruno.
13045
13046 2006-08-08  Eric Blake  <ebb9@byu.net>
13047
13048         * modules/verror: New module.
13049         * MODULES.html.sh: Document it.
13050
13051 2006-08-08  Eric Blake  <ebb9@byu.net>
13052
13053         * lib/verror.h, lib/verror.c: New files.
13054
13055 2006-08-08  Eric Blake  <ebb9@byu.net>
13056
13057         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
13058         verror_at_line output complies with GNU Coding Standards even when
13059         file is NULL.
13060
13061 2006-08-07  Bruno Haible  <bruno@clisp.org>
13062
13063         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
13064         versions of AIX.
13065         Reported by Ralf Wildenhues.
13066
13067 2006-08-07  Bruno Haible  <bruno@clisp.org>
13068
13069         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
13070         in an AC_DEFUN. Needed so that the autoconf snippets can use
13071         AC_REQUIRE.
13072
13073 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13074
13075         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13076         Initialize pkgdata_DATA.
13077         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
13078         overriding it.
13079
13080 2006-08-06  Eric Blake  <ebb9@byu.net>
13081
13082         * lib/error.h: Fold in some upstream changes from glibc.
13083         * lib/error.c: Likewise.
13084
13085 2006-08-04  Bruno Haible  <bruno@clisp.org>
13086
13087         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13088         Make the mostlyclean-local rule depend on mostlyclean-generic.
13089         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
13090
13091 2006-07-31  Bruno Haible  <bruno@clisp.org>
13092
13093         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
13094         <stdlib.h>, <string.h>.
13095
13096 2006-07-30  Bruno Haible  <bruno@clisp.org>
13097
13098         * modules/readlink (License): Change to LGPL.
13099
13100 2006-07-30  Bruno Haible  <bruno@clisp.org>
13101
13102         * modules/javaversion (Makefile.am): Distribute javaversion.java and
13103         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
13104         set PKGDATADIR to point to it.
13105
13106 2006-07-30  Bruno Haible  <bruno@clisp.org>
13107
13108         * modules/csharpexec (configure.ac): Comment out macro invocation.
13109         * modules/javaexec (configure.ac): Likewise.
13110         * modules/javacomp-script (configure.ac): Likewise.
13111
13112         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
13113
13114 2006-07-30  Bruno Haible  <bruno@clisp.org>
13115
13116         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
13117         linked-list.
13118
13119 2006-07-30  Bruno Haible  <bruno@clisp.org>
13120
13121         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
13122
13123 2006-07-30  Bruno Haible  <bruno@clisp.org>
13124
13125         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13126         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
13127         get removed.
13128
13129 2006-07-29  Bruno Haible  <bruno@clisp.org>
13130
13131         Make it possible for gnulib-tool to work with locally modified or
13132         augmented gnulib repositories.
13133         * gnulib-tool (func_usage): Document --local-dir option.
13134         (local_gnulib_dir): New variable.
13135         Handle --local-dir option.
13136         (func_lookup_file): New function.
13137         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
13138         (func_get_description, func_get_filelist, func_get_description,
13139         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
13140         func_get_automake_snippet, func_get_include_directive,
13141         func_get_license, func_get_maintainer): Use func_lookup_file.
13142         (func_import, func_create_testdir): Use func_lookup_file.
13143
13144 2006-07-29  Bruno Haible  <bruno@clisp.org>
13145
13146         * modules/setenv (Depends-on): Add unistd.
13147
13148 2006-07-29  Bruno Haible  <bruno@clisp.org>
13149
13150         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
13151
13152 2006-07-29  Bruno Haible  <bruno@clisp.org>
13153
13154         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
13155
13156 2006-07-29  Bruno Haible  <bruno@clisp.org>
13157
13158         * gnulib-tool (import, update): If there is no Makefile.am, look at
13159         aclocal.m4, instead of bailing out.
13160
13161 2006-07-29  Bruno Haible  <bruno@clisp.org>
13162
13163         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
13164         Categorize the options by when they are useful.
13165
13166 2006-07-29  Bruno Haible  <bruno@clisp.org>
13167
13168         * gnulib-tool (func_usage): Document option --no-libtool.
13169         Handle option --no-libtool.
13170         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
13171         for changed semantics of $libtool variable.
13172         (func_import): Likewise. If libtool is not used, show this through
13173         an option --no-libtool.
13174         (func_create_testdir): Update.
13175
13176 2006-07-29  Bruno Haible  <bruno@clisp.org>
13177
13178         * gnulib-tool (func_import): Extend error message about missing
13179         --doc-base.
13180
13181 2006-07-29  Bruno Haible  <bruno@clisp.org>
13182
13183         * gnulib-tool (func_import): Don't create the $docbase directory if
13184         there is no file to store there.
13185
13186 2006-07-29  Bruno Haible  <bruno@clisp.org>
13187
13188         * gnulib-tool (autoconf_minversion): If a --dir option is given and
13189         relevant, look for configure.ac there, not in the current directory.
13190         Also use a simple search for AC_PREREQ, not "autoconf --trace".
13191
13192 2006-07-29  Bruno Haible  <bruno@clisp.org>
13193
13194         * gnulib-tool (SORT): New variable.
13195         (func_usage): Undocument --assume-autoconf option.
13196         Remove --assume-autoconf option handling.
13197         (autoconf_minversion): Determine from the contents of configure.ac.
13198         (func_import): Remove autoconf_minversion handling.
13199         Suggested by Eric Blake.
13200
13201 2006-07-29  Bruno Haible  <bruno@clisp.org>
13202
13203         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
13204
13205 2006-07-29  Bruno Haible  <bruno@clisp.org>
13206
13207         * config/srclist.txt (*setenv.[ch]): Remove rules.
13208
13209 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13210
13211         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
13212
13213 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13214
13215         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
13216         arpa/inet.h.
13217
13218 2006-07-28  Simon Josefsson  <jas@extundo.com>
13219
13220         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
13221         * modules/inet_pton (Depends-on): Likewise.
13222
13223 2006-07-28  Simon Josefsson  <jas@extundo.com>
13224
13225         * m4/netinet_in_h.m4: New file.
13226
13227 2006-07-28  Simon Josefsson  <jas@extundo.com>
13228
13229         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
13230         #include's.
13231
13232 2006-07-28  Simon Josefsson  <jas@extundo.com>
13233
13234         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
13235         #include's.
13236
13237 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
13238
13239         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
13240         setgid on directories only if they set these bits.
13241         * lib/modechange.h: Remove obsolete comment about masks.
13242
13243 2006-07-28  Eric Blake  <ebb9@byu.net>
13244
13245         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
13246         macro expansion.
13247
13248 2006-07-28  Bruno Haible  <bruno@clisp.org>
13249
13250         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
13251
13252 2006-07-28  Bruno Haible  <bruno@clisp.org>
13253
13254         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
13255
13256 2006-07-28  Bruno Haible  <bruno@clisp.org>
13257
13258         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
13259         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
13260         Define fallbacks.
13261         Avoids link error on FreeBSD 4.x.
13262         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13263
13264         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
13265         encoding.
13266         * lib/mbswidth.c (iswcntrl): Likewise.
13267
13268 2006-07-27  Bruno Haible  <bruno@clisp.org>
13269
13270         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
13271         test.
13272
13273 2006-07-27  Bruno Haible  <bruno@clisp.org>
13274
13275         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
13276         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
13277         defined.
13278
13279 2006-07-26  Eric Blake  <ebb9@byu.net>
13280
13281         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
13282
13283 2006-07-26  Eric Blake  <ebb9@byu.net>
13284
13285         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
13286         like mingw that lack mkstemp.
13287         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
13288         avoid compilation warning on mingw.
13289
13290 2006-07-26  Bruno Haible  <bruno@clisp.org>
13291
13292         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
13293         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
13294         INT_FAST*_MIN, INTPTR_MIN.
13295
13296 2006-07-25  Bruno Haible  <bruno@clisp.org>
13297
13298         * modules/version-etc (Depends-on): Add stdarg.
13299
13300 2006-07-25  Bruno Haible  <bruno@clisp.org>
13301
13302         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
13303         complex commands.
13304
13305 2006-07-25  Bruno Haible  <bruno@clisp.org>
13306
13307         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
13308         defined in <stdarg.h> or config.h.
13309
13310 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13311
13312         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
13313         (gl_STDIO_SAFER): Remove.
13314
13315 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13316
13317         * MODULES.html.sh (File stream based Input/Output):
13318         Add fopen-safer, tmpfile-safer; remove stdio-safer.
13319         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
13320         * modules/fopen-safer, modules/tmpfile-safer: New files.
13321         * modules/stdio-safer: Remove.
13322
13323 2006-07-24  Bruno Haible  <bruno@clisp.org>
13324
13325         * modules/tmpdir: New file.
13326         * MODULES.html.sh (File system functions): Add it.
13327
13328 2006-07-24  Bruno Haible  <bruno@clisp.org>
13329
13330         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
13331         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
13332
13333 2006-07-24  Bruno Haible  <bruno@clisp.org>
13334
13335         * modules/clean-temp: New file.
13336
13337 2006-07-24  Bruno Haible  <bruno@clisp.org>
13338
13339         * m4/tmpdir.m4: New file, from GNU gettext.
13340
13341 2006-07-24  Bruno Haible  <bruno@clisp.org>
13342
13343         * lib/tmpdir.h: New file, from GNU gettext.
13344         * lib/tmpdir.c: New file, from GNU gettext.
13345
13346 2006-07-24  Bruno Haible  <bruno@clisp.org>
13347
13348         * lib/clean-temp.h: New file, from GNU gettext.
13349         * lib/clean-temp.c: New file, from GNU gettext.
13350
13351 2006-07-23  Eric Blake  <ebb9@byu.net>
13352
13353         * modules/stdio-safer (Files): Add tmpfile-safer.c.
13354         (Depends-on): Add binary-io.
13355
13356 2006-07-23  Eric Blake  <ebb9@byu.net>
13357
13358         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
13359
13360 2006-07-23  Eric Blake  <ebb9@byu.net>
13361
13362         * lib/tmpfile-safer.c: New file.
13363         * lib/stdio-safer.h (fopen_safer): Add prototype.
13364         * lib/stdio--.h (tmpfile): Make safer.
13365
13366 2006-07-23  Bruno Haible  <bruno@clisp.org>
13367
13368         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
13369         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
13370         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
13371         gl_linked_remove_at): Use it.
13372
13373 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13374         and Simon Josefsson <jas@extundo.com>
13375
13376         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
13377
13378         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
13379
13380 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13381
13382         * modules/close-stream: New file.
13383         * modules/closeout (Description): Make it clear that it exits
13384         with a diagnostic on error.
13385         (Depends-on): Add close-stream.  Remove fpending, stdbool.
13386         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
13387
13388 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13389
13390         * m4/close-stream.m4: New file.
13391
13392 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13393
13394         * lib/close-stream.c, lib/close-stream.h: New files.
13395
13396 2006-07-22  Bruno Haible  <bruno@clisp.org>
13397
13398         Merge from GNU gettext 0.15.
13399
13400         2006-05-01  Bruno Haible  <bruno@clisp.org>
13401
13402                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
13403
13404         2006-07-22  Bruno Haible  <bruno@clisp.org>
13405
13406                 * modules/javaversion: New file.
13407                 * MODULES.html.sh (Java): Add javaversion.
13408
13409         2006-03-12  Bruno Haible  <bruno@clisp.org>
13410
13411                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
13412
13413         2005-12-04  Bruno Haible  <bruno@clisp.org>
13414
13415                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
13416                 (untested).
13417
13418         2006-06-21  Bruno Haible  <bruno@clisp.org>
13419
13420                 Avoid warnings from recent versions of mcs.
13421                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
13422                 -o, -L, -r any more. Use options documented since mcs-1.0
13423                 instead. Similarly for -g.
13424
13425         2005-12-04  Bruno Haible  <bruno@clisp.org>
13426
13427                 * build-aux/csharpcomp.sh.in: Suffix for resources is
13428                 .resources, not .resource.
13429
13430         2005-07-09  Bruno Haible  <bruno@clisp.org>
13431
13432                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
13433                 add a .dll suffix.
13434                 Reported by Mark Junker <mjscod@gmx.de>.
13435
13436         2006-07-22  Bruno Haible  <bruno@clisp.org>
13437
13438                 * modules/gettext: Upgrade to gettext-0.15.
13439                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
13440                 m4/visibility.m4.
13441                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
13442
13443 2006-07-22  Bruno Haible  <bruno@clisp.org>
13444
13445         Merge from GNU gettext 0.15.
13446
13447         2006-03-25  Bruno Haible  <bruno@clisp.org>
13448
13449                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
13450
13451         2006-07-21  Bruno Haible  <bruno@clisp.org>
13452
13453                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
13454                 "1.1".
13455
13456         2006-05-09  Bruno Haible  <bruno@clisp.org>
13457
13458                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
13459                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
13460                 for the conftestver execution.
13461
13462         2006-05-01  Bruno Haible  <bruno@clisp.org>
13463
13464                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
13465                 optional target-version argument. Verify that the compiler
13466                 groks source of the specified source-version, or add -source
13467                 option as necessary. Verify that the compiler produces
13468                 bytecode in the specified target-version, or add -target and
13469                 -source options as necessary. Make the result of the test
13470                 available as variable CONF_JAVAC. Also log error output in
13471                 config.log.
13472
13473         2006-03-11  Bruno Haible  <bruno@clisp.org>
13474
13475                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
13476
13477         2006-05-09  Bruno Haible  <bruno@clisp.org>
13478
13479                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
13480                 CLASSPATH_SEPARATOR to a semicolon.
13481
13482         2006-03-12  Bruno Haible  <bruno@clisp.org>
13483
13484                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
13485                 available as variable CONF_JAVA, for subsequent autoconf
13486                 tests. Also log error output in config.log.
13487
13488         2006-07-19  Bruno Haible  <bruno@clisp.org>
13489
13490                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
13491                 that getline works on glibc2 systems. Needed to avoid trouble
13492                 in relocatable.c.
13493                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
13494
13495         2005-12-04  Bruno Haible  <bruno@clisp.org>
13496
13497                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
13498                 launcher (untested).
13499
13500         2005-12-04  Bruno Haible  <bruno@clisp.org>
13501
13502                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
13503
13504         2006-07-22  Bruno Haible  <bruno@clisp.org>
13505
13506                 * gettext.m4: Update from GNU gettext-0.15.
13507                 * nls.m4: Likewise.
13508                 * po.m4: Likewise.
13509                 * inttypes-pri.m4: Likewise.
13510                 * inttypes-h.m4: Renamed from inttypes.m4.
13511                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
13512
13513 2006-07-22  Bruno Haible  <bruno@clisp.org>
13514
13515         Merge from GNU gettext 0.15.
13516
13517         2005-07-05  Bruno Haible  <bruno@clisp.org>
13518
13519                 * printf-args.c (printf_fetchargs): Work around broken
13520                 definition of wint_t on mingw.
13521
13522         2005-02-12  Bruno Haible  <bruno@clisp.org>
13523
13524                 * xallocsa.h: Add extern "C" for C++.
13525
13526         2006-05-17  Bruno Haible  <bruno@clisp.org>
13527
13528                 Cygwin portability.
13529                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
13530
13531         2006-04-30  Bruno Haible  <bruno@clisp.org>
13532
13533                 * progreloc.c: Include <mach-o/dyld.h> if available.
13534                 (find_executable): Use _NSGetExecutablePath when possible.
13535
13536         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
13537
13538                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
13539                 function.
13540
13541         2005-12-29  Bruno Haible  <bruno@clisp.org>
13542
13543                 * progreloc.c (set_program_name_and_installdir): Fix
13544                 compilation error.
13545
13546         2005-12-04  Bruno Haible  <bruno@clisp.org>
13547
13548                 Cygwin portability.
13549                 * progreloc.c: Include <windows.h> also on Cygwin.
13550                 (find_executable): Add support for Cygwin.
13551                 (set_program_name_and_installdir): Handle also platforms with
13552                 nonempty EXEEXT.
13553
13554         2006-07-11  Bruno Haible  <bruno@clisp.org>
13555
13556                 * javacomp.c: Fix a comment.
13557                 Reported by Jim Meyering.
13558
13559         2006-04-30  Bruno Haible  <bruno@clisp.org>
13560
13561                 * javacomp.h (compile_java_class): Add source_version,
13562                 target_version arguments.
13563                 * javacomp.c: Rewritten to choose only a compiler that
13564                 respects the specified source_version and target_version.
13565
13566         2006-06-27  Bruno Haible  <bruno@clisp.org>
13567
13568                 Assume correct S_ISDIR macro.
13569                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
13570
13571         2006-07-22  Bruno Haible  <bruno@clisp.org>
13572
13573                 * javaversion.h: New file, from GNU gettext.
13574                 * javaversion.c: New file, from GNU gettext.
13575                 * javaversion.java: New file, from GNU gettext.
13576                 * javaversion.class: New file, from GNU gettext.
13577
13578         2006-05-17  Bruno Haible  <bruno@clisp.org>
13579
13580                 Cygwin portability.
13581                 * javaexec.c (execute_java_class): Test for jview program
13582                 also on Cygwin.
13583
13584         2006-04-09  Bruno Haible  <bruno@clisp.org>
13585
13586                 * fatal-signal.c: Don't include string.h.
13587                 (at_fatal_signal): Use a copying loop instead of memcpy.
13588
13589         2005-12-04  Bruno Haible  <bruno@clisp.org>
13590
13591                 * csharpexec.c: Add support for 'clix' launcher (untested).
13592                 (execute_csharp_using_sscli): New function.
13593                 (execute_csharp_program): Call it.
13594
13595         2006-06-21  Bruno Haible  <bruno@clisp.org>
13596
13597                 Avoid warnings from recent versions of mcs.
13598                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
13599                 -o, -L, -r any more. Use options documented since mcs-1.0
13600                 instead. Similarly for -g.
13601
13602         2005-07-09  Bruno Haible  <bruno@clisp.org>
13603
13604                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
13605                 add a .dll suffix.
13606                 Reported by Mark Junker <mjscod@gmx.de>.
13607
13608         2006-06-17  Bruno Haible  <bruno@clisp.org>
13609
13610                 * config.charset: Update for NetBSD 3.0.
13611
13612         2006-05-17  Bruno Haible  <bruno@clisp.org>
13613
13614                 Cygwin portability.
13615                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
13616
13617         2006-05-16  Bruno Haible  <bruno@clisp.org>
13618
13619                 * localcharset.c [CYGWIN]: Include <windows.h>.
13620                 (get_charset_aliases): For Cygwin, return the same CPxxx
13621                 aliases list as under WIN32.
13622                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
13623                 the environment variables. Fall back to GetACP().
13624
13625         2006-04-05  Bruno Haible  <bruno@clisp.org>
13626
13627                 * config.charset: Update Juan Manuel Guerrero's address.
13628
13629         2005-02-12  Bruno Haible  <bruno@clisp.org>
13630
13631                 * allocsa.h: Add extern "C" for C++.
13632
13633         2005-02-10  Bruno Haible  <bruno@clisp.org>
13634
13635                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
13636                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
13637
13638         2006-07-22  Bruno Haible  <bruno@clisp.org>
13639
13640                 * gettext.h: Update to GNU gettext-0.15.
13641
13642 2006-07-22  Bruno Haible  <bruno@clisp.org>
13643
13644         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
13645         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
13646         lib-prefix.m4, longdouble.m4, ssize_t.m4.
13647
13648 2006-07-21  Eric Blake  <ebb9@byu.net>
13649
13650         * modules/stdlib-safer: New file.
13651         * MODULES.html.sh (File stream based Input/Output): Add
13652         stdlib-safer.
13653
13654 2006-07-21  Eric Blake  <ebb9@byu.net>
13655
13656         * lib/stdlib-safer.h: New file from coreutils, required by
13657         stdlib--.h.
13658
13659 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
13660
13661         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
13662
13663 2006-07-20  Bruno Haible  <bruno@clisp.org>
13664
13665         * gnulib-tool: Recognize new option --assume-autoconf.
13666         (autoconf_minversion): New variable.
13667         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
13668
13669 2006-07-20  Bruno Haible  <bruno@clisp.org>
13670
13671         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
13672
13673 2006-07-19  Derek R. Price  <derek@ximbiot.com>
13674
13675         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
13676         Reindent and repaginate.
13677
13678 2006-07-19  Derek Price  <derek@ximbiot.com>
13679
13680         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
13681         Correct grammar.
13682
13683 2006-07-17  Bruno Haible  <bruno@clisp.org>
13684
13685         * modules/list: New file.
13686         * modules/array-list: New file.
13687         * modules/carray-list, modules/carray-list-tests: New files.
13688         * modules/linked-list, modules/linked-list-tests: New files.
13689         * modules/avltree-list, modules/avltree-list-tests: New files.
13690         * modules/rbtree-list, modules/rbtree-list-tests: New files.
13691         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
13692         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
13693         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
13694         * modules/oset: New file.
13695         * modules/array-oset: New file.
13696         * modules/avltree-oset, modules/avltree-oset-tests: New files.
13697         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
13698         * tests/test-carray_list.c: New file.
13699         * tests/test-linked_list.c: New file.
13700         * tests/test-avltree_list.c: New file.
13701         * tests/test-rbtree_list.c: New file.
13702         * tests/test-linkedhash_list.c: New file.
13703         * tests/test-avltreehash_list.c: New file.
13704         * tests/test-rbtreehash_list.c: New file.
13705         * tests/test-avltree_oset.c: New file.
13706         * tests/test-rbtree_oset.c: New file.
13707         * MODULES.html.sh (Container data structures): New section.
13708
13709 2006-07-17  Bruno Haible  <bruno@clisp.org>
13710
13711         * m4/gl_list.m4: New file.
13712
13713 2006-07-17  Bruno Haible  <bruno@clisp.org>
13714
13715         * lib/gl_list.h: New file.
13716         * lib/gl_list.c: New file.
13717         * lib/gl_array_list.h: New file.
13718         * lib/gl_array_list.c: New file.
13719         * lib/gl_carray_list.h: New file.
13720         * lib/gl_carray_list.c: New file.
13721         * lib/gl_linked_list.h: New file.
13722         * lib/gl_linked_list.c: New file.
13723         * lib/gl_anylinked_list1.h: New file.
13724         * lib/gl_anylinked_list2.h: New file.
13725         * lib/gl_avltree_list.h: New file.
13726         * lib/gl_avltree_list.c: New file.
13727         * lib/gl_anyavltree_list1.h: New file.
13728         * lib/gl_anyavltree_list2.h: New file.
13729         * lib/gl_rbtree_list.h: New file.
13730         * lib/gl_rbtree_list.c: New file.
13731         * lib/gl_anyrbtree_list1.h: New file.
13732         * lib/gl_anyrbtree_list2.h: New file.
13733         * lib/gl_anytree_list1.h: New file.
13734         * lib/gl_anytree_list2.h: New file.
13735         * lib/gl_linkedhash_list.h: New file.
13736         * lib/gl_linkedhash_list.c: New file.
13737         * lib/gl_anyhash_list1.h: New file.
13738         * lib/gl_anyhash_list2.h: New file.
13739         * lib/gl_avltreehash_list.h: New file.
13740         * lib/gl_avltreehash_list.c: New file.
13741         * lib/gl_rbtreehash_list.h: New file.
13742         * lib/gl_rbtreehash_list.c: New file.
13743         * lib/gl_anytreehash_list1.h: New file.
13744         * lib/gl_anytreehash_list2.h: New file.
13745
13746         * lib/gl_oset.h: New file.
13747         * lib/gl_oset.c: New file.
13748         * lib/gl_array_oset.h: New file.
13749         * lib/gl_array_oset.c: New file.
13750         * lib/gl_avltree_oset.h: New file.
13751         * lib/gl_avltree_oset.c: New file.
13752         * lib/gl_rbtree_oset.h: New file.
13753         * lib/gl_rbtree_oset.c: New file.
13754         * lib/gl_anytree_oset.h: New file.
13755
13756 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
13757
13758         * m4/mkancesdirs.m4: New file.
13759         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
13760         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
13761         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
13762         it.
13763
13764 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
13765
13766         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
13767         * lib/mkancesdirs.h: New files.
13768         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
13769         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
13770         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
13771         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
13772         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
13773         callers changed.  Revamp internals significantly, by not
13774         attempting to create directories that are temporarily more
13775         permissive than the final results.  Do not attempt to use
13776         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
13777         This removes some race conditions, fixes some bugs, and simplifies
13778         things.  Use new dirchownmod function to do owner and mode changes.
13779         * lib/mkdir-p.h: Likewise.
13780         * lib/modechange.c (octal_to_mode): New function.
13781         (struct mode_change): New member mentioned.
13782         (make_node_op_equals): New arg mentioned.  All callers changed.
13783         (mode_compile): Keep track of which mode bits the user has explicitly
13784         mentioned.
13785         (mode_adjust): New arg DIR, so that we implement the X op correctly.
13786         New arg PMODE_BITS, to keep track of which mode bits the user
13787         mentioned; it treats S_ISUID and S_ISGID speciall.
13788         All callers changed.
13789         * lib/modechange.h: Likewise.
13790
13791 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
13792
13793         * MODULES.html.sh: Add mkancestors.
13794         * modules/mkancesdirs: New module.
13795         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
13796         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
13797         The chdir-safer and afs files are now orphans; I'll remove them
13798         unless someone speaks up.
13799         Add lib/dirchownmod.c, lib/dirchownmod.h.
13800         (Depends-on): Remove alloca, chown, save-cwd, dirname.
13801         Add lchown, mkancesdirs.
13802         (Maintainer): Add self.
13803
13804 2006-07-15  Karl Berry  <karl@gnu.org>
13805
13806         * gnulib-tool: help message wording/arrangement.
13807
13808 2006-07-14  Simon Josefsson  <jas@extundo.com>
13809
13810         * doc/gnulib.texi (Libtool and Windows): New section.
13811
13812 2006-07-12  Simon Josefsson  <jas@extundo.com>
13813
13814         * modules/gendocs (License): Fix license, approved by Karl.
13815
13816 2006-07-12  Eric Blake  <ebb9@byu.net>
13817
13818         * MODULES.html.sh: Add gendocs.
13819
13820 2006-07-11  Eric Blake  <ebb9@byu.net>
13821
13822         * modules/fdl: New module, to install doc/fdl.texi.
13823         * MODULES.html.sh: Add new section for documentation modules.
13824         * gnulib-tool: Avoid space-tab.
13825         (--doc-base): New option, to manage files from doc.
13826
13827 2006-07-11  Eric Blake  <ebb9@byu.net>
13828
13829         * m4/absolute-header.m4: Fix comments to match recent change.
13830
13831 2006-07-11  Eric Blake  <ebb9@byu.net>
13832
13833         * gnulib-tool: List --doc-base before --tests-base.
13834
13835 2006-07-11  Derek R. Price  <derek@ximbiot.com>
13836
13837         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
13838
13839 2006-07-11  Bruno Haible  <bruno@clisp.org>
13840
13841         * README: Mention where to put documentation.
13842
13843 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13844
13845         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
13846
13847 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
13848
13849         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
13850         to stdint.m4.
13851
13852 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
13853
13854         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
13855         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
13856         "no/such/file/stdint.h" when there is no such file, so that
13857         the resulting C code can be parsed by dodgy compilers.
13858         Problems reported by Bob Proulx.
13859
13860 2006-07-10  Derek R. Price  <derek@ximbiot.com>
13861
13862         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
13863         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
13864         macros into the GNU _D_EXACT_NAMLEN.
13865         * lib/savedir.c:  Likewise.
13866         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
13867
13868 2006-07-10  Derek R. Price  <derek@ximbiot.com>
13869         and Paul Eggert  <eggert@cs.ucla.edu>
13870
13871         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
13872         * m4/savedir.m4:
13873         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
13874         macros into the GNU _D_EXACT_NAMLEN.
13875
13876 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13877
13878         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
13879         around the absolute name, to work around a problem with the HP-UX
13880         11.23 native C compiler, reported by Bob Proulx.
13881
13882 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13883
13884         * doc/maintain.texi, make-stds.texi: Sync from
13885         <http://savannah.gnu.org/projects/gnustandards>.
13886
13887 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13888
13889         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
13890
13891 2006-07-09  Jim Meyering  <jim@meyering.net>
13892
13893         * m4/glob.m4: Remove a doubled word in a comment.
13894
13895 2006-07-09  Jim Meyering  <jim@meyering.net>
13896
13897         * lib/argp-pv.c: Remove a doubled word in a comment.
13898         * lib/check-version.c (check_version): Likewise.
13899         * lib/javacomp.c (compile_java_class): Likewise.
13900
13901 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13902
13903         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
13904         for the benefit of people using Autoconf 2.60.  If you want to
13905         support older Autoconf versions you can copy m4/onceonly_2_57.m4
13906         (or m4/onceonly.m4, if pre-2.57) manually.
13907
13908 2006-07-08  Jim Meyering  <jim@meyering.net>
13909
13910         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
13911         comment.
13912         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
13913         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
13914         comment.
13915
13916 2006-07-08  Jim Meyering  <jim@meyering.net>
13917
13918         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
13919
13920 2006-07-07  Simon Josefsson  <jas@extundo.com>
13921
13922         * tests/test-crc.c: Change expected crc value, the test vector
13923         were probably computed using the old broken crc.c?
13924
13925 2006-07-06  Simon Josefsson  <jas@extundo.com>
13926
13927         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
13928         now the canonical place for the M4 file).
13929
13930         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
13931         from the sys_socket dependency now.
13932
13933         * modules/inet_pton (Files): Ditto.
13934
13935         * modules/inet_ntop (Files): Ditto.
13936
13937 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
13938
13939         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
13940         not gl_PREREQ_GETUSERSHELL.
13941
13942 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13943
13944         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
13945         with only one argument, for Autoconf 2.60.
13946         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
13947         expand to nothing, so add a shell command to avoid syntax error.
13948         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13949
13950 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13951
13952         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
13953
13954 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13955
13956         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
13957         no longer needed.  Check for isblank decl.
13958         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
13959         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
13960         of existence.
13961
13962 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13963
13964         * lib/getloadavg.c: Use __VMS, not VMS.
13965         * lib/getopt.c: Likewise.
13966         * lib/getpagesize.h: Likewise.
13967         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
13968         and probably does not work.
13969
13970 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13971
13972         * lib/.cppi-disable: Add wcwidth.
13973         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
13974         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
13975         (ISGRAPH): Remove.  All uses changed to isgraph.
13976         (FOLD) [!defined _LIBC]: Remove special case.
13977         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
13978         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
13979         HAVE_ISBLANK.
13980         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
13981         case.
13982
13983 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
13984
13985         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
13986         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
13987         brackets.  Other minor changes to suppress some compiler
13988         warnings.
13989
13990 2006-07-06  Derek R. Price  <derek@ximbiot.com>
13991         and Paul Eggert  <eggert@cs.ucla.edu>
13992
13993         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
13994         of invoking obsolescent AC_HEADER_DIRENT macro.
13995         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
13996         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
13997         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13998         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
13999         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
14000         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
14001         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
14002         * m4/readdir.m4: Remove; no longer needed.
14003
14004 2006-07-06  Derek R. Price  <derek@ximbiot.com>
14005         and Paul Eggert  <eggert@cs.ucla.edu>
14006
14007         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
14008         Don't worry about this obsolete case any more.
14009         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
14010         directories.
14011         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
14012         worry about this obsolete case any more.
14013         * lib/fts.c: Likewise.
14014         * lib/getcwd.c: Likewise.
14015         * lib/glob.h: Likewise.
14016         * lib/savedir.c: Likewise.
14017
14018 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14019
14020         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
14021         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
14022         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
14023         needed.
14024         All uses removed.
14025         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
14026         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
14027         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
14028         needed.
14029         * m4/getdate.m4 (gl_GETDATE): Likewise.
14030         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
14031         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
14032         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14033         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
14034         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
14035         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
14036         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
14037         needed.
14038
14039 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14040
14041         * lib/memcasecmp.c: Include <limits.h>.
14042         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
14043         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
14044         Don't assume isdigit succeeds only on '0' through '9'.
14045
14046 2006-07-05  Eric Blake  <ebb9@byu.net>
14047
14048         * modules/getaddrinfo (Depends-on): Add snprintf.
14049
14050 2006-07-05  Eric Blake  <ebb9@byu.net>
14051
14052         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
14053         to avoid 'header present but could not be compiled' on cygwin.
14054
14055 2006-07-05  Eric Blake  <ebb9@byu.net>
14056
14057         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
14058         missing from netdb.h.
14059         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
14060
14061 2006-07-05  Derek R. Price  <derek@ximbiot.com>
14062
14063         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
14064         no longer needed.
14065         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
14066         * m4/getdate.m4 (gl_GETDATE): Likewise.
14067         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
14068         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
14069         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14070         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
14071         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
14072
14073 2006-07-05  Derek R. Price  <derek@ximbiot.com>
14074
14075         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
14076         All uses of is_space replaced by isspace.
14077         * lib/exit.h: Don't talk about STDC_HEADERS.
14078         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
14079         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
14080         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
14081         replaced by isprint etc.
14082         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
14083         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
14084         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
14085         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
14086         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
14087         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
14088
14089 2006-07-05  Bruno Haible  <bruno@clisp.org>
14090
14091         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
14092         the function exists, before testing against AIX.
14093         Reported by Martin Lambers <marlam@marlam.de>.
14094
14095 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
14096
14097         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
14098         From Mark D. Baushke.
14099
14100 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
14101
14102         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
14103         to the absolute name, not just one, to bypass Sun C 5.8's
14104         "warning: #include of /usr/include/... may be non-portable".
14105
14106 2006-07-04  Eric Blake  <ebb9@byu.net>
14107
14108         * modules/dirname-tests: New test module.
14109         * tests/test-dirname.c: New file, replacing dirname.c
14110         TEST_DIRNAME section that was recently deleted.
14111
14112 2006-07-04  Bruno Haible  <bruno@clisp.org>
14113
14114         Assume ANSI C header files and <ctype.h> functions.
14115         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
14116         (mbsnwidth): Use isprint, iscntrl instead.
14117
14118 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
14119
14120         Merge from coreutils.
14121         * MODULES.html.sh: Add xstrtold.
14122         * modules/xstrtold: New file.
14123         * modules/cycle-check (Files): Add lib/same-inode.h.
14124         * modules/dirname (Files): Add m4/double-slash-root.m4.
14125         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
14126         * modules/mkdir-p (Files): Add lib/same-inode.h.
14127         * modules/same (Files): Add lib/same-inode.h.
14128
14129 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
14130
14131         * m4/absolute-header.m4: Renamed from full-header-path.m4.
14132         This is to keep the terminology clean; POSIX talks about
14133         "absolute pathnames", not "full pathnames", but the GNU
14134         Coding Standards say to use "path" for something else;
14135         so use "absolute" to keep both sides happy.
14136         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
14137         Set gl_absolute_header, not gl_full_header_path.
14138         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
14139         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
14140         All uses changed.
14141
14142         Merge from coreutils.
14143
14144         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14145
14146         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
14147         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
14148         want to require the building of c-strtod.o.
14149         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
14150         needs -lm directly.
14151         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
14152
14153         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
14154
14155         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
14156         --as-needed option if available.  Problem reported by Albert Chin in
14157         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
14158         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
14159         cc merely issues a bunch of annoying warnings for --as-needed
14160         (this problem was reported by Bob Proulx).  Also, try linking with
14161         -lm to detect a bug in binutils 2.16 (this problem was reported
14162         by Ralf Wildenhues).
14163
14164         2006-06-18  Jim Meyering  <jim@meyering.net>
14165
14166         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
14167         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
14168         macro.
14169         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
14170         also check for glibc-2.4's abort-inducing bug.
14171
14172         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
14173         Low-probability clean-up should be to use rmdir to get rid of
14174         the just-created directory, not unlink.
14175
14176         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
14177         configure fail, and request a bug report to inform us about it.
14178         Add a comment that, barring reports to the contrary, in 2007 we'll
14179         assume ftruncate is universally available.
14180
14181         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
14182
14183         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
14184
14185         2006-03-12  Jim Meyering  <jim@meyering.net>
14186
14187         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
14188         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
14189         * m4/same.m4 (gl_SAME): Likewise.
14190         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
14191
14192         2006-03-11  Eric Blake  <ebb9@byu.net>
14193
14194         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
14195         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
14196         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
14197         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
14198
14199 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
14200
14201         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
14202         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
14203         reported by Mark D. Baushke, one in
14204         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
14205
14206         Merge from coreutils.
14207
14208         * lib/.cppi-disable: Add stdint_.h.
14209         * lib/.cvsignore: Add stdint.h.
14210
14211         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14212
14213         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
14214         both double and long double versions.
14215         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
14216         * lib/xstrtold.c: New file.
14217         * lib/xstrtod.h (xstrtold): New decl.
14218
14219         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
14220
14221         * lib/filemode.c (setst): Remove.
14222         (strmode): Rewrite to avoid setst.  This makes the code shorter,
14223         (arguably) clearer, and the generated code is a bit smaller on my
14224         Debian GNU/Linux stable x86 host.
14225
14226         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
14227
14228         * lib/filemode.c: Include "filemode.h" first, to test the interface.
14229         Assume that filemode.h includes sys/types.h and sys/stat.h.
14230         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
14231         (ftypelet): Reorder to put common cases first, for efficiency.
14232         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
14233         to do 'M'.
14234         (strmode): Renamed from mode_string, and now stores 12 bytes instead
14235         of 10, for compatibility with FreeBSD.  All callers changed.
14236         (filemodestring): Now stores 12 bytes instead of 10, and sets file
14237         types that can't be deduced solely from st_mode.  First arg is now a
14238         const pointer.
14239         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
14240         (strmode): Renamed from mode_string.
14241         (filemodestring): New decl.
14242         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
14243         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
14244         needed.
14245         (S_ISPORT, S_ISWHT): New macros, if not already defined.
14246
14247         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
14248
14249         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
14250         fsusage.h now does that.  Include fsusage.h first, to test interface.
14251         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
14252         at most one method (the old code could have generated decls that
14253         didn't conform to C89, not that this was ever exercised).
14254         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
14255
14256         2006-03-19  Jim Meyering  <jim@meyering.net>
14257
14258         Work even in a chroot where d_ino values for entries in "/"
14259         don't match the stat.st_ino values for the same names.
14260         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
14261         number, iterate through all entries again, using lstat instead.
14262         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
14263         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
14264
14265         * lib/getcwd.c (__getcwd): Clarify a comment.
14266         Use memcpy in place of a call to strcpy.
14267
14268         2006-03-12  Jim Meyering  <jim@meyering.net>
14269
14270         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
14271         matches that of the current directory (which we're about to chdir ".."
14272         out of), then save the dev-ino of the parent, instead.
14273
14274         * lib/same-inode.h (SAME_INODE): New file/macro.
14275         * lib/chdir-safer.c (SAME_INODE): Remove definition.
14276         Include "same-inode.h", instead.
14277         * lib/same.c: Likewise.
14278         * lib/cycle-check.h: Include "same-inode.h".
14279         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
14280         * lib/cycle-check.c (SAME_INODE): Remove definition.
14281         * lib/root-dev-ino.h: Include "same-inode.h".
14282
14283         2006-03-11  Eric Blake  <ebb9@byu.net>
14284
14285         * lib/same.c (same_name): s/base_name/last_component/
14286         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
14287         * lib/filenamecat.c (file_name_concat): Likewise.
14288
14289         2006-03-11  Eric Blake  <ebb9@byu.net>,
14290                     Paul Eggert  <eggert@cs.ucla.edu>
14291
14292         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
14293         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
14294         drive prefix.
14295         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
14296         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
14297         (last_component): New method.
14298         * lib/dirname.c (dir_len): Determine when drive letters need a
14299         subsequent slash.  Preserve // when it is special.
14300         (dir_name): Don't append dot when drive letter is absolute.
14301         [TEST_DIRNAME]: Move into a full-blown gnulib test.
14302         * lib/basename.c (base_name): New semantics - malloc the result.
14303         Preserve // when it is special.  Preserve relative files that look
14304         like drive letters.
14305         (base_len): Preserve // when it is special.
14306         (last_component): New method, similar to old base_name semantics.
14307         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
14308         base_name.  Strip redundant slashes from ///.
14309
14310 2006-07-03  Jim Meyering  <jim@meyering.net>
14311
14312         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
14313         macro is used before the first cycle_check call.
14314
14315 2006-07-03  Eric Blake  <ebb9@byu.net>
14316
14317         * modules/dirname (Depends-on): Add xstrndup.
14318
14319 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
14320
14321         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
14322         test cases, so that config.log is a bit easier to follow.
14323
14324 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
14325
14326         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
14327         both are 64 bits, since this seems to be the tradition, and this
14328         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
14329         we ever run into a host that prefers long long to long in this
14330         case, we'll need another configure-time test.  Problem reported by
14331         Jim Meyering.
14332
14333 2006-07-02  Eric Blake  <ebb9@byu.net>
14334
14335         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
14336
14337 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
14338
14339         * modules/inttypes (Depends-on): No longer depends on stdint.
14340         * modules/stdint (Description): Say more about assumptions.
14341         Say that the fast types might differ.  Say macros are used.
14342         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
14343         (Makefile.am): Revise list of substituted symbols to match
14344         new stdint.m4.
14345         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
14346         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
14347         * tests/test-stdint.c (verify_same_types)
14348         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
14349         the code conforms to C99/C89.
14350         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
14351         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
14352
14353 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
14354
14355         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
14356         but fix a bug, by requiring at least 64 bits.
14357         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
14358         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
14359         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
14360         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
14361
14362         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
14363         changes.  Make 2.59 a prerequisite.  Check and substitute for
14364         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
14365         inttypes.h.  Do not use special include files; just use the
14366         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
14367         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
14368         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
14369         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
14370         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
14371         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
14372         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
14373         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
14374         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
14375         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
14376         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
14377         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
14378         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
14379         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
14380         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
14381         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
14382         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
14383         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
14384         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
14385         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
14386         WINT_MAX.  Check for C99 conformance more strictly, by detecting
14387         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
14388         not check for things that C99 does not require, e.g., int8_t.  If
14389         a test isn't needed unless <stdint.h> isn't working, and is
14390         unlikely to be needed for any other reason, then don't do it
14391         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
14392         size_t, since we assume C89 freestanding at least.  Do not check
14393         for sig_atomic_t, wchar_t, or wint_t, since the code now does
14394         the right thing even if the types are not defined.  Instead use:
14395         (gl_STDINT_TYPE_PROPERTIES): New macro.
14396         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
14397         testing whether <sys/types.h> clashes, as Autoconf does this for
14398         us now.  All uses removed.
14399         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
14400         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
14401         (gl_CHECK_TYPE_SAME):
14402         Remove; no longer needed.
14403         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
14404         exists, since we'll return 0 anyway in that case.
14405         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
14406
14407 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
14408
14409         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
14410         possible collision with system files.
14411         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
14412         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
14413         WCHAR_MIN and WCHAR_MAX in this case.
14414         (<stddef.h>): Do not include; no longer needed.
14415         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
14416         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
14417         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
14418         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
14419         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
14420         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
14421         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
14422         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
14423         !defined(__c99))]: Include in this case too, since it's harmless
14424         now.
14425         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
14426         dangerous to do so.
14427         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
14428         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
14429         (_STDINT_MIN, _STDINT_MAX): New macros.
14430         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
14431         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
14432         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
14433         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
14434         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
14435         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
14436         macros, not typedefs; this simplifies things quite a bit.
14437         Use long int for all types narrower than int64_t.
14438         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
14439         Define in terms of long long int or int64_t or long int,
14440         not int64_t or int32_t.  This saves some compile-time testing.
14441         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
14442         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
14443         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
14444         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
14445         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
14446         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
14447         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
14448         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
14449         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
14450         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
14451         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
14452         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
14453         undef any previous version and define our own version, for
14454         simplicity and consistency with the new macros for types.
14455         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
14456         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
14457         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
14458         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
14459         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
14460         @WINT_T_SUFFIX@ to keep things simple here.
14461         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
14462         Simplify by assuming typical 8/16/32/64 host, since we're
14463         already doing that elsewhere anyway.
14464         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
14465         and assume long long int is 64 bits if available.  This
14466         speeds up 'configure'.
14467
14468 2006-07-01  Eric Blake  <ebb9@byu.net>
14469
14470         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
14471         Reported by Andreas Buening.
14472
14473 2006-07-01  Eric Blake  <ebb9@byu.net>
14474
14475         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
14476
14477 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
14478
14479         * lib/getaddrinfo.c: fixed typo
14480
14481 2006-06-29  Jim Meyering  <jim@meyering.net>
14482
14483         * modules/strftime (Maintainer): Add my name, since with the
14484         FPRINTFTIME changes strftime.c has forked from glibc.
14485
14486 2006-06-29  Eric Blake  <ebb9@byu.net>
14487
14488         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
14489
14490 2006-06-29  Eric Blake  <ebb9@byu.net>
14491
14492         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
14493
14494 2006-06-29  Eric Blake  <ebb9@byu.net>
14495
14496         * lib/stat_.h: New file.
14497
14498 2006-06-29  Eric Blake  <ebb9@byu.net>
14499
14500         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
14501         unused static function.
14502
14503 2006-06-29  Eric Blake  <ebb9@byu.net>
14504
14505         * doc/functions.texi (Function Portability): Document missing lstat
14506         on mingw.
14507
14508 2006-06-29  Eric Blake  <ebb9@byu.net>
14509
14510         * MODULES.html.sh: Add sys_stat.
14511         * modules/sys_stat: New module.
14512         * modules/mkstemp (Depends-on): Add sys_stat.
14513
14514 2006-06-29  Derek R. Price  <derek@ximbiot.com>
14515
14516         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
14517
14518 2006-06-29  Derek R. Price  <derek@ximbiot.com>
14519
14520         * m4/c-bs-a.m4: Removed.
14521
14522 2006-06-29  Derek R. Price  <derek@ximbiot.com>
14523
14524         * lib/strftime.c: Assume strftime() exists.
14525
14526 2006-06-29  Derek Price  <derek@ximbiot.com>
14527
14528         * modules/c-bs-a: Removed - \a is C89.
14529         * MODULES.html.sh: Remove c-bs-a.
14530
14531 2006-06-29  Bruno Haible  <bruno@clisp.org>
14532
14533         * modules/wcwidth (License): Change to LGPL.
14534
14535 2006-06-28  Simon Josefsson  <jas@extundo.com>
14536
14537         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
14538         on _WIN32.
14539
14540         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
14541         getnameinfo.
14542
14543 2006-06-28  Simon Josefsson  <jas@extundo.com>
14544
14545         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
14546
14547 2006-06-28  Simon Josefsson  <jas@extundo.com>
14548
14549         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
14550         functions there.  It will succeed on Windows XP, but on Windows
14551         2000 and (presumably) earlier, it will fail, and use the internal
14552         re-implementation.
14553         (use_win32_p): New function.
14554         (getaddrinfo): Use strtoul on servname, to support numeric ports.
14555         Support AI_NUMERICSERV to disable getservbyname.
14556         (getnameinfo): New function, only supports
14557         NI_NUMERICHOST|NI_NUMERICSERV for now.
14558
14559         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
14560         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
14561         getnameinfo.
14562
14563 2006-06-28  Eric Blake  <ebb9@byu.net>
14564
14565         * modules/wcwidth: New file.
14566         * modules/mbchar (Depends-on): Add wcwidth.
14567         * modules/mbswidth (Depends-on): Add wcwidth.
14568         * MODULES.html.sh: Add wcwidth.
14569
14570 2006-06-28  Eric Blake  <ebb9@byu.net>
14571
14572         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
14573         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
14574
14575 2006-06-28  Eric Blake  <ebb9@byu.net>
14576
14577         * lib/xvasprintf.h: Fix comments.
14578
14579 2006-06-28  Eric Blake  <ebb9@byu.net>
14580
14581         * lib/mbchar.h (wcwidth): Include wcwidth.h.
14582         * lib/mbswidth.c (wcwidth): Move from here...
14583         * lib/wcwidth.h: ...to this new file.
14584
14585 2006-06-28  Derek R. Price  <derek@ximbiot.com>
14586
14587         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
14588
14589         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
14590         it's obsolete.
14591         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
14592
14593 2006-06-28  Derek R. Price  <derek@ximbiot.com>
14594
14595         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
14596         Autoconf 2.60 says this stuff was obsolete.
14597
14598 2006-06-28  Bruno Haible  <bruno@clisp.org>
14599
14600         * modules/wcwidth (Files): Add m4/wchar_t.m4.
14601
14602 2006-06-28  Bruno Haible  <bruno@clisp.org>
14603
14604         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
14605         gt_TYPE_WCHAR_T.
14606
14607 2006-06-28  Bruno Haible  <bruno@clisp.org>
14608
14609         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
14610         declaration for wcwidth.
14611         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
14612
14613 2006-06-28  Bruno Haible  <bruno@clisp.org>
14614
14615         * lib/mkdtemp.c [MINGW]: Include <io.h>.
14616         (mkdir): Define using _mkdir.
14617
14618 2006-06-28  Bruno Haible  <bruno@clisp.org>
14619
14620         * lib/getaddrinfo.h: Fix POSIX URL.
14621         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
14622         _WIN32.
14623         (use_win32_p): Make static.
14624         (getaddrinfo): Reject service name if it is empty or does not consist
14625         solely of decimal digits, or if its value is > 65535.
14626         (getnameinfo): Remove useless casts.
14627
14628 2006-06-27  Simon Josefsson  <jas@extundo.com>
14629
14630         * modules/sys_select: New file, suggested by Bruno Haible, Paul
14631         Eggert and Martin Lambers.
14632
14633 2006-06-27  Simon Josefsson  <jas@extundo.com>
14634
14635         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
14636         Eggert and Martin Lambers.
14637
14638 2006-06-27  Bruno Haible  <bruno@clisp.org>
14639
14640         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
14641         result to 0, not to empty.
14642         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
14643
14644 2006-06-27  Bruno Haible  <bruno@clisp.org>
14645
14646         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
14647
14648 2006-06-26  Simon Josefsson  <jas@extundo.com>
14649
14650         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
14651         present.
14652
14653 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
14654
14655         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
14656         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
14657         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
14658
14659 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
14660
14661         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
14662
14663 2006-06-26  Bruno Haible  <bruno@clisp.org>
14664
14665         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
14666
14667 2006-06-26  Bruno Haible  <bruno@clisp.org>
14668
14669         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
14670
14671 2006-06-26  Bruno Haible  <bruno@clisp.org>
14672
14673         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
14674         SGI C compiler in pre-C99 mode.
14675         Suggested by Mark D. Baushke and Larry Jones.
14676
14677 2006-06-26  Bruno Haible  <bruno@clisp.org>
14678
14679         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
14680         WCHAR_MAX.
14681         Reported by Mark D. Baushke and Larry Jones.
14682
14683 2006-06-26  Bruno Haible  <bruno@clisp.org>
14684
14685         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
14686         in pre-C99 mode.
14687         Suggested by Mark D. Baushke and Larry Jones.
14688
14689 2006-06-23  Simon Josefsson  <jas@extundo.com>
14690             Bruno Haible  <bruno@clisp.org>
14691
14692         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
14693         Emit mostlyclean-local rule.
14694         (func_emit_tests_Makefile_am): Likewise.
14695         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
14696
14697 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
14698
14699         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
14700
14701 2006-06-23  Bruno Haible  <bruno@clisp.org>
14702
14703         * tests/test-stdint.c: Update to match ISO C 99 Technical
14704         Corrigendum 1.
14705
14706 2006-06-23  Bruno Haible  <bruno@clisp.org>
14707
14708         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
14709
14710 2006-06-23  Bruno Haible  <bruno@clisp.org>
14711
14712         * lib/stdint_.h: Treat IRIX like OpenBSD.
14713
14714 2006-06-23  Bruno Haible  <bruno@clisp.org>
14715
14716         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
14717         ISO C 99 Technical Corrigendum 1.
14718
14719 2006-06-22  Simon Josefsson  <jas@extundo.com>
14720
14721         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
14722         MinGW.
14723
14724 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
14725
14726         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
14727         needed.  Some compiler complained about some of them.  Problem reported
14728         by Larry Jones in
14729         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
14730
14731 2006-06-21  Simon Josefsson  <jas@extundo.com>
14732
14733         * tests/test-getaddrinfo.c: New file.
14734
14735         * modules/getaddrinfo-tests: New file.
14736
14737         * MODULES.html.sh: Add inet_pton.
14738
14739         * modules/inet_pton: New file.
14740
14741 2006-06-21  Simon Josefsson  <jas@extundo.com>
14742
14743         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
14744         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
14745         of using the (limited) gnulib implementation on Windows XP.
14746
14747         * m4/inet_pton.m4: New file.
14748
14749 2006-06-21  Simon Josefsson  <jas@extundo.com>
14750
14751         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
14752         variable.
14753
14754         * lib/socket_.h: Don't define WINVER.
14755
14756         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
14757         slightly modified to work in gnulib.
14758
14759 2006-06-21  Simon Josefsson  <jas@extundo.com>
14760
14761         * doc/gnulib.texi (Windows sockets): Add.
14762
14763 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
14764
14765         * lib/read-file.c (fread_file): Start with buffer allocation of
14766         0 bytes rather than 1 byte; this simplifies the code.
14767         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
14768         code to free buffer and save/restore errno.
14769         (internal_read_file): Remove unused local.
14770
14771 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14772
14773         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
14774         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
14775         Problem reported by Denis Excoffier in
14776         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
14777
14778 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14779
14780         * modules/sys_socket, modules/socklen: Include sys/types since
14781         FreeBSD 4.x's sys/socket.h needs it.
14782
14783 2006-06-19  Simon Josefsson  <jas@extundo.com>
14784
14785         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
14786
14787 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
14788
14789         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
14790
14791 2006-06-19  Bruno Haible  <bruno@clisp.org>
14792
14793         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
14794         and FULL_PATH_INTTYPES_H in angle brackets.
14795         Reported by Mark D. Baushke <mdb@gnu.org>.
14796
14797 2006-06-17  Eric Blake  <ebb9@byu.net>
14798
14799         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
14800         errno.
14801
14802 2006-06-17  Bruno Haible  <bruno@clisp.org>
14803
14804         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
14805         <sys/inttypes.h>.
14806
14807 2006-06-17  Bruno Haible  <bruno@clisp.org>
14808
14809         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
14810         whether errno is declared. Assume <errno.h> declares errno.
14811
14812 2006-06-17  Bruno Haible  <bruno@clisp.org>
14813
14814         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
14815
14816 2006-06-17  Bruno Haible  <bruno@clisp.org>
14817
14818         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
14819         problem on Solaris 2.5.1.
14820
14821 2006-06-16  Eric Blake  <ebb9@byu.net>
14822
14823         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
14824         * lib/unicodeio.c [!defined errno]: Likewise.
14825         * lib/strtol.c [!defined errno]: Likewise.
14826         * lib/strtod.c [!defined errno]: Likewise.
14827
14828 2006-06-15  Eric Blake  <ebb9@byu.net>
14829
14830         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
14831
14832 2006-06-15  Eric Blake  <ebb9@byu.net>
14833
14834         * config/srclist.txt (ssize_t.m4): Lose sync.
14835
14836 2006-06-15  Bruno Haible  <bruno@clisp.org>
14837
14838         * modules/stdint (Files): Include m4/full-header-path.m4,
14839         m4/size_max.m4, m4/wchar_t.m4.
14840         (Makefile.am): Many more substitutions.
14841         * modules/stdint-tests: New file.
14842         * tests/test-stdint.c: New file.
14843
14844 2006-06-15  Bruno Haible  <bruno@clisp.org>
14845
14846         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
14847         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
14848         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
14849         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
14850         gl_CHECK_TYPE_SAME): New macros.
14851
14852 2006-06-15  Bruno Haible  <bruno@clisp.org>
14853
14854         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
14855
14856 2006-06-15  Bruno Haible  <bruno@clisp.org>
14857
14858         * lib/stdint_.h: Rewritten to be fully auto-configured.
14859         Fixes bug on HP-UX/IA64.
14860
14861 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
14862
14863         * lib/getdate.y (__attribute__): Don't define if already defined.
14864         Problem reported by Larry Jones.
14865         * lib/utimens.c (__attribute__): Likewise.
14866
14867 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
14868
14869         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
14870         reported by Andreas Schwab.
14871
14872 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14873             Bruno Haible  <bruno@clisp.org>
14874
14875         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
14876         check for the declaration of strnlen and a run test that exposes the
14877         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
14878         rpl_strndup.
14879
14880 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14881             Bruno Haible  <bruno@clisp.org>
14882
14883         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
14884
14885 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14886
14887         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
14888         compile test, for Tru64 4.0D.
14889
14890 2006-05-28  Karl Berry  <karl@gnu.org>
14891
14892         * config/srclist.txt (printf-args.c): lose sync.
14893
14894 2006-05-26  Martin Lambers  <marlam@marlam.de>
14895
14896         * lib/getpass.c: Updates the test for the native W32 API, and adds
14897         missing includes, thus fixing compilation warnings.
14898
14899 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
14900
14901         * lib/exclude.c (exclude_fnmatch): New function.
14902         (excluded_file_name): Call exclude_fnmatch.
14903         * lib/exclude.h (excluded_file_name): New prototype
14904
14905 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
14906
14907         * lib/tempname.c (small_open, large_open): New macros.
14908         (__open, __open64) [!_LIBC]: Remove.
14909         (__gen_tempname): Use small_open and large_open instead of __open
14910         and __open64.  This fixes a portability bug on HP-UX 11.11i
14911         reported by Simon Wing-Tang in
14912         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
14913
14914 2006-05-24  Bruno Haible  <bruno@clisp.org>
14915
14916         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
14917         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
14918         Reported by Thorsten Maerz <torte@netztorte.de> via
14919         Aaron Stone <aaron@serendipity.cx>.
14920
14921 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14922
14923         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
14924         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
14925         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
14926         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
14927         not really conditional on the cache.
14928         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
14929
14930 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14931
14932         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
14933         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
14934         (my_usleep): Don't mishandle maximum value.
14935
14936 2006-05-19  Jim Meyering  <jim@meyering.net>
14937
14938         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
14939
14940 2006-05-17  Bruno Haible  <bruno@clisp.org>
14941
14942         Cygwin portability.
14943         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
14944
14945 2006-05-17  Bruno Haible  <bruno@clisp.org>
14946
14947         * lib/stdint_.h: Fix recognition of Cygwin.
14948
14949 2006-05-15  Bruno Haible  <bruno@clisp.org>
14950
14951         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
14952         on libtool patch by Ralf Wildenhues.
14953
14954 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
14955
14956         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
14957         test for C99 conformance; (bool) 0.5 is an integer constant
14958         expression, but (bool) -0.5 is not.  Problem reported by Fedor
14959         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
14960
14961 2006-05-11  Simon Josefsson  <jas@extundo.com>
14962
14963         * m4/xvasprintf.m4: Fix obvious typo.
14964
14965 2006-05-11  Jim Meyering  <jim@meyering.net>
14966
14967         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
14968         James Lemley.
14969
14970 2006-05-10  Simon Josefsson  <jas@extundo.com>
14971
14972         * lib/md4.c: Typo fix, update copyright years.
14973         (K1, K2): Don't use L because it turn computations into 64-bit on
14974         64-bit platforms.
14975
14976 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
14977
14978         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
14979         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
14980         unwanted sign propagation, e.g., on hosts with 64-bit int.
14981         There still are some problems with reeelly weird theoretical hosts
14982         (e.g., 33-bit int) but it's not worth worrying about now.
14983         * lib/sha1.c (rol): Likewise.
14984         (K1, K2, K3, K4): Remove unnecessary L suffix.
14985
14986 2006-05-10  Bruno Haible  <bruno@clisp.org>
14987
14988         * lib/des.c: Cast to avoid warnings.
14989
14990 2006-05-09  Bruno Haible  <bruno@clisp.org>
14991
14992         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
14993         (Depends-on): Depend also on xsize, stdarg.
14994         (configure.ac): Add gl_XVASPRINTF.
14995
14996 2006-05-09  Bruno Haible  <bruno@clisp.org>
14997
14998         * m4/xvasprintf.m4: New file.
14999
15000 2006-05-09  Bruno Haible  <bruno@clisp.org>
15001
15002         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
15003         (EOVERFLOW): Define fallback value.
15004         (xstrcat): New function.
15005         (xvasprintf): Recognize the special case of a string concatenation.
15006
15007 2006-05-08  Eric Blake  <ebb9@byu.net>
15008
15009         * gnulib-tool (func_version): Base copyright year on CVS date.
15010         (func_emit_copyright_notice): New function.
15011         (func_emit_lib_Makefile_am): Use it.
15012         (func_emit_tests_Makefile_am): Likewise.
15013         (func_import): Likewise.
15014
15015 2006-05-08  Bruno Haible  <bruno@clisp.org>
15016
15017         * modules/stdarg: New file.
15018         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
15019
15020 2006-05-08  Bruno Haible  <bruno@clisp.org>
15021
15022         * m4/stdarg.m4: New file, from GNU gettext.
15023
15024 2006-05-08  Bruno Haible  <bruno@clisp.org>
15025
15026         * config/srclist.txt (build-aux/config.rpath): different from latest
15027         release.
15028
15029 2006-05-08  Bruno Haible  <bruno@clisp.org>
15030
15031         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
15032
15033 2006-05-05  Jim Meyering  <jim@meyering.net>
15034
15035         * m4/warning.m4: New file, derived from bison's file by the same name.
15036
15037 2006-05-03  Bruno Haible  <bruno@clisp.org>
15038
15039         * lib/stdint_.h: Shorter URL.
15040         * lib/inttypes.h: Likewise.
15041
15042 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
15043
15044         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
15045
15046 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
15047
15048         * lib/verify.h: Document the internals better.  Most of this change
15049         was written by Bruno Haible.
15050
15051 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
15052
15053         * doc/verify.texi: New file, partly based on a proposal by
15054         Bruno Haible.
15055
15056 2006-05-02  Bruno Haible  <bruno@clisp.org>
15057
15058         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
15059         test from here...
15060         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
15061
15062 2006-04-29  Bruno Haible  <bruno@clisp.org>
15063
15064         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
15065         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
15066
15067 2006-04-29  Bruno Haible  <bruno@clisp.org>
15068
15069         * gnulib-tool: Make --update option actually work.
15070
15071 2006-04-29  Bruno Haible  <bruno@clisp.org>
15072
15073         * doc/gcd.texi: New file.
15074         * doc/gnulib.texi: Include it.
15075
15076 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
15077
15078         * lib/getdate.y (get_date): When adding relative date, start with the
15079         initial time, not with the result of the first mktime call.
15080
15081 2006-04-25  Bruno Haible  <bruno@clisp.org>
15082
15083         * gnulib-tool (func_import): Output the include directives in three
15084         blocks, sorted separately.
15085         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15086
15087 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
15088
15089         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
15090         to define main with arguments, for C++.  Reported by Eric Blake.
15091         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
15092         Prefer 'int main ()' to 'int main (void)', for C++.
15093         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15094         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
15095         for 'main', for C99 and C++.
15096
15097 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
15098
15099         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
15100         Don't assume that exit status -1 is valid.
15101         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15102         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15103         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
15104         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
15105         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
15106         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
15107         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
15108         functions can be used without declaring them, or that you can
15109         exit with status -1.
15110         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
15111
15112 2006-04-24  Karl Berry  <karl@gnu.org>
15113
15114         * config/srclist.txt (longdouble.m4): sync lost.
15115
15116 2006-04-24  Eric Blake  <ebb9@byu.net>
15117
15118         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
15119
15120 2006-04-24  Bruno Haible  <bruno@clisp.org>
15121
15122         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
15123         poll() implementation in AIX.
15124         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15125
15126 2006-04-24  Bruno Haible  <bruno@clisp.org>
15127
15128         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
15129         assigned exactly once.
15130
15131 2006-04-23  Claudio Fontana  <claudio@gnu.org>
15132             Bruno Haible  <bruno@clisp.org>
15133
15134         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
15135         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
15136         for AM_CPPFLAGS.
15137
15138 2006-04-23  Bruno Haible  <bruno@clisp.org>
15139
15140         * modules/copy-file: Depend on unistd.
15141         * modules/execute: Likewise.
15142         * modules/fatal-signal: Likewise.
15143         * modules/findprog: Likewise.
15144         * modules/mkdtemp : Likewise.
15145         * modules/pipe: Likewise.
15146         * modules/wait-process: Likewise.
15147
15148 2006-04-23  Bruno Haible  <bruno@clisp.org>
15149
15150         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
15151         condition was already detected.
15152         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15153
15154 2006-04-23  Bruno Haible  <bruno@clisp.org>
15155
15156         * lib/copy-file.c: Include <unistd.h> unconditionally.
15157         * lib/execute.c: Likewise.
15158         * lib/fatal-signal.c: Likewise.
15159         * lib/findprog.c: Likewise.
15160         * lib/mkdtemp.c: Likewise.
15161         * lib/pipe.h: Likewise.
15162         * lib/pipe.c: Likewise.
15163         * lib/wait-process.h: Likewise.
15164
15165 2006-04-23  Bruno Haible  <bruno@clisp.org>
15166
15167         * gnulib-tool (func_usage): Fix --import description. Document
15168         --update.
15169         (func_import): Create temporary file in a temporary directory, if
15170         --dry-run is specified. Silence errors from 'grep' when there are no
15171         m4 files in $m4dir.
15172         (func_create_testdir): Silence errors from 'grep' when there are no
15173         m4 files in $m4dir.
15174         Reported by Karl Berry <karl@freefriends.org>.
15175
15176 2006-04-20  Bruno Haible  <bruno@clisp.org>
15177
15178         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
15179         one argument, so that the code will be portable to Autoconf 2.60.
15180         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
15181         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
15182         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
15183
15184 2006-04-19  Derek Price  <derek@ximbiot.com>
15185             Eric Blake  <ebb9@byu.net>
15186
15187         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
15188         rather than "/full/path.h".  Update comment to match.  Shorten &
15189         generalize m4_translit call via AS_TR_CPP.
15190
15191 2006-04-19  Derek Price  <derek@ximbiot.com>
15192             Eric Blake  <ebb9@byu.net>
15193
15194         * lib/inttypes.h: Correct grammar in comment.
15195
15196 2006-04-18  Derek Price  <derek@ximbiot.com>
15197             Paul Eggert  <eggert@cs.ucla.edu>
15198
15199         * modules/inttypes: New file.
15200         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
15201
15202 2006-04-18  Derek Price  <derek@ximbiot.com>
15203             Paul Eggert  <eggert@cs.ucla.edu>
15204
15205         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
15206         New files.
15207
15208 2006-04-18  Derek Price  <derek@ximbiot.com>
15209             Paul Eggert  <eggert@cs.ucla.edu>
15210
15211         * lib/inttypes.h: New file.
15212         * lib/strtoimax.c: Assume <inttypes.h>.
15213
15214 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
15215
15216         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
15217         isn't mounted.  Problem reported by Kir Kolyshkin.
15218
15219 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
15220
15221         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
15222         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
15223         Derek R. Price.
15224         * lib/regex.h (RE_DUP_MAX): Update comment to match current
15225         implementation.
15226
15227 2006-04-12  Eric Blake  <ebb9@byu.net>
15228
15229         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
15230         is now done automatically by the corresponding Autoconf macro.
15231
15232 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
15233
15234         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
15235         time_r.h.
15236
15237 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
15238
15239         Merge regex changes from libc, removing some of our
15240         POSIX-conformance changes that were rejected and redoing them in a
15241         less-intrusive way.
15242
15243         * lib/regcomp.c (re_compile_internal, init_dfa):
15244         Length arg is now size_t, not Idx.  All uses changed.
15245         (peek_token): Forward decl now says internal_function.
15246         (__re_error_msgid, __re_error_msgid_idx):
15247         Now static rather than extern with attribute_hidden.
15248         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
15249         For some reason libc prefers K&R style defns for external functions.
15250         (regerror) [!defined _LIBC]: Likewise.
15251         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
15252         (seek_collating_symbol_entry, lookup_collation_sequence_value):
15253         (build_range_exp, build_collating_symbol):
15254         Use K&R-style defn.
15255         (re_compile_fastmap): Use '\0' to memset, not 0.
15256         (utf8_sb_map): Make the calculations more obvious.
15257         (init_dfa, parse_bracket_exp, build_charclass_op):
15258         Call calloc and cast result, as glibc does.
15259         (init_word_char, fetch_token, peek_token, peek_token_bracket):
15260         (build_range_exp, build_collating_symbol):
15261         Now internal functions.
15262
15263         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
15264
15265         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
15266         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
15267         Don't depend on VMS; depend on __VMS instead, for POSIX
15268         namespace cleanness.
15269         (regoff_t): Define to ssize_t, not long int.
15270
15271         Remove the REG_ macros named below.  Instead, make the old names
15272         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
15273         __USE_GNU_REGEX.
15274         (REG_BACKSLASH_ESCAPE_IN_LISTS):
15275         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
15276         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
15277         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
15278         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
15279         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
15280         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
15281         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
15282         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
15283         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
15284         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
15285         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
15286         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
15287         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
15288         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
15289         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
15290         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
15291         (REG_NREGS):
15292         Remove.  All uses replaced by the old RE_* names.
15293         (RE_BACKSLASH_ESCAPE_IN_LISTS):
15294         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
15295         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
15296         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
15297         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
15298         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
15299         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
15300         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
15301         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
15302         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
15303         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
15304         Don't bother having these macros be independent of each others'
15305         values, since they no longer exist in the POSIX name space.
15306
15307         Rename the following member names back to their old names,
15308         unless !__USE_GNU_REGEX.  All uses changed back.
15309         (buffer): Renamed from re_buffer.
15310         (allocated): Renamed from re_allocated.
15311         (used): Renamed from re_used.
15312         (syntax): Renamed from re_syntax.
15313         (fastmap): Renamed from re_fastmap.
15314         (translate): Renamed from re_translate.
15315         (can_be_null): Renamed from re_can_be_null.
15316         (regs_allocated): Renamed from re_regs_allocated.
15317         (fastmap_accurate): Renamed from re_fastmap_accurate.
15318         (no_sub): Renamed from re_no_sub.
15319         (not_bol): Renamed from re_not_bol.
15320         (not_eol): Renamed from re_not_eol.
15321         (newline_anchor): Renamed from re_newline_anchor.
15322         (num_regs): Renamed from rm_num_regs.
15323         (start): Renamed from rm_start.
15324         (end): Renamed from rm_end.
15325
15326         (free_state): Move up a bit.
15327
15328         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
15329         #define to be empty.
15330         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
15331         when that is what is intended.
15332         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
15333         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
15334         (MAX): New macro.
15335         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
15336         All uses changed back to re_malloc, etc.  It's now the caller's
15337         responsibility to check for overflow; all callers changed.
15338         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
15339         (re_x2nrealloc): Remove.
15340         (free_state): Remove decl.
15341
15342         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
15343         (re_set_registers, re_exec):
15344         Use K&R-style defn.
15345
15346         2006-01-31  Roland McGrath  <roland@redhat.com>
15347
15348         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
15349         Reported by Mike Frysinger <vapier@gentoo.org>.
15350
15351         2006-01-15  Andreas Jaeger  <aj@suse.de>
15352
15353         [BZ #1950]
15354         * lib/regex_internal.c (re_string_reconstruct): Adjust for
15355         build_wcs_upper_buffer change.
15356         (build_wcs_upper_buffer): Change return type.
15357
15358         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
15359
15360         * lib/regex_internal.h: Include <stdint.h> if available.
15361
15362         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
15363
15364         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
15365
15366         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
15367
15368         * lib/regcomp.c: Adjust for changed secondary hash function.
15369
15370         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
15371
15372         * lib/regex.h: Pretty printing.
15373         Clean up namespace a bit.
15374
15375         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
15376
15377         * lib/regexec.c (update_cur_sifted_state, check_arrival,
15378         check_arrival_add_next_nodes): Avoid using uninitialized variable.
15379
15380         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
15381                     Ulrich Drepper  <drepper@redhat.com>
15382
15383         [BZ #1302]
15384         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
15385         changed.
15386         (bitset_word_t): Renamed from bitset_word.  All uses changed.
15387
15388         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
15389
15390         [BZ #281]
15391         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
15392         * lib/regcomp.c: Remove unnecessary uses of
15393         unsigned RE_TRANSLATE_TYPE.
15394         * lib/regex_internal.h: Likewise.
15395         * lib/regex_internal.c: Likewise.
15396         * lib/regexec.c: Likewise.
15397         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
15398
15399         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
15400
15401         * lib/regexec.c (find_recover_state): Remove unnecessary
15402         initialization.
15403         (transit_state_bkref): Make DFA a const pointer.
15404         (get_subexp): Likewise.
15405         (check_arrival): Likewise.
15406         (update_cur_sifted_state): Likewise.
15407         (re_search_internal): Likewise.
15408         (prune_impossible_nodes): Likewise.
15409         (acquire_init_state_context): Likewise.
15410         (proceed_next_node): Likewise.
15411         (set_regs): Likewise.
15412         (free_fail_stack_return): Likewise.
15413         (check_arrival_expand_ecl): Mark DFA parameter as const.
15414         (check_arrival_expand_ecl_sub): Likewise.
15415         (check_subexp_limits): Likewise.
15416         (sub_epsilon_src_nodes):  Likewise.
15417         (add_epsilon_src_nodes):  Likewise.
15418         (merge_state_array): Likewise.
15419         (update_regs): Likewise.
15420         (build_trtable): Likewise.
15421         (sift_states_backward): Mark MCTX parameter as const.
15422         (build_sifted_states): Likewise.
15423         (update_cur_sifted_state): Likewise.
15424         (sift_states_mkref): Likewise.
15425         (check_arrival_expand_ecl): Mark eclosure as const.
15426         (check_dst_limits_calc_pos_1): Likewise.
15427         * lib/regex_internal.h (re_match_context_t): Make dfa a const
15428         pointer.
15429
15430         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
15431
15432         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
15433         (transit_state_sb): Likewise.
15434         (transit_state_mb): Likewise.
15435         (sift_states_iter_mb): Likewise.
15436         (check_arrival_add_next_nodes): Likewise.
15437         (check_node_accept_bytes): Change first parameter to pointer-to-const.
15438         [_LIBC] (re_search_2_stub): Use mempcpy.
15439
15440         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
15441         mbrtowc for very simple UTF-8 case.
15442
15443         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
15444         a pointer-to-const.
15445         (re_acquire_state_context): Likewise.
15446         * lib/regex_internal.h: Adjust prototypes.
15447
15448         * lib/regex.c: Prevent using C++ compilers.
15449
15450         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
15451         (re_acquire_state_context): Likewise.
15452
15453 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
15454
15455         * modules/regex (Depends-on): Add ssize_t.
15456
15457 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
15458
15459         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
15460         translation table.
15461
15462 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
15463
15464         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
15465
15466 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
15467             Bruno Haible  <bruno@clisp.org>
15468
15469         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
15470         <sys/types.h> and <inttypes.h>.
15471
15472 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15473
15474         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
15475         `__error_t_defined', so argp.h will not typedef the former.
15476
15477 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
15478
15479         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
15480         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
15481         glibc names.  Even if glibc is changed to conform to POSIX, the
15482         traditional names will be available anyway, since regex depends on
15483         the extensions module.  Also, fix a longstanding typo in the
15484         implementation of Spencer ERE test #75 from grep 2.3.  Problems
15485         reported by Emanuele Giaquinta.  Also, change sense of cached
15486         variable, so that the message makes sense.
15487
15488 2006-03-24  Simon Josefsson  <jas@extundo.com>
15489
15490         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
15491         including some doc fixes.
15492         (base64_encode_alloc): Fix +1 bug on allocation failures.
15493
15494 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15495
15496         * lib/base64.c (base64_encode): Do not read past end of array with
15497         unsanitized input on systems with CHAR_BIT > 8.
15498
15499 2006-03-24  Eric Blake  <ebb9@byu.net>
15500
15501         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
15502
15503 2006-03-22  Karl Berry  <karl@gnu.org>
15504
15505         * config/srclist.txt (*setenv.[ch]): get from coreutils.
15506         * config/srclistvars.sh (COREUTILS): new var.
15507
15508 2006-03-17  Jim Meyering  <jim@meyering.net>
15509
15510         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
15511         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
15512
15513 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
15514
15515         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
15516         no longer needs it.  Instead, check that regoff_t is as least
15517         as wide as ptrdiff_t.
15518
15519         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
15520         so that our regex.h stays compatible with the installed regex.
15521         This is helpful for installers who configure --without-included-regex.
15522         Problem reported by Emanuele Giaquinta.
15523
15524 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
15525
15526         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
15527         Typedef to long int, not to off_, as POSIX will likely change
15528         in that direction.
15529
15530 2006-03-15  Eric Blake  <ebb9@byu.net>
15531
15532         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
15533
15534 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
15535
15536         * lib/argp-help.c (validate_uparams): Fix typo
15537         * lib/argp-parse.c (argp_default_options): Consistently begin help
15538         messages with a lowercase letter.
15539
15540 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
15541
15542         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
15543         overrun buffers and shouldn't be used (much as gets shouldn't be
15544         used).
15545         * lib/time_r.c (asctime_r, ctime_r): Likewise.
15546
15547 2006-03-08  Simon Josefsson  <jas@extundo.com>
15548
15549         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
15550         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15551
15552 2006-03-08  Simon Josefsson  <jas@extundo.com>
15553
15554         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
15555         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15556
15557 2006-03-08  Simon Josefsson  <jas@extundo.com>
15558
15559         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
15560         signal that configure disabled the device.
15561
15562 2006-03-08  Simon Josefsson  <jas@extundo.com>
15563
15564         * build-aux/maint.mk: Fix refresh-po, to handle no translated
15565         languages.
15566
15567 2006-03-07  Simon Josefsson  <jas@extundo.com>
15568
15569         * modules/getopt (Depends-on): Add unistd.
15570
15571         * modules/unistd: New file.
15572
15573 2006-03-07  Simon Josefsson  <jas@extundo.com>
15574
15575         * modules/gc-random: New file.
15576
15577 2006-03-07  Simon Josefsson  <jas@extundo.com>
15578
15579         * m4/unistd_h.m4: New file.
15580
15581 2006-03-07  Simon Josefsson  <jas@extundo.com>
15582
15583         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
15584         test to be side-effect free by storing the result in the cache
15585         variable gl_cv_lib_readline, and moving the assignment of
15586         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
15587         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15588
15589 2006-03-07  Simon Josefsson  <jas@extundo.com>
15590
15591         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
15592         error on missing devices (the functions will return an error).
15593
15594         * m4/gc.m4: Move random stuff to gc-random.m4
15595
15596 2006-03-07  Simon Josefsson  <jas@extundo.com>
15597
15598         * lib/unistd_.h: New file.
15599
15600 2006-03-07  Simon Josefsson  <jas@extundo.com>
15601
15602         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
15603
15604 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
15605
15606         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
15607         Problem reported by Juan Manuel Guerrero.
15608
15609 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
15610
15611         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
15612         the unistd module.
15613         * lib/getlogin_r.c: Likewise.
15614         * lib/getlogin_r.h: Likewise.
15615         * lib/glob.c: Likewise.
15616         * lib/pagealign_alloc.c: Likewise.
15617         * lib/unistd_.h: Remove; no longer needed.
15618
15619 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
15620
15621         * MODULES.html.sh (Support for systems lacking POSIX:2001):
15622         Add unistd.
15623         * modules/c-stack (Depends-on): Add unistd.
15624         * modules/getlogin_r: Likewise.
15625         * modules/glob: Likewise.
15626         * modules/pagealign_alloc: Likewise.
15627         * modules/unistd (Files): Remove lib/unistd_.h.
15628         (EXTRA_DIST): Remove.
15629         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
15630         need unistd_.h.
15631         (MOSTLYCLEANFILES): Remove unistd.h-t.
15632
15633 2006-03-03  Simon Josefsson  <jas@extundo.com>
15634
15635         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
15636
15637 2006-03-03  Simon Josefsson  <jas@extundo.com>
15638
15639         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
15640         libidn and bison.
15641
15642 2006-03-03  Simon Josefsson  <jas@extundo.com>
15643
15644         * build-aux/maint.mk: Add indent target.
15645
15646 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
15647
15648         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
15649         our replacement poll.h in any case, to avoid a differing
15650         declaration from a system header.  Seen on AIX.
15651
15652 2006-03-01  Simon Josefsson  <jas@extundo.com>
15653
15654         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
15655         <kasal@ucw.cz>.
15656
15657 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
15658
15659         * modules/gettime (Depends-on): Add extensions module.
15660         * modules/nanosleep (Depends-on): Likewise.
15661         * modules/settime (Depends-on): Likewise.
15662
15663 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
15664
15665         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
15666         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
15667         pedantically.
15668         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15669         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
15670
15671         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
15672         not "==".  Reported by Ralf Wildenhues.
15673
15674 2006-03-01  Karl Berry  <karl@gnu.org>
15675
15676         * doc/Copyright/request-*: new files, synced from gnuorg.
15677
15678 2006-03-01  Karl Berry  <karl@gnu.org>
15679
15680         * config/srclist.txt (Copyright/*): new entries.
15681
15682 2006-02-28  Simon Josefsson  <jas@extundo.com>
15683
15684         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
15685
15686 2006-02-27  Simon Josefsson  <jas@extundo.com>
15687
15688         * lib/base64.h: Indent #define's.  From Jim Meyering
15689         <jim@meyering.net>.
15690
15691 2006-02-27  Jim Meyering  <jim@meyering.net>
15692
15693         Revert the change of 2006-02-24, so these files can continue
15694         to be sync'd from gettext.
15695         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
15696         of `config.h'.
15697
15698 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
15699
15700         * modules/intprops: New file.
15701         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
15702         Add intprops.
15703         * modules/getloadavg (Files): Remove lib/intprops.h.
15704         (Depends-on): Add intprops.
15705         * modules/human: Likewise.
15706         * modules/inttostr: Likewise.
15707         * modules/openat: Likewise.
15708         * modules/sig2str: Likewise.
15709         * modules/userspec: Likewise.
15710         * modules/utimecmp: Likewise.
15711         * modules/xnanosleep: Likewise.
15712         * modules/xstrtol: Likewise.
15713
15714 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
15715
15716         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
15717         * modules/lock-tests (TESTS): Use $(EXEEXT).
15718         * modules/tls-tests: Likewise.
15719         * modules/argp-tests: Likewise.
15720         (check_PROGRAMS): New var, replacing...
15721         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
15722
15723 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15724
15725         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
15726         `config.h'.
15727
15728 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15729
15730         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
15731
15732 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15733
15734         Sync from coreutils.
15735         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
15736         gl_CHDIR_SAFER.
15737
15738 2006-02-22  Jim Meyering  <jim@meyering.net>
15739
15740         Sync from coreutils.
15741         * m4/chdir-safer.m4: New file.
15742
15743 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
15744
15745         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
15746         AT_FDCWD exceeds INT_MAX.
15747         * lib/openat.h (AT_FDCWD): Likewise.
15748
15749 2006-02-17  Eric Blake  <address@hidden>
15750
15751         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
15752
15753 2006-02-16  Simon Josefsson  <jas@extundo.com>
15754
15755         * modules/getaddrinfo (Depends-on): Add sys_socket.
15756
15757 2006-02-15  Simon Josefsson  <jas@extundo.com>
15758
15759         * build-aux/maint.mk: Add dsyntax-check rule.
15760
15761 2006-02-15  Eric Blake  <ebb9@byu.net>
15762
15763         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
15764         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
15765         'present but cannot compile' warnings on cygwin.
15766         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
15767         use ws2tcpip.h if sys/socket.h works.
15768         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
15769         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
15770
15771 2006-02-14  Simon Josefsson  <jas@extundo.com>
15772
15773         * modules/maintainer-makefile (Files): Rename.
15774
15775         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
15776         and (the local) Makefile.cfg to maint-cfg.mk.
15777
15778         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
15779         to the latter.
15780
15781         * modules/maintainer-makefile: New module.
15782
15783         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
15784         severaly stripped to make it possible to build it up from scratch
15785         with reliable tests.
15786
15787         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
15788         fixes to permit overriding the default actions when configure and
15789         makefile are not available.
15790
15791 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
15792
15793         Sync from coreutils.
15794         * modules/lstat (Depends-on): Don't depend on xalloc.
15795         (License): Change from GPL to LGPL, since this is now simply a
15796         replacement for a libc function.
15797
15798 2006-02-14  Jim Meyering  <jim@meyering.net>
15799
15800         Sync from coreutils.
15801
15802         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
15803         failure on deficient systems, and simplify gnulib lgpl dependencies.
15804         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
15805         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
15806
15807         * lib/xalloc-die.c: Remove unused definition of N_.
15808
15809 2006-02-14  Jim Meyering  <jim@meyering.net>
15810
15811         Sync from coreutils.
15812         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
15813         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
15814         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
15815         double-quote uses of that variable, to accommodate the rare case in
15816         which getmntent is available in none of the libraries checked.  This
15817         happens at least on FreeBSD 5.0.
15818
15819 2006-02-13  Simon Josefsson  <jas@extundo.com>
15820
15821         * gnulib-tool (Usage): Fix --import, from
15822         karl@freefriends.org (Karl Berry).
15823
15824 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
15825
15826         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
15827
15828 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
15829
15830         * lib/argp-namefrob.h: Restore changes accidentally lost during the
15831         "autoupdate" on 2005-12-12.
15832
15833 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
15834
15835         * modules/closeout (Depends-on): Remove atexit.
15836
15837 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
15838
15839         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
15840         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
15841
15842 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
15843
15844         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
15845         __EXTENSIONS__ if this causes compilation to fail.  Problem
15846         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
15847         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
15848
15849 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
15850
15851         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
15852         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
15853         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
15854         All uses changed.
15855
15856 2006-01-26  Simon Josefsson  <jas@extundo.com>
15857
15858         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
15859         prototype is visible on mingw32.
15860
15861         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
15862         for mingw32.
15863
15864         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
15865         mingw32).
15866
15867 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
15868
15869         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
15870         attempt to open for write; this always fails, at least on POSIX
15871         hosts.  This reinstates the 2006-01-09 change, which was
15872         inadvertently removed.
15873
15874 2006-01-26  Bruno Haible  <bruno@clisp.org>
15875
15876         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
15877         Reported by Paul Eggert.
15878
15879 2006-01-26  Bruno Haible  <bruno@clisp.org>
15880             Paul Eggert  <eggert@cs.ucla.edu>
15881
15882         * lib/stdbool_.h (_Bool)
15883         [(! (defined __cplusplus || defined __BEOS__)
15884           && !defined __GNUC__
15885           && !(defined __HP_cc || defined __xlc__
15886                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
15887                || defined __sgi))]:
15888         #define to signed char in these cases too; this simplifies
15889         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
15890         etc., separately) and makes it more conservative.
15891
15892 2006-01-25  Simon Josefsson  <jas@extundo.com>
15893
15894         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
15895         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
15896         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
15897
15898 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
15899
15900         * lib/argp-namefrob.h: Bugfix. Remove stray #
15901
15902 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
15903
15904         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
15905         so that we test the test.
15906         Check for yet another HP-UX cc bug involving *bool |= bool.
15907
15908 2006-01-25  Karl Berry  <karl@gnu.org>
15909
15910         * config/srclist.txt (vasnprintf.c): sync lost.
15911
15912 2006-01-25  Jim Meyering  <jim@meyering.net>
15913
15914         Sync from the stable (b5) branch of coreutils:
15915
15916         * lib/fts.c (fts_children): Don't let close() clobber errno from
15917         failed fchdir().
15918
15919         * lib/fts.c (fts_stat): When following a symlink-to-directory,
15920         don't necessarily interpret stat-fails+lstat-succeeds as indicating
15921         a dangling symlink.  That can also happen at least for ELOOP.
15922         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
15923         FYI, this bug predates the inclusion of fts.c in coreutils.
15924
15925         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
15926         in their own block, so pre-c99 compilers don't object.
15927
15928         Avoid the double-free (first in fts_read, second in fts_close) that
15929         would occur when an `active' directory is made inaccessible (e.g.,
15930         via chmod a-x) during a traversal.
15931         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
15932         before returning.  Reproduce this failure by
15933         mkdir -p a/b; cd a; chmod a-x . b
15934         Reported by Stavros Passas.
15935
15936 2006-01-25  Jim Meyering  <jim@meyering.net>
15937
15938         * lib/fileblocks.c: Remove more useless parentheses.
15939         * lib/readutmp.h: Likewise.
15940
15941 2006-01-25  Bruno Haible  <bruno@clisp.org>
15942
15943         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
15944         warnings.
15945         Reported by Paul Eggert.
15946
15947 2006-01-25  Bruno Haible  <bruno@clisp.org>
15948
15949         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
15950         rid of a trap command. For Solaris sh.
15951         Reported by Mark D. Baushke <mdb@gnu.org>.
15952
15953 2006-01-24  Simon Josefsson  <jas@extundo.com>
15954
15955         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
15956         Bruno.
15957
15958 2006-01-24  Karl Berry  <karl@gnu.org>
15959
15960         * config/srclist.txt (argp-namefrob.h): sync lost.
15961
15962 2006-01-24  Jim Meyering  <jim@meyering.net>
15963
15964         * modules/openat (Files): Add lib/intprops.h.
15965         From Mark D. Baushke.
15966
15967 2006-01-24  Jim Meyering  <jim@meyering.net>
15968
15969         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
15970         Reported by Mark D. Baushke.
15971
15972 2006-01-24  Jim Meyering  <jim@meyering.net>
15973
15974         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
15975
15976 2006-01-24  Bruno Haible  <bruno@clisp.org>
15977
15978         * modules/strnlen (Maintainer): Change from glibc to all.
15979
15980 2006-01-24  Bruno Haible  <bruno@clisp.org>
15981
15982         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
15983         Patch by Paul Eggert.
15984
15985 2006-01-24  Bruno Haible  <bruno@clisp.org>
15986
15987         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
15988         already has it.
15989         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
15990         2005-11-26.
15991
15992         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
15993         'signed char' to avoid problems with the built-in _Bool type.
15994         Reported by Paul Eggert on 2005-11-26.
15995
15996 2006-01-24  Bruno Haible  <bruno@clisp.org>
15997
15998         * gnulib-tool (func_import): Avoid constructing complicated sed
15999         expressions inside backquote.
16000         Report and solution by Mark D. Baushke <mdb@gnu.org>.
16001
16002 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
16003
16004         These changes imported from libc.
16005         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
16006         test and two separate function calls.
16007         * lib/strndup.c (__strndup): Add libc_hidden_def.
16008
16009 2006-01-23  Simon Josefsson  <jas@extundo.com>
16010
16011         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
16012         Remove the test_*_SOURCES variable: automake infers it by default.
16013         * modules/tls-tests: Likewise.
16014
16015 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16016
16017         Work around porting bugs reported by Dieter in
16018         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
16019         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
16020         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
16021         Include "getopt.h" first, to check interface.
16022         (getenv): Declare only if defined HAVE_DECL_GETENV &&
16023         !HAVE_DECL_GETENV.
16024         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
16025         (__strndup): Revert to K&R-style function dfns, the glibc style.
16026         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
16027         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
16028         Include strnlen.h first, to get prototype properly.
16029         (strnlen): Renamed from __strnlen.
16030         Remove weak alias.
16031
16032 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16033
16034         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
16035
16036 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16037
16038         * config/srclist.txt: Adjust to reflect glibc reorganization.
16039         This affects only comments.
16040
16041 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
16042
16043          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
16044          Reported by Bruce Korb <bkorb@gnu.org>.
16045
16046 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
16047
16048         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
16049         to pacify gcc -Wswitch-default.
16050
16051 2006-01-22  Bruno Haible  <bruno@clisp.org>
16052
16053         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
16054         temporary buffer for sprintf, take into account the precision also
16055         for 'd', 'i', 'u', 'o', 'x', 'X'.
16056
16057 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
16058
16059         * modules/argp-tests: New module
16060         * tests/test-argp.c: New file
16061         * tests/test-argp-2.sh: New file
16062
16063 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
16064
16065         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
16066         (__argp_base_name): Removed
16067         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
16068         typo.
16069         (__argp_base_name): Provide macro definition or extern declaration
16070         depending on the configuration
16071
16072 2006-01-20  Simon Josefsson  <jas@extundo.com>
16073
16074         * modules/inet_ntop (Depends-on): Depend on sys_socket.
16075
16076 2006-01-20  Simon Josefsson  <jas@extundo.com>
16077
16078         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
16079
16080 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
16081
16082         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
16083         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
16084         Suggested by Bruno Haible.
16085
16086 2006-01-20  Karl Berry  <karl@gnu.org>
16087
16088         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
16089         until changes propagate, I guess.
16090
16091 2006-01-19  Simon Josefsson  <jas@extundo.com>
16092
16093         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
16094
16095 2006-01-19  Simon Josefsson  <jas@extundo.com>
16096
16097         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
16098
16099 2006-01-19  Simon Josefsson  <jas@extundo.com>
16100
16101         * gnulib-tool: Set check_PROGRAMS.
16102
16103         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
16104         modules/des-tests, modules/gc-arcfour-tests,
16105         modules/gc-arctwo-tests, modules/gc-des-tests,
16106         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
16107         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
16108         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
16109         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
16110         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
16111         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
16112         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
16113         test_*_SOURCES.
16114
16115 2006-01-18  Simon Josefsson  <jas@extundo.com>
16116
16117         * modules/socklen (Depends-on): Depend on sys_socket.
16118
16119 2006-01-18  Simon Josefsson  <jas@extundo.com>
16120
16121         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
16122         modules/des-tests, modules/gc-arcfour-tests,
16123         modules/gc-arctwo-tests, modules/gc-des-tests,
16124         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
16125         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
16126         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
16127         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
16128         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
16129         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
16130         $(EXEEXT) to automake TESTS variable, for mingw32.
16131
16132 2006-01-17  Simon Josefsson  <jas@extundo.com>
16133
16134         * modules/socklen (Include): Need sys/socket.h.
16135
16136 2006-01-17  Bruno Haible  <bruno@clisp.org>
16137
16138         * modules/ssize_t (Include): Add <sys/types.h>.
16139
16140 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
16141
16142         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
16143         it's not portable and it doesn't work with cross-compiles.
16144         Problem reported by Bruno Haible.  Fix missing-$ typo in
16145         'test "gl_cv_ignore_unused_libraries" ...' that prevented
16146         -zignore from being used with Sun's C compiler.
16147
16148 2006-01-12  Simon Josefsson  <jas@extundo.com>
16149
16150         * lib/base64.c: Fix warning, reported by Bruno Haible
16151         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
16152
16153 2006-01-12  Bruno Haible  <bruno@clisp.org>
16154
16155         * modules/ldd: New file.
16156         * build-aux/ldd.sh.in: New file.
16157         * MODULES.html.sh (Support for building libraries and executables): Add
16158         ldd.
16159
16160 2006-01-12  Bruno Haible  <bruno@clisp.org>
16161
16162         * m4/ldd.m4: New file.
16163
16164 2006-01-12  Bruno Haible  <bruno@clisp.org>
16165
16166         * gnulib-tool (func_import, func_create_testdir): Don't go into an
16167         endless loop while replacing $auxdir with build-aux.
16168
16169 2006-01-11  Simon Josefsson  <jas@extundo.com>
16170
16171         * lib/stdint_.h (SIZE_MAX): Add missing (.
16172
16173 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16174
16175         Sync from coreutils.
16176         * lib/md5.c: Fix commentary typos.
16177         (alignof, UNALIGNED_P): No need for a GCC-specific version.
16178         * lib/md5.h (__attribute__): Remove; unused.
16179         * lib/sha1.c: Fix commentary to match md5 better.
16180         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
16181         so that we don't need to worry about alignment.  All uses changed.
16182         This merges the 2005-10-28 md5 change into sha1.
16183
16184 2006-01-11  Jim Meyering  <jim@meyering.net>
16185
16186         Sync from coreutils.
16187         * lib/md5.c (OP): Fix spacing.
16188
16189 2006-01-11  Bruno Haible  <bruno@clisp.org>
16190
16191         Ensure automatic ordering between gl_LOCK and gl_ARGP.
16192         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
16193         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
16194
16195 2006-01-11  Bruno Haible  <bruno@clisp.org>
16196
16197         Ensure automatic ordering between gl_LOCK and gl_ARGP.
16198         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
16199         the "early" section as well.
16200
16201 2006-01-11  Bruno Haible  <bruno@clisp.org>
16202
16203         Avoid "ar: no archive members specified" error on MacOS X.
16204         * gnulib-tool (func_modules_add_dummy): New function.
16205         (func_import, func_create_testdir): Invoke it.
16206
16207 2006-01-11  Bruno Haible  <bruno@clisp.org>
16208
16209         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
16210         with $auxdir in AC_CONFIG_FILES statements.
16211
16212 2006-01-11  Bruno Haible  <bruno@clisp.org>
16213
16214         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16215         Initialize also noinst_HEADERS to empty.
16216
16217 2006-01-11  Bruno Haible  <bruno@clisp.org>
16218
16219         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
16220         variables.
16221         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
16222         autoreconf.
16223
16224 2006-01-11  Bruno Haible  <bruno@clisp.org>
16225
16226         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
16227         overridable by the user.
16228         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16229
16230 2006-01-10  Simon Josefsson  <jas@extundo.com>
16231
16232         * modules/sys_socket: New file.
16233
16234 2006-01-10  Simon Josefsson  <jas@extundo.com>
16235
16236         * m4/sys_socket_h.m4: New file.
16237
16238 2006-01-10  Simon Josefsson  <jas@extundo.com>
16239
16240         * lib/socket_.h: New file.
16241
16242 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
16243
16244         * modules/readutmp (Maintainer): Add myself.
16245
16246 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
16247
16248         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
16249         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
16250         People who are still concerned with buggy memcmp implementations
16251         can invoke gl_FUNC_MEMCMP themselves.
16252
16253 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
16254
16255         * lib/regex_internal.h (BITSET_WORD_BITS):
16256         Work around a bug in 64-bit PGC (before version 6.1-2), where the
16257         preprocessor mishandles large unsigned values as if they were signed.
16258         Problem reported by Claudio Fontana in
16259         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
16260
16261 2006-01-10  Jim Meyering  <jim@meyering.net>
16262
16263         Avoid the double-free (first in fts_read, second in fts_close) that
16264         would occur when an `active' directory is made inaccessible (e.g.,
16265         via chmod a-x) during a traversal.
16266         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
16267         before returning.  Reproduce this failure by
16268         mkdir -p a/b; cd a; chmod a-x . b
16269         Reported by Stavros Passas.
16270
16271         Sync from coreutils.
16272         * lib/sha1.c: Tweak grammar in a comment.
16273
16274 2006-01-10  Jim Meyering  <jim@meyering.net>
16275
16276         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
16277         Patch by Joerg Sonnenberger.
16278
16279 2006-01-10  Bruno Haible  <bruno@clisp.org>
16280
16281         * modules/readutmp: Depend on module free.
16282         * modules/strtok_r: Depend on module restrict.
16283
16284 2006-01-10  Bruno Haible  <bruno@clisp.org>
16285
16286         * modules/gettext (configure.ac): Add an invocation of
16287         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
16288
16289 2006-01-10  Bruno Haible  <bruno@clisp.org>
16290
16291         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
16292         Reported by Werner Lemberg <wl@gnu.org>.
16293
16294 2006-01-10  Bruno Haible  <bruno@clisp.org>
16295
16296         * lib/localcharset.c: Update from GNU gettext.
16297
16298 2006-01-10  Bruno Haible  <bruno@clisp.org>
16299
16300         * lib/argp.h (__const): Remove macro. Use const instead.
16301         * lib/argp-fmtstream.h (__const): Likewise.
16302         * lib/glob_.h (__const): Remove macro.
16303         * lib/glob-libc.h: Use const instead of __const.
16304
16305 2006-01-10  Bruno Haible  <bruno@clisp.org>
16306
16307         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
16308         variable.
16309         Needed to avoid an automake error regarding the 'gettext' module.
16310
16311 2006-01-09  Simon Josefsson  <jas@extundo.com>
16312
16313         * modules/inet_ntop (Depends-on): Add restrict.
16314
16315 2006-01-09  Simon Josefsson  <jas@extundo.com>
16316
16317         * modules/gc-rijndael-tests (License): Put under LGPL.
16318
16319         * modules/gc-des-tests (License): Likewise.
16320
16321         * modules/gc-arcfour-tests (License): Likewise.
16322
16323         * modules/gc-arctwo-tests (License): Likewise.
16324
16325         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
16326
16327         * modules/gc-hmac-sha1-tests (Files): Likewise.
16328
16329         * modules/gc-hmac-md5-tests (License): Likewise.
16330
16331         * modules/gc-sha1-tests (License): Likewise.
16332
16333         * modules/gc-md5-tests (License): Likewise.
16334
16335         * modules/gc-md4-tests (License): Likewise.
16336
16337         * modules/gc-md2-tests (License): Likewise.
16338
16339         * modules/gc-tests (License): Likewise.
16340
16341         * modules/des-tests (License): Likewise.
16342
16343         * modules/md4-tests (License): Likewise.
16344
16345         * modules/md2-tests (License): Likewise.
16346
16347 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
16348
16349         Sync from coreutils:
16350
16351         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
16352         * modules/lib-ignore: New file.
16353         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
16354         chdir-safer.m4, lchmod.m4.
16355         * modules/openat: Add mkdirat.c, openat-priv.h.
16356
16357 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
16358
16359         Sync from coreutils.
16360         * m4/lib-ignore.m4: New file.
16361         * m4/lchmod.m4: New file.
16362
16363 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
16364
16365         Sync from coreutils.
16366         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
16367         for write access: POSIX says that must fail.
16368         * lib/fts.c (diropen): Likewise.
16369         * lib/save-cwd.c (save_cwd): Likewise.
16370         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
16371         well, for minor improvements on hosts that lack O_DIRECTORY.
16372         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
16373         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
16374         Fall back on chown if open failed with EACCES.
16375
16376         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
16377         Report an error at compile-time if only a 1-second nominal clock
16378         resolution is found.
16379
16380         * lib/lchmod.h: New file.
16381         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
16382         (make_dir_parents): Use lchown rather than chown, and
16383         lchmod rather than chmod.
16384
16385         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
16386         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
16387         "proc" reported by n0dalus.
16388
16389         * lib/mountlist.c: Include <limits.h>.
16390         (dev_from_mount_options)
16391         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
16392         New function.  It no longer assumes "dev=" has the System V meaning
16393         on Linux (since it doesn't).  It also parses "dev=" more carefully.
16394         (read_file_system_list)
16395         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
16396         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
16397         dev= in that case.
16398
16399         * lib/posixtm.h (PDS_PRE_2000): New macro.
16400         * lib/posixtm.c (year): Arg is now syntax_bits rather than
16401         allow_century.  All usages changed.  Reject dates outside the range
16402         1969-1999 if PDS_PRE_2000 is used.
16403
16404 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
16405
16406         Sync from coreutils.
16407         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
16408         (Time of day items): Mention the possibility of leap seconds.
16409         Problem reported by Dr. David Alan Gilbert.
16410
16411 2006-01-09  Jim Meyering  <jim@meyering.net>
16412
16413         Sync from coreutils.
16414
16415         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
16416
16417         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
16418
16419         * lib/modechange.c (mode_compile): Reject an invalid mode string
16420         that starts with an octal digit.  From Andreas Gruenbacher.
16421
16422         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
16423         and dup to open_safer and dup_safer, respectively.
16424         (openat_permissive): Fix typo in comment.
16425
16426         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
16427         "gettext.h"; either no longer needed or are guaranteed by openat.h.
16428         (_): Remove; no longer needed.
16429         (openat): Renamed from rpl_openat; no need for rpl_openat
16430         since openat.h renames openat for us.
16431         Replace most of the body with a call to openat_permissive,
16432         to avoid duplicate code.
16433         Port to (probably hypothetical) environments were mode_t is
16434         wider than int.
16435         (openat_permissive): Require mode arg, so that we can check
16436         types better.  Put it just after flags.  Change cwd failure
16437         indicator from pointer-to-bool to pointer-to-errno-value.
16438         All callers changed.
16439         Invoke openat_save_fail and/or openat_restore_fail if
16440         cwd_errno is null, so that openat can call us.
16441         (openat_permissive, fdopendir, fstatat, unlinkat):
16442         Simplify errno handling to avoid some duplicate code,
16443         as it's OK to set errno on success.
16444         * lib/openat.h: Revamp code so that function macros depend on
16445         __OPENAT_PREFIX only, not also on AT_FDCWD.
16446         (openat_ro): Remove.  Caller changed to use openat_permissive.
16447         (openat_permissive): Now a macro, if not a function.
16448         (openat_restore_fail, openat_save_fail): Now always functions,
16449         since mkdirat needs them even if __OPENAT_PREFIX is defined.
16450
16451         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
16452         and openat.c.
16453         * lib/mkdirat.c: Include openat-priv.h.
16454         Remove definitions of macros defined therein.
16455         * lib/openat.c: Likewise.
16456
16457         * lib/mkdirat.c (mkdirat): New file and function.
16458         * lib/openat.h (mkdirat): Declare.
16459
16460         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
16461
16462         * lib/openat.h (openat_permissive): Declare.
16463         (openat_ro): Define.
16464
16465         * lib/openat.c (EXPECTED_ERRNO): New macro.
16466         (openat_permissive): New function -- used in remove.c rewrite.
16467         (all functions): Set errno just before returning, only if there
16468         was an actual failure.
16469         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
16470
16471         Emulate openat-family functions using Linux's procfs, if possible.
16472         Idea and some code based on Ulrich Drepper's glibc changes.
16473
16474         * lib/openat.c: (BUILD_PROC_NAME): New macro.
16475         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
16476         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
16477         before falling back on save_cwd and restore_cwd.
16478         (fdopendir, fstatat, unlinkat): Likewise.
16479
16480         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
16481         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
16482
16483         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
16484         as second argument to va_arg.  Otherwise, some versions of gcc
16485         warn that `if this code is reached, the program will abort'.
16486
16487 2006-01-09  Jim Meyering  <jim@meyering.net>
16488
16489         Sync from coreutils.
16490         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
16491         Require openat-priv.h.
16492
16493 2006-01-09  Bruno Haible  <bruno@clisp.org>
16494
16495         * modules/strnlen (Include): Use strnlen.h.
16496
16497 2006-01-09  Bruno Haible  <bruno@clisp.org>
16498
16499         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
16500
16501 2006-01-09  Bruno Haible  <bruno@clisp.org>
16502
16503         * lib/sysexit_.h (EX_OK): New macro.
16504         Suggested by Martin Lambers <marlam@marlam.de>.
16505
16506 2006-01-09  Bruno Haible  <bruno@clisp.org>
16507
16508         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
16509         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
16510
16511 2006-01-09  Bruno Haible  <bruno@clisp.org>
16512
16513         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
16514         numbers.
16515
16516 2006-01-09  Bruno Haible  <bruno@clisp.org>
16517
16518         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
16519         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
16520         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
16521         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
16522
16523 2006-01-09  Bruno Haible  <bruno@clisp.org>
16524
16525         * build-aux/javacomp.sh.in: New file, moved from lib/.
16526         * modules/javacomp-script (Files): Update.
16527         (configure.ac): Add AC_CONFIG_FILES invocation.
16528         (EXTRA_DIST): Remove variable.
16529
16530         * build-aux/javaexec.sh.in: New file, moved from lib/.
16531         * modules/javaexec (Files): Update.
16532         (configure.ac): Add AC_CONFIG_FILES invocation.
16533         (EXTRA_DIST): Remove javaexec.sh.in.
16534
16535         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
16536         * modules/csharpcomp-script (Files): Update.
16537         (configure.ac): Add AC_CONFIG_FILES invocation.
16538         (EXTRA_DIST): Remove variable.
16539
16540         * build-aux/csharpexec.sh.in: New file, moved from lib/.
16541         * modules/csharpexec (Files): Update.
16542         (configure.ac): Add AC_CONFIG_FILES invocation.
16543         (EXTRA_DIST): Remove csharpexec.sh.in.
16544
16545 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
16546
16547         Sync from coreutils.
16548
16549         Add POSIX ACL support
16550         * lib/acl.h (copy_acl, set_acl): Add declarations.
16551         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
16552         systems other than Linux.
16553         (chmod_or_fchmod): New function: use fchmod when possible,
16554         and chmod otherwise.
16555         (file_has_acl): Add a POSIX ACL implementation, with a
16556         Linux-specific subcase.
16557         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
16558         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
16559         acls are unsupported.
16560         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
16561         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
16562         are unsupported.
16563
16564 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
16565
16566         Sync from coreutils.
16567         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
16568
16569 2006-01-07  Bruno Haible  <bruno@clisp.org>
16570
16571         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
16572         gl_EARLY.
16573
16574 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
16575
16576         * lib/strftime.c (tzname): Don't declare if it is already #defined.
16577         Problem reported for Mingw by Mark Junker.
16578
16579 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
16580
16581         * README: Gnulib normally doesn't generate a tarball.
16582
16583 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
16584
16585         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
16586         long int, not int, for nanosecond counts, so that people who are
16587         used to POSIX struct timespec won't be surprised.  Reported by Jim
16588         Meyering.
16589
16590 2005-12-28  Bruno Haible  <bruno@clisp.org>
16591
16592         * build-aux/config.rpath: Update from GNU gettext.
16593
16594 2005-12-16  Jim Meyering  <jim@meyering.net>
16595
16596         * modules/fprintftime: New module.
16597         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
16598
16599 2005-12-16  Jim Meyering  <jim@meyering.net>
16600
16601         * m4/fprintftime.m4: New file.
16602
16603 2005-12-16  Jim Meyering  <jim@meyering.net>
16604
16605         * lib/fprintftime.c, lib/fprintftime.h: New files.
16606
16607 2005-12-15  Simon Josefsson  <jas@extundo.com>
16608
16609         * modules/socklen (configure.ac): Fix M4 macro name, to align with
16610         new m4/socklen.m4.
16611
16612 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
16613
16614         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
16615         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
16616
16617 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
16618
16619         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
16620         * lib/argp-help.c (fill_in_uparams): Check if the constructed
16621         struct uparams is valid. Fall back to the default values if it is
16622         not.
16623
16624 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
16625
16626         * modules/argp (Files): Add argp-pin.c
16627         (Depends-on): dirname
16628         (lib_SOURCES): Add argp-pin.c
16629
16630 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
16631
16632         * m4/argp.m4:  Check if program_invocation_name and
16633         program_invocation_short_name are declared and define appropriate
16634         macros if they are not.
16635
16636 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
16637
16638         * lib/argp-help.c (__argp_base_name): New function
16639         (__argp_short_program_name): Rewrite using __argp_base_name
16640         * lib/argp-namefrob.h: Define program_invocation_name and
16641         program_invocation_short_name if requested
16642         (__argp_base_name): Add prototype
16643         * lib/argp-parse.c (argp_def): Use gettext wrappers
16644         (argp_default_parser): Use __argp_base_name
16645         * lib/argp-pin.c: New file. Defines program_invocation_name and
16646         program_invocation_short_name on systems that lack them.
16647
16648 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
16649
16650         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
16651         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
16652         porting problem reported by Georg Schwarz in
16653         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
16654
16655 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
16656
16657         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
16658         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
16659         porting problem reported by Georg Schwarz in
16660         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
16661
16662 2005-12-05  Bruno Haible  <bruno@clisp.org>
16663
16664         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
16665         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
16666         Reported by Mark Junker <mjscod@gmx.de>.
16667
16668 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
16669
16670         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
16671         Use implementation from Albert Chin, with some
16672         comments/corrections by Stepan Kasal and myself.
16673
16674 2005-12-02  Bruno Haible  <bruno@clisp.org>
16675
16676         * gnulib-tool (func_import): Accept GPLed build tool modules when
16677         --lgpl is given.
16678         * modules/csharpcomp-script: New file.
16679         * modules/csharpcomp: Depend on it.
16680         * modules/javacomp-script: New file.
16681         * modules/javacomp: Depend on it.
16682         Suggested by Simon Josefsson.
16683
16684 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
16685
16686         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
16687         statement, to work around an HP-UX 10.20 compiler bug reported by
16688         Peter O'Gorman.
16689
16690 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
16691
16692         * modules/savedir (Depends-on): Add openat.
16693
16694 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
16695
16696         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
16697         (uintmax_t) [defined uintmax_t]: Do not declare.
16698         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
16699         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
16700         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
16701         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
16702         sake of portability to weird hosts that C allows (though we don't
16703         know of any practical examples).
16704
16705         * lib/savedir.h (fdsavedir): New decl.
16706         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
16707         contains most of the former guts of savedir.
16708         (savedir): Use savedirstream.
16709         Include "openat.h".
16710
16711 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
16712
16713         * modules/obstack (Files): Add m4/ulonglong.m4.
16714         Problem reported by Davide Angelocola.
16715
16716 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
16717
16718         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
16719         coreutils no longer futzes with rounding modes.
16720
16721 2005-11-14  Jim Meyering  <jim@meyering.net>
16722
16723         * lib/mkstemp-safer.c: Include <config.h>, required for possible
16724         replacement of mkstemp.
16725
16726 2005-11-10  Simon Josefsson  <jas@extundo.com>
16727
16728         * lib/readline.c: Remove EOL.
16729
16730 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
16731
16732         * modules/gethrxtime (Depends-on): Add gettime.
16733
16734 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
16735
16736         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
16737         or gettimeofday; no longer needed.
16738
16739 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
16740
16741         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
16742         time business.
16743         (gethrxtime) [! (HAVE_NANOUPTIME
16744         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
16745         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
16746         our own approximation.
16747
16748 2005-11-08  Eric Blake  <ebb9@byu.net>
16749
16750         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
16751
16752 2005-11-08  Eric Blake  <ebb9@byu.net>
16753
16754         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
16755
16756 2005-11-04  Bruno Haible  <bruno@clisp.org>
16757
16758         * gnulib-tool: Implement --update mode.
16759
16760 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
16761
16762         Fix porting problem reported by Theodoros V. Kalamatianos.
16763         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
16764         Don't assume that futimes failing means we must fail.
16765
16766 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
16767
16768         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
16769         variables to suggest the intended function of the PATH_MAX check.
16770
16771 2005-10-30  Kean Johnston  <jkj@sco.com>
16772
16773         Trivial changes to support SCO systems.
16774         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
16775         as PATH_MAX.
16776         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
16777         where __ptr is null when no I/O is pending.
16778
16779 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
16780
16781         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
16782         leave errno alone.  Problem reported by Dmitry V. Levin.
16783
16784 2005-10-28  Simon Josefsson  <jas@extundo.com>
16785
16786         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
16787         Test more.
16788
16789         * tests/test-gc-md2.c, tests/test-md2.c: New files.
16790
16791         * modules/md2, modules/md2-tests: New files.
16792
16793 2005-10-28  Simon Josefsson  <jas@extundo.com>
16794
16795         * m4/inet_ntop.m4: More tests.
16796
16797         * m4/gc-md2.m4, md2.m4: New file.
16798
16799 2005-10-28  Simon Josefsson  <jas@extundo.com>
16800
16801         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
16802         "restrict" keywords, as per POSIX.  Protect the function
16803         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
16804         Don't use K&R prototypes.  Check the sprintf return values.
16805         Re-define EAFNOSUPPORT if not present.  Indent.
16806
16807         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
16808         suggested by Bruno Haible <bruno@clisp.org>.
16809
16810         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
16811
16812         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
16813
16814         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
16815         libgcrypt).
16816
16817         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
16818
16819         * lib/md2.h, lib/md2.c: New files.
16820
16821 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
16822
16823         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
16824         errno alone.  Problem reported by Frederic Jolliton.
16825
16826 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
16827
16828         * modules/verify (License): Change from GPL to LGPL.  This is a
16829         tiny module and there are apparently near-equivalents that are
16830         under the BSD license.
16831
16832 2005-10-24  Simon Josefsson  <jas@extundo.com>
16833
16834         * modules/sha1: Relicense to LGPL.
16835
16836 2005-10-24  Simon Josefsson  <jas@extundo.com>
16837
16838         * lib/md4.h: Shrink buffer size, now that we changed the type.
16839
16840 2005-10-23  Simon Josefsson  <jas@extundo.com>
16841
16842         * gnulib-tool (func_import): Fix --tests-base.
16843
16844 2005-10-22  Simon Josefsson  <jas@extundo.com>
16845
16846         * modules/arcfour (Depends-on): Need stdint.
16847
16848 2005-10-22  Simon Josefsson  <jas@extundo.com>
16849
16850         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
16851         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
16852
16853 2005-10-22  Simon Josefsson  <jas@extundo.com>
16854
16855         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
16856         suggested by Bruno Haible <bruno@clisp.org>.
16857
16858 2005-10-22  Simon Josefsson  <jas@extundo.com>
16859
16860         * lib/crc.h: Include stddef.h, for size_t.
16861
16862 2005-10-22  Simon Josefsson  <jas@extundo.com>
16863
16864         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
16865         arcfour_context struct (simplify test vector testing in GNU
16866         Shishi).
16867
16868 2005-10-21  Simon Josefsson  <jas@extundo.com>
16869
16870         * modules/des, modules/des-tests: New files.
16871
16872         * modules/gc-des, modules/gc-des-tests: New files.
16873
16874         * tests/test-des.c, tests/test-gc-des.c: New file.
16875
16876 2005-10-21  Simon Josefsson  <jas@extundo.com>
16877
16878         * modules/arctwo, modules/arctwo-tests: New files.
16879
16880         * tests/test-arctwo.c: New file.
16881
16882         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
16883
16884         * tests/test-gc-arctwo.c: New file.
16885
16886 2005-10-21  Simon Josefsson  <jas@extundo.com>
16887
16888         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
16889         Bruno Haible <bruno@clisp.org>.
16890
16891         * m4/gc-des.m4: New file.
16892
16893 2005-10-21  Simon Josefsson  <jas@extundo.com>
16894
16895         * m4/arctwo.m4: New file.
16896
16897         * m4/gc-arctwo.m4: New file.
16898
16899 2005-10-21  Simon Josefsson  <jas@extundo.com>
16900
16901         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
16902         block.
16903
16904 2005-10-21  Simon Josefsson  <jas@extundo.com>
16905
16906         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
16907         <bruno@clisp.org>.
16908
16909         * lib/hmac-sha1.c (hmac_sha1): Likewise.
16910
16911         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
16912         Bruno Haible <bruno@clisp.org>.
16913
16914         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
16915         <bruno@clisp.org>.
16916
16917 2005-10-21  Simon Josefsson  <jas@extundo.com>
16918
16919         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
16920
16921 2005-10-21  Simon Josefsson  <jas@extundo.com>
16922
16923         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
16924
16925 2005-10-21  Simon Josefsson  <jas@extundo.com>
16926
16927         * lib/des.h, lib/des.c: New files.
16928
16929         * lib/gc-gnulib.c: Support DES.c
16930
16931 2005-10-21  Simon Josefsson  <jas@extundo.com>
16932
16933         * lib/arctwo.h, lib/arctwo.c: New files.
16934
16935         * lib/gc-gnulib.c: Support ARCTWO.
16936
16937 2005-10-21  Simon Josefsson  <jas@extundo.com>
16938
16939         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
16940         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16941
16942 2005-10-21  Simon Josefsson  <jas@extundo.com>
16943
16944         * gnulib-tool (func_import, func_create_testdir): Define automake
16945         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
16946         Makefile.am snippet),
16947         suggested by Bruno Haible <bruno@clisp.org>.
16948
16949         * modules/gc (Makefile.am): Use it.
16950
16951 2005-10-21  Bruno Haible  <bruno@clisp.org>
16952
16953         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
16954         patch.
16955
16956 2005-10-19  Simon Josefsson  <jas@extundo.com>
16957
16958         * tests/test-gc-rijndael.c: New file.
16959
16960         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
16961
16962 2005-10-19  Simon Josefsson  <jas@extundo.com>
16963
16964         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
16965         interface too.
16966
16967 2005-10-19  Simon Josefsson  <jas@extundo.com>
16968
16969         * tests/test-gc-arcfour.c: New file.
16970
16971         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
16972
16973 2005-10-19  Simon Josefsson  <jas@extundo.com>
16974
16975         * modules/gc-md4, modules/gc-md4-tests: New file.
16976
16977         * tests/test-gc-md4.c: New file.
16978
16979 2005-10-19  Simon Josefsson  <jas@extundo.com>
16980
16981         * m4/gc-md4.m4: New file.
16982
16983 2005-10-19  Simon Josefsson  <jas@extundo.com>
16984
16985         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
16986         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
16987         <kasal@ucw.cz>.
16988
16989 2005-10-19  Simon Josefsson  <jas@extundo.com>
16990
16991         * m4/gc-arcfour.m4: New file.
16992
16993         * m4/gc-rijndael.m4: New file.
16994
16995 2005-10-19  Simon Josefsson  <jas@extundo.com>
16996
16997         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
16998
16999 2005-10-19  Simon Josefsson  <jas@extundo.com>
17000
17001         * lib/gc-gnulib.c: Support ARCFOUR.
17002
17003 2005-10-19  Simon Josefsson  <jas@extundo.com>
17004
17005         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
17006         support.
17007
17008         * lib/gc.h: Add ECB enum type.
17009
17010         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
17011
17012 2005-10-18  Simon Josefsson  <jas@extundo.com>
17013
17014         * tests/test-md5.c: New file.
17015
17016         * modules/md5-tests: New file.
17017
17018 2005-10-18  Simon Josefsson  <jas@extundo.com>
17019
17020         * tests/test-md4.c: New file.
17021
17022         * modules/md4, modules/md4-tests: New files.
17023
17024 2005-10-18  Simon Josefsson  <jas@extundo.com>
17025
17026         * m4/md4.m4: New file.
17027
17028 2005-10-18  Simon Josefsson  <jas@extundo.com>
17029
17030         * lib/md4.h, lib/md4.c: New files, based on md5.?.
17031
17032 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
17033
17034         * gnulib-tool (func_create_testdir): Omit the second check whether
17035         BUILT_SOURCES in nonempty.
17036
17037 2005-10-17  Simon Josefsson  <jas@extundo.com>
17038
17039         * tests/test-rijndael.c: New file.
17040
17041 2005-10-17  Simon Josefsson  <jas@extundo.com>
17042
17043         * modules/sha1: Depend on stdint instead of md5.
17044
17045         * modules/md5: Depend on stdint, remove uint32_t.
17046
17047 2005-10-17  Simon Josefsson  <jas@extundo.com>
17048
17049         * modules/gc-sha1-tests: New file.
17050
17051         * tests/test-gc-sha1.c: New file.
17052
17053 2005-10-17  Simon Josefsson  <jas@extundo.com>
17054
17055         * m4/md5.m4: Remove call to uint32_t.m4.
17056
17057 2005-10-17  Simon Josefsson  <jas@extundo.com>
17058
17059         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
17060
17061         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
17062         md5.h.
17063
17064         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
17065
17066         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
17067
17068 2005-10-17  Simon Josefsson  <jas@extundo.com>
17069
17070         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
17071
17072 2005-10-17  Simon Josefsson  <jas@extundo.com>
17073
17074         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
17075
17076 2005-10-17  Simon Josefsson  <jas@extundo.com>
17077
17078         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
17079
17080         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
17081
17082 2005-10-17  Bruno Haible  <bruno@clisp.org>
17083
17084         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
17085         that it can also be used in a test.
17086
17087 2005-10-16  Bruno Haible  <bruno@clisp.org>
17088
17089         * gnulib-tool (func_emit_tests_Makefile_am): Also define
17090         TESTS_ENVIRONMENT, so that individual tests can augment it.
17091
17092         * gnulib-tool (func_create_testdir): Use an intermediate target for
17093         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
17094         macros, like $(ALLOCA_H), which cannot be passed through the command
17095         line.
17096
17097 2005-10-15  Simon Josefsson  <jas@extundo.com>
17098
17099         * modules/rijndael-tests: New file.
17100
17101         * modules/rijndael: New file.
17102
17103 2005-10-15  Simon Josefsson  <jas@extundo.com>
17104
17105         * m4/rijndael.m4: New file.
17106
17107 2005-10-15  Simon Josefsson  <jas@extundo.com>
17108
17109         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
17110
17111         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
17112
17113 2005-10-14  Simon Josefsson  <jas@extundo.com>
17114
17115         * tests/test-arcfour.c: New file.
17116
17117         * modules/arcfour, modules/arcfour-tests: New files.
17118
17119 2005-10-14  Simon Josefsson  <jas@extundo.com>
17120
17121         * m4/arcfour.m4: New file.
17122
17123 2005-10-14  Simon Josefsson  <jas@extundo.com>
17124
17125         * lib/arcfour.h, lib/arcfour.c: New files.
17126
17127 2005-10-14  Roland McGrath  <roland@redhat.com>
17128
17129         Import from libc.  [BZ #1331]
17130         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
17131         macro argument.
17132         Reported by Matej Vela <vela@debian.org>.
17133
17134 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
17135
17136         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
17137         include <wchar.h>; no longer needed.
17138
17139 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
17140
17141         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
17142
17143 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
17144         and  Ulrich Drepper  <drepper@redhat.com>
17145
17146         Import from libc.
17147         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
17148         instead of inline stream orientation test and two separate
17149         function calls.  Pay no attention to USE_IN_LIBIO.
17150
17151 2005-10-13  Simon Josefsson  <jas@extundo.com>
17152
17153         * modules/gc-hmac-md5-tests: New file.
17154
17155         * tests/test-gc-hmac-sha1.c: New file.
17156
17157         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
17158
17159         * modules/gc-hmac-md5-tests: New file.
17160
17161         * tests/test-gc-md5.c: New file.
17162
17163         * modules/gc-md5-tests: New file.
17164
17165 2005-10-13  Simon Josefsson  <jas@extundo.com>
17166
17167         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
17168         Move memory allocation outside of loop.
17169
17170 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
17171
17172         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
17173         intermediate directory is in a read-only file system.  Problem
17174         reported by Eric Blake.
17175
17176 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
17177
17178         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
17179
17180 2005-10-12  Simon Josefsson  <jas@extundo.com>
17181
17182         * tests/test-hmac-sha1.c: New file.
17183
17184         * modules/hmac-sha1-tests: New file.
17185
17186         * modules/hmac-sha1: New file.
17187
17188 2005-10-12  Simon Josefsson  <jas@extundo.com>
17189
17190         * modules/gc-sha1: New file.
17191
17192 2005-10-12  Simon Josefsson  <jas@extundo.com>
17193
17194         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
17195
17196         * tests/test-gc-pbkdf2-sha1.c: New file.
17197
17198 2005-10-12  Simon Josefsson  <jas@extundo.com>
17199
17200         * modules/gc-md5, modules/gc-hmac-md5: New files.
17201
17202         * modules/gc (Files): Remove md5, memxor and hmac files.
17203
17204 2005-10-12  Simon Josefsson  <jas@extundo.com>
17205
17206         * m4/gc-pbkdf2-sha1.m4: New file.
17207
17208         * m4/gc-hmac-sha1.m4: New file.
17209
17210         * m4/gc-sha1: New file.
17211
17212         * m4/hmac-sha1.m4: New file.
17213
17214 2005-10-12  Simon Josefsson  <jas@extundo.com>
17215
17216         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
17217
17218         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
17219
17220 2005-10-12  Simon Josefsson  <jas@extundo.com>
17221
17222         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
17223         suggested by Bruno Haible <bruno@clisp.org>.
17224
17225 2005-10-12  Simon Josefsson  <jas@extundo.com>
17226
17227         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
17228
17229 2005-10-12  Simon Josefsson  <jas@extundo.com>
17230
17231         * lib/gc-pbkdf2-sha1.c: New file.
17232
17233         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
17234
17235 2005-10-12  Simon Josefsson  <jas@extundo.com>
17236
17237         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
17238
17239         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
17240
17241 2005-10-12  Simon Josefsson  <jas@extundo.com>
17242
17243         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
17244         GC_USE_HMAC_MD5, respectively.
17245
17246         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
17247         (gc_md5): Fix typo.
17248
17249         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
17250
17251         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
17252
17253         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
17254
17255 2005-10-12  Bruno Haible  <bruno@clisp.org>
17256
17257         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
17258         Reported by Stepan Kasal <kasal@ucw.cz>.
17259
17260 2005-10-11  Simon Josefsson  <jas@extundo.com>
17261
17262         * tests/test-crc.c: New file.
17263
17264         * modules/crc, modules/crc-tests: New files.
17265
17266 2005-10-11  Simon Josefsson  <jas@extundo.com>
17267
17268         * m4/crc.m4: New file.
17269
17270 2005-10-11  Simon Josefsson  <jas@extundo.com>
17271
17272         * lib/gc.h: Add gc_hash and gc_hash_buffer.
17273
17274         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
17275
17276         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
17277
17278 2005-10-11  Simon Josefsson  <jas@extundo.com>
17279
17280         * lib/crc.h, lib/crc.c: New files.
17281
17282         * lib/gc.h (gc_hash_buffer): Add doc.
17283
17284 2005-10-11  Bruno Haible  <bruno@clisp.org>
17285
17286         * modules/c-strcasestr: New file.
17287         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
17288
17289 2005-10-11  Bruno Haible  <bruno@clisp.org>
17290
17291         * modules/c-strcase: New file.
17292         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
17293
17294 2005-10-11  Bruno Haible  <bruno@clisp.org>
17295
17296         * lib/strcasecmp.c: Include limits.h.
17297         (strcasecmp): Avoid integer overflow on exotic platforms.
17298         * lib/strncasecmp.c: Include limits.h.
17299         (strncasecmp): Avoid integer overflow on exotic platforms.
17300         Reported by Paul Eggert.
17301
17302 2005-10-11  Bruno Haible  <bruno@clisp.org>
17303
17304         * lib/c-strcasestr.h: New file, from GNU gettext.
17305         * lib/c-strcasestr.c: New file, from GNU gettext.
17306
17307 2005-10-11  Bruno Haible  <bruno@clisp.org>
17308
17309         * lib/c-strcase.h: New file, from GNU gettext.
17310         * lib/c-strcasecmp.c: New file, from GNU gettext.
17311         * lib/c-strncasecmp.c: New file, from GNU gettext.
17312
17313 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17314
17315         * modules/mempcpy (License): GPL -> LGPL.
17316         * modules/strchrnul (License): Likewise.
17317         * modules/sysexits (License): Likewise.
17318
17319 2005-10-08  Simon Josefsson  <jas@extundo.com>
17320
17321         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
17322
17323 2005-10-07  Simon Josefsson  <jas@extundo.com>
17324
17325         * m4/memxor.m4: Remove gl_C_RESTRICT call.
17326
17327 2005-10-06  Simon Josefsson  <jas@extundo.com>
17328
17329         * tests/test-hmac-md5.c: New file.
17330
17331         * modules/hmac-md5-tests: New file.
17332
17333         * modules/hmac-md5: New file.
17334
17335 2005-10-06  Simon Josefsson  <jas@extundo.com>
17336
17337         * m4/hmac-md5.m4: New file.
17338
17339         * m4/memxor.m4: Require gl_C_RESTRICT.
17340
17341 2005-10-06  Simon Josefsson  <jas@extundo.com>
17342
17343         * lib/memxor.c (memxor): Avoid casts and warnings.
17344
17345 2005-10-06  Simon Josefsson  <jas@extundo.com>
17346
17347         * lib/hmac-md5.c: New file.
17348
17349         * lib/hmac.h: New file.
17350
17351 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
17352
17353         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
17354         promotes to int, not unsigned int, to catch the AIX 5.3
17355         compiler bug.
17356
17357 2005-10-05  Simon Josefsson  <jas@extundo.com>
17358
17359         * modules/memxor: New file.
17360
17361         * modules/iconv (Files): Move config.rpath to havelib, it is used
17362         there.
17363
17364         * modules/havelib (Files): Add config.rpath.
17365
17366 2005-10-05  Simon Josefsson  <jas@extundo.com>
17367
17368         * m4/memxor.m4: New file.
17369
17370 2005-10-05  Simon Josefsson  <jas@extundo.com>
17371
17372         * lib/memxor.c (memxor): Fix compiler error.
17373
17374         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
17375         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
17376
17377         * lib/memxor.h, lib/memxor.c: New files.
17378
17379         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
17380         we assume all systems have it, suggested by Jim Meyering
17381         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
17382         any systems lack sys/socket.h; mingw32 is known to lack it, but we
17383         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
17384         same reasons.
17385
17386 2005-10-05  Simon Josefsson  <jas@extundo.com>
17387
17388         * config/srclist.txt: Add glibc bug 1423 for md5.h.
17389
17390 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
17391
17392         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
17393         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
17394         needed, since the source code now assumes these .h files.
17395
17396 2005-10-05  Derek Price  <derek@ximbiot.com>
17397
17398         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
17399
17400 2005-10-05  Bruno Haible  <bruno@clisp.org>
17401
17402         * modules/stdint (License): Change to LGPL.
17403
17404 2005-10-04  Simon Josefsson  <jas@extundo.com>
17405
17406         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
17407         D. Baushke" <mdb@gnu.org>.
17408
17409 2005-10-04  Bruno Haible  <bruno@clisp.org>
17410
17411         * lib/verify.h (verify_true): Provide alternative definition for C++.
17412
17413 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
17414
17415         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
17416         (SSIZE_MAX): New macro, if not already defined.
17417         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
17418         than 2 GiB.
17419
17420 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
17421
17422         Sync from coreutils.
17423         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
17424         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
17425         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
17426         ULLONG_MAX doesn't work with 2.7.2.1.
17427
17428 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
17429
17430         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
17431         From Ben Pfaff.
17432
17433         * modules/exclude (Depends-on): Depend on verify.
17434         * modules/strtoimax (Depends-on): Likewise.
17435         * modules/utimecmp (Depends-on): Likewise.
17436
17437 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
17438
17439         * lib/exclude.c: Include verify.h.
17440         (verify): Remove.  All callers changed to use verify.h's version.
17441         * lib/strtoimax.c: Likewise.
17442         * lib/utimecmp.c: Likewis.e
17443
17444         Sync from coreutils.
17445         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
17446         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
17447         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
17448         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
17449         bother returning ENOSYS if settimeofday or stime fails; just let
17450         them return whatever errno they want to return.
17451         * lib/utimens.c: Include unistd.h, for dup2.
17452         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
17453         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
17454
17455 2005-10-02  Jim Meyering  <jim@meyering.net>
17456
17457         Sync from coreutils.
17458         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
17459         from glibc-2.2.5 that fails for read-only files.
17460
17461 2005-10-02  Jim Meyering  <jim@meyering.net>
17462
17463         Sync from coreutils.
17464         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
17465         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
17466         `#if HAVE_CONFIG_H'.
17467         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
17468         Remove AT_FDCWD test.
17469         Do not consume the fd unless successful.
17470         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
17471         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
17472         block, so that we don't even try to compile it if settimeofday is
17473         available.  This works around a compilation failure on OSF1 V5.1,
17474         due to stime requiring a `long int*' while tv_sec is `int'.
17475
17476 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
17477
17478         Sync from coreutils.
17479         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
17480         against `yes', rather than just testing for nonempty.
17481
17482 2005-10-01  Simon Josefsson  <jas@extundo.com>
17483
17484         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
17485         and Darwin.
17486
17487         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
17488         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
17489         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
17490         freeaddrinfo and gai_strerror are declared by the POSIX headers.
17491         Check if struct addrinfo is declared.
17492
17493 2005-10-01  Simon Josefsson  <jas@extundo.com>
17494
17495         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
17496         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
17497         AI_* and EAI_* definitions.  Protect function declarations.
17498
17499 2005-10-01  Jim Meyering  <jim@meyering.net>
17500
17501         Sync from coreutils.
17502
17503         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
17504         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
17505         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
17506         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
17507         in the inet and nsl libraries.  Required on Solaris 5.7.
17508
17509 2005-10-01  Jim Meyering  <jim@meyering.net>
17510
17511         Sync from coreutils.
17512         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
17513         in the inet and nsl libraries.  Required on Solaris 5.7.
17514
17515 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
17516
17517         * lib/getdelim.c (getdelim): Remove unused variables.
17518
17519 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
17520
17521         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
17522         so that the code works even with ancient cpp.  Portability problem
17523         with GCC 2.7.2.1 reported by Thomas M.Ott.
17524
17525 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
17526
17527         * modules/regex (Depends-on): Add strcase.
17528
17529         * modules/gethostname (Licence): Change from GPL to LGPL, since
17530         gethostname.c is a trivial implementation of a standard library
17531         function.
17532         * modules/poll (License): Change from GPL to LGPL, since it's
17533         derived from LGPL code.
17534
17535 2005-09-27  Jim Meyering  <jim@meyering.net>
17536
17537         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
17538         HAVE_CONFIG_H.
17539
17540         * lib/intprops.h (signed_type_or_expr__): Define.
17541         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
17542         for unsigned types.
17543
17544 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
17545
17546         * lib/verify.h (verify_expr): Remove, replacing with:
17547         (verify_true): New macro that returns true instead of void.
17548         (verify_type__): Remove.
17549         (verify): Use verify_true rather than verify_type__.
17550
17551 2005-09-26  Bruno Haible  <bruno@clisp.org>
17552
17553         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
17554         is necessary.
17555         (lib_SOURCES): Remove mbchar.c.
17556         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
17557         (Files): Add m4/mbrtowc.m4.
17558         * modules/mbiter: Likewise.
17559         * modules/mbuiter: Likewise.
17560
17561 2005-09-26  Bruno Haible  <bruno@clisp.org>
17562
17563         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
17564         compile mbchar.c if they are not both present.
17565         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
17566         * m4/mbiter.m4 (gl_MBITER): Likewise.
17567         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
17568         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
17569         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
17570
17571 2005-09-25  Jim Meyering  <jim@meyering.net>
17572
17573         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
17574         also uses socklen_t.
17575
17576 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
17577
17578         * lib/utimens.c (ENOSYS): Define if not already defined.
17579         (futimens): Support having a null PATH if the file descriptor
17580         is nonnegative.
17581
17582         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
17583         Remove.
17584         (__attribute): Define to empty unless GCC 3.1 or later.
17585         This works around a core dump on OpenBSD 3.4, which has GCC
17586         2.95.3, which dumps core when given __attribute__(()).  It also
17587         simplifies other tests, since we really don't want to bother with
17588         worrying about which ancient version of GCC supported what.
17589         Original problem reported by Yoann Vandoorselaere, with part of
17590         the fix suggested by Derek Price.
17591
17592 2005-09-24  Jim Meyering  <jim@meyering.net>
17593
17594         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
17595         so we can once again use a positive bitfield width of 1 -- now we
17596         don't have to explain why we were using a bitfield width of 2.
17597
17598 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
17599
17600         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
17601         and similarly for the other external symbols.  Problem reported
17602         by James Gallager.
17603
17604         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
17605         bug reported by Jim Meyering.
17606
17607         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
17608         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
17609         not needed, since socklen is a prerequisite module.
17610
17611 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
17612
17613         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
17614         Problem reported by Eric Blake.
17615         (getaddrinfo): Initialize se so that it's not garbage.
17616         Redo internal storage allocation so that it doesn't make unportable
17617         assumptions about alignment.
17618         Fix a memory leak.
17619
17620         * lib/utimens.c (futimens): Use futimesat if available.
17621         Prefer it to futimes since it doesn't have the futimes bug.
17622
17623         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
17624         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
17625         Instead, declare a function that returns a pointer to an array,
17626         and use verify_type__ to declare the size of the array.
17627         Problem and germ of a solution reported by Bruno Haible.
17628         (verify_type__): Use 2, not 1, for bitfield size, to avoid
17629         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
17630
17631 2005-09-23  Jim Meyering  <jim@meyering.net>
17632
17633         Sync from coreutils.
17634         Correct build failure (socklen_t not defined) on at least
17635         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
17636         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
17637
17638 2005-09-23  Jim Meyering  <jim@meyering.net>
17639
17640         * modules/getaddrinfo (Depends-on): Add socklen.
17641
17642 2005-09-23  Bruno Haible  <bruno@clisp.org>
17643
17644         * tests/test-verify.c: New file.
17645
17646 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17647
17648         Sync from coreutils.
17649
17650         * modules/argmatch (Depends-on): Add verify.
17651         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
17652         unistd-safer.
17653         * modules/save-cwd (Depends-on): Likewise.
17654
17655         * modules/openat (Files): Add lib/openat-die.c.
17656         (Depends-on): Remove error, exitfail.
17657         Add dirname.
17658
17659         * modules/verify: New file.
17660         * MODULES.html.sh (Diagnostics <assert.h>): New section,
17661         with "verify" module.
17662
17663 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17664
17665         Sync from coreutils.
17666
17667         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
17668         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
17669         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
17670         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
17671         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
17672         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
17673         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
17674         Don't bother checking for string.h, stdlib.h, unistd.h.
17675         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
17676         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
17677         module's job.
17678         * m4/jm-macros.m4 (gl_MACROS): Likewise.
17679         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
17680
17681         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
17682         (gl_GETDATE): Use it.
17683
17684         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
17685
17686 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17687
17688         Sync from coreutils.
17689
17690         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
17691         stat-time.h.
17692         * lib/argmatch.h: Include verify.h
17693         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
17694         (ARGMATCH_ASSERT): Remove; unused.
17695         * lib/canonicalize.c: Assume STDC_HEADERS.
17696         * lib/exclude.c: Include "strcase.h".
17697         * lib/regex_internal.h [!defined _LIBC]: Likewise.
17698         * lib/getusershell.c: Include stdio--.h rather than stdio.h
17699         and stdio-safer.h.
17700         (getusershell): Call fopen, not fopen_safer.
17701         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
17702         Do not include unistd-safer.h.
17703         (save_cwd): Don't call fd_safer; no longer needed
17704         now that we include fcntl--.h.
17705
17706         * lib/getdate.y (relative_time): New type.
17707         (RELATIVE_TIME_0): New constant.
17708         (parser_control): Use relative_time instead of doing it ourselves.
17709         (%union): Add new relative_time rel member.
17710         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
17711         Now typeless.
17712         (relunit, relunit_snumber): Now of type rel.
17713         (zone, rel, relunit, get_date): Adjust to above changes.
17714
17715         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
17716         Do not include unistd-safer.h.
17717         (getloadavg): Don't call fd_safer; no longer needed
17718         now that we include fcntl--.h.
17719
17720         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
17721         (make_dir_parents): Treat ENOSYS like EEXIST.
17722
17723         Improve quality of diagnostics on restore_cwd failure.
17724         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
17725         (make_dir_parents): Last arg is now int * (for errno), not bool *.
17726         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
17727         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
17728         each time through the loop.  Do not diagnose restore_cwd failure;
17729         that is the caller's job (and perhaps the caller does not care).
17730
17731         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
17732         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
17733         If the file already exists but is not a directory, don't bother
17734         to try to make its parents.
17735         Close potential file descriptor leak if we can't chdir("/") (!).
17736         Don't always return true if chdir($PWD) fails; return true only
17737         if the requested action was done successfully (except for the
17738         chdir($PWD)).
17739         Don't log final directory unless we actually made it.
17740         Refactor to avoid duplicate code to fix up permissions.
17741         Don't attempt to fix up parent permissions if chdir($PWD) fails.
17742
17743         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
17744         to make it a bit faster and (I hope) clearer.
17745         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
17746         Fix bug in formats like %2N.
17747
17748         * lib/verify.h: New file.
17749
17750 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17751
17752         Sync from coreutils.
17753         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
17754
17755 2005-09-22  Jim Meyering  <jim@meyering.net>
17756
17757         Sync from coreutils.
17758
17759         * m4/lstat.m4 (gl_FUNC_LSTAT):
17760         Use AC_LIBSOURCES to require lstat.c and lstat.h.
17761         Remove obsolete comment.
17762         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
17763         * m4/xstrtod.m4: Likewise.
17764
17765         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
17766
17767 2005-09-22  Jim Meyering  <jim@meyering.net>
17768
17769         Sync from coreutils.
17770
17771         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
17772
17773         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
17774         the .tm_year member, since otherwise gcc-4.0 would now warn about
17775         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
17776
17777         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
17778         order to avoid an unsuppressible warning from gcc on 64-bit systems.
17779
17780         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
17781         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
17782         when run in a time zone for which daylight savings time is in effect
17783         for the starting date.
17784
17785         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
17786         stop us from restricting permissions of just-created absolute-named
17787         directories.
17788         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
17789         to restore initial working directory.
17790         * lib/mkdir-p.c (make_dir_parents): New parameter:
17791         different_working_dir, to tell caller if/when we change the working
17792         directory and are unable to return to the initial one.
17793         * lib/mkdir-p.h (make_dir_parents): Update prototype.
17794         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
17795         `return false'.  This fixes a bug introduced on 2004-07-30.
17796
17797         * lib/openat.c (fdopendir): Be sure to close the supplied
17798         file descriptor before returning.  This makes our replacement
17799         implementation a little closer to Solaris's, where fdopendir
17800         ties the file descriptor to the returned DIR* pointer.
17801         * lib/openat.c (unlinkat): New function.
17802         * lib/openat.h (unlinkat): Add prototype.
17803         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
17804         (openat_restore_fail): Rename from openat_restore_die.
17805         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
17806
17807         Provide an alternative to exiting immediately upon save_cwd or
17808         restore_cwd failure.  Now, an application can arrange e.g.,
17809         to perform a longjump in that case.
17810         * lib/openat.c: Include dirname.h.
17811         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
17812         (rpl_openat, fdopendir, fstatat): Call openat_save_die
17813         and openat_restore_die rather than calling error directly.
17814         Don't include "error.h" or "exitfail.h"; they're no longer needed.
17815
17816         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
17817         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
17818         define.
17819
17820         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
17821         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
17822                             int utc, int nanoseconds);
17823         Background:
17824         date should not have to allocate a megabyte of virtual memory to
17825         handle a format argument like +%1048575T.  When implemented with
17826         strftime, it must allocate such a buffer, use strftime to fill it
17827         in, print it, then free it.
17828         With fprintftime, it simply prints everything and exits.
17829         With no need for memory allocation, that's one fewer way to fail.
17830         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
17831         optional field width, not before, so we accept %9:z, not %:9z.
17832         (my_strftime): Be sure to use L_('x') for literals.
17833
17834         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
17835         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
17836         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
17837         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
17838         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
17839         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
17840         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
17841         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
17842         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
17843         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
17844         * lib/xgethostname.c, lib/xreadlink.c:
17845         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
17846
17847         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
17848         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
17849         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
17850         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
17851         and don't include <sys/file.h>).
17852
17853 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
17854
17855         Sync from coreutils.
17856
17857         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
17858         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
17859         [!LDAV_DONE]: Avoid unused variable warning.
17860
17861 2005-09-21  Bruno Haible  <bruno@clisp.org>
17862
17863         * lib/unicodeio.h (unicode_to_mb): New declaration.
17864
17865 2005-09-20  Derek Price  <derek@ximbiot.com>
17866
17867         * lib/getaddrinfo.c: Don't include <netdb.h> included from
17868         getaddrinfo.h.
17869
17870 2005-09-20  Bruno Haible  <bruno@clisp.org>
17871
17872         * gnulib-tool: Remove trailing slashes from the values specified for
17873         --source-base, --m4-base, --tests-base, --aux-dir.
17874         Suggested by Simon Josefsson <jas@extundo.com>.
17875
17876 2005-09-20  Bruno Haible  <bruno@clisp.org>
17877
17878         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
17879         func_modules_to_filelist, func_import, func_create_testdir): Make all
17880         sorting results locale-independent, so that gnulib-cache.m4 doesn't
17881         change when gnulib-tool is invoked in a different locale.
17882
17883 2005-09-19  Simon Josefsson  <jas@extundo.com>
17884
17885         * m4/socklen.m4: Fix typo.
17886
17887 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17888
17889         Use a consistent style for including <config.h>.
17890         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
17891         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
17892         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
17893         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
17894         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
17895         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
17896         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
17897         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
17898         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
17899         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
17900         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
17901         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
17902         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
17903         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
17904         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
17905         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
17906         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
17907         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
17908         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
17909         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
17910         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
17911         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
17912         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
17913         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
17914         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
17915         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
17916         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
17917         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
17918         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
17919         lib/xstrtoumax.c, lib/yesno.c:
17920         Standardize inclusion of config.h.
17921         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
17922         lib/inttostr.h:  Removed inclusion of config.h from header files.
17923         * lib/inttostr.c:  Adjusted in-tree users.
17924         * lib/timespec.h: Remove superfluous warning to include config.h.
17925         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
17926         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
17927         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
17928         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
17929         config.h with HAVE_CONFIG_H.
17930
17931 2005-09-19  Jim Meyering  <jim@meyering.net>
17932
17933         * modules/pathmax (License): Change to LGPL.
17934
17935 2005-09-19  Derek Price  <derek@ximbiot.com>
17936
17937         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
17938
17939 2005-09-19  Bruno Haible  <bruno@clisp.org>
17940
17941         * gnulib-tool (import): Provide default for --tests-base.
17942
17943 2005-09-19  Bruno Haible  <bruno@clisp.org>
17944
17945         * doc/quote.texi: New file, extracted from gnulib.texi.
17946         * doc/ctime.texi: New file, extracted from gnulib.texi.
17947         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
17948         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
17949         * doc/gnulib.texi: Include them.
17950
17951 2005-09-18  Bruno Haible  <bruno@clisp.org>
17952
17953         Portability fix.
17954         * gnulib-tool (func_readlink): New function.
17955         (func_ln_if_changed): Use it.
17956
17957 2005-09-18  Bruno Haible  <bruno@clisp.org>
17958
17959         * gnulib-tool: Support --with-tests also with --import.
17960         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
17961         (func_import): Use variables $testsbase and $inctests. Emit a
17962         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
17963         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
17964         SUBDIRS += $testsdir.
17965         (func_create_testdir): Update.
17966
17967 2005-09-18  Bruno Haible  <bruno@clisp.org>
17968
17969         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
17970         instead of $dry_run.
17971         (func_cp_if_changed, func_mv_if_changed): Remove functions.
17972         (func_ln_if_changed): Don't handle dry-run here.
17973         (func_import): In dry-run mode, detect more precisely which actions
17974         would be performed, and don't use "...ing" verbs.
17975
17976 2005-09-18  Bruno Haible  <bruno@clisp.org>
17977
17978         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
17979         (func_import): Use join on two temporary files instead of three nested
17980         loops, in order to determine which files are new or old.
17981
17982 2005-09-18  Bruno Haible  <bruno@clisp.org>
17983
17984         * gnulib-tool (func_import): Comment out code that spits out the
17985         new files with --dry-run.
17986
17987 2005-09-18  Bruno Haible  <bruno@clisp.org>
17988
17989         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
17990
17991 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17992
17993         * lib/stat-time.h: New file.
17994         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
17995         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
17996         in a different way.
17997         (timespec_cmp): New function.
17998         * lib/utimecmp.c: Include stat-time.h.
17999         (SYSCALL_RESOLUTION): Depend on whether various struct stat
18000         members exist, not on the obsolescent ST_MTIM_NSEC.
18001         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
18002
18003 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18004
18005         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
18006
18007 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18008
18009         * MODULES.html.sh (File system functions): Add stat-time.
18010         * modules/stat-time: New file.
18011         * modules/timespec (Files): Remove m4/st_mtim.m4; this
18012         is now done in a different way, by the stat-time module.
18013         * modules/utimecmp (Depends-on): Add stat-time.
18014
18015 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
18016
18017         * m4/st_mtim.m4: Remove.  Superseded by...
18018         * m4/stat-time.m4: New file.
18019         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
18020         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
18021
18022 2005-09-15  Derek Price  <derek@ximbiot.com>
18023
18024         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
18025
18026 2005-09-15  Derek Price  <derek@ximbiot.com>
18027
18028         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
18029         * lib/regex_internal.c: Ditto, using this...
18030         (__GNUC_PREREQ): ...new macro.
18031         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
18032         using...
18033         (__GNUC_PREREQ): ...this new macro.
18034
18035         * lib/strstr.h: Include string.h. Define strstr as a macro here.
18036
18037 2005-09-15  Derek Price  <derek@ximbiot.com>
18038             Paul Eggert  <eggert@cs.ucla.edu>
18039
18040         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
18041         changes, consolidating in...
18042         * lib/regex_internal.h: ...this file.
18043
18044 2005-09-13  Jim Meyering  <jim@meyering.net>
18045
18046         * lib/canon-host.c: Filter through gnu indent and reword comments
18047         slightly.
18048         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
18049
18050 2005-09-13  Derek Price  <derek@ximbiot.com>
18051
18052         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
18053         failure.
18054         Reported by Jim Meyering  <jim@meyering.net>.
18055
18056 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
18057
18058         * lib/base64.c: Typo.
18059         (base64_encode): Put b64str in initialized data section.
18060
18061 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
18062
18063         Merge glibc and coreutils changes into gnulib, plus a few
18064         extra fixes.
18065         * lib/md5.c: Use #error rather than a string.
18066         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
18067         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
18068         (__attribute__): Define to empty for non recent-GCC.
18069         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
18070         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
18071         Renamed from their non-__ counterparts, with new macros replacing
18072         them if not _LIBC.  Add __THROW attribute.
18073         (rol): Remove.
18074         (struct md5_ctx): Align buffer if using GCC.
18075         * lib/sha1.h (struct sha1_ctx): Likewise.
18076         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
18077         The old name was backwards.
18078         (NOTSWAP): Remove; not used.
18079         (rol): New macro, moved here from md5.h.
18080         (sha1_process_block): Remove a FIXME that doesn't make sense.
18081
18082 2005-09-12  Derek Price  <derek@ximbiot.com>
18083
18084         Return usable errors from canon-host.
18085         * lib/canon-host.h: New file.
18086         * lib/canon-host.c (canon_host): Wrap...
18087         (canon_host_r): ...this new function, which now relies exclusively on
18088         getaddrinfo.
18089         (ch_strerror): New function.
18090         (last_cherror): New global.
18091         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
18092         interface.
18093         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
18094         void *.
18095         (freeaddrinfo): Free ai->ai_canonname when set.
18096
18097 2005-09-12  Derek Price  <derek@ximbiot.com>
18098
18099         Make canon-host require getaddrinfo.
18100         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
18101         AC_LIBSOURCE canon-host.h.  Call...
18102         (gl_PREREQ_CANON_HOST): ...this new function, which requires
18103         gl_GETADDRINFO.
18104         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
18105
18106 2005-09-12  Derek Price  <derek@ximbiot.com>
18107
18108         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
18109         LGPL.
18110         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
18111
18112 2005-09-12  Derek Price  <derek@ximbiot.com>
18113
18114         * lib/gai_strerror.c: Include config.h when available.  Include
18115         getaddrinfo.h before other headers to test interface.
18116         Reported by Larry Jones <lawrence.jones@ugs.com>.
18117
18118 2005-09-12  Derek Price  <derek@ximbiot.com>
18119             Paul Eggert  <eggert@cs.ucla.edu>
18120
18121         * modules/glob (Files): Add glob-libc.h.
18122
18123 2005-09-12  Derek Price  <derek@ximbiot.com>
18124             Paul Eggert  <eggert@cs.ucla.edu>
18125
18126         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
18127         glob_.h, glob-libc.h.
18128         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
18129
18130 2005-09-12  Derek Price  <derek@ximbiot.com>
18131             Paul Eggert  <eggert@cs.ucla.edu>
18132
18133         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
18134         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
18135         protecting things that should be done only in gnulib contexts.
18136         * lib/glob_.h: New file, containing only the glob things needed for
18137         gnulib.
18138         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
18139         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
18140         (glob, globfree, glob_pattern_p): Now defined simply in terms of
18141         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
18142         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
18143         and to respect the namespace rules better.
18144
18145 2005-09-08  Simon Josefsson  <jas@extundo.com>
18146
18147         * modules/socklen: New file.
18148
18149 2005-09-08  Simon Josefsson  <jas@extundo.com>
18150
18151         * m4/socklen.m4: New file.
18152
18153 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
18154
18155         * modules/utimens (Files): Add m4/utimbuf.m4, since
18156         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
18157         Reported by Sergey Poznyakoff.
18158
18159 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
18160
18161         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
18162         definitions, since that's the preferred style in glibc.
18163         Fix a minor spacing issue, and update copyright notice to match
18164         glibc's.
18165
18166 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
18167
18168         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
18169
18170 2005-09-06  Simon Josefsson  <jas@extundo.com>
18171
18172         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
18173         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
18174
18175 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
18176
18177         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
18178         warning.
18179
18180 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
18181
18182         * config/srclist.txt: Add glibc bug 1302.
18183
18184 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
18185
18186         Change bitset word type from unsigned int to unsigned long int,
18187         as this has better performance on typical 64-bit hosts.
18188         Port bitset code to hosts with unusual word sizes.
18189         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
18190         (build_collating_symbol):
18191         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
18192         argument is a bitset.  This is merely a style issue, but it makes
18193         it clearer that an entire array is expected.
18194         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
18195         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
18196         Port to the case where bitset_word is not the same as unsigned int.
18197         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
18198         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
18199         Likewise.
18200         * lib/regexec.c (check_dst_limits_calc_pos_1,
18201         check_subexp_matching_top):
18202         (build_trtable, group_nodes_into_DFAstates):
18203         Likewise.
18204         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
18205         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
18206         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
18207         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
18208         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
18209         * lib/regcomp.c (optimize_subexps, lower_subexp):
18210         Work even if bitset_word has holes in its bitwise representation.
18211         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
18212         * lib/regexec.c (check_dst_limits_calc_pos_1,
18213         check_subexp_matching_top):
18214         Likewise.
18215         * lib/regex_internal.c (re_string_reconstruct):
18216         Don't assume UCHAR_MAX == 255.
18217         * lib/regex_internal.h (bitset_set_all): Likewise.
18218         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
18219         All uses changed.
18220         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
18221         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
18222         All uses changed.
18223         (BITSET_WORD_MAX): New macro.
18224         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
18225         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
18226         (bitset_empty, bitset_copy):
18227         Prefer sizeof (bitset) to multiplying it out ourselves.
18228         (bitset_not_merge): Remove; unused.
18229         (bitset_contain): Return bool, not unsigned int with one bit on.
18230         All callers changed.
18231         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
18232         alignment than re_node_set; do this by defining a new internal
18233         type struct dests_alloc and using it to allocate memory.
18234
18235 2005-09-05  Bruno Haible  <bruno@clisp.org>
18236
18237         * gnulib-tool (func_import): Fix comparison in handling of symbolic
18238         links.
18239
18240 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
18241
18242         * modules/size_max (Makefile.am): Add size_max.h
18243
18244 2005-09-04  Derek Price  <derek@ximbiot.com>
18245
18246         * gnulib-tool (func_import): Fix reversed $symbolic logic.
18247
18248 2005-09-03  Simon Josefsson  <jas@extundo.com>
18249
18250         * gnulib-tool: Fix typo.
18251
18252 2005-09-03  Simon Josefsson  <jas@extundo.com>
18253
18254         * config/srclist.txt: Add glibc bug 1293.
18255
18256 2005-09-03  Derek Price  <derek@ximbiot.com>
18257
18258         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
18259         From Larry Jones <lawrence.jones@ugs.com>.
18260
18261 2005-09-02  Simon Josefsson  <jas@extundo.com>
18262
18263         * modules/socklen: New file.
18264
18265 2005-09-02  Simon Josefsson  <jas@extundo.com>
18266
18267         * modules/havelib: New module.
18268
18269         * modules/gettext, modules/iconv, modules/lock, modules/readline:
18270         Use havelib.
18271
18272 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18273
18274         Check for arithmetic overflow when calculating sizes, to prevent
18275         some buffer-overflow issues.  These patches are conservative, in the
18276         sense that when I couldn't determine whether an overflow was possible,
18277         I inserted a run-time check.
18278         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
18279         macros.
18280         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
18281         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
18282         (re_xnrealloc, re_x2nrealloc): New inline functions.
18283         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
18284         parse_bracket_exp):
18285         (build_equiv_class, build_charclass): Check for arithmetic overflow
18286         in size expression calculations.
18287         * lib/regex_internal.c (re_string_realloc_buffers):
18288         (build_wcs_upper_buffer, re_node_set_add_intersect):
18289         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
18290         (re_dfa_add_node, register_state): Likewise.
18291         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
18292         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
18293         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
18294         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
18295
18296 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18297
18298         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
18299         m4/ulonglong.m4.  Problem reported by Martin Lambers.
18300
18301 2005-09-02  Bruno Haible  <bruno@clisp.org>
18302
18303         Support for lib vs. lib64 distinction on biarch platforms.
18304         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
18305         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
18306         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
18307
18308 2005-09-02  Bruno Haible  <bruno@clisp.org>
18309
18310         * gnulib-tool (import): In the other first-use case, provide defaults
18311         as well.
18312
18313 2005-09-02  Bruno Haible  <bruno@clisp.org>
18314
18315         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
18316         patches not yet found in the latest gettext release.
18317
18318 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18319
18320         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
18321         to avoid a collision with bits/local_lim.h in glibc.
18322         All uses changed.  Problem reported by Dmitry V. Levin in
18323         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
18324
18325         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
18326         bugs in int versus size_t comparisons.
18327         (re_string_context_at): Fix bug where the code assumed that
18328         Idx is signed.
18329
18330         Use bool where appropriate.
18331         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
18332         All callers changed.
18333         (calc_eclosure_iter): Likewise, for ROOT arg.
18334         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
18335         (build_charclass_op): Likewise, for NON_MATCH arg.
18336         * lib/regex_internal.c (re_string_allocate, re_string_construct):
18337         (re_string_construct_common): Likewise, for ICASE arg.
18338         * lib/regexec.c (re_search_2_stub, re_search_stub):
18339         Likewise, for RET_LEN arg.
18340         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
18341         (set_regs): Likewise, for FL_BACKTRACK arg.
18342         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
18343         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
18344         (calc_eclosure_iter, parse_bracket_exp):
18345         Use bool for internal variables that are booleans.
18346         * lib/regexec.c (re_search_internal, check_matching,
18347         proceed_next_node):
18348         (set_regs, build_sifted_states, sift_states_bkref):
18349         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
18350         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
18351         (find_collation_sequence_value):
18352         Likewise.
18353         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
18354         (re_node_set_compare):
18355         Return bool, not int. All callers changed.
18356         * lib/regexec.c (check_halt_node_context, check_dst_limits):
18357         (build_trtable, check_node_accept): Likewise.
18358         * lib/regex_internal.h: Include stdbool.h.
18359
18360         Fix bugs uncovered when converting to bool.
18361         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
18362         failure instead of charging ahead blindly.
18363         * lib/regex_internal.c (register_state): Likewise.
18364         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
18365         for freeing internal storage.
18366         (group_nodes_into_DFA_states): Use unsigned int, not int, for
18367         bitset pieces used as boolean, to avoid undefined behavior
18368         on hosts that do int overflow checking.
18369
18370 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18371
18372         * config/srclist.txt: Add glibc bugs 1285-1287.
18373
18374 2005-09-01  Jim Meyering  <jim@meyering.net>
18375
18376         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
18377         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
18378         Require gl_STAT_MACROS, too.
18379
18380 2005-09-01  Bruno Haible  <bruno@clisp.org>
18381
18382         * gnulib-tool (import): In the first-use case, provide defaults.
18383
18384 2005-09-01  Bruno Haible  <bruno@clisp.org>
18385
18386         * gnulib-tool (func_import): Remove the .tmp files.
18387
18388 2005-09-01  Bruno Haible  <bruno@clisp.org>
18389
18390         * gnulib-tool (func_import): Fix handling of symbolic links.
18391
18392 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18393
18394         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
18395         old glibc regex code mishandles strings longer than 2**31 bytes.
18396         This patch fixes this when the regex code is used in gnulib
18397         (i.e., outside glibc).
18398
18399         This patch should not affect the use of the regex code inside
18400         glibc.  No doubt this problem also needs to be handled for glibc
18401         as well, but the result will be an incompatible change to the
18402         glibc ABI, and the old ABI will have to be supported too.  That
18403         can be the the subject for another patch.
18404
18405         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
18406         governing whether the rest of this patch is active.  By default,
18407         the macro is disabled and the patch has no effect.
18408         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
18409         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
18410         (struct re_pattern_buffer, re_search, re_search_2, re_match):
18411         (re_match_2, re_set_registers): Use the new types.
18412         * lib/regex_internal.h (Idx, re_hashval_t): New types.
18413         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
18414         New macros.
18415         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
18416         (re_string_context_at, bin_tree_t, re_dfastate_t):
18417         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
18418         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
18419         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
18420         (re_string_char_size_at, re_string_wchar_at):
18421         (re_string_elem_size_at):
18422         Use the new types and macros to port to 64-bit hosts.
18423         Use unsigned types for internal values, so that the code
18424         mostly works even for arrays larger than SSIZE_MAX.
18425         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
18426         (search_duplicated_node, calc_eclosure_iter, fetch_number):
18427         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
18428         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
18429         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
18430         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
18431         (calc_inveclosure, parse_dup_op, build_range_exp):
18432         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
18433         (fetch_number, create_token_tree, mark_opt_subexp):
18434         Likewise.
18435         * lib/regex_internal.c (re_string_construct_common,
18436         create_ci_newstate):
18437         (create_cd_newstate, re_string_allocate, re_string_construct):
18438         (re_string_realloc_buffers, build_wcs_upper_buffer):
18439         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
18440         (re_string_reconstruct, re_string_peek_byte_case):
18441         (re_string_fetch_byte_case, re_string_context_at):
18442         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
18443         (re_node_set_init_copy, re_node_set_add_intersect):
18444         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
18445         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
18446         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
18447         (re_acquire_state, re_acquire_state_context, register_state):
18448         Likewise.
18449         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
18450         search_cur_bkref_entry):
18451         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
18452         (re_search_internal, re_search_2_stub, re_search_stub)
18453         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
18454         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
18455         (update_cur_sifted_state, check_dst_limits):
18456         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
18457         (check_subexp_limits, sift_states_bkref, merge_state_array):
18458         (check_subexp_matching_top, get_subexp, get_subexp_sub):
18459         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
18460         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
18461         (expand_bkref_cache, check_node_accept_bytes):
18462         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
18463         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
18464         (acquire_init_state_context, check_halt_node_context):
18465         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
18466         (sift_states_backward, clean_state_log_if_needed):
18467         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
18468         (find_recover_state, transit_state_sb, transit_state_mb):
18469         (transit_state_bkref, build_trtable, match_ctx_clean):
18470         Likewise.
18471         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
18472         to work around an assumption that REG_MISSING is negative.
18473
18474         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
18475         (seek_collating_symbol_entry) [defined _LIBC]:
18476         (lookup_collation_sequence_value) [defined _LIBC]:
18477         (build_range_exp, build_collating_symbol) [defined _LIBC]:
18478         Use prototypes rather than old-style function definitions.
18479         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
18480         (transit_state_sb) [0]:
18481         (find_collation_sequence_value) [defined _LIBC]: Likewise.
18482
18483         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
18484         rm_eo.
18485
18486         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
18487         (optimize_subexps, lower_subexp):
18488         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
18489         since the signed shift might overflow.  Use 1u<<31 instead.
18490         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
18491         Likewise.
18492         * lib/regexec.c (check_dst_limits_calc_pos_1,
18493         check_subexp_matching_top): Likewise.
18494
18495         * lib/regcomp.c (optimize_subexps, lower_subexp):
18496         Use CHAR_BIT rather than 8, for clarity.
18497         * lib/regexec.c (check_dst_limits_calc_pos_1):
18498         (check_subexp_matching_top): Likewise.
18499         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
18500         have to worry about portability issues when shifting it left.
18501         Remove no-longer-needed test for table_size > 0.
18502         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
18503         in a word, as the resulting behavior is undefined.
18504         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
18505         in one case, a <= should have been an <, and in another case the
18506         whole test was missing.
18507         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
18508         the standard name CHAR_BIT.
18509         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
18510         this is not true on one's complement and signed-magnitude hosts.
18511
18512         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
18513         next_last_offset.
18514         (struct re_dfa_t): Remove unused member states_alloc.
18515         * lib/regcomp.c (init_dfa): Don't initialize unused members.
18516
18517 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18518
18519         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
18520         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
18521         and large-file glibc and in 32-bit large-file Solaris.
18522
18523 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18524
18525         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
18526         lengths fit in regoff_t; this isn't true if regoff_t is the same
18527         width as size_t.
18528         * lib/regex.c (re_search_internal): 5th arg is LAST_START
18529         (= START + RANGE) instead of RANGE.  This avoids overflow
18530         problems when regoff_t is the same width as size_t.
18531         All callers changed.
18532         (re_search_2_stub): Check for overflow when adding the
18533         sizes of the two strings.
18534         (re_search_stub): Check for overflow when adding START
18535         to RANGE; if it occurs, substitute the extreme value.
18536
18537 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18538
18539         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
18540
18541 2005-08-31  Jim Meyering  <jim@meyering.net>
18542
18543         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
18544         a pointer-to-const.
18545         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
18546         (register_state): Likewise.
18547         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
18548         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
18549         (group_nodes_into_DFAstates): Likewise.
18550
18551 2005-08-31  Jim Meyering  <jim@meyering.net>
18552
18553         * check-module: Add a FIXME comment.
18554
18555 2005-08-31  Eric Blake  <ebb9@byu.net>
18556
18557         * modules/unistd-safer (Files): Add unistd--.h.
18558         * modules/stdio-safer (Files): Add stdio--.h.
18559
18560 2005-08-31  Derek Price  <derek@ximbiot.com>
18561
18562         * lib/getdelim.c (getdelim): Return EOF on EOF.
18563         Reported by Larry Jones <lawrence.jones@ugs.com>.
18564
18565 2005-08-31  Bruno Haible  <bruno@clisp.org>
18566
18567         Avoid unnecessary diffs in the generated lib/Makefile.am.
18568         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
18569         the generated files.
18570         (func_import): Don't set cmd.
18571
18572 2005-08-31  Bruno Haible  <bruno@clisp.org>
18573
18574         * lib/strstr.c: Include <stddef.h>, for NULL.
18575         * lib/strcasestr.c: Likewise.
18576         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18577
18578 2005-08-31  Bruno Haible  <bruno@clisp.org>
18579
18580         * gnulib-tool: New option --macro-prefix.
18581         (func_import): Use macro_prefix.
18582         (import): Handle option --macro-prefix.
18583
18584 2005-08-31  Bruno Haible  <bruno@clisp.org>
18585
18586         * gnulib-tool (import): Rename most ac_* variables to cached_*.
18587         Also use new variables cached_lgpl, cached_libtool.
18588
18589 2005-08-31  Bruno Haible  <bruno@clisp.org>
18590
18591         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
18592         always instantiating them.
18593
18594 2005-08-31  Bruno Haible  <bruno@clisp.org>
18595
18596         * gnulib-tool (func_import): Read the previous cached settings
18597         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
18598         earlier added by gnulib but are now dropped. Warn when a gnulib file
18599         overwrites a non-gnulib file.
18600
18601 2005-08-31  Bruno Haible  <bruno@clisp.org>
18602
18603         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
18604         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
18605         projects that don't keep autogenerated files in CVS. Put into
18606         actioncmd only the specified modules, not the transitive closure.
18607
18608 2005-08-31  Bruno Haible  <bruno@clisp.org>
18609
18610         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
18611         Create directories that shall be filled.
18612         (import): Don't look for gl_* macros in configure.ac. Recurse across
18613         all directories containing a gnulib-cache.m4 files, if meaningful.
18614
18615 2005-08-31  Bruno Haible  <bruno@clisp.org>
18616
18617         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
18618         (import): Set seen_libtool when we see gl_LIBTOOL.
18619
18620 2005-08-31  Bruno Haible  <bruno@clisp.org>
18621
18622         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
18623         declaration macro definitions from generated gnulib.m4.
18624
18625 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
18626
18627         * lib/iconvme.h: Add prototype for iconv_alloc.
18628
18629 2005-08-29  Simon Josefsson  <jas@extundo.com>
18630
18631         * lib/iconvme.c: Fix errno.
18632
18633 2005-08-29  Bruno Haible  <bruno@clisp.org>
18634
18635         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
18636         that it works when the directory contains spaces.
18637
18638 2005-08-29  Bruno Haible  <bruno@clisp.org>
18639
18640         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
18641
18642 2005-08-29  Bruno Haible  <bruno@clisp.org>
18643
18644         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
18645         Emit more advice.
18646
18647 2005-08-29  Bruno Haible  <bruno@clisp.org>
18648         and Stepan Kasal  <kasal@ucw.cz>
18649
18650         * check-module: If more parameters are given, check each of them
18651         separately; add more exceptions, as noted by Jim Meyering.
18652         (check_module): New procedure.
18653         (%exempt_header): Now contains all exceptions.
18654
18655 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
18656
18657         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
18658
18659 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
18660
18661         * lib/iconvme.c: Split iconv_string into iconv_alloc.
18662
18663 2005-08-28  Bruno Haible  <bruno@clisp.org>
18664
18665         * m4/gnulib-tool.m4: New file.
18666
18667 2005-08-27  Jim Meyering  <jim@meyering.net>
18668
18669         * modules/unistd-safer (Files): Add pipe-safer.c.
18670         * modules/fcntl-safer (Files): Add creat-safer.c.
18671
18672 2005-08-27  Jim Meyering  <jim@meyering.net>
18673
18674         * m4/stdlib-safer.m4: New file.  From coreutils.
18675         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
18676         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
18677         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
18678         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
18679         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
18680
18681 2005-08-27  Jim Meyering  <jim@meyering.net>
18682
18683         * lib/fopen-safer.c: Merge minor changes from coreutils.
18684         * lib/dup-safer.c: Likewise.
18685         * lib/fd-safer.c: Likewise.
18686
18687         Merge from coreutils.
18688         * lib/stdio--.h: New file.
18689         * lib/stdlib--.h: New file.
18690         * lib/mkstemp-safer.c: New file.
18691
18692         GNU tar needs these.
18693         * lib/pipe-safer.c: New file.
18694         * lib/creat-safer.c: New file.
18695         * lib/fcntl--.h (creat): Define to creat_safer.
18696         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
18697         * lib/unistd--.h (pipe): Define to pipe_safer.
18698         * lib/unistd-safer.h: Declare pipe_safer.
18699
18700 2005-08-26  Simon Josefsson  <jas@extundo.com>
18701
18702         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
18703         Haible <bruno@clisp.org>.
18704
18705 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
18706
18707         * lib/regex_internal.h: Remove all references to
18708         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
18709         or better.
18710         (bitset_not, bitset_merge, bitset_not_merge):
18711         (bitset_mask, re_string_allocate, re_string_construct):
18712         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
18713         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
18714         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
18715         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
18716         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
18717         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
18718         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
18719         (re_acquire_state_context):
18720         Remove unnecessary forward decls.
18721         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
18722         Put __attribute at function definition,
18723         now that the function decl has been removed.
18724         * lib/regex_internal.c (re_string_peek_byte_case):
18725         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
18726         Likewise.
18727
18728 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
18729
18730         * m4/regex.m4: Add AC_PREREQ(2.50).
18731         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
18732
18733 2005-08-25  Simon Josefsson  <jas@extundo.com>
18734
18735         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
18736         __fsetlocking.
18737
18738 2005-08-25  Simon Josefsson  <jas@extundo.com>
18739
18740         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
18741         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
18742         GLIBC specific code.
18743
18744 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
18745
18746         Make regex safe for g++.  This fixes one real bug (an "err"
18747         that should have been "*err").  g++ problem reported by
18748         Sam Steingold.
18749         * lib/regex_internal.h (re_calloc): New macro, consistent with
18750         re_malloc etc.  All callers of calloc changed to use re_calloc.
18751         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
18752         not int.  All callers changed.
18753         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
18754         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
18755         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
18756         (find_recover_state): Change "err" to "*err"; this fixes what
18757         appears to be a real bug.
18758         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
18759         versus int.
18760
18761 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
18762
18763         * modules/regex (Depends-on): Add malloc, since the code
18764         assumes that !malloc(0) means failure.
18765
18766 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
18767
18768         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
18769
18770         alloca modernization/simplification for regex.
18771         * lib/regex.c: Remove portability cruft for alloca.  This no longer
18772         needs to be at the start of the file, and can be moved into
18773         regex_internal.h and simplified.
18774         * lib/regex_internal.h: Include <alloca.h>.
18775         (__libc_use_alloca) [!defined _LIBC]: New macro.
18776         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
18777         now works outside glibc.
18778
18779 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
18780
18781         * config/srclist.txt: Add glibc bugs 1241, 1245.
18782
18783 2005-08-25  Jim Meyering  <jim@meyering.net>
18784
18785         * lib/open-safer.c: Include <config.h>.
18786         Otherwise, we'd lose LARGEFILE support in any file using
18787         e.g. "fcntl--.h"
18788
18789 2005-08-25  Bruno Haible  <bruno@clisp.org>
18790
18791         * m4/minmax.m4: Require autoconf 2.52.
18792         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
18793         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
18794         alternatives of translit over the alphabet.
18795         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
18796
18797 2005-08-24  Simon Josefsson  <jas@extundo.com>
18798
18799         * tests/test-getpass.c: New file.
18800
18801 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18802
18803         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
18804         for GNU regex features.
18805
18806 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18807
18808         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
18809         * lib/regex.h (regerror): Likewise.
18810
18811         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
18812         requires this.  (The code never needed it.)
18813
18814         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
18815         All uses of recently-renamed identifiers changed to use the new,
18816         POSIX-compliant names.  The code will build and run just fine
18817         without these changes, but it's better to eat our own dog food
18818         and use the standard-conforming names.
18819
18820         * lib/regex.h: Fix a multitude of POSIX name space violations.
18821         These changes have an effect only for programs that define
18822         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
18823         do not change anything for programs compiled in the normal way.
18824         Also, there is no effect on the ABI.
18825
18826         (_REGEX_SOURCE): New macro.
18827         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
18828         defined and _GNU_SOURCE is not; this fixes a name space violation.
18829
18830         Rename the following macros to obey POSIX requirements.
18831         The old names are still visible as macros if _REGEX_SOURCE is defined.
18832         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
18833         RE_BACKSLASH_ESCAPE_IN_LISTS.
18834         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
18835         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
18836         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
18837         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
18838         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
18839         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
18840         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
18841         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
18842         (REG_INTERVALS): renamed from RE_INTERVALS.
18843         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
18844         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
18845         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
18846         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
18847         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
18848         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
18849         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
18850         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
18851         RE_UNMATCHED_RIGHT_PAREN_ORD.
18852         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
18853         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
18854         (REG_DEBUG): renamed from RE_DEBUG.
18855         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
18856         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
18857         unusual, since we can't clash with the POSIX REG_ICASE.
18858         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
18859         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
18860         (REG_NO_SUB): renamed from RE_NO_SUB.
18861         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
18862         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
18863         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
18864         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
18865         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
18866         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
18867         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
18868         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
18869         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
18870         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
18871         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
18872         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
18873         RE_SYNTAX_POSIX_MINIMAL_BASIC.
18874         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
18875         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
18876         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
18877         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
18878         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
18879         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
18880         (REG_FIXED): Renamed from REGS_FIXED.
18881         (REG_NREGS): Renamed from RE_NREGS.
18882
18883         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
18884         of other REG_* macros, since POSIX says the user is allowed to
18885         #undef these macros selectively.
18886
18887         (reg_errcode_t): Update comment stating what other tables need
18888         to be consistent.
18889
18890         Rename the following enum values to obey POSIX requirements.
18891         The old names are still visible as macros.
18892         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
18893         is not defined, since GNU is supposed to be a superset of POSIX as
18894         much as possible, and since we want reg_errcode_t to be a signed
18895         type for implementation consistency.
18896         (_REG_NOERROR): Renamed from REG_NOERROR.
18897         (_REG_NOMATCH): Renamed from REG_NOMATCH.
18898         (_REG_BADPAT): Renamed from REG_BADPAT.
18899         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
18900         (_REG_ECTYPE): Renamed from REG_ECTYPE.
18901         (_REG_EESCAPE): Renamed from REG_EESCAPE.
18902         (_REG_ESUBREG): Renamed from REG_ESUBREG.
18903         (_REG_EBRACK): Renamed from REG_EBRACK.
18904         (_REG_EPAREN): Renamed from REG_EPAREN.
18905         (_REG_EBRACE): Renamed from REG_EBRACE.
18906         (_REG_BADBR): Renamed from REG_BADBR.
18907         (_REG_ERANGE): Renamed from REG_ERANGE.
18908         (_REG_ESPACE): Renamed from REG_ESPACE.
18909         (_REG_BADRPT): Renamed from REG_BADRPT.
18910         (_REG_EEND): Renamed from REG_EEND.
18911         (_REG_ESIZE): Renamed from REG_ESIZE.
18912         (_REG_ERPAREN): Renamed from REG_ERPAREN.
18913         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
18914         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
18915         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
18916         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
18917
18918         (_REG_RE_NAME, _REG_RM_NAME): New macros.
18919         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
18920         changed.  But support the old name if the new one is not defined
18921         and if _REGEX_SOURCE.
18922
18923         Change the following member names in struct re_pattern_buffer.
18924         The old names are still supported if !_REGEX_SOURCE.
18925         The new names are always supported, regardless of _REGEX_SOURCE.
18926         (re_buffer): Renamed from buffer.
18927         (re_allocated): Renamed from allocated.
18928         (re_used): Renamed from used.
18929         (re_syntax): Renamed from syntax.
18930         (re_fastmap): Renamed from fastmap.
18931         (re_translate): Renamed from translate.
18932         (re_can_be_null): Renamed from can_be_null.
18933         (re_regs_allocated): Renamed from regs_allocated.
18934         (re_fastmap_accurate): Renamed from fastmap_accurate.
18935         (re_no_sub): Renamed from no_sub.
18936         (re_not_bol): Renamed from not_bol.
18937         (re_not_eol): Renamed from not_eol.
18938         (re_newline_anchor): Renamed from newline_anchor.
18939
18940         Change the following member names in struct re_registers.
18941         The old names are still supported if !_REGEX_SOURCE.
18942         The new names are always supported, regardless of _REGEX_SOURCE.
18943         (rm_num_regs): Renamed from num_regs.
18944         (rm_start): Renamed from start.
18945         (rm_end): Renamed from end.
18946
18947         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
18948         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
18949         Prepend __ to parameter names.
18950
18951         Undo yesterday's changes.
18952
18953 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18954
18955         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
18956         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
18957         lib/regex.c.
18958
18959 2005-08-24  Jim Meyering  <jim@meyering.net>
18960
18961         Sync from coreutils.
18962         * m4/fcntl-safer.m4: New file.
18963
18964         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
18965         and object files for this module.
18966
18967 2005-08-24  Jim Meyering  <jim@meyering.net>
18968
18969         Sync from coreutils.
18970         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
18971
18972 2005-08-24  Jim Meyering  <jim@meyering.net>
18973
18974         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
18975         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
18976
18977 2005-08-24  Jim Meyering  <jim@meyering.net>
18978
18979         * modules/fcntl-safer: New module.
18980         * modules/fts (Depends-on): Add fcntl-safer.
18981         * MODULES.html.sh (File descriptor based Input/Output):
18982         Add fcntl-safer.
18983
18984 2005-08-24  Bruno Haible  <bruno@clisp.org>
18985
18986         Support for unit test modules.
18987         * modules/README: Mention tests modules.
18988         * modules/TEMPLATE-TESTS: New file.
18989         * gnulib-tool: New options --extract-tests-module, --with-tests and
18990         --tests-base (unused for the moment).
18991         (testsbase, inctests): New variables.
18992         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
18993         (func_verify_module): Exclude TEMPLATE-TESTS.
18994         (func_verify_nontests_module, func_verify_tests_module): New functions.
18995         (func_get_dependencies): Add implicit dependency for tests modules.
18996         (func_get_tests_module): New function.
18997         (func_modules_transitive_closure): When --with-tests was specified,
18998         include the unit tests as well, unless explicitly avoided.
18999         (func_emit_lib_Makefile_am): Ignore the tests modules here.
19000         (func_emit_tests_Makefile_am): New function.
19001         (func_create_testdir): When --with-tests was specified, emit a
19002         tests/ directory.
19003         * MODULES.html.sh (Future developments): Update.
19004
19005 2005-08-24  Bruno Haible  <bruno@clisp.org>
19006
19007         * modules/tls-tests: New file.
19008         * tests/test-tls.c: New file, from GNU gettext.
19009
19010 2005-08-24  Bruno Haible  <bruno@clisp.org>
19011
19012         * modules/lock-tests: New file.
19013         * tests/test-lock.c: New file, from GNU gettext.
19014
19015 2005-08-24  Bruno Haible  <bruno@clisp.org>
19016
19017         * lib/lock.h: Add multiple inclusion guard.
19018         * lib/tls.h: Add multiple inclusion guard.
19019
19020 2005-08-24  Bruno Haible  <bruno@clisp.org>
19021
19022         * gnulib-tool: Add support for the --aux-dir option to
19023         --create-testdir, --create-megatestdir, --test, --megatest.
19024         (func_create_testdir, func_create_megatestdir): Optionally emit a
19025         AC_CONFIG_AUX_DIR directive.
19026         (create-testdir, create-megatestdir, test, megatest): Provide a
19027         default value for $auxdir.
19028
19029 2005-08-24  Bruno Haible  <bruno@clisp.org>
19030
19031         * gnulib-tool (import): Use compound statement instead of subshell
19032         where possible.
19033
19034 2005-08-24  Bruno Haible  <bruno@clisp.org>
19035
19036         * gnulib-tool (import): Change --aux-dir default to "build-aux".
19037
19038 2005-08-24  Bruno Haible  <bruno@clisp.org>
19039
19040         * gnulib-tool (func_version): Update.
19041
19042 2005-08-24  Bruno Haible  <bruno@clisp.org>
19043
19044         * gnulib-tool (func_import, func_create_testdir,
19045         func_create_megatestdir): Quote all autoconf macro arguments.
19046
19047 2005-08-24  Bruno Haible  <bruno@clisp.org>
19048
19049         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
19050         option --force, because --force causes the aclocal.m4 of each
19051         subdirectory to be newer than the corresponding config.h.in.
19052
19053 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19054
19055         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
19056         All contents moved to gl_REGEX.
19057         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
19058         assume that it does.
19059
19060 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19061
19062         * lib/regex.h (REG_NOSYS)
19063         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
19064         Define, since POSIX requires it as of 2001.
19065         (_REG_ENOSYS)
19066         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
19067         New private symbol, used to keep the enum signed in all cases.
19068         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
19069         Youngman in
19070         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
19071
19072         * lib/regex_internal.c (re_string_skip_chars, register_state):
19073         (calc_state_hash):
19074         Remove forward decls; no longer needed now that we use prototypes.
19075         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
19076         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
19077         (clean_state_log_if_needed): Likewise.
19078
19079 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19080
19081         * config/srclist.txt: Add glibc bugs 1231-1233.
19082
19083 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19084
19085         Fix problems reported by Sam Steingold in
19086         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
19087         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
19088         assumed that reg_errcode_t is a signed type, which is not
19089         necessarily true if _XOPEN_SOURCE is not defined.
19090         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
19091         since some compilers warn about it otherwise.
19092
19093 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19094
19095         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
19096         (init_word_char, create_initial_state, duplicate_node_closure):
19097         (fetch_token, peek_token_bracket, build_range_exp):
19098         (build_collating_symbol): Remove forward decls; no longer needed
19099         now that we use prototypes.
19100
19101         * lib/regcomp.c:
19102         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
19103         (re_compile_fastmap_iter, regcomp, regerror, regfree):
19104         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
19105         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
19106         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
19107         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
19108         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
19109         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
19110         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
19111         (build_range_exp, build_collating_symbol, parse_bracket_exp):
19112         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
19113         (build_charclass, build_charclass_op, fetch_number, create_tree):
19114         (create_token_tree, mark_opt_subexp, duplicate_tree):
19115         Use prototypes rather than old-style definitions.
19116
19117         * lib/regex_internal.c:
19118         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
19119         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
19120         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
19121         (re_string_reconstruct, re_string_peek_byte_case):
19122         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
19123         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
19124         (re_node_set_init_copy, re_node_set_add_intersect):
19125         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
19126         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
19127         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
19128         (re_acquire_state, re_acquire_state_context, register_state):
19129         (create_ci_newstate, create_cd_newstate, free_state):
19130         Likewise.
19131         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
19132         re_search_2):
19133         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
19134         (re_search_internal, prune_impossible_nodes):
19135         (acquire_init_state_context, check_matching, static):
19136         (check_halt_node_context, check_halt_state_context, proceed_next_node):
19137         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
19138         (update_regs, sift_states_backward, build_sifted_states):
19139         (clean_state_log_if_needed, merge_state_array):
19140         (update_cur_sifted_state, add_epsilon_src_nodes):
19141         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
19142         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
19143         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
19144         (find_recover_state, check_subexp_matching_top, transit_state_mb):
19145         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
19146         (check_arrival, check_arrival_add_next_nodes):
19147         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
19148         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
19149         (check_node_accept_bytes, check_node_accept, extend_buffers):
19150         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
19151         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
19152         (sift_ctx_init):
19153         Likewise.
19154
19155         * lib/regex_internal.h:
19156         (re_string_allocate, re_string_construct, re_string_reconstruct):
19157         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
19158         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
19159         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
19160         (re_string_context_at, re_string_peek_byte_case):
19161         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
19162         is defined, since we now use prototypes always.
19163
19164         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
19165         C89 or better.  All uses removed.
19166
19167 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19168
19169         * config/srclist.txt: Add glibc bugs 1220-1227.
19170
19171 2005-08-20  Jim Meyering  <jim@meyering.net>
19172
19173         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
19174         of unused local, dfa.
19175
19176 2005-08-20  Bruno Haible  <bruno@clisp.org>
19177
19178         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
19179
19180 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19181
19182         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
19183         (re_node_set_insert_last, re_dfa_add_node):
19184         Rename local variables to avoid GCC shadowing warnings.
19185
19186 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19187
19188         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
19189         [defined lint]: Suppress bogus uninitialized-variable warnings.
19190
19191         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
19192         and let the caller return REG_ESPACE if out of space.  This
19193         removes an uninitialied-variable warning with GCC 4.0.1, and also
19194         avoids taking the address of a local variable.  All callers
19195         changed.
19196
19197 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19198
19199         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
19200         $LIBCSRC/posix/regexec.c.
19201         Add glibc bug 1217 for regcomp.c.
19202
19203 2005-08-19  Jim Meyering  <jim@meyering.net>
19204
19205         * lib/regexec.c (proceed_next_node): Redo local variables to
19206         avoid GCC shadowing warnings.
19207
19208 2005-08-18  Bruno Haible  <bruno@clisp.org>
19209
19210         * lib/strstr.c (strstr): Fix return value in multibyte case.
19211         * lib/strcasestr.c (strcasestr): Likewise.
19212
19213 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19214
19215         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
19216
19217 2005-08-17  Jim Meyering  <jim@meyering.net>
19218
19219         Make the %s format (seconds since the epoch) work for a negative
19220         number and when used with a zero-padded field width, e.g. %015s.
19221
19222         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
19223         label so that it precedes the code to set `digits'.  Otherwise,
19224         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
19225         print `00-22'.  Now, it prints `-0022', as it should.
19226
19227 2005-08-17  Bruno Haible  <bruno@clisp.org>
19228
19229         * modules/strstr (Files): Add m4/mbrtowc.m4.
19230         (Depends-on): Add mbuiter.
19231
19232 2005-08-17  Bruno Haible  <bruno@clisp.org>
19233
19234         * modules/strcasestr: New file.
19235         * MODULES.html.sh (String handling, based on ANSI C 89): Add
19236         strcasestr.
19237
19238 2005-08-17  Bruno Haible  <bruno@clisp.org>
19239
19240         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
19241
19242 2005-08-17  Bruno Haible  <bruno@clisp.org>
19243
19244         * modules/mbuiter: New file.
19245         * MODULES.html.sh (Extended multibyte and wide character utilities):
19246         Add mbuiter.
19247
19248 2005-08-17  Bruno Haible  <bruno@clisp.org>
19249
19250         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
19251         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
19252
19253 2005-08-17  Bruno Haible  <bruno@clisp.org>
19254
19255         * m4/strcasestr.m4: New file.
19256
19257 2005-08-17  Bruno Haible  <bruno@clisp.org>
19258
19259         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
19260         * lib/strstr.c: Completely rewritten, with multibyte locale support.
19261
19262 2005-08-17  Bruno Haible  <bruno@clisp.org>
19263
19264         * lib/strcasestr.h: New file.
19265         * lib/strcasestr.c: New file.
19266
19267 2005-08-17  Bruno Haible  <bruno@clisp.org>
19268
19269         * lib/strcasecmp.c: Use mbuiter.h.
19270
19271 2005-08-17  Bruno Haible  <bruno@clisp.org>
19272
19273         * lib/mbuiter.h: New file.
19274
19275 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
19276
19277         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
19278         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
19279         and gl_GETOPT are both invoked via different paths (as happens
19280         with GNU tar CVS because it uses both argp and getopt), the former
19281         wins.
19282
19283 2005-08-16  Bruno Haible  <bruno@clisp.org>
19284
19285         * modules/tls: New file.
19286         * MODULES.html.sh (Multithreading): Add tls.
19287
19288 2005-08-16  Bruno Haible  <bruno@clisp.org>
19289
19290         * modules/strnlen1: New file.
19291         * MODULES.html.sh (String handling): Add strnlen1.
19292
19293 2005-08-16  Bruno Haible  <bruno@clisp.org>
19294
19295         * modules/strcase (Files): Add m4/mbrtowc.m4.
19296         (Depends-on): Add strnlen1, mbchar.
19297
19298 2005-08-16  Bruno Haible  <bruno@clisp.org>
19299
19300         * modules/mbiter: New file.
19301         * MODULES.html.sh (Extended multibyte and wide character utilities):
19302         Add mbiter.
19303
19304 2005-08-16  Bruno Haible  <bruno@clisp.org>
19305
19306         * modules/mbfile: New file.
19307         * MODULES.html.sh (Extended multibyte and wide character utilities):
19308         Add mbfile.
19309
19310 2005-08-16  Bruno Haible  <bruno@clisp.org>
19311
19312         * modules/mbchar: New file.
19313         * MODULES.html.sh (Extended multibyte and wide character utilities):
19314         New section.
19315
19316 2005-08-16  Bruno Haible  <bruno@clisp.org>
19317
19318         * m4/tls.m4: New file, from GNU gettext.
19319
19320 2005-08-16  Bruno Haible  <bruno@clisp.org>
19321
19322         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
19323         always.
19324         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
19325
19326 2005-08-16  Bruno Haible  <bruno@clisp.org>
19327
19328         * m4/mbiter.m4: New file.
19329
19330 2005-08-16  Bruno Haible  <bruno@clisp.org>
19331
19332         * m4/mbfile.m4: New file.
19333
19334 2005-08-16  Bruno Haible  <bruno@clisp.org>
19335
19336         * m4/mbchar.m4: New file.
19337
19338 2005-08-16  Bruno Haible  <bruno@clisp.org>
19339
19340         * lib/tls.h: New file, from GNU gettext.
19341         * lib/tls.c: New file, from GNU gettext.
19342
19343 2005-08-16  Bruno Haible  <bruno@clisp.org>
19344
19345         * lib/strnlen1.h: New file.
19346         * lib/strnlen1.c: New file.
19347
19348 2005-08-16  Bruno Haible  <bruno@clisp.org>
19349
19350         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
19351         (mbi_init): Update.
19352         (mbi_avail, mbi_advance): Let the iteration end before the terminating
19353         NUL byte, not after it.
19354
19355 2005-08-16  Bruno Haible  <bruno@clisp.org>
19356
19357         * lib/strcase.h (strcasecmp): Add note in comments.
19358         * lib/strncasecmp.c: Use code from strcasecmp.c.
19359         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
19360         (strcasecmp): Work correctly in multibyte locales.
19361
19362 2005-08-16  Bruno Haible  <bruno@clisp.org>
19363
19364         * lib/mbiter.h: New file.
19365
19366 2005-08-16  Bruno Haible  <bruno@clisp.org>
19367
19368         * lib/mbfile.h: New file.
19369
19370 2005-08-16  Bruno Haible  <bruno@clisp.org>
19371
19372         * lib/mbchar.h: New file.
19373         * lib/mbchar.c: New file.
19374
19375 2005-08-16  Bruno Haible  <bruno@clisp.org>
19376
19377         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
19378         the valid ones. Makes the comparison operations transitive:
19379         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
19380         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
19381
19382 2005-08-15  Simon Josefsson  <jas@extundo.com>
19383
19384         * modules/ssize_t (License): Change to 'unlimited'.
19385
19386         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
19387
19388 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19389
19390         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
19391         Add comments for each pending glibc patch.
19392
19393 2005-08-15  Bruno Haible  <bruno@clisp.org>
19394
19395         * lib/regex.h (__restrict_arr): Don't define to __restrict if
19396         __cplusplus is defined.
19397
19398 2005-08-14  Jim Meyering  <jim@meyering.net>
19399
19400         Sync from coreutils.
19401
19402         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
19403         Use the hash-table-based cycle-detection code not just when
19404         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
19405         Reported by James Youngman in
19406         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
19407         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
19408         FTS_TIGHT_CYCLE_CHECK.
19409         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
19410         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
19411         once again.
19412         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
19413         * lib/fts.c (fd_safer): Remove decl.
19414         Include fcntl--.h rather than unistd-safer.h
19415         (fts_safe_changedir): Don't call fd_safer; no longer needed
19416         now that we include fcntl--.h.
19417
19418 2005-08-12  Simon Josefsson  <jas@extundo.com>
19419
19420         * modules/getndelim2: Use ssize_t module.
19421         * modules/getnline: Likewise.
19422         * modules/safe-read: Likewise.
19423         * modules/xreadlink: Likewise.
19424
19425         * modules/ssize_t: New file.
19426
19427 2005-08-12  Simon Josefsson  <jas@extundo.com>
19428
19429         * m4/readline.m4: Look for termcap, curses or ncurses if required.
19430
19431 2005-08-12  Simon Josefsson  <jas@extundo.com>
19432
19433         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19434         ssize_t.
19435
19436 2005-08-12  Simon Josefsson  <jas@extundo.com>
19437
19438         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
19439         readline, getdelim and check_version.
19440         (Support for systems lacking ISO C 99: Sizes of integer types):
19441         Add size_max.
19442
19443 2005-08-12  Bruno Haible  <bruno@clisp.org>
19444
19445         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
19446
19447 2005-08-11  Simon Josefsson  <jas@extundo.com>
19448
19449         * modules/readline: New file.
19450
19451         * modules/strnlen (Files): Add strnlen.h.
19452
19453 2005-08-11  Simon Josefsson  <jas@extundo.com>
19454
19455         * m4/readline.m4: New file.
19456
19457 2005-08-11  Simon Josefsson  <jas@extundo.com>
19458
19459         * lib/readline.h, readline.c: New file.
19460
19461 2005-08-11  Simon Josefsson  <jas@extundo.com>
19462
19463         * doc/gnulib.texi (Initial import, Finishing touches): Mention
19464         gl_AVOID.
19465
19466 2005-08-11  Bruno Haible  <bruno@clisp.org>
19467
19468         * lib/strnlen.h (strnlen): Change parameter name to match comment.
19469
19470 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
19471
19472         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
19473
19474 2005-08-10  Simon Josefsson  <jas@extundo.com>
19475
19476         * tests/test-iconvme.c: New file.
19477
19478 2005-08-10  Simon Josefsson  <jas@extundo.com>
19479
19480         * m4/strnlen.m4: New file.
19481
19482         * m4/strndup.m4: Don't check for strnlen declaration, done in
19483         strnlen.m4.
19484
19485 2005-08-10  Simon Josefsson  <jas@extundo.com>
19486
19487         * lib/strndup.c: Use strnlen.h.
19488
19489         * lib/strnlen.h: New file.
19490
19491 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
19492
19493         * README: Typos.
19494
19495 2005-08-02  Simon Josefsson  <jas@extundo.com>
19496
19497         * modules/readline: New file.
19498
19499 2005-08-02  Simon Josefsson  <jas@extundo.com>
19500
19501         * modules/getdelim: New file.
19502
19503         * modules/getline: Rewrite, don't use getndelim2.
19504
19505 2005-08-02  Simon Josefsson  <jas@extundo.com>
19506
19507         * m4/getline.m4: Separate out getdelim stuff into separate module.
19508
19509         * m4/getdelim.m4: New file.
19510
19511 2005-08-02  Simon Josefsson  <jas@extundo.com>
19512
19513         * lib/getline.h, getline.c: Rewrite.
19514
19515         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
19516
19517 2005-07-31  Bruno Haible  <bruno@clisp.org>
19518
19519         * lib/lock.h (gl_lock_initializer): New macro.
19520         (gl_lock_define_initialized): Use it.
19521         (gl_rwlock_initializer): New macro.
19522         (gl_rwlock_define_initialized): Use it.
19523         (gl_recursive_lock_initializer): New macro.
19524         (gl_recursive_lock_define_initialized): Use it.
19525
19526 2005-07-30  Karl Berry  <karl@gnu.org>
19527
19528         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
19529         Report from Ben Pfaff, regarding getopt.
19530
19531 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
19532
19533         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
19534         normal way.
19535         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
19536         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
19537         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
19538         (gl_GETOPT): Use the new macros.  Most of the implementation
19539         is moved to the new macros.  This is for programs like Emacs
19540         that don't want all the functionality of gl_GETOPT.
19541
19542 2005-07-26  Bruno Haible  <bruno@clisp.org>
19543
19544         * m4/lock.m4: Update from GNU gettext.
19545
19546 2005-07-26  Bruno Haible  <bruno@clisp.org>
19547
19548         * lib/lock.h: Update from GNU gettext.
19549         * lib/lock.c: Update from GNU gettext.
19550
19551 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
19552
19553         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
19554         obsolescent AC_TRY_RUN.  Include the default includes files, for
19555         'exit'.
19556
19557 2005-07-24  Bruno Haible  <bruno@clisp.org>
19558
19559         * modules/visibility: New file.
19560         * MODULES.html.sh (Misc): Add visibility.
19561
19562 2005-07-24  Bruno Haible  <bruno@clisp.org>
19563
19564         * m4/visibility.m4: New file.
19565
19566 2005-07-24  Bruno Haible  <bruno@clisp.org>
19567
19568         * doc/visibility.texi: New file.
19569
19570 2005-07-22  Bruno Haible  <bruno@clisp.org>
19571
19572         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
19573         $(ALLOCA_H), redundant through BUILT_SOURCES.
19574         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
19575         redundant through BUILT_SOURCES.
19576         * modules/byteswap (Makefile.am): Remove explicit dependency on
19577         $(BYTESWAP_H), redundant through BUILT_SOURCES.
19578         * modules/fnmatch (Makefile.am): Remove explicit dependency on
19579         $(FNMATCH_H), redundant through BUILT_SOURCES.
19580         * modules/getopt (Makefile.am): Remove explicit dependency on
19581         $(GETOPT_H), redundant through BUILT_SOURCES.
19582         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
19583         redundant through BUILT_SOURCES.
19584         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
19585         redundant through BUILT_SOURCES.
19586         * modules/stdbool (Makefile.am): Remove explicit dependency on
19587         $(STDBOOL_H), redundant through BUILT_SOURCES.
19588         * modules/stdint (Makefile.am): Remove explicit dependency on
19589         $(STDINT_H), redundant through BUILT_SOURCES.
19590         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
19591         Remove explicit dependency on $(SYSEXITS_H).
19592         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
19593
19594 2005-07-18  Simon Josefsson  <jas@extundo.com>
19595
19596         * lib/check-version.c (check_version): Accept identical versions too.
19597
19598 2005-07-18  Bruno Haible  <bruno@clisp.org>
19599
19600         * modules/lock: New file.
19601         * MODULES.html.sh (Multithreading): New section.
19602
19603 2005-07-18  Bruno Haible  <bruno@clisp.org>
19604
19605         * m4/lock.m4: New file, from GNU gettext.
19606
19607 2005-07-18  Bruno Haible  <bruno@clisp.org>
19608
19609         * lib/lock.h: New file, from GNU gettext.
19610         * lib/lock.c: New file, from GNU gettext.
19611
19612 2005-07-18  Bruno Haible  <bruno@clisp.org>
19613
19614         * lib/lock.h (gl_once_t): New type.
19615         (gl_once_define, gl_once): New macros.
19616         * lib/lock.c (fresh_once): New variable.
19617         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
19618         functions.
19619
19620 2005-07-16  Simon Josefsson  <jas@extundo.com>
19621
19622         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
19623         workaround, suggested by Bruno.
19624
19625 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
19626
19627         * modules/xalloc (Depends-on): Add xalloc-die.
19628         * modules/xvasprintf (Depends-on): Add xalloc-die.
19629
19630 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
19631
19632         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
19633         with a minor change.
19634
19635 2005-07-15  Bruno Haible  <bruno@clisp.org>
19636
19637         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
19638         When using lib/poll.c, define poll as rpl_poll.
19639
19640 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
19641
19642         * modules/argp (Depends-on): Remove unlocked-io.
19643
19644 2005-07-14  Derek Price  <derek@ximbiot.com>
19645
19646         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
19647         for glob symlink bug.
19648
19649 2005-07-14  Bruno Haible  <bruno@clisp.org>
19650
19651         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
19652         Instead, test for *_unlocked function declarations directly.
19653
19654 2005-07-11  Simon Josefsson  <jas@extundo.com>
19655
19656         * modules/size_max: New file.
19657
19658         * modules/xsize: Depend on size_max module for size_max.m4.
19659
19660 2005-07-11  Simon Josefsson  <jas@extundo.com>
19661
19662         * lib/size_max.h: New file.
19663
19664 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
19665
19666         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
19667         copyright symbol and the year.
19668         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
19669         (version_etc_va): Use parameterized copyright notice.
19670         Reword to conform to the current GNU coding standards.
19671
19672 2005-07-11  Karl Berry  <karl@gnu.org>
19673
19674         * doc/gnulib.texi (Quoting): new node.
19675         (Initial import): more info, from Patrice.
19676
19677 2005-07-11  Bruno Haible  <bruno@clisp.org>
19678
19679         * gnulib-tool (func_usage): Document option --avoid.
19680         (Command line options): Handle --avoid.
19681         (func_acceptable): New function.
19682         (func_modules_transitive_closure): Use it.
19683
19684 2005-07-11  Bruno Haible  <bruno@clisp.org>
19685
19686         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
19687         Reported by Jim Meyering.
19688
19689 2005-07-10  Bruno Haible  <bruno@clisp.org>
19690
19691         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
19692         Needed when size_t is smaller than 'unsigned int'.
19693         Reported by Paul Eggert.
19694
19695 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
19696
19697         * modules/argp (Depends-on): Add unlocked-io
19698
19699 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
19700
19701         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
19702         block of defines.
19703
19704 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
19705
19706         * config/srclist.txt: Comment out regcomp.c, since we have a porting
19707         fix now.
19708
19709 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
19710         and Paul Eggert  <eggert@cs.ucla.edu>
19711
19712         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
19713         in wint_t, not wchar_t.  Remove now-unnecessary cast.
19714
19715 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
19716
19717         * modules/regex (Files): Add lib/regex_internal.c,
19718         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
19719         (Depends-on): Add extensions.
19720         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
19721
19722 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
19723
19724         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
19725         pathconf.
19726         * m4/same.m4 (gl_SAME): Likewise.
19727         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
19728
19729         * m4/regex.m4: Adjust to new libc regex implementation.
19730         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
19731         all the .c and .h parts of (the new) regex.
19732         Quote the m4 stuff better.
19733         Check for RE_ICASE bug of old gnulib.
19734         Check for REG_STARTEND of recent libc.
19735         Rename local variables from jm_* to gl_*.
19736         Quote operand of "test -f".
19737         Say "recent enough" version of libc, not "version 2".
19738         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
19739         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
19740         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
19741         Remove check for btowc, isascii.
19742         Require AM_LANGINFO_CODESET.
19743
19744 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
19745
19746         * lib/regex.c, regex.h: Sync from libc.
19747         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
19748         * lib/regexec.c:
19749         New files, synced from libc, except that regex_internal.h
19750         currently has a small porting fix.
19751
19752 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
19753
19754         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
19755         regex_internal.c, regexec.c.
19756         Add regex_internal.h too, but as a comment, since the libc version
19757         is currently broken in gnulib mode.
19758
19759 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19760
19761         Support programs like Emacs that use gnulib but not gettext.
19762         * MODULES.html.sh (Internationalization functions): Add gettext-h.
19763         * modules/gettext-h: New file.
19764         * modules/gettext (Files): Remove lib/gettext.h.
19765         (Depends-on): Add gettext-h.
19766         (Makefile.am): Remove lib_SOURCES.
19767         * modules/argmatch, modules/c-stack, modules/closeout:
19768         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
19769         * modules/execute, modules/file-type, modules/getaddrinfo:
19770         * modules/getopt, modules/human, modules/javacomp:
19771         * modules/javaexec, modules/mkdir-p, modules/obstack:
19772         * modules/openat, modules/pagealign_alloc, modules/pipe:
19773         * modules/quotearg, modules/regex, modules/rpmatch:
19774         * modules/unicodeio, modules/userspec, modules/version-etc:
19775         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
19776         * modules/xsetenv:
19777         Depend on gettext-h, not gettext.
19778
19779 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
19780
19781         * gnulib-tool (func_import): Add support for 'public domain' license.
19782         * modules/alloca, modules/atexit, modules/memmove:
19783         Now public domain, not GPL.
19784         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
19785         * modules/realloc, modules/strerror, modules/strtod:
19786         Now LGPL, not GPL.
19787
19788 2005-07-05  Bruno Haible  <bruno@clisp.org>
19789
19790         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
19791         autoconf CVS. Needed for mingw.
19792
19793 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
19794
19795         Remove the dependency of the strftime module on the tzset module.
19796         * modules/strftime (Depends-on): Remove dependency on tzset.
19797
19798 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
19799
19800         Remove the dependency of the strftime module on the tzset module.
19801         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
19802         gl_FUNC_TZSET_CLOBBER.
19803
19804 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
19805
19806         Remove the dependency of the strftime module on the tzset module.
19807         * lib/strftime.c (my_strftime)
19808         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
19809         Copy the input structure, to work around some of the bug with
19810         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
19811         Solaris releases, you should also use the tzset module, but we won't
19812         require it as a dependency any more since we don't want LGPLed code
19813         to depend on GPLed code.
19814
19815 2005-07-02  Jim Meyering  <jim@meyering.net>
19816
19817         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
19818         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
19819         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
19820         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
19821
19822 2005-07-02  Jim Meyering  <jim@meyering.net>
19823
19824         * lib/backupfile.c (backup_args): Change a `0' to NULL.
19825
19826 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
19827
19828         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
19829         declares only 'struct timespec;' (!).
19830
19831 2005-07-01  Jim Meyering  <jim@meyering.net>
19832
19833         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
19834         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
19835         * lib/save-cwd.c, tempname.c:
19836         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
19837         and don't include <sys/file.h>).
19838
19839 2005-06-29  Jim Meyering  <jim@meyering.net>
19840
19841         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
19842         type name.  Use the variable name instead.
19843         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
19844         Likewise.
19845
19846 2005-06-28  Simon Josefsson  <jas@extundo.com>
19847
19848         * modules/check-version (Files): Add check-version.m4.
19849
19850 2005-06-28  Simon Josefsson  <jas@extundo.com>
19851
19852         * m4/check-version.m4: New file, suggested by Jim Meyering
19853         <jim@meyering.net>.
19854
19855 2005-06-28  Simon Josefsson  <jas@extundo.com>
19856
19857         * lib/check-version.h, lib/check-version.c: New files.
19858
19859 2005-06-28  Simon Josefsson  <jas@extundo.com>
19860
19861         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
19862         collision with global variable.  Better indentation.  Don't
19863         increment buffer pointer beyond buffer end.  Based on comments
19864         from Paul Eggert <eggert@cs.ucla.edu>.
19865
19866         * lib/base64.h: Indent.
19867
19868 2005-06-28  Simon Josefsson  <jas@extundo.com>
19869
19870         * doc/gnulib.texi (Library version handling): New section.
19871
19872 2005-06-28  Jim Meyering  <jim@meyering.net>
19873
19874         * check-module (find_included_lib_files): Hard-code another
19875         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
19876         but modules/fts-lgpl (correctly) does not list those files.
19877
19878         * modules/canonicalize (Files): Add lib/pathmax.h.
19879
19880 2005-06-25  Simon Josefsson  <jas@extundo.com>
19881
19882         * modules/check-version: New file.
19883
19884 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
19885
19886         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
19887         initializer of struct addrinfo, as an indication that we don't
19888         care how many members the structure has.
19889
19890 2005-06-24  Derek Price  <derek@ximbiot.com>
19891         and Bruno Haible  <bruno@clisp.org>
19892
19893         Remove stat module & update lstat.
19894         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
19895         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
19896         * m4/stat.m4: Remove this file.
19897
19898 2005-06-24  Derek Price  <derek@ximbiot.com>
19899         and Bruno Haible  <bruno@clisp.org>
19900
19901         Remove stat module & update lstat.
19902         * lib/stat.c: Remove this file...
19903         (slash_aware_lstat): ...moving this content and its support...
19904         * lib/lstat.c (rpl_lstat): ...into here.
19905         * lib/lstat.h: New file.
19906
19907 2005-06-24  Derek Price  <derek@ximbiot.com>
19908         and Bruno Haible  <bruno@clisp.org>
19909
19910         Remove stat module & update lstat.
19911         * config/srclist.txt (libc sources): Remove stat.
19912
19913 2005-06-24  Derek Price  <derek@ximbiot.com>
19914         and Bruno Haible  <bruno@clisp.org>
19915
19916         Remove stat module & update lstat.
19917         * MODULES.html.sh (stat): Remove.
19918         * MODULES.html: Regenerated.
19919         * modules/lstat (Description): Correct function name.
19920         (Files): Add "lstat.h".
19921         (Depends-on): Remove stat, add xalloc, stat-macros.
19922         * modules/stat: Remove this file.
19923         (Include): Add "lstat.h", remove <sys/stat.h>.
19924
19925 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
19926
19927         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
19928         (ranged_convert): Don't save conversion in a temporary struct.
19929         This causes a warning with GCC 4.0.0, and anyway in the typical
19930         case it's not worth the extra 100 bytes or so of code.
19931         (ranged_convert, __mktime_internal): When calling a function via a
19932         pointer P, use P () rather than (*P) (), as we now assume C89 or
19933         better.
19934
19935 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
19936
19937         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
19938         "who -r" failed to give output.  Problem reported by Tim Waugh.
19939
19940         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
19941         (xcalloc): Use it to avoid needless tests.
19942         Problem reported by Jim Meyering.
19943
19944 2005-06-20  Derek Price  <derek@ximbiot.com>
19945
19946         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
19947         unnecessary for Autoconfs > 2.59c.
19948
19949 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
19950
19951         * lib/argp.h (__option_is_short): Check upper limit of
19952         __key. Isprint() requires its argument to have the value
19953         of an unsigned char or EOF.
19954
19955 2005-06-16  Jim Meyering  <jim@meyering.net>
19956
19957         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
19958         when either N or S is zero.
19959
19960 2005-06-16  Derek Price  <derek@ximbiot.com>
19961
19962         * m4/bison.m4: Declare YACC & YFLAGS precious.
19963
19964 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
19965
19966         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
19967         multibyte string or pattern, fall back on unibyte matching.
19968         Problem reported by James Youngman.
19969
19970 2005-06-08  Bruno Haible  <bruno@clisp.org>
19971
19972         * modules/csharpcomp: New file.
19973         * MODULES.html.sh (C#): Add csharpcomp.
19974
19975 2005-06-08  Bruno Haible  <bruno@clisp.org>
19976
19977         * m4/csharpcomp.m4: New file, from GNU gettext.
19978
19979 2005-06-08  Bruno Haible  <bruno@clisp.org>
19980
19981         * lib/csharpcomp.h: New file, from GNU gettext.
19982         * lib/csharpcomp.c: New file, from GNU gettext.
19983         * lib/csharpcomp.sh.in: New file, from GNU gettext.
19984
19985 2005-06-08  Bruno Haible  <bruno@clisp.org>
19986
19987         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
19988         warning on mingw.
19989
19990 2005-06-07  Derek Price  <derek@ximbiot.com>
19991
19992         Sync from CVS.
19993         * lib/glob_.h: Indent nested #ifdef.
19994
19995 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
19996
19997         Sync from coreutils.
19998         Use "file name" when talking about file names, instead of "filename"
19999         or "path", as per the GNU coding standards.
20000         * lib/mkdir-p.c: Renamed from makepath.c.
20001         (make_dir_parents): Renamed from make_path.  All callers changed.
20002         * lib/mkdir-p.h: Likewise.  All includers changed.
20003         * lib/filenamecat.c: Renamed from path-concat.c.
20004         (file_name_concat): Renamed from path_concat.  All callers changed.
20005         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
20006         * lib/filenamecat.h: Likewise.  All includers changed.
20007         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
20008         in comments or local variable names.
20009         * lib/basename.c: Likewise.
20010         * lib/canonicalize.c, canonicalize.h: Likewise.
20011         * lib/dirname.c, dirname.h: Likewise.
20012         * lib/euidaccess.c: Likewise.
20013         * lib/exclude.c: Likewise
20014         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
20015         * lib/fsusage.c, fsuage.h: Likewise.
20016         * lib/fts.c, fts_.h: Likewise.
20017         * lib/getcwd.c: Likewise.
20018         * lib/getloadavg.c: Likewise.
20019         * lib/mkstemp.c: Likewise.
20020         * lib/mountlist.c, mountlist.h: Likewise.
20021         * lib/openat.c, openat.h: Likewise.
20022         * lib/readlink-stub.c: Likewise.
20023         * lib/readutmp.c, readutmp.h: Likewise.
20024         * lib/rename.c: Likewise.
20025         * lib/rmdir.c: Likewise.
20026         * lib/same.c: Likewise.
20027         * lib/savedir.c: Likewise.
20028         * lib/stripslash.c: Likewise.
20029         * lib/tempname.c: Likewise.
20030         * lib/xreadlink.c: Likewise.
20031         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
20032         All uses changed.
20033         * lib/exclude.h: Likewise.
20034
20035         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
20036         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
20037         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
20038         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
20039         * lib/pathmax.h: Include <limits.h> unconditionally, since other
20040         files have been getting away with it for years (MORE/BSD 4.3
20041         is extinct now).
20042         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
20043         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
20044
20045         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
20046         Define to 256, not 255, as per modern POSIX.
20047
20048 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20049
20050         Sync from coreutils.
20051         Use "file name" when talking about file names, instead of "filename"
20052         or "path", as per the GNU coding standards.
20053         * MODULES.html.sh: mkdir-p renamed from makepath.
20054         filenamecat renamed from path-concat.
20055         * modules/filenamecat: Renamed from modules/path-concat.
20056         (Files): filenamecat.h and filenamecat.c renamed from
20057         path-concat.h and path-concat.c.
20058         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
20059         (Include): filenamecat.h, not path-concat.h.
20060         * modules/mkdir-p: Renamed from modules/makepath.
20061         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
20062         makepath.c.
20063         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
20064         (Include): mkdir-p.h, not makepath.h.
20065
20066 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20067
20068         Sync from coreutils.
20069         * m4/mkdir-p.m4: Renamed from makepath.m4.
20070         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
20071         Rename files from makepath.c to mkdir-p.c, and from
20072         makepath.h to mkdir-p.h.
20073         * m4/filenamecat.m4: Renamed from path-concat.m4.
20074         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
20075         Rename files from path-concat.c to filenamecat.c,
20076         and from path-concat.h to filenamecat.h.
20077         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
20078         "file name" in local variables or comments.
20079         * m4/rename.m4: Likewise.
20080
20081 2005-06-01  Bruno Haible  <bruno@clisp.org>
20082
20083         * modules/csharpexec: New file.
20084         * MODULES.html.sh (C#): New section.
20085
20086 2005-06-01  Bruno Haible  <bruno@clisp.org>
20087
20088         * m4/csharp.m4: New file, from GNU gettext.
20089         * m4/csharpexec.m4: New file, from GNU gettext.
20090
20091 2005-06-01  Bruno Haible  <bruno@clisp.org>
20092
20093         * lib/csharpexec.h: New file, from GNU gettext.
20094         * lib/csharpexec.c: New file, from GNU gettext.
20095         * lib/csharpexec.sh.in: New file, from GNU gettext.
20096
20097 2005-05-31  Derek Price  <derek@ximbiot.com>
20098             Paul Eggert  <eggert@cs.ucla.edu>
20099
20100         Sync from cvs.
20101         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
20102
20103 2005-05-31  Derek Price  <derek@ximbiot.com>
20104             Paul Eggert  <eggert@cs.ucla.edu>
20105
20106         Sync from cvs.
20107         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
20108
20109 2005-05-29  Derek Price  <derek@ximbiot.com>
20110
20111         * config/srclist.txt (glob_.h, glob.c): Add these files.
20112
20113 2005-05-29  Derek Price  <derek@ximbiot.com>
20114
20115         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
20116         * modules/glob: New file.
20117         * modules/getlogin_r: Add link to POSIX spec in description.
20118
20119 2005-05-29  Derek Price  <derek@ximbiot.com>
20120             Paul Eggert  <eggert@cs.ucla.edu>
20121
20122         * m4/glob.m4: New file.
20123
20124 2005-05-29  Derek Price  <derek@ximbiot.com>
20125             Paul Eggert  <eggert@cs.ucla.edu>
20126
20127         * lib/glob_.h, lib/glob.c: New files.
20128
20129 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
20130
20131         * modules/fts (Files): Remove m4/inttypes-pri.m4.
20132         * modules/fts-lgpl (Depends-on): Remove gettext.
20133
20134 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
20135
20136         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
20137         and don't require gt_INTTYPES_PRI.
20138
20139 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
20140
20141         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
20142
20143         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
20144         the configuration hassle isn't worth it.
20145         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
20146         (LONGEST_MODIFIER, PRIuMAX): Remove.
20147
20148 2005-05-27  Bruno Haible  <bruno@clisp.org>
20149
20150         * lib/getlogin_r.h: Remove second include of <stddef.h>.
20151
20152 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
20153
20154         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
20155         _POSIX_PTHREAD_SEMANTICS for Solaris.
20156
20157 2005-05-25  Derek Price  <derek@ximbiot.com>
20158
20159         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
20160
20161 2005-05-25  Derek Price  <derek@ximbiot.com>
20162             Paul Eggert  <eggert@cs.ucla.edu>
20163
20164         * modules/getlogin_r, m4/getlogin_r.m4: New files.
20165         * lib/getlogin_r.c, getlogin_r.h: New files.
20166
20167 2005-05-25  Bruno Haible  <bruno@clisp.org>
20168             Derek Price  <derek@ximbiot.com>
20169
20170         * lib/getlogin_r.h: Simplify API documentation.
20171
20172 2005-05-23  Derek Price  <derek@ximbiot.com>
20173
20174         * modules/minmax (Files): Add m4/minmax.m4.
20175         (configure.ac): Add gl_MINMAX.
20176
20177 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20178
20179         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
20180         so that unistd-safer.h (GPL'ed code) need not be included.
20181
20182 2005-05-22  Bruno Haible  <bruno@clisp.org>
20183
20184         * m4/minmax.m4: New file.
20185         Based on a patch by Derek Price <derek@ximbiot.com>.
20186
20187 2005-05-22  Bruno Haible  <bruno@clisp.org>
20188
20189         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
20190         (INT64_MIN): Fix definition.
20191         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
20192
20193         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
20194         NEED_SIGNED_INT_TYPES.
20195
20196         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
20197         HAVE_SYSTEM_INTTYPES.
20198
20199 2005-05-22  Bruno Haible  <bruno@clisp.org>
20200
20201         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
20202         Also include <sys/param.h> if it defines MIN, MAX.
20203         Based on a patch by Derek Price <derek@ximbiot.com>.
20204
20205 2005-05-21  Jim Meyering  <jim@meyering.net>
20206
20207         * modules/fts (Files): Add m4/inttypes-pri.m4.
20208         (Depends-on): Add lstat and remove gettext.  Alphabetize.
20209
20210 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20211
20212         New fts module.
20213         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
20214         (setup_dir, free_dir): New functions.
20215         (enter_dir, leave_dir): Define trivial
20216         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
20217         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
20218         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
20219         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
20220         Move to fts-cycle.c.
20221         (fts_open): Use setup_dir.
20222         (fts_close): Use free_dir.
20223         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
20224         This adds a label and some gotos, but the alternatives were messier.
20225         Check for memory allocation failure when entering a dir.
20226         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
20227         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
20228         (FTS): New member fts_cycle, that is a union that contains the
20229         old active_dir_ht and cycle_state.  All uses changed to mention
20230         fts_cycle.ht and fts_cycle.state.
20231         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
20232         fts.c, with the following changes:
20233         (setup_dir, free_dir): New functions.
20234         (enter_dir): Now returns bool.  Return true if successful, false
20235         if memory exhausted.  All callers changed.
20236         Do not bother partly cleaning up on
20237         memory allocation failure; that is free_dir's job.
20238         However, free ad if hash_insert fails, to avoid memory leak.
20239         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
20240         fts->fts_options to see which union member to use.
20241
20242 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20243
20244         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
20245         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
20246
20247 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20248
20249         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
20250
20251 2005-05-20  Jim Meyering  <jim@meyering.net>
20252
20253         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
20254         Now a macro, to pacify GCC.
20255
20256 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
20257
20258         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
20259         of -1.
20260
20261 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
20262
20263         * lib/chown.c (rpl_chown): Return -1 on failure.
20264
20265 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
20266
20267         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
20268         Don't check for stddef.h.
20269         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
20270         don't use its results.
20271         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
20272         since we include them unconditionally.  Don't require
20273         AM_STDBOOL_H, since stdbool is a prerequisite.
20274         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
20275         since we assume C89 or better.
20276         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
20277         as we don't use their results.
20278         Don't check for fchdir, memmove, memset, strrchr, as we use
20279         them unconditionally.
20280         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
20281         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
20282
20283 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
20284
20285         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
20286         Include <stddef.h> unconditionally, since we assume C89 now.
20287         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
20288         * lib/fts.c: Include fts_.h first, to check interface.
20289         Do not include intprops.h; no longer needed.
20290         Include cycle-check.h and hash.h, since fts_.h no longer does.
20291         Remove unnecessary casts of closedir to void.
20292         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
20293         decide whether to decrement nlinks.
20294         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
20295         (FTS): Use struct hash_table * instead of Hash_table, so that
20296         we no longer need to include hash.h here.
20297
20298 2005-05-18  Jim Meyering  <jim@meyering.net>
20299
20300         * modules/dirfd (License): Change to LGPL.  Most of the code
20301         is already in the public domain.
20302
20303 2005-05-18  Jim Meyering  <jim@meyering.net>
20304
20305         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
20306         Reported by Yoann Vandoorselaere.
20307
20308 2005-05-17  Jim Meyering  <jim@meyering.net>
20309
20310         * m4/fts.m4: New file, from coreutils.
20311
20312 2005-05-17  Jim Meyering  <jim@meyering.net>
20313
20314         * lib/fts.c, lib/fts_.h: New files, from coreutils.
20315
20316 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
20317
20318         Sync from coreutils.
20319         * m4/unlinkdir.m4: New file.
20320
20321 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
20322
20323         Sync from coreutils.
20324         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
20325         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
20326         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
20327         White space changes only.
20328         * lib/makepath.c (make_path): Port to hosts where leading "//" is
20329         special.
20330         * lib/yesno.c: Include getline.h, not ctype.h.
20331         (yesno): Don't remove leading white space; POSIX doesn't allow it.
20332         Use getline to remove arbitrary restriction on response length.
20333
20334 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
20335
20336         * config/srclist-update: Spell out "Street" in FSF postal
20337         mail address; this is the style the FSF seems to prefer.
20338
20339         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
20340         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
20341         this updates FSF postal mail address.
20342
20343         Sync from coreutils.
20344         * modules/unlinkdir: New file.
20345         * modules/yesno (Depends-on): Add getline.
20346         * MODULES.html.sh (File system functions): Add unlinkdir.
20347
20348 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20349
20350         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
20351         lib/strsep.h:
20352         Change the initial comment to refer to GPL, not LGPL.
20353         gnulib-tool will change it to LGPL as needed.
20354
20355         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
20356         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
20357         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
20358         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
20359         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
20360         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
20361         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
20362         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
20363         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
20364         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
20365         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
20366         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
20367         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
20368         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
20369         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
20370         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
20371         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
20372         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
20373         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
20374         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
20375         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
20376         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
20377         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
20378         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
20379         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
20380         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
20381         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
20382         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
20383         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
20384         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
20385         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
20386         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
20387         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
20388         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
20389         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
20390         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
20391         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
20392         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
20393         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
20394         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
20395         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
20396         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
20397         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
20398         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
20399         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
20400         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
20401         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
20402         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
20403         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
20404         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
20405         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
20406         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
20407         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
20408         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
20409         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
20410         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
20411         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
20412         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
20413         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
20414         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
20415         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
20416         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
20417         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
20418         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
20419         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
20420         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
20421         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
20422         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
20423         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
20424         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
20425         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
20426         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
20427         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
20428         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
20429         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
20430         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
20431         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
20432         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
20433         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
20434         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
20435         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
20436         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
20437         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
20438         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
20439         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
20440         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
20441         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
20442         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
20443         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
20444         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
20445         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
20446         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
20447         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
20448         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
20449         lib/yesno.c, lib/yesno.h:
20450         Update FSF postal mail address.
20451
20452 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20453
20454         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
20455         tests/test-memmem.c, tests/test-stpncpy.c:
20456         Update FSF postal mail address.
20457
20458 2005-05-13  Bruno Haible  <bruno@clisp.org>
20459
20460         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
20461         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
20462         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
20463         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
20464         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
20465         Add support for 64-bit integers in the MSVC compiler.
20466
20467 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20468
20469         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
20470
20471 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
20472
20473         * gnulib-tool (func_import): Sort and uniquify recommended includes.
20474
20475 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
20476
20477         * doc/getdate.texi (General date syntax): Don't say that date
20478         date --iso-8601=ns generates acceptable dates; it doesn't yet.
20479         Problem reported by Nic Ferrier.
20480
20481 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20482
20483         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
20484         specified in ai_socktype. Fix invalid ai_protocol
20485         check. ai_protocol is usually set to 0 or depending on
20486         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
20487         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
20488         ai_socktype / ai_protocol in the returned addrinfo structure.
20489
20490 2005-05-10  Simon Josefsson  <jas@extundo.com>
20491
20492         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
20493         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20494
20495 2005-05-10  Karl Berry  <karl@gnu.org>
20496
20497         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
20498         (from http://www.gnu.org/licenses).
20499         * doc/COPYING.LIB: also rename to COPYING.LESSER.
20500         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
20501         fdl.texi suffices.
20502
20503 2005-05-10  Karl Berry  <karl@gnu.org>
20504
20505         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
20506         (COPYING.DOC): remove.
20507
20508         * config/srclist-update: new FSF address.
20509
20510 2005-05-10  Derek Price  <derek@ximbiot.com>
20511
20512         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
20513         possible.
20514
20515 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20516             Bruno Haible  <bruno@clisp.org>
20517
20518         * modules/inet_ntop: New file.
20519         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20520         inet_ntop.
20521
20522 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20523             Bruno Haible  <bruno@clisp.org>
20524
20525         * m4/inet_ntop.m4: New file.
20526
20527 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20528             Bruno Haible  <bruno@clisp.org>
20529
20530         * lib/inet_ntop.h: New file.
20531         * lib/inet_ntop.c: New file, from glibc with modifications.
20532
20533 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
20534
20535         * modules/time_r (License): Change to LGPL.
20536         * modules/extensions (License): Change to LGPL.  Actually,
20537         the license is more permissive than that, but currently gnulib-tool
20538         doesn't know how to handle more-permissive licenses.
20539
20540         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
20541         Problem reported by Dave Love.
20542
20543 2005-05-08  Jim Meyering  <jim@meyering.net>
20544
20545         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
20546         blank.
20547
20548 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
20549
20550         * modules/argmatch (Depends-on): Add stdbool.
20551         * modules/backupfile (Depends-on): Likewise.
20552         * modules/chdir-long (Depends-on): Likewise.
20553         * modules/closeout (Depends-on): Likewise.
20554         * modules/cycle-check (Depends-on): Likewise.
20555         * modules/dirname (Depends-on): Likewise.
20556         * modules/fnmatch (Depends-on): Likewise.
20557         * modules/fsusage (Depends-on): Likewise.
20558         * modules/fwriteerror (Depends-on): Likewise.
20559         * modules/getcwd (Depends-on): Likewise.
20560         * modules/getloadavg (Depends-on): Likewise.
20561         * modules/hard-locale (Depends-on): Likewise.
20562         * modules/makepath (Depends-on): Likewise.
20563         * modules/mountlist (Depends-on): Likewise.
20564         * modules/nanosleep (Depends-on): Likewise.
20565         * modules/posixtm (Depends-on): Likewise.
20566         * modules/quotearg (Depends-on): Likewise.
20567         * modules/readtokens (Depends-on): Likewise.
20568         * modules/readtokens0 (Depends-on): Likewise.
20569         * modules/readutmp (Depends-on): Likewise.
20570         * modules/save-cwd (Depends-on): Likewise.
20571         * modules/strftime (Depends-on): Likewise.
20572         * modules/userspec (Depends-on): Likewise.
20573         * modules/utimecmp (Depends-on): Likewise.
20574         * modules/xgetcwd (Depends-on): Likewise.
20575         * modules/xnanosleep (Depends-on): Likewise.
20576         * modules/xstrtod (Depends-on): Likewise.
20577         * modules/yesno (Depends-on): Likewise.
20578
20579 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20580
20581         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
20582         needless checks.
20583
20584 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
20585
20586         Merge from coreutils.  Among other things,
20587         add bulletproofing for cases where stdin, stdout, or stderr are closed.
20588         * lib/fd-safer.c: New file.
20589         * lib/fcntl-safer.h, open-safer.c: Remove.
20590         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
20591         * lib/dup-safer.c: Include unistd-safer.h first.
20592         Don't include errno.h.
20593         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
20594         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
20595         * lib/file-type.c: Rely on file-type.h change.
20596         * lib/getloadavg.c: Include unistd-safer.h.
20597         (getloadavg): Use safer open.
20598         * lib/getusershell.c: Include "stdio-safer.h".
20599         (getusershell): Use safer fopen.
20600         * lib/long-options.c (long_options): Use NULL rather than 0.
20601         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
20602         'free'.
20603         * lib/modechange.c: Likewise.
20604         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
20605         (MODE_DONE): New constant.
20606         (struct mode_change): Remove 'next' member.
20607         (make_node_op_equals): New function; like the old one of the
20608         same name, except it allocates an array.
20609         (mode_compile, mode_create_from_ref): Use it.
20610         (mode_compile): Allocate result as an array, not a linked list.
20611         Parse octal string ourself, so that we catch mistakes like "+0".
20612         (mode_adjust): Arg is an array, not a linked list.
20613         * lib/modechange.c: Include stat-macros.h, xalloc.h.
20614         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
20615         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
20616         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
20617         Remove.  This is now stat-macros.h's job.
20618         (talloc): Remove.  All callers replaced by xalloc, so that
20619         our invokers don't have to worry about reporting memory failures.
20620         (make_node_op_equals): Remove.
20621         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
20622         New constants.
20623         (struct mode_change): Moved here from modechange.h.
20624         (mode_append_entry): Remove.
20625         (mode_compile): Remove MASKED_OPS arg, since it encouraged
20626         apps to have incorrect behavior.  Use simpler algorithm for head
20627         and tail.  Don't futz with umask; that's now the job of mode_adjust.
20628         Detect more invalid usages rather than having somewhat-random behavior.
20629         Don't insert an "a=" action, as that leads to incorrect behavior.
20630         (mode_compile, mode_create_from_ref): Return NULL on error instead
20631         of an enum, since now there's only one way to have an error.  All
20632         callers changed.
20633         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
20634         at the correct time.  Simplify calculation of "+u" and its ilk.
20635         Don't mishandle "+X".
20636         (mode_free): Remove "register" and localize decls.
20637         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
20638         (struct mode_change): Move to modechange.c; callers don't
20639         need to see this stuff.
20640         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
20641         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
20642         (mode_change, mode_adjust): Reflect the new signatures noted above.
20643         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
20644         that might redefine system include files.
20645         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
20646         (my_usleep): Use NULL rather than (void *) 0.
20647         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
20648         Use siginterrupt to specify that system calls should be interrupted.
20649         (rpl_nanosleep): Move initialization of suspended closer to call of
20650         my_usleep.
20651         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
20652         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
20653         (desirable_utmp_entry): New function.
20654         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
20655         using x2nrealloc, to simplify logic.
20656         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
20657         size calculation.  Do not assume utmp file is a regular file.
20658         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
20659         (READ_UTMP_CHECK_PIDS): New constant.
20660         * lib/save-cwd.c: Include unistd-safer.h.
20661         (save_cwd): Use fd_safer.
20662         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
20663         [!_LIBC] Include "stat-macros.h" instead.
20664         * lib/unistd-safer.h (fd_safer): New decl.
20665
20666 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
20667
20668         * modules/getloadavg (Depends-on): Add unistd-safer.
20669         * modules/getusershell (Depends-on): Add stdio-safer.
20670         * modules/lstat (Depends-on): Remove xalloc.
20671         * modules/mkstemp (Depends-on): Add stat-macros.
20672         * modules/modechange (Depends-on): Remove xstrtol.
20673         Add stat-macros, xalloc.
20674         * modules/save-cwd (Depends-on): Add unistd-safer.
20675         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
20676         * modules/unistd-safer (Files): Add lib/fd-safer.c
20677         (Makefile.am): Remove lib_SOURCES.
20678
20679         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
20680         Remove fcntl-safer; unistd-safer supersedes it.
20681
20682 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
20683
20684         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
20685         AC_HEADER_STAT.
20686         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
20687         (gl_PREREQ_CHOWN): Remove.
20688         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
20689         it.  Don't require AC_HEADER_STAT.
20690         (gl_PREREQ_LSTAT): Remove.
20691         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
20692         Don't require AC_HEADER_STAT.
20693         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
20694         (gl_PREREQ_RMDIR): Remove.
20695         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
20696         mention stat-macros.h or AC_HEADER_STAT, since we'll make
20697         the stat-macros module a prerequisite.
20698         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
20699         * m4/filemode.m4 (gl_FILEMODE): Likewise.
20700         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
20701         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
20702         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
20703         variable names.
20704         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
20705         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
20706         variable prefixes.
20707         * m4/fcntl-safer.m4: Remove.
20708         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
20709         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
20710         Invoke gl_PREREQ_FD_SAFER.
20711         (gl_PREREQ_FD_SAFER): New macro.
20712         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
20713         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
20714         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
20715         Remove duplicate call to AC_LIBOBJ(readutmp).
20716         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
20717
20718         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
20719         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
20720
20721 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
20722
20723         * MODULES.html.sh (Misc): Add byteswap.
20724
20725 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
20726
20727         * modules/getcwd (Depends-on): Add extensions.
20728         * modules/openat (Depends-on): Likewise.
20729
20730 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
20731
20732         * modules/byteswap: New file.
20733
20734 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
20735
20736         * m4/byteswap.m4: New file.
20737
20738 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
20739
20740         * lib/byteswap_.h: New file.
20741
20742 2005-04-25  Karl Berry  <karl@gnu.org>
20743
20744         * m4/gettext.m4: Update from GNU gettext 0.14.4.
20745
20746 2005-04-25  Albert Chin  <china@thewrittenword.com>
20747
20748         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
20749         Toolkit C bug.
20750
20751 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
20752
20753         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
20754         (func_ln_if_changed) Remove forcibly for no error message
20755         in case file does not exist.
20756
20757 2005-04-19  Simon Josefsson  <jas@extundo.com>
20758
20759         * gnulib-tool (Options): Make --symlink mean --symbolic.
20760
20761 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
20762
20763         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
20764
20765 2005-04-16  Simon Josefsson  <jas@extundo.com>
20766
20767         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
20768
20769 2005-04-15  Simon Josefsson  <jas@extundo.com>
20770
20771         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
20772
20773 2005-04-15  Simon Josefsson  <jas@extundo.com>
20774
20775         * gnulib-tool: Rename --symlink to --symbolic.
20776
20777 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
20778
20779         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
20780         symbolic links to files instead of copying/moving.  Add --aux-dir,
20781         specifying directory relative --dir where auxiliary build tools
20782         are placed.
20783
20784 2005-04-14  Bruno Haible  <bruno@clisp.org>
20785
20786         * modules/allocsa (License): Change to LGPL.
20787         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20788
20789 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
20790
20791         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
20792         that "UTC +1 second" continues to work.  Problem reported
20793         by Dmitry V. Levin.
20794         (relunit_snumber): New rule.
20795         (relunit): Use it.
20796
20797 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
20798
20799         * lib/getdate.y (universal_time_zone_table): New constant.
20800         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
20801         universal_time_zone_table.
20802         (lookup_zone): Prefer universal_time_zone_table to
20803         local_time_zone_table, so that "GMT" time stamps are allowed in
20804         London during the summer.  Problem reported by Ian Abbott.
20805
20806 2005-04-12  Jim Meyering  <jim@meyering.net>
20807
20808         * lib/human.c (humblock): Set *options even when returning due to
20809         xstrtoumax conversion failure.  Thanks to a used-uninitialized
20810         warning from gcc-4.
20811
20812 2005-04-09  Jim Meyering  <jim@meyering.net>
20813
20814         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
20815         -Wuninitialized: initialize tm0.tm_year.
20816
20817 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
20818
20819         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
20820         count, since there's no maximum.  All uses changed.
20821         Add member dsts_seen.
20822         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
20823         not being INT_MAX.
20824         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
20825         Use pc_rels_seen to decide whther a date is absolute.
20826
20827         * lib/getdate.y (number): Don't overwrite year.
20828         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
20829         check.
20830
20831 2005-04-02  Simon Josefsson  <jas@extundo.com>
20832
20833         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
20834         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
20835
20836 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
20837
20838         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
20839         where no absolute path name can be longer than PATH_MAX.
20840
20841 2005-03-27  Jim Meyering  <jim@meyering.net>
20842
20843         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
20844
20845 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
20846
20847         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
20848         "one's complement" -> "ones' complement" in comment, as per Knuth.
20849         "value of type" -> "type or expression" in comment.
20850         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
20851
20852 2005-03-26  Jim Meyering  <jim@meyering.net>
20853
20854         Comment nits.
20855         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
20856         Correct typos: s/or/of/.
20857
20858 2005-03-26  Jim Meyering  <jim@meyering.net>
20859
20860         * modules/check-include-files: Move to ../ and rename to...
20861         * check-module: ...this.
20862
20863 2005-03-25  Jim Meyering  <jim@meyering.net>
20864
20865         * modules/xvasprintf (Files): Add xalloc.h.
20866
20867 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
20868
20869         * modules/gettext (Files): config/config.rpath ->
20870         build-aux/config.rpath
20871         * modules/iconv (Files): Likewise.
20872         Problem reported by Oskar Liljeblad.
20873
20874 2005-03-23  Jim Meyering  <jim@meyering.net>
20875
20876         * modules/check-include-files: New script to check for
20877         missing dependencies, multiple includes, etc.
20878
20879         * modules/c-strtold (Depends-on): Add xalloc.
20880         * modules/c-strtod (Depends-on): Add xalloc.
20881         * modules/hash (Depends-on): Add xalloc.
20882         (Files): Remove lib/xalloc.h.
20883
20884         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
20885         * modules/userspec (Files): Add lib/inttostr.h.
20886
20887 2005-03-23  Jim Meyering  <jim@meyering.net>
20888
20889         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
20890
20891 2005-03-22  Jim Meyering  <jim@meyering.net>
20892
20893         * modules/stat-macros: New module.
20894         * modules/canonicalize, modules/euidaccess, modules/file-type,
20895         * modules/filemode, modules/lchown, modules/makepath,
20896         * modules/rmdir, modules/stat: Depend on new stat-macros module
20897         rather than listing lib/stat-macros.h manually.
20898         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
20899
20900 2005-03-22  Jim Meyering  <jim@meyering.net>
20901
20902         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
20903
20904 2005-03-22  Bruno Haible  <bruno@clisp.org>
20905
20906         * config/srclist.txt: Replace target directory 'config' with
20907         'build-aux'.
20908         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
20909         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
20910         ../build-aux/.
20911
20912 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
20913
20914         * modules/chdir-long (Depends-on): Add mempcpy.
20915
20916         * modules/acl, modules/backupfile, modules/c-strtod,
20917         modules/c-strtold, modules/canon-host, modules/canonicalize,
20918         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
20919         modules/exclude, modules/exitfail, modules/file-type,
20920         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
20921         modules/getdate, modules/getline, modules/getpagesize,
20922         modules/getpass, modules/getugroups, modules/group-member,
20923         modules/hard-locale, modules/hash, modules/human, modules/idcache,
20924         modules/inttostr, modules/long-options, modules/makepath,
20925         modules/md5, modules/memcasecmp, modules/memcoll,
20926         modules/modechange, modules/mountlist, modules/path-concat,
20927         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
20928         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
20929         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
20930         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
20931         modules/strftime, modules/strndup, modules/strverscmp,
20932         modules/timespec, modules/unlocked-io, modules/userspec,
20933         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
20934         modules/yesno:
20935         Remove lib_SOURCES line from Makefile.am section, as this is now
20936         done automatically by the corresponding Autoconf macro.
20937
20938 2005-03-21  Jim Meyering  <jim@meyering.net>
20939
20940         Changes imported from coreutils.
20941
20942         * lib/cycle-check.c: Don't include xalloc.h.
20943
20944         * lib/path-concat.c: Don't include assert.h.
20945         (path_concat): Remove assertion that would have triggered
20946         for ABASE starting with more than one slash.
20947         Reported by Andreas Schwab.
20948
20949         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
20950         properly when ABASE is an absolute file name.
20951         Correct the description of this function.
20952         Include <assert.h>.
20953         Add an assertion and a test driver.
20954         This fixes a bug introduced on 2004-07-02.
20955         Andreas Schwab reported the resulting failure of cp --parents:
20956         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
20957
20958 2005-03-21  Jim Meyering  <jim@meyering.net>
20959
20960         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
20961         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
20962
20963 2005-03-21  Jim Meyering  <jim@meyering.net>
20964         and  Paul Eggert  <eggert@cs.ucla.edu>
20965
20966         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
20967         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
20968         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
20969         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
20970         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
20971         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
20972         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
20973         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
20974         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
20975         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
20976         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
20977         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
20978         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
20979         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
20980         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
20981         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
20982         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
20983         for these modules.
20984
20985 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
20986
20987         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
20988         (which shouldn't happen), generate nothing instead of returning 0
20989         immediately, so that nstrftime (NULL, ...) doesn't return 0.
20990
20991 2005-03-16  Bruno Haible  <bruno@clisp.org>
20992
20993         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
20994         HAVE_LONGLONG_64BIT.
20995
20996 2005-03-16  Bruno Haible  <bruno@clisp.org>
20997
20998         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
20999         HAVE_LONGLONG_64BIT.
21000
21001 2005-03-16  Bruno Haible  <bruno@clisp.org>
21002
21003         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
21004         HAVE_LONGLONG_64BIT.
21005
21006 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
21007
21008         * lib/strftime.c (my_strftime): Prepend space to format so that we can
21009         reliably distinguish strftime failure from empty output on POSIX
21010         hosts.
21011
21012 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
21013
21014         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
21015         (iconv_string): Don't guess a size-zero buffer, as that might cause
21016         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
21017         result would be 'too large', where 'too large' is (heuristically)
21018         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
21019         overflow concerns.  This will prevent some unwanted malloc failures
21020         when the inputs are very large.
21021
21022 2005-03-15  Karl Berry  <karl@gnu.org>
21023
21024         * config/srclist.txt (config.rpath): from gettext.
21025         * config/config.rpath: update.
21026
21027 2005-03-15  Bruno Haible  <bruno@clisp.org>
21028
21029         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
21030         to 'negate'.
21031
21032         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
21033         variable.
21034
21035         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
21036         results.
21037
21038 2005-03-14  Simon Josefsson  <jas@extundo.com>
21039
21040         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
21041         <fx@gnu.org>.
21042
21043 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
21044
21045         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
21046         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
21047         intprops.h.
21048         * lib/strtol.c: Likewise.
21049
21050 2005-03-14  Jim Meyering  <jim@meyering.net>
21051
21052         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
21053         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
21054         to be nonzero so that we (and caller) can detect the difference
21055         between a valid zero-length expansion and an error return, even
21056         when the underlying strftime fails before writing anything into
21057         that location.
21058
21059 2005-03-14  Bruno Haible  <bruno@clisp.org>
21060
21061         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
21062         Update from GNU gettext 0.14.3.
21063
21064 2005-03-10  Jim Meyering  <jim@meyering.net>
21065
21066         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
21067
21068 2005-03-10  Jim Meyering  <jim@meyering.net>
21069
21070         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
21071         so that this module works on systems without fchdir.
21072
21073 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
21074
21075         Factor int-properties macros into a single file, except for
21076         glibc-related files.
21077         * lib/intprops.h: New file.
21078         * lib/getloadavg.c: Include it instead of limits.h.
21079         (INT_STRLEN_BOUND): Remove.
21080         * lib/human.c: Include intprops.h.
21081         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
21082         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
21083         302/1000.
21084         * lib/inttostr.h: Include intprops.h instead of limits.h.
21085         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
21086         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
21087         for consistency with intprops.h.
21088         (time_t_is_integer, twos_complement_arithmetic): Use them.
21089         * lib/sig2str.h: Include <signal.h>, intprops.h.
21090         (INT_STRLEN_BOUND): Remove.
21091         * lib/strftime.c (TYPE_SIGNED): Remove.
21092         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
21093         * lib/strtol.c: Adjust comments to match intprops.h.
21094         * lib/userspec.c: Include intprops.h.
21095         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
21096         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
21097         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
21098         instead of rolling our own expressions.
21099         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
21100
21101         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
21102         instead of int.
21103         (my_strftime): Do not mishandle years close to INT_MAX, by doing
21104         the right thing even if adding 1900 would overflow.  Similarly
21105         for tm_mon + 1 and tm_yday + 1.
21106         Make %Y always equivalent to %C%y, and similarly for %G and %g.
21107         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
21108         (DO_SIGNED_NUMBER): New macro.
21109         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
21110
21111 2005-03-07  Bruno Haible  <bruno@clisp.org>
21112
21113         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
21114
21115 2005-03-07  Bruno Haible  <bruno@clisp.org>
21116
21117         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
21118
21119 2005-03-04  Derek R. Price  <derek@ximbiot.com>
21120
21121         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
21122         (func_import): Only replace files via --import when they have actually
21123         changed.
21124
21125 2005-03-03  Derek R. Price  <derek@ximbiot.com>
21126
21127         * m4/mmap-anon.m4: New file.
21128         * m4/pagealign_alloc.m4: New file.
21129
21130 2005-03-03  Derek R. Price  <derek@ximbiot.com>
21131             Bruno Haible  <bruno@clisp.org>
21132
21133         * modules/pagealign_alloc: New file.
21134         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
21135
21136 2005-03-03  Derek R. Price  <derek@ximbiot.com>
21137             Bruno Haible  <bruno@clisp.org>
21138
21139         * lib/pagealign_alloc.h: New file.
21140         * lib/pagealign_alloc.c: New file.
21141
21142 2005-03-03  Bruno Haible  <bruno@clisp.org>
21143
21144         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
21145         Use an all-permissive copyright notice, recommended by RMS.
21146
21147 2005-03-02  Bruno Haible  <bruno@clisp.org>
21148
21149         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
21150         of AIX, the replacement has to be done only after <string.h> is
21151         included, therefore not in config.h. stpncpy.h does the replacement,
21152         and stpncpy.c uses it.
21153
21154 2005-03-02  Bruno Haible  <bruno@clisp.org>
21155
21156         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
21157         stpncpy.c uses it.
21158
21159 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
21160
21161         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
21162         The workaround isn't strictly needed for POSIX conformance, and
21163         it's too much of a pain to configure and maintain.  We'll ask
21164         people to fix their kernels instead.
21165         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
21166         (NANOSLEEP_BUG_WORKAROUND): Remove.
21167         (xnanosleep): Remove the workaround.
21168
21169 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
21170
21171         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
21172         Reported by Derek Price.
21173         (Include): Add "timespec.h".
21174
21175         * modules/xnanosleep (Depends-on): Remove gethrxtime.
21176
21177 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
21178
21179         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
21180         to detect nanosleep bug.
21181
21182 2005-03-01  Bruno Haible  <bruno@clisp.org>
21183
21184         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
21185
21186 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
21187
21188         * modules/gethrxtime: New file.
21189         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
21190         (Depends-on): Add gethrxtime.
21191         (configure.ac): Add gl_XNANOSLEEP.
21192         (Makefile.am): Remove lib_SOURCES line.
21193
21194 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
21195
21196         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
21197         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
21198
21199 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
21200
21201         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
21202         * lib/timespec.h (gettime): Return void, since it always
21203         succeeds now.  All uses changed.
21204         * lib/gettime.c (gettime) Likewise.
21205         [HAVE_NANOTIME]: Prefer nanotime.
21206         Assume gettimeofday succeeds, as POSIX requires.
21207         Assime time () succeeds, since other code already does.
21208         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
21209         (timespec_subtract): Remove.
21210         (NANOSLEEP_BUG_WORKAROUND): New constant.
21211         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
21212         things considerably.  Use it only on GNU/Linux hosts, since the
21213         workaround shouldn't be needed elsewhere.
21214
21215 2005-02-24  Bruno Haible  <bruno@clisp.org>
21216
21217         * modules/gettext (Files): Add m4/glibc2.m4.
21218
21219 2005-02-24  Bruno Haible  <bruno@clisp.org>
21220
21221         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
21222         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
21223         * m4/progtest.m4:
21224         Update from GNU gettext 0.14.2.
21225         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
21226
21227 2005-02-24  Bruno Haible  <bruno@clisp.org>
21228
21229         * lib/localcharset.c: Update from GNU gettext 0.14.2.
21230         * lib/config.charset: Update from GNU gettext 0.14.2.
21231
21232 2005-02-24  Bruno Haible  <bruno@clisp.org>
21233
21234         * lib/gettext.h: Update from GNU gettext 0.14.2.
21235
21236 2005-02-23  Simon Josefsson  <jas@extundo.com>
21237
21238         * m4/iconvme.m4: New file.
21239
21240 2005-02-23  Jim Meyering  <jim@meyering.net>
21241
21242         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
21243         change.
21244         Thanks to Bruno Haible for catching it.
21245
21246 2005-02-22  Simon Josefsson  <jas@extundo.com>
21247
21248         * modules/iconvme: New file.
21249
21250         * MODULES.html.sh: Add iconvme.
21251
21252 2005-02-22  Simon Josefsson  <jas@extundo.com>
21253
21254         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
21255
21256 2005-02-22  Simon Josefsson  <jas@extundo.com>
21257
21258         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
21259
21260 2005-02-22  Jim Meyering  <jim@meyering.net>
21261
21262         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
21263         s/ifndef/ifdef/.
21264
21265 2005-02-20  Neil Conway  <neilc@samurai.com>
21266
21267         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
21268         returned by OSX/Darwin if the specified buffer is not large
21269         enough for the hostname.
21270
21271 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21272
21273         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
21274         pass it to _help, otherwise the latter coredumps trying to
21275         dereference state.root_argp.
21276
21277 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
21278
21279         * modules/chdir-long (Depends-on): Add memrchr.
21280         * modules/memrchr (Files): Add lib/memrchr.h.
21281         (Include): "memrchr.h".
21282
21283 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
21284
21285         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
21286
21287 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
21288
21289         * lib/memrchr.h: New file.
21290         * lib/chdir-long.c: Include it.
21291         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
21292         Don't bother including stddef.h.
21293
21294 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
21295
21296         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
21297         inclusion.
21298         Include <sys/types.h>, for dev_t.
21299         (ME_DUMMY, ME_REMOTE): Move from here....
21300         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
21301         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
21302         Dmitry V. Levin.
21303         Include mountlist.h first, to test the interface.
21304
21305 2005-01-29  Bruno Haible  <bruno@clisp.org>
21306
21307         * lib/progname.c (program_name): Initialize.
21308         Needed when linking statically on MacOS X.
21309
21310 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21311
21312         Sync from coreutils.
21313         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
21314         (Depends-on): Add c-strtod.
21315         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
21316
21317 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21318
21319         Sync from coreutils.
21320         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
21321
21322         Remove files that are specific to coreutils.
21323         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
21324
21325 2005-01-28  Bruno Haible  <bruno@clisp.org>
21326
21327         * modules/javacomp: New file.
21328         * MODULES.html.sh (Java): Add javacomp.
21329
21330 2005-01-28  Bruno Haible  <bruno@clisp.org>
21331
21332         * m4/javacomp.m4: New file, from GNU gettext.
21333
21334 2005-01-28  Bruno Haible  <bruno@clisp.org>
21335
21336         * lib/javacomp.sh.in: New file, from GNU gettext.
21337         * lib/javacomp.h: New file, from GNU gettext.
21338         * lib/javacomp.c: New file, from GNU gettext.
21339
21340 2005-01-26  Simon Josefsson  <jas@extundo.com>
21341
21342         * lib/gai_strerror.c: Use GPL in header.
21343
21344 2005-01-26  Bruno Haible  <bruno@clisp.org>
21345
21346         * modules/javaexec: New file.
21347         * MODULES.html.sh (Java): Add javaexec.
21348
21349 2005-01-26  Bruno Haible  <bruno@clisp.org>
21350
21351         * m4/javaexec.m4: New file, from GNU gettext.
21352
21353 2005-01-26  Bruno Haible  <bruno@clisp.org>
21354
21355         * lib/javaexec.sh.in: New file, from GNU gettext.
21356         * lib/javaexec.h: New file, from GNU gettext.
21357         * lib/javaexec.c: New file, from GNU gettext.
21358
21359 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21360
21361         * modules/lchown (Depends-on): Remove lchown.h
21362
21363 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21364
21365         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
21366         must be defined if the header file was not found, in order
21367         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
21368
21369 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21370
21371         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
21372         initializers for struct pentry_state.
21373         (__argp_error): Check return value of __asprintf
21374         (__argp_failure): Translate error message
21375
21376         * lib/argp-parse.c: Removed braces around the expansion of N_()
21377
21378 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21379
21380         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
21381         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
21382         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
21383         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
21384         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
21385         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
21386         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
21387         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
21388         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
21389         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
21390         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
21391         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
21392         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
21393         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
21394         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
21395         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
21396         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
21397         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
21398         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
21399         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
21400         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
21401         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
21402         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
21403         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
21404         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
21405         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
21406         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
21407         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
21408         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
21409         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
21410         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
21411         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
21412         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
21413         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
21414         xstrtol.m4, xstrtoumax.m4, yesno.m4:
21415         Use an all-permissive copyright notice, recommended by RMS.
21416
21417 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21418
21419         * modules/chdir-long (Depends-on): Remove mempcpy.
21420
21421 2005-01-21  Jim Meyering  <jim@meyering.net>
21422
21423         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
21424         same value as for Solaris 9.
21425
21426         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
21427         component length.  This included changing the parameter to be
21428         of type `char *' rather than `char const *'.
21429         * lib/chdir-long.h (chdir_long): Update prototype.
21430
21431         * lib/openat.c (fdopendir, fstatat): New functions.
21432         * lib/openat.h: Include headers required for use of DIR and struct
21433         stat.
21434         [AT_SYMLINK_NOFOLLOW]: Define.
21435         (fdopendir, fstatat): Add prototypes.
21436
21437 2005-01-21  Bruno Haible  <bruno@clisp.org>
21438
21439         * modules/classpath: New file.
21440         * MODULES.html.sh (Java): Add classpath.
21441
21442 2005-01-21  Bruno Haible  <bruno@clisp.org>
21443
21444         * lib/classpath.h: New file, from GNU gettext.
21445         * lib/classpath.c: New file, from GNU gettext.
21446
21447 2005-01-20  Simon Josefsson  <jas@extundo.com>
21448
21449         * modules/version-etc-fsf: New file.
21450
21451 2005-01-20  Simon Josefsson  <jas@extundo.com>
21452
21453         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
21454         * lib/version-etc.c: Remove version_etc_copyright.
21455         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
21456         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
21457
21458 2005-01-20  Simon Josefsson  <jas@extundo.com>
21459
21460         * lib/base64.h (isbase64): Add.
21461
21462         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
21463         using a unsigned prototype, don't inline.
21464         (base64_decode): Use it.
21465
21466 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
21467
21468         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
21469         it.
21470
21471 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
21472
21473         * lib/save-cwd.c (save_cwd): Remove code to support the case
21474         where fchdir is missing or flaky.
21475
21476 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
21477
21478         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
21479
21480 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21481
21482         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
21483         AC_LIBSOURCES now does this.
21484         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
21485         with new ullong_max module.
21486
21487 2005-01-19  Bruno Haible  <bruno@clisp.org>
21488
21489         * modules/sh-quote: New file.
21490         * MODULES.html.sh (Executing programs): Add sh-quote.
21491
21492 2005-01-19  Bruno Haible  <bruno@clisp.org>
21493
21494         * lib/sh-quote.h: New file, from GNU gettext.
21495         * lib/sh-quote.c: New file, from GNU gettext.
21496
21497 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21498
21499         Merge from coreutils.
21500         * m4/ullong_max.m4: New file.
21501         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
21502         (gl_MACROS): Assume localeconv exists.
21503
21504 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21505
21506         Merge changes from coreutils, as described below in several
21507         changelogs dated today.
21508
21509         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
21510         (O_DIRECTORY): Remove; not needed here, since "." must be
21511         a directory.  All uses removed.
21512         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
21513         universal on Suns, and we also need to test for IRIX.
21514         Revamp code to use 'if' rather than '#if'.
21515         Avoid unnecessary comparison of cwd->desc to 0.
21516
21517         * lib/utimens.c (futimens): Robustify the previous patch, by checking
21518         for known valid error numbers rather than observed invalid ones.
21519
21520 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21521
21522         * modules/ullong_max: New file.
21523
21524         * modules/chdir-long, modules/openat: New files.
21525         * modules/save-cwd (Depends-on): Depend on chdir-long.
21526         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
21527
21528 2005-01-18  Jim Meyering  <jim@meyering.net>
21529
21530         Merge from coreutils.
21531         * m4/chdir-long.m4, m4/openat.m4: New files.
21532         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
21533         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
21534         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
21535         is sane and DOES follow symlinks.  Besides, testing 20 different
21536         systems found no broken chown implementations.
21537         Prompted by a change in rsync's copy of this macro.
21538         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
21539
21540         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
21541
21542         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
21543         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
21544         NULL-means-set-to-current-time semantics.
21545         Remove temporary file immediately, rather than waiting
21546         for configure's at-exit trap code to do it.
21547
21548 2005-01-18  Jim Meyering  <jim@meyering.net>
21549
21550         * lib/version-etc.c (version_etc_copyright): Update copyright date.
21551
21552         * lib/utimens.c (futimens): Account for the fact that futimes
21553         can also fail with errno == ENOSYS or errno == ENOENT.
21554         Patch from Dmitry V. Levin.
21555
21556         Change the name of the robust chdir function from chdir to chdir_long.
21557         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
21558         (restore_cwd): Use chdir_long, not chdir.
21559         * lib/chdir-long.c: Renamed from chdir.c.
21560         * lib/chdir-long.h: Renamed from chdir.h.
21561         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
21562         Hurd.
21563
21564 2005-01-18  Bruno Haible  <bruno@clisp.org>
21565
21566         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
21567         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
21568         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
21569         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
21570         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
21571         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
21572         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
21573         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
21574         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
21575         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
21576         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
21577         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
21578         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
21579         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
21580         Use an all-permissive copyright notice, recommended by RMS.
21581
21582 2005-01-18  Bob Proulx  <bob@proulx.com>
21583
21584         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
21585         simplify offsetof() macro construct to avoid compile failure with
21586         native HP-UX 11.0 ANSI C compiler.
21587
21588 2005-01-17  Bruno Haible  <bruno@clisp.org>
21589
21590         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
21591         redundant because stpncpy.m4 takes care of it.
21592
21593 2005-01-17  Bruno Haible  <bruno@clisp.org>
21594
21595         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
21596
21597 2005-01-17  Bruno Haible  <bruno@clisp.org>
21598
21599         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
21600         used.
21601
21602 2005-01-17  Bruno Haible  <bruno@clisp.org>
21603
21604         * lib/fwriteerror.h (fwriteerror): Change specification to include
21605         fclose.
21606         * lib/fwriteerror.c: Include <stdbool.h>.
21607         (fwriteerror): At the end, close the file stream. Record whether
21608         stdout was already closed.
21609
21610 2005-01-17  Bruno Haible  <bruno@clisp.org>
21611
21612         * lib/execute.c (environ): Declare if needed.
21613         * lib/pipe.c (environ): Likewise.
21614         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
21615
21616 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21617
21618         * modules/argp: Depend on vsnprintf
21619
21620 2005-01-10  Jim Meyering  <jim@meyering.net>
21621
21622         * modules/closeout (Depends-on): Add atexit.
21623
21624 2005-01-06  Bruno Haible  <bruno@clisp.org>
21625
21626         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
21627
21628 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
21629
21630         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
21631         definitions to be after all include files, to avoid collisions.
21632         Problem reported by Bob Proulx.
21633
21634 2005-01-04  Jim Meyering  <jim@meyering.net>
21635
21636         Changes imported from coreutils.
21637         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
21638         as the mkstemp template, use a temporary directory and an
21639         8.3-friendly template to avoid trouble on systems like DJGPP.
21640         Reported by Juan M. Guerrero via Stepan Kasal.
21641         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
21642         close. Remove the temporary directory right away, rather than waiting
21643         for configure's at-exit trap code to do it.
21644         Suggestion from Stepan Kasal.
21645
21646 2005-01-01  Simon Josefsson  <jas@extundo.com>
21647
21648         * gnulib-tool: Print #include directives when --import'ing.
21649
21650 2004-12-28  Simon Josefsson  <jas@extundo.com>
21651
21652         * tests/test-base64.c: Include required header files.  Remove
21653         unused variables.
21654
21655 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21656
21657         * modules/error (Depends-on): Remove gettext.
21658
21659 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21660
21661         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
21662         not needed.  This removes a dependency on the gettext module.
21663         [defined _LIBC]: Do not include <libintl.h>; not needed.
21664
21665 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
21666
21667         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
21668         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
21669
21670 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
21671
21672         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
21673         HAVE_DECL_STRTOLD.
21674
21675 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
21676
21677         * modules/getdate (Depends-on): Remove alloca-opt.
21678
21679 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
21680
21681         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
21682
21683 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
21684
21685         * lib/argp-parse.c: Include <stddef.h>.
21686         (alignof, alignto): New macros.
21687         (parser_init): Don't assume that void * is aligned sufficiently
21688         for struct option.
21689
21690         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
21691         need to extend the stack.
21692         (YYINITDEPTH): New macro, so that the initial stack isn't overly
21693         large.
21694
21695 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21696
21697         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
21698
21699 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21700
21701         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
21702         (2004-10-24) change.  Apparently this was a false alarm.
21703
21704         * modules/getdate: Depend on alloca-opt, not alloca.
21705
21706 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21707
21708         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
21709         Remove now-obsolete comment about AIX.
21710         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
21711         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
21712         (YYMAXDEPTH): New macro.
21713
21714 2004-12-18  Simon Josefsson  <jas@extundo.com>
21715
21716         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
21717
21718 2004-12-18  Bruno Haible  <bruno@clisp.org>
21719
21720         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
21721
21722 2004-12-18  Bruno Haible  <bruno@clisp.org>
21723
21724         * lib/fatal-signal.c (fatal_signals): Make non-const.
21725         (init_fatal_signals): New function.
21726         (uninstall_handlers, install_handlers): Ignore signals that were set to
21727         SIG_IGN.
21728         (at_fatal_signal): Call init_fatal_signals.
21729         (init_fatal_signal_set): Likewise. Ignore signals that were set to
21730         SIG_IGN.
21731         Reported by Paul Eggert.
21732
21733 2004-12-18  Bruno Haible  <bruno@clisp.org>
21734
21735         * doc/alloca.texi: New file.
21736         * doc/alloca-opt.texi: New file.
21737
21738 2004-12-17  Jim Meyering  <jim@meyering.net>
21739
21740         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
21741         Otherwise, install-sh could exit with improper exit status when
21742         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
21743
21744 2004-12-16  Simon Josefsson  <jas@extundo.com>
21745
21746         * tests/test-base64.c: Add license.
21747
21748 2004-12-15  Stepan Kasal  <address@hidden>
21749
21750         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
21751
21752 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
21753
21754         * modules/getcwd (Files): Add m4/d-ino.m4.
21755         Suggested by Mark D. Baushke.
21756
21757 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
21758
21759         * lib/getdate.y (textint): New member "negative".
21760         (time_zone_hhmm): New function.
21761         Expect 14 shift-reduce conflicts, not 13.
21762         (o_colon_minutes): New rule.
21763         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
21764         (yylex): Set the "negative" member of signed numbers.
21765
21766 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
21767
21768         * doc/getdate.texi (Time of day items, Time zone items):
21769         Describe new formats +00:00, UTC+00:00.
21770
21771 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
21772
21773         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
21774         spurious "-l"s.  Problem reported by Stepan Kasal.
21775
21776 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
21777
21778         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
21779         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
21780
21781 2004-12-04  Simon Josefsson  <jas@extundo.com>
21782
21783         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
21784         Vandoorselaere <yoann@prelude-ids.org>.
21785
21786 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
21787
21788         Changes imported from coreutils.
21789         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
21790         exist.
21791         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
21792
21793 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
21794
21795         Changes imported from coreutils.
21796         * lib/hard-locale.c: Assume <locale.h> exists.
21797         Include "strdup.h".
21798         (GLIBC_VERSION): New macro.
21799         (hard_locale): Assume setlocale exists.
21800         Rewrite to avoid #ifdef.
21801         Use strdup rather than malloc + strcpy.
21802         * lib/human.c: Assume <locale.h> exists.
21803         (human_readable): Assume localeconv exists.
21804
21805 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
21806
21807         * modules/hard-locale (Depends-on): Add strdup.
21808
21809 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
21810
21811         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
21812         convert T2, not T.  (Imported from libc.)
21813
21814 2004-11-30  Simon Josefsson  <jas@extundo.com>
21815
21816         * modules/restrict (License): Change to LGPL.
21817
21818 2004-11-30  Simon Josefsson  <jas@extundo.com>
21819
21820         * m4/restrict.m4: Add copyright and copying conditions.
21821
21822 2004-11-30  Simon Josefsson  <jas@extundo.com>
21823
21824         * m4/base64.m4: New file.
21825
21826 2004-11-30  Simon Josefsson  <jas@extundo.com>
21827
21828         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
21829         base64.
21830
21831         * tests/test-base64.c: New file.
21832
21833         * modules/base64: New file.
21834
21835 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
21836
21837         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
21838         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
21839
21840         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
21841
21842 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
21843
21844         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
21845         (__getcwd.c): Don't restore errno; glibc doesn't.
21846         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
21847         first, falling back to our code only if its results look suspicious.
21848         Ensure that the resulting buffer is only as large as necessary.
21849
21850         * lib/readutmp.c: Include readutmp.h first.
21851         Include <errno.h>, since readutmp.h no longer does that.
21852         * lib/readutmp.h: Don't include <errno.h>,
21853         <sys/param.h>, <time.h>; not needed to establish interface.
21854         (errno): Remove decl.
21855         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
21856         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
21857         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
21858
21859 2004-11-28  Simon Josefsson  <jas@extundo.com>
21860
21861         * lib/base64.h, base64.c: New file.
21862
21863 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
21864
21865         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
21866
21867 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
21868
21869         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
21870         (Depends-on): Remove pathmax, same.  Add mempcpy.
21871         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
21872         (Makefile.am): Append getcwd.h to lib_SOURCES.
21873         (Include): Add getcwd.h.
21874         (Maintainer): Change from Jim Meyering to "all, glibc",
21875         since getdate now uses intended-for-glibc code.
21876         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
21877         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
21878
21879 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
21880
21881         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
21882         HP's ANSI C compiler.
21883         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
21884         Declaring int functions causes warnings on some modern systems and
21885         shouldn't be needed to compile on ancient ones.
21886         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
21887         defined.
21888
21889         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
21890         with the following changes.
21891         (__set_errno): Parenthesize properly.
21892         Include <stdbool.h>.
21893         (MIN, MAX, MATCHING_INO): New macros.
21894         (__getcwd): Define with prototype, not K&R form.
21895         Use heuristics to allocate default buffer on stack if possible.
21896         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
21897         behavior, and to avoid the PATH_MAX limit when computing
21898         ../../../../...
21899         Use MATCHING_INO to compare inode number to file.
21900         Check for arithmetic overflow in size calculations.
21901         Fix bug in reallocation of dot array that caused getcwd to fail
21902         on directories nested deeper than 75.
21903         Be more careful about saving errno on error.
21904         Do not use realloc; use only free+malloc, as this is a bit
21905         more flexible and avoids a needless copy operation.
21906         Do not inspect st_dev and st_ino for symbolic links; POSIX
21907         doesn't specify the latter.
21908         Check for closedir errors.
21909         Avoid needless casts.
21910         Use "#ifdef weak_alias" around weak_alias, to be like other
21911         glibc code.
21912         The following changes to getcwd.c have effect only when used in
21913         gnulib; they have no effect inside glibc proper.
21914         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
21915         as alloca isn't used.
21916         (alloca, __alloca): Likewise.
21917         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
21918         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
21919         unconditionally, as gnulib assumes C89 or better.
21920         Do not include <sys/param.h>.
21921         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
21922         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
21923         better.
21924         (NULL) [!defined NULL]: Remove; we assume C89 or better.
21925         Include <dirent.h> in a way that is compatible with modern Autoconf.
21926         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
21927         New macros, if not already defined.
21928         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
21929         Use "_LIBC", not "defined _LIBC", for consistency.
21930         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
21931         a mempcpy module.
21932         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
21933         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
21934         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
21935         credit only to Jim Meyering and adjust the copyright dates.
21936         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
21937         <stdlib.h>, <unistd.h>, "pathmax.h".
21938         Instead, include "xgetcwd.h" (first) and "getcwd.h".
21939         (INITIAL_BUFFER_SIZE): Remove.
21940         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
21941
21942 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
21943
21944         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
21945         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
21946         Use the _ONCE methods, for efficiency.
21947         Check for fcntl.h.  In test program, include <errno.h>
21948         and <fcntl.h> if available.  Remove old K&R cruft from
21949         test program.  Check for common errors in GNU/Linux,
21950         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
21951         don't do AC_LIBOBJ, as that's getcwd.m4's job.
21952         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
21953         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
21954         name accordingly.
21955         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
21956         accommodate new getcwd.c.
21957         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
21958         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
21959         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
21960         that's all we need now.
21961
21962 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21963
21964         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
21965         argp-parse.c depends on getopt internals, that means we should
21966         always use our getopt, to be on the safe side.
21967         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
21968         order not to spoil the result of an eventual previous invocation
21969         of gl_GETOPT_SUBSTITUTE.
21970
21971 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21972
21973         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
21974         redefinition warnings. To avoid them, include the defines
21975         in `#if !defined __need_getopt ... #endif'. The only place
21976         where __getopt_argv_const is used is in definitions
21977         of getopt_long and getopt_long_only below, which are as well
21978         protected by `#ifndef __need_getopt'.
21979         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
21980         __need_getopt after including <stdio.h> and <unistd.h> These
21981         headers might have defined it.
21982
21983 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
21984
21985         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
21986
21987 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
21988
21989         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
21990         (futimens): New function, which uses futimes if available.
21991         (futimens, utimens): Support timespec==NULL, with same semantics
21992         as utime and utimens.
21993         * lib/utimens.h (futimens): New decl.
21994
21995 2004-11-23  Jim Meyering  <jim@meyering.net>
21996
21997         * lib/getopt_.h: Remove trailing blanks.
21998
21999 2004-11-23  Jim Meyering  <jim@meyering.net>
22000
22001         * lib/__fpending.c: Add comment.
22002
22003 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
22004
22005         * modules/canonicalize (Depends-on): Add xreadlink.
22006         Problem reported by James Youngman.
22007
22008 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
22009
22010         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
22011         New macros.
22012         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
22013         optopt): Use them instead of invoking ## directly; otherwise, the
22014         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
22015
22016 2004-11-19  Bruno Haible  <bruno@clisp.org>
22017
22018         * lib/strtok_r.c: Move comments from here...
22019         * lib/strtok_r.h: ... to here.
22020
22021 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
22022
22023         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
22024         implementations that mishandle size_t overflow.
22025
22026 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
22027
22028         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
22029         might fail.  Problem reported by Yoann Vandoorselaere.
22030         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
22031         implementations that mishandle size_t overflow.
22032
22033 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
22034
22035         * modules/canon-host (Depends-on): Add strdup.
22036
22037 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
22038
22039         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
22040
22041 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
22042
22043         * lib/canon-host.c: Include "strdup.h".
22044         (canon_host): Use getaddrinfo if available, so that IPv6 works.
22045         Use strdup instead of malloc/strcpy to duplicate strings.
22046
22047         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
22048         (human_space_before_unit): New constant.
22049         * lib/human.c (human_readable): Support it.
22050
22051         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
22052         (xgetcwd): Set errno correctly when failing.
22053         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
22054         the failure is actually due to a PATH_MAX problem.
22055
22056         Further getopt changes to make it more likely that glibc will
22057         buy the changes back.
22058         * lib/getopt.c (POSIXLY_CORRECT): New constant.
22059         (getopt): Use it, so to preserve glibc semantic
22060         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
22061         when compiling for libc.
22062         * lib/getopt_.h (__getopt_argv_const): Bring it back.
22063         (getopt_long, getopt_long_only): Use it.
22064
22065         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
22066         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
22067         (getopt): Argv is now char * const *, as per standard.
22068         (_getopt_internal_r, _getopt_internal): Argv is now char **,
22069         not char *__getopt_argv_const *.
22070         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
22071         _getopt_long_only_r): Likewise.
22072         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
22073         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
22074         _getopt_long_r, _getopt_long_only_r): Likewise.
22075         * lib/getopt_.h (__getopt_argv_const): Remove.
22076         (getopt): Argv is now char * const *, as per standard.
22077
22078         * lib/getdate.y (tORDINAL): New token.
22079         (day, relunit): Allow it for relative times.
22080         (relative_time_table): Use tORDINAL for ordinals.
22081
22082 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
22083
22084         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
22085         Document that "second" isn't allowed as an ordinal number.
22086
22087 2004-11-16  Jim Meyering  <jim@meyering.net>
22088
22089         * modules/closeout (Depends-on): Add fpending.
22090
22091 2004-11-15  Jim Meyering  <jim@meyering.net>
22092
22093         * lib/closeout.c: Include "__fpending.h" once again.
22094         Include <stdbool.h>.
22095         (close_stdout): Don't fail just because stdout was closed initially,
22096         since some programs don't write to stdout in the normal course of
22097         operation (other than --version and --help), and we don't want this
22098         function to make e.g. `touch file >&-' fail.
22099         But do fail if it was closed and someone has tried to write to it.
22100         E.g., `printf foo >&-' must fail.
22101
22102 2004-11-13  Jim Meyering  <jim@meyering.net>
22103
22104         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
22105
22106 2004-11-12  Simon Josefsson  <jas@extundo.com>
22107
22108         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
22109         small doc fix is still pending.
22110
22111 2004-11-11  Simon Josefsson  <jas@extundo.com>
22112
22113         * modules/strtok_r: New file.
22114
22115         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22116         strtok_r.
22117
22118 2004-11-11  Simon Josefsson  <jas@extundo.com>
22119
22120         * m4/strtok_r.m4: New file.
22121
22122         * m4/getopt.m4: Replace opterr.
22123
22124 2004-11-11  Simon Josefsson  <jas@extundo.com>
22125
22126         * lib/strtok_r.h, strtok_r.c: New file.
22127
22128 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
22129
22130         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
22131         of replacing opterr, getopt, etc.  This should handle the
22132         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
22133
22134 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
22135
22136         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
22137         we can stop lying to compilers about the constness of argv when we
22138         are compiled outside glibc.
22139         (getopt, getopt_long, getopt_long_only): Use it.
22140         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
22141         _getopt_internal, getopt): Likewise.
22142         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
22143         _getopt_long_only_r): Likewise.
22144         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
22145         _getopt_long_r, _getopt_long_only_r): Likewise.
22146
22147         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
22148         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
22149         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
22150         the other external symbols.
22151         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
22152         declaration, since the above renaming now works around collisions.
22153
22154 2004-11-11  Jim Meyering  <jim@meyering.net>
22155
22156         * lib/linebreak.c: Remove trailing blanks.
22157         * lib/alloca_.h: Likewise.
22158         * lib/acosl.c: Likewise.
22159         * lib/euidaccess.c: Likewise.
22160         * lib/allocsa.h: Likewise.
22161
22162 2004-11-10  Simon Josefsson  <jas@extundo.com>
22163
22164         * m4/getaddrinfo.m4: New file.
22165
22166 2004-11-10  Simon Josefsson  <jas@extundo.com>
22167
22168         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
22169
22170 2004-11-10  Simon Josefsson  <jas@extundo.com>
22171
22172         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22173         getaddrinfo.
22174
22175         * modules/getaddrinfo: New file.
22176
22177 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
22178
22179         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
22180
22181 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
22182
22183         * lib/mktime.c (SHR): New macro, which is a portable
22184         substitute for >> that should work even on Crays.
22185         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
22186         Problem reported by Mark D. Baushke in
22187         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
22188         * lib/getdate.y (SHR): Likewise.
22189         (tm_diff): Use it.
22190         * lib/strftime.c (SHR): Likewise.
22191         (tm_diff): Use it.
22192         * lib/quotearg.c (struct quoting_options): Use unsigned int for
22193         quote_these_too, so that right shifts are well defined.  All uses
22194         changed.
22195
22196 2004-11-10  Jim Meyering  <jim@meyering.net>
22197
22198         Ensure that no close failure goes unreported.
22199         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
22200         return early when it seems there's nothing to flush.
22201         Don't include __fpending.h.
22202
22203 2004-11-10  Jim Meyering  <jim@meyering.net>
22204
22205         * modules/closeout (Depends-on): Remove fpending.
22206
22207 2004-11-10  Jim Meyering  <jim@meyering.net>
22208
22209         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
22210
22211 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
22212
22213         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
22214         gl_FUNC_STRFTIME.
22215         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
22216         and AC_REQUIRE when possible, to avoid duplicate checks.
22217         Check for <wchar.h>.
22218
22219 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
22220
22221         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
22222
22223 2004-11-09  Bruno Haible  <bruno@clisp.org>
22224
22225         * m4/sockpfaf.m4: New file.
22226
22227 2004-11-05  Bruno Haible  <bruno@clisp.org>
22228
22229         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
22230         Reported by Mark D. Baushke <mdb@cvshome.org>.
22231
22232 2004-11-04  Bruno Haible  <bruno@clisp.org>
22233
22234         2004-09-11  Bruno Haible  <bruno@clisp.org>
22235                 * allocsa.valgrind: New file.
22236         2004-02-06  Bruno Haible  <bruno@clisp.org>
22237                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
22238                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
22239                 Reported by Christopher Seip <chris.seip@hp.com>.
22240
22241 2004-11-04  Bruno Haible  <bruno@clisp.org>
22242
22243         * modules/allocsa (Files): Add lib/allocsa.valgrind.
22244         (Makefile.am): Distribute it.
22245
22246 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
22247
22248         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
22249         with errno == ERANGE if the buffer is too small.
22250         Problem reported by Mark D. Baushke.
22251
22252 2004-11-03  Albert Chin  <china@thewrittenword.com>
22253             Paul Eggert  <eggert@cs.ucla.edu>
22254
22255         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
22256         equivalent, substitute $ac_type for equivalent type rather than
22257         blindly using uint32_t *always* which won't work if uint32_t is not
22258         available.  Define _UINT32_T to work around typedef of uint32_t if
22259         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
22260         2.5.1.
22261
22262 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
22263
22264         * m4/jm-macros.m4: Sync from coreutils.
22265         (gl_MACROS): Check for mbrlen, for pathchk.
22266         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
22267
22268 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
22269
22270         * lib/xreadlink.c (MAXSIZE): New macro.
22271         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
22272         size does not exceed MAXSIZE.  Avoid cast.
22273         As suggested by Mark D. Baushke in
22274         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
22275         if readlink fails with buffer size just under MAXSIZE, try again
22276         with MAXSIZE.
22277
22278 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
22279
22280         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
22281
22282 2004-11-02  Derek R. Price  <derek@ximbiot.com>
22283         and  Paul Eggert  <eggert@cs.ucla.edu>
22284
22285         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
22286         (get_date): Overparenthesize to avoid GCC warning.
22287
22288 2004-11-02  Bruno Haible  <bruno@clisp.org>
22289
22290         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
22291         returns void.
22292
22293 2004-11-02  Bruno Haible  <bruno@clisp.org>
22294
22295         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
22296         function returns void.
22297
22298 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
22299
22300         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
22301         fflush_unlocked, flockfile, funlockfile, funlockfile,
22302         fputs_unlocked, putc_unlocked.
22303
22304 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
22305
22306         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
22307         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
22308         already declared.
22309
22310 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
22311
22312         * modules/getdate (Files): Add doc/getdate.texi.
22313         (Depends-on): Add setenv, xalloc.
22314
22315 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
22316
22317         * lib/getdate.y: Add support for TZ="foo" within a date string.
22318         Fix some bugs near time_t boundaries.  Reject dates with
22319         out-of-range components, e.g., "Sept 31".
22320         Include <stdlib.h>, "setenv.h", "xalloc.h".
22321         (ISDIGIT_LOCALE): Remove; unused.
22322         Note that the TZ and time functions used here are not reentrant.
22323         (mktime_ok, get_tz): New functions.
22324         (TZBUFSIZE): New constant.
22325         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
22326         This requires that we sometimes generate our own TZ="XXX..." setting.
22327
22328 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
22329
22330         * doc/getdate.texi: New file, from coreutils with modifications for
22331         the new TZ parsing.
22332
22333 2004-10-27  Derek R. Price  <derek@ximbiot.com>
22334
22335         * lib/mktime.c (not_equal_tm): Remove redundant check.
22336
22337 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
22338
22339         * modules/regex (lib_SOURCES): Add regex.c.
22340         Reported by James Youngman in
22341         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
22342
22343 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
22344
22345         * lib/getdate.y: Use Bison 1.875 features, and some minor
22346         code cleanups.  This change does not affect semantics.
22347         Don't include <stdlib.h>; no longer needed.
22348         Don't include unlocked-io.h; only the "#if TEST" code uses
22349         stdio, and performance isn't crucial there.
22350         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
22351         Bison 1.875 features as described below.
22352         All uses of "PC." replaced by "pc->".
22353         (YYSTYPE): Add a forward declaration.
22354         (yylex, yyerror): Use full prototypes in forward decls.
22355         Use "%pure-parser" rather than obsolescent "%pure_parser".
22356         Use %parse-param and %lex-param instead of obsolescent
22357         YYPARSE_PARAM and YYLEX_PARAM.
22358         (meridian_table, month_and_day_table, time_units_table,
22359         relative_time_table, time_zone_table, military_table,
22360         lookup_zone, lookup_word, get_date):
22361         Use NULL instead of 0 where appropriate.
22362         (to_hour): Avoid abort (), to avoid a dependency on
22363         stdlib.h.
22364         (yyerror, yylex): Now accepts parser_control * arg.
22365         (main) [TEST]: Use '\0' rather than 0 for char.
22366
22367 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
22368
22369         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
22370
22371 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
22372
22373         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
22374         It's now the caller's responsibility to handle the case where
22375         !HAVE_GETPAGESIZE && !defined getpagesize.
22376
22377         * lib/mktime.c (leapyear): Arg is long int, not int.
22378
22379 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
22380
22381         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
22382
22383 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
22384
22385         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
22386         missing.  Problem reported by James Youngman.
22387
22388 2004-10-16  Simon Josefsson  <jas@extundo.com>
22389
22390         * gnulib-tool: Fix comments.  Fix parse problem.
22391         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
22392
22393 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
22394
22395         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
22396         implementation of getopt_long.  Problem reported by Alexander Taler in:
22397         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
22398
22399 2004-10-15  Bruno Haible  <bruno@clisp.org>
22400
22401         * gnulib-tool: Untabify. Initialize supplied_libname.
22402         (func_usage): More homogenous output.
22403         (func_modules_transitive_closure, func_modules_to_filelist,
22404         func_emit_lib_Makefile_am): New functions.
22405         (func_import): New function, extracted from big case statement. Use
22406         func_get_license, func_modules_transitive_closure,
22407         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
22408         opt_lgpl. Don't use test -a, as it's not portable.
22409         (func_create_testdir): Use func_modules_transitive_closure,
22410         func_modules_to_filelist, func_emit_lib_Makefile_am.
22411
22412 2004-10-15  Bruno Haible  <bruno@clisp.org>
22413
22414         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
22415
22416 2004-10-15  Bruno Haible  <bruno@clisp.org>
22417
22418         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
22419         the portions belonging to each module.
22420         Suggested by Derek Robert Price <derek@ximbiot.com>.
22421
22422 2004-10-12  Simon Josefsson  <jas@extundo.com>
22423
22424         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
22425         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
22426         to real functions.
22427
22428 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
22429
22430         * modules/vsnprintf: New file.
22431
22432 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
22433
22434         * m4/vsnprintf.m4: New file.
22435
22436 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
22437
22438         * lib/vsnprintf.h: New file.
22439         * lib/vsnprintf.c: New file.
22440
22441 2004-10-11  Bruno Haible  <bruno@clisp.org>
22442
22443         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
22444         vsnprintf.
22445
22446 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
22447
22448         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
22449
22450 2004-10-07  Bruno Haible  <bruno@clisp.org>
22451
22452         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
22453         fits into the provided buffer.
22454
22455 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
22456
22457         * lib/diacrit.c, diacrit.h: Add GPL notice.
22458
22459         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
22460         notice.
22461         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
22462         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
22463         This avoids a potential constant-folding bug.
22464
22465 2004-10-05  Bruno Haible  <bruno@clisp.org>
22466
22467         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
22468         for the declaration of strsep.
22469
22470 2004-10-05  Bruno Haible  <bruno@clisp.org>
22471
22472         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
22473
22474 2004-10-04  Simon Josefsson  <jas@extundo.com>
22475
22476         * modules/memmem: New file.
22477         * tests/test-memmem.c: New file.
22478         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
22479
22480 2004-10-04  Simon Josefsson  <jas@extundo.com>
22481
22482         * m4/memmem.m4: New file.
22483
22484 2004-10-04  Simon Josefsson  <jas@extundo.com>
22485
22486         * lib/memmem.h: New file.
22487         * lib/memmem.c: New file, taken from glibc.
22488
22489 2004-10-04  Simon Josefsson  <jas@extundo.com>
22490
22491         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
22492         '#ifdef USE_UNLOCKED_IO'.
22493
22494 2004-10-04  Simon Josefsson  <jas@extundo.com>
22495
22496         * config/srclist.txt: Add memmem from glibc.
22497
22498 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
22499
22500         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
22501
22502         * modules/argmatch, modules/argp, modules/closeout, modules/error,
22503         modules/exclude, modules/getdate, modules/getline,
22504         modules/getndelim2, modules/getpass, modules/getpass-gnu,
22505         modules/getusershell, modules/linebuffer, modules/md5,
22506         modules/mountlist, modules/posixtm, modules/readtokens,
22507         modules/readutmp, modules/regex, modules/sha1,
22508         modules/version-etc, modules/yesno:
22509         Remove dependency on unlocked-io.
22510
22511 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
22512
22513         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
22514
22515         * m4/unlocked-io.m4: Add copyright notice.
22516         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
22517
22518 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
22519
22520         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
22521         * lib/xmalloc.c (xmemdup): Likewise.
22522         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
22523         XFREE): Remove these long-obsolescent macros.
22524         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
22525         * lib/xstrdup.c: Remove.
22526
22527         * lib/regex.c (re_comp): Cast gettext return value to char *,
22528         Problem reported by Martin Neitzel via Mark D. Baushke.
22529
22530 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
22531
22532         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
22533         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
22534         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
22535         regex.c, sha1.c, version-etc.c, yesno.c:
22536         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
22537         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
22538         the includer's responsibility.
22539
22540         Sync from coreutils.
22541
22542         * lib/modechange.c (mode_compile): Don't decrement a pointer that
22543         points to the start of a string, as the C Standard says the
22544         resulting behavior is undefined.
22545
22546         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
22547         simple -> simple_backups, numbered_existing ->
22548         numbered_existing_backups, numbered -> numbered_backups
22549         to avoid shadowing problems.  All uses changed.
22550         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
22551         * lib/backupfile.c (check_extension, numbered_backup):
22552         Rename locals to avoid shadowing 'basename'.
22553         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
22554         once.
22555
22556         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
22557         * lib/.cvsignore: Add getopt.h.
22558
22559 2004-10-04  Bruno Haible  <bruno@clisp.org>
22560
22561         * modules/README: New file.
22562         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
22563         not a module.
22564
22565 2004-10-02  Jim Meyering  <jim@meyering.net>
22566
22567         * lib/dirfd.h, getpagesize.h: Add copyright notice.
22568
22569 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
22570
22571         * modules/strsep: New file.
22572
22573 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
22574
22575         * m4/strsep.m4: New file.
22576
22577 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
22578
22579         * lib/strsep.h: New file.
22580         * lib/strsep.c: New file.
22581
22582 2004-10-01  Simon Josefsson  <jas@extundo.com>
22583
22584         * lib/snprintf.c (snprintf): Handle size==0.
22585
22586 2004-10-01  Simon Josefsson  <jas@extundo.com>
22587             Bruno Haible  <bruno@clisp.org>
22588
22589         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
22590         (snprintf): Declare 'args'.
22591
22592 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
22593
22594         * lib/snprintf.c: Remove comments as to why each header is needed.
22595
22596 2004-10-01  Bruno Haible  <bruno@clisp.org>
22597
22598         * MODULES.html.sh: Add strsep.
22599
22600 2004-09-30  Simon Josefsson  <jas@extundo.com>
22601
22602         * modules/snprintf: New file.
22603
22604 2004-09-30  Simon Josefsson  <jas@extundo.com>
22605
22606         * m4/snprintf.m4: New file.
22607
22608 2004-09-30  Simon Josefsson  <jas@extundo.com>
22609
22610         * lib/snprintf.h, lib/snprintf.c: New files.
22611
22612 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22613
22614         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
22615         (hol_entry_help): Never translate an empty string.
22616         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
22617         * lib/argp.h (OPTION_NO_TRANS): New option.
22618
22619 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
22620
22621         * modules/argp (Maintainer): Replace Simon Josefsson
22622         by Sergey Poznyakoff.
22623
22624 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
22625
22626         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
22627         changes merged back into glibc.
22628
22629 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
22630
22631         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
22632
22633 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
22634
22635         * lib/xvasprintf.c: Include xalloc.h.
22636         (xvasprintf): Use xalloc_die, not xmalloc_die.
22637
22638 2004-09-29  Bruno Haible  <bruno@clisp.org>
22639
22640         * modules/alloca-opt: New file, derived from modules/alloca.
22641         * modules/allocsa: Depend on alloca-opt instead of alloca.
22642         * modules/setenv: Likewise.
22643         * modules/vasnprintf: Likewise.
22644         * MODULES.html.sh: Add alloca-opt.
22645
22646 2004-09-28  Simon Josefsson  <jas@extundo.com>
22647
22648         * gnulib-tool: New parameter --lgpl, to asseert that modules are
22649         LGPL, and to replace license template from GPL to LGPL.
22650
22651 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
22652
22653         * modules/dummy: Change license to LGPL.
22654
22655 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
22656
22657         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
22658
22659 2004-09-24  Simon Josefsson  <jas@extundo.com>
22660
22661         * modules/minmax (License): Change from GPL to LGPL.
22662
22663 2004-09-23  Simon Josefsson  <jas@extundo.com>
22664
22665         * gnulib-tool (--import): Typo.
22666
22667 2004-09-23  Simon Josefsson  <jas@extundo.com>
22668
22669         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
22670
22671 2004-09-22  Bruno Haible  <bruno@clisp.org>
22672
22673         * modules/*: Add 'License' field.
22674         * gnulib-tool: Accept --extract-license option.
22675         (func_get_license): New function.
22676
22677 2004-09-21  Bruno Haible  <bruno@clisp.org>
22678
22679         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
22680         Reported by Simon Josefsson.
22681
22682 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22683
22684         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
22685         gl_AC_TYPE_LONG_LONG.
22686
22687 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22688
22689         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
22690
22691 2004-09-18  Simon Josefsson  <jas@extundo.com>
22692         and  Paul Eggert  <eggert@cs.ucla.edu>
22693
22694         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
22695         calls with autoreconf.  Define GL_LIB.
22696
22697 2004-09-14  Karl Berry  <karl@gnu.org>
22698
22699         * config/srclist.txt: unsync setenv.c, sigh.
22700
22701 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22702
22703         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
22704         Problem reported by Bruno Haible in:
22705         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
22706
22707 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22708
22709         * config/srclist.txt: Comment out argp-pvh.c.
22710
22711 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
22712
22713         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
22714         in case some system header has #define'd it.  Problem reported by
22715         Soeren D. Schulze in
22716         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
22717
22718 2004-09-09  Karl Berry  <karl@gnu.org>
22719
22720         * regex.[ch]: delete from the root.  These were supposed to be
22721                 synced with emacs cvs, but this has not happened for about
22722                 a year, and anyway nothing else uses emacs regex.[ch].
22723                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
22724                 lib/regex[.ch] is untouched.
22725
22726 2004-09-09  Bruno Haible  <bruno@clisp.org>
22727
22728         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
22729
22730 2004-09-09  Bruno Haible  <bruno@clisp.org>
22731
22732         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
22733         modifications.
22734         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
22735
22736 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
22737
22738         * modules/xvasprintf: New file.
22739         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
22740
22741 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
22742
22743         * lib/xvasprintf.h: New file.
22744         * lib/xvasprintf.c: New file.
22745         * lib/xasprintf.c: New file.
22746
22747 2004-09-08  Bruno Haible  <bruno@clisp.org>
22748
22749         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
22750
22751 2004-09-08  Bruno Haible  <bruno@clisp.org>
22752
22753         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
22754         length is > INT_MAX.
22755         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
22756         more.
22757
22758 2004-09-08  Bruno Haible  <bruno@clisp.org>
22759
22760         * lib/stdint_.h: New file, taken from GNU clisp.
22761
22762 2004-09-08  Bruno Haible  <bruno@clisp.org>
22763             Oskar Liljeblad  <oskar@osk.mine.nu>
22764
22765         * modules/stdint: New file.
22766         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
22767
22768 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22769
22770         Import from coreutils.
22771         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
22772         strings on unbounded length.  alloca's performance benefits aren't
22773         that important here.
22774         (V_STRDUP): Remove.
22775         (parse_with_separator): New function, with most of the internals
22776         of the old parse_user_spec.  Allow user to omit both user and group,
22777         for compatibility with FreeBSD.
22778         Clone only the user name, not the entire spec.
22779         Do not set *uid, *gid unless entirely successful.
22780         Avoid memory leak in some failing cases.
22781         Fix regression for USER.GROUP reported by Dmitry V. Levin in
22782         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
22783         (parse_user_spec): Rewrite to use parse_with_separator.
22784
22785 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22786
22787         * modules/userspec: Don't depend on alloca.
22788
22789 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22790
22791         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
22792
22793 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22794
22795         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
22796         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
22797         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
22798
22799 2004-08-16  Simon Josefsson  <jas@extundo.com>
22800
22801         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
22802         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
22803         Add --dry-run for --import.
22804         Let user provided command line parameters override configure.ac
22805         settings.
22806
22807 2004-08-12  Simon Josefsson  <jas@extundo.com>
22808
22809         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
22810         as discussed with Paul Eggert in threads rooted at
22811         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
22812         and
22813         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
22814         Before, the test was empty, and relied on ELIDE_CODE in source
22815         code.)
22816         (gl_PREREQ_GETOPT): New macro.
22817         (gl_GETOPT): Use them.
22818
22819 2004-08-12  Simon Josefsson  <jas@extundo.com>
22820
22821         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
22822         * lib/getopt_.h: Renamed from getopt.h.
22823
22824 2004-08-12  Simon Josefsson  <jas@extundo.com>
22825
22826         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
22827         Change default library name from libfoo to libgnu.
22828         Now, if you have a configure.ac that says:
22829                 gl_SOURCE_BASE(gl)
22830                 gl_M4_BASE(gl/m4)
22831                 gl_MODULES(error getopt etcetera)
22832                 gl_INIT
22833         you can import all you need by running:
22834                 ../gnulib/gnulib-tool --import
22835
22836         * modules/getopt (Files): Rename getopt.h to getopt_.h.
22837         (Makefile.am): Rewrite, use logic from argz.
22838         (Include): Use <getopt.h> instead of "getopt.h".
22839
22840 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
22841
22842         * modules/argp (Files): Add m4/unlocked-io.m4.
22843         (Depends-on): Add extensions.
22844
22845 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
22846
22847         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
22848         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
22849         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
22850         Check for program_invocation_name, program_invocation_short_name,
22851         flockfile, funlockfile, features.h, _getopt_long_only_r.
22852
22853 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
22854
22855         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
22856         its complicated substitute.
22857         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
22858         and program_invocation_name.
22859         (__argp_basename) [!_LIBC]: Remove; the only use was
22860         replaced by its body.
22861         (__argp_short_program_name): Change condition from
22862         !defined __argp_short_program_name to
22863         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
22864         to match argp-namefrob.h.
22865         (__argp_failure): Don't assume strerror_r returns char *.
22866         * lib/argp-parse.c (N_): Define unconditionally.
22867         (argp_default_options): Fill out initializers with 0 to avoid
22868         gcc warnings.
22869
22870 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
22871
22872         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
22873         getopt1.c.
22874
22875 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
22876
22877         Merge from coreutils.
22878
22879         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
22880
22881         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
22882         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
22883
22884 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
22885
22886         Merge from coreutils.
22887
22888         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
22889         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
22890         for Reliant Unix 5.43.
22891
22892         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
22893         (union fooround): Use uintmax_t, not long int.
22894         The rest is a merge from libc:
22895         [defined _LIBC]: Include <shlib-compat.h>.
22896         (_obstack) [defined _LIBC]: Remove after 2.3.4.
22897
22898         * lib/settime.c (settime): Recode to avoid warning with
22899         Sun Forte C 6U2.
22900
22901         * lib/strverscmp.c: Convert to UTF-8.
22902
22903 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
22904
22905         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
22906         m4/uintmax_t.m4.
22907
22908 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22909
22910         * modules/xalloc-die: New file.
22911         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
22912
22913         * modules/md5 (Files): Add m4/uint32_t.m4.
22914         * modules/sha1: Renamed from modules/sha.
22915         (Files):
22916         Rename lib/sha.h to lib/sha1.h.
22917         Rename lib/sha.c to lib/sha1.c.
22918         Rename m4/sha.m4 to m4/sha1.m4.
22919         (lib_SOURCES): Likewise.
22920         (configure.ac): Rename gl_SHA to gl_SHA1.
22921         (Include): sha.h -> sha1.h.
22922
22923 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22924
22925         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
22926         * m4/sha1.m4: Renamed from sha.m4.
22927         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
22928
22929 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22930
22931         * lib/obstack.h (obstack_empty_p):
22932         Don't assume that chunk->contents is suitably aligned.
22933         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
22934         Likewise. Problem reported by Benno in
22935         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
22936
22937         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
22938         readable.  This could be improved further but it'd take some work.
22939
22940 2004-08-08  Simon Josefsson  <jas@extundo.com>
22941
22942         * modules/xgethostname (Depends-on): Remove exit and error (not
22943         used).
22944
22945         * modules/getpass-gnu: Add getpass.h.
22946         (Depends-on): Add stdbool.
22947         * modules/getpass: Add getpass.h.
22948
22949 2004-08-08  Simon Josefsson  <jas@extundo.com>
22950
22951         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
22952         Check getpass declaration.
22953
22954 2004-08-08  Simon Josefsson  <jas@extundo.com>
22955
22956         * lib/xgethostname.c: Don't include error.h (not used).
22957
22958         * lib/getpass.h: Add.
22959         * lib/getpass.c: Include getpass.h first.
22960
22961 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
22962
22963         * lib/xalloc-die.c: New file.
22964         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
22965         All uses removed.
22966         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
22967         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
22968         xalloc-die.c.
22969         (_, N_, xalloc_die): Move to xalloc-die.c.
22970         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
22971         so that we needn't mess with xalloc_msg_memory_exhausted.
22972
22973         * lib/sha1.h: Renamed from sha.h.
22974         (SHA1_H): Renamed from _SHA_H.
22975         (sha1_ctx): Renamed from sha_ctx.
22976         (sha1_init_ctx): Renamed from sha_init_ctx.
22977         (sha1_process_block): Renamed from sha_process_block.
22978         (sha1_process_bytes): Renamed from sha_process_bytes.
22979         (sha1_finish_ctx): Renamed from sha_finish_ctx.
22980         (sha1_read_ctx): Renamed from sha_read_ctx.
22981         (sha1_stream): Renamed from sha_stream.
22982         (sha1_buffer): Renamed from sha_buffer.
22983         * lib/sha1.c: Likewise; renamed from sha.c.
22984         Do not include <sys/types.h>.
22985         Include <stddef.h> rather than <stdlib.h>.
22986
22987 2004-08-08  Bruno Haible  <bruno@clisp.org>
22988
22989         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
22990         FILESYSTEM_PREFIX_LEN.
22991         * lib/progreloc.c: Likewise.
22992         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
22993
22994 2004-08-06  Simon Josefsson  <jas@extundo.com>
22995
22996         * modules/progname (Depends-on): Don't depend on stdbool.
22997
22998 2004-08-06  Simon Josefsson  <jas@extundo.com>
22999
23000         * modules/getsubopt: New file.
23001         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23002         getsubopt.
23003
23004 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
23005
23006         More merge from coreutils.
23007
23008         * m4/utimens.m4, m4/utimecmp.m4: New files.
23009         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
23010         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
23011         prereq.m4, sha.m4: Import changes from coreutils.
23012
23013 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
23014
23015         More merge from coreutils.
23016         * modules/raise, modules/readtokens0, modules/utimens:
23017         * modules/utimecmp, module/xnanosleep: New files.
23018         * modules/strftime: Add lib/strftime.h.
23019         Change include from <time.h> to "strftime.h".
23020         * modules/yesno: Add lib/yesno.h.
23021         * modules/backupfile: Remove lib/addext.c.
23022         * modules/euidaccess: Add stat-macros.h.
23023         * modules/canonicalize, modules/euidaccess,
23024         modules/filemode, modules/lchown, modules/makepath,
23025         modules/rmdir, modules/stat: Likewise.
23026
23027 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
23028
23029         Merge from tar.
23030         * lib/argp-help.c (make_hol, hol_append): Don't assume that
23031         SIZE_MAX is a valid preprocessor constant.
23032         (__argp_basename): Change from "#ifndef _LIBC"
23033         to "#ifndef __argp_short_program_name", so that
23034         we don't compile these functions for tar.
23035
23036         More merges from coreutils.
23037         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
23038         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
23039         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
23040         * lib/addext.c: Remove; no longer needed.
23041         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
23042         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
23043         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
23044         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
23045         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
23046         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
23047         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
23048         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
23049         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
23050         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
23051         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
23052         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
23053         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
23054         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
23055         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
23056         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
23057         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
23058         Import changes from coreutils.
23059
23060 2004-08-05  Simon Josefsson  <jas@extundo.com>
23061
23062         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
23063
23064 2004-08-05  Simon Josefsson  <jas@extundo.com>
23065
23066         * m4/getsubopt.m4: New file.
23067
23068 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
23069
23070         Merge from coreutils.
23071
23072         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
23073         * m4/getcwd-path-max.m4: New files.
23074
23075         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
23076         FILESYSTEM_PREFIX_LEN ->
23077         FILE_SYSTEM_PREFIX_LEN.
23078         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
23079         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
23080         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
23081         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
23082
23083         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
23084         prerequisite modules now handle the DOS stuff.
23085         Don't check for unistd.h.
23086
23087 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
23088
23089         Merge from coreutils.
23090
23091         * lib/.gdb-history: Remove; this doesn't belong here.
23092
23093         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
23094         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
23095         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
23096         * lib/getcwd.c: New files.
23097
23098         * lib/dirname.h: Include <stdbool.h>.
23099         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
23100         for consistency with POSIX terminology.  All uses changed.
23101         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
23102         (strip_trailing_slashes): Use bool for booleans.
23103         * lib/stripslash.c (strip_trailing_slashes): Likewise.
23104
23105         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
23106         sometimes returns a positive errno value even when it succeeds.
23107         (print_errno_message) [!LIBC]: Fall back on strerror if
23108         __strerror_r fails.
23109
23110         * lib/path-concat.c (mempcpy): Don't define if a system header defines
23111         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
23112         (longest_relative_suffix): New function.
23113         (path_concat): Use it.  Assume first argument is not NULL.
23114         Port to DOS.  Omit redundant separators.
23115         Report an error instead of returning NULL.
23116         Use mempcpy instead of memcpy.
23117         (xpath_concat): Remove: not declared or used.
23118
23119         * lib/same.h: Include <stdbool.h>
23120         (same_name): Return bool, not int.
23121         * lib/same.c (same_name): Likewise.
23122         (errno): Don't declare; we assume C89 or better now.
23123
23124         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
23125         if not already defined.
23126
23127         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
23128         * lib/dup-safer.c (errno): Likewise.
23129
23130 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
23131
23132         Merge from coreutils.
23133         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
23134         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
23135         * modules/path-concat: Don't depend on strdup.
23136
23137 2004-08-03  Simon Josefsson  <jas@extundo.com>
23138
23139         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
23140         * lib/progname.h: Don't include stdbool.h.
23141
23142 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
23143
23144         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
23145         * MODULES.html.sh (func_all_modules): Remove fatal.
23146
23147 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
23148
23149         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
23150
23151 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
23152
23153         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
23154         working.
23155
23156 2004-08-02  Simon Josefsson  <jas@extundo.com>
23157
23158         * lib/getsubopt.h: New file, with comments from Bruno Haible.
23159         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
23160         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
23161
23162 2004-08-01  Simon Josefsson  <jas@extundo.com>
23163
23164         * lib/xgetdomainname.c: Include stdlib.h, for free().
23165
23166 2004-07-19  Bruno Haible  <bruno@clisp.org>
23167
23168         * MODULES.html.sh (func_all_modules): Add dummy.
23169
23170 2004-07-16  Simon Josefsson  <jas@extundo.com>
23171
23172         * modules/dummy: New file.
23173
23174 2004-07-16  Simon Josefsson  <jas@extundo.com>
23175
23176         * lib/dummy.c: New file.
23177
23178 2004-07-16  Bruno Haible  <bruno@clisp.org>
23179
23180         * lib/backupfile.h: Add extern "C" for C++.
23181         * lib/closeout.h: Likewise.
23182         * lib/copy-file.h: Likewise.
23183         * lib/findprog.h: Likewise.
23184         * lib/full-write.h: Likewise.
23185         * lib/pathname.h: Likewise.
23186         * lib/progname.h: Likewise.
23187         * lib/stpcpy.h: Likewise.
23188         * lib/stpncpy.h: Likewise.
23189         * lib/strcase.h: Likewise.
23190         * lib/strstr.h: Likewise.
23191         * lib/xalloc.h: Likewise.
23192
23193         * lib/mbswidth.h: Add extern "C" for C++.
23194         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
23195
23196 2004-07-13  Robert Millan  <robertmh@gnu.org>
23197
23198         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
23199
23200 2004-07-09  Simon Josefsson  <jas@extundo.com>
23201
23202         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
23203         failed without this.)
23204
23205 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23206
23207         * modules/chown (Files): Add lib/fchown-stub.c, since
23208         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
23209
23210 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23211
23212         * lib/fchown-stub.c: New file.
23213
23214 2004-06-24  Jim Meyering  <jim@meyering.net>
23215
23216         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
23217
23218 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
23219
23220         * modules/argz: Omit "#include".
23221
23222         * MODULES.html.sh (func_all_modules): Add calloc, to match
23223         2004-06-01 addition of calloc module.
23224
23225 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
23226
23227         * m4/argz.m4: New file, which is autoupdated from libtool.
23228
23229 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
23230
23231         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
23232         libtool.
23233
23234 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
23235
23236         * config/srclist-update: Don't insist on "USA." before the
23237         close-comment, as libtool omits the period and puts the */ on a
23238         separate line.
23239         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
23240         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
23241
23242 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
23243
23244         * modules/argz: New file.
23245         * MODULES.html.sh (func_all_modules): Add argz.
23246
23247 2004-06-12  Jim Meyering  <jim@meyering.net>
23248         and  Paul Eggert  <eggert@cs.ucla.edu>
23249
23250         * modules/hash (Files): Add lib/xalloc.h.
23251         * modules/pipe (Depends-on): Add wait-process.
23252         * modules/stat (Depends-on): Add xalloc.
23253         * modules/userspec (Files): Add lib/userspec.h.
23254         * modules/xstrto
23255
23256         Upgrade from gettext-0.13.
23257         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
23258         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
23259         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
23260
23261 2004-06-10  Jim Meyering  <jim@meyering.net>
23262
23263         * lib/calloc.c: New file.
23264
23265 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
23266
23267         * lib/getdate.y (yylex): Allow space between sign and number.
23268         Problem reported by Dan Jacobson.
23269
23270 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
23271
23272         Merge from coreutils CVS.
23273
23274         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
23275         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
23276         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
23277         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
23278         xstrtol.m4: Fix copyright date and/or serial number.
23279
23280         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
23281         See if we need an fchown replacement.
23282         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
23283         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
23284         and use the replacement function if we detect either defect.
23285
23286         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
23287         gl_UTIMECMP.
23288
23289 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
23290         and  Jim Meyering  <jim@meyering.net>
23291
23292         Merge from coreutils CVS.
23293
23294         * lib/stat-macros.h: New file, with contents from file-type.h
23295         and coreutils' system.h.
23296         * lib/file-type.c: Include "stat-macros.h".
23297         * lib/file-type.h (file_type): Move all macro definitions to new file,
23298         stat-macros.h.
23299
23300         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
23301         Wrap old code with this conditional.
23302         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
23303         function that does not dereference symlinks.
23304         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
23305
23306         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
23307         dependency problems.
23308         (xreadlink): Accept new arg SIZE, for efficiency.
23309         All decls and uses changed.
23310         * lib/xreadlink.h: Include <stddef.h>, for size_t.
23311
23312         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
23313         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
23314
23315         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
23316         sysexits.h.
23317
23318 2004-06-01  Jim Meyering  <jim@meyering.net>
23319
23320         * m4/calloc.m4: New file.
23321
23322 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
23323
23324         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
23325         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
23326         Also, fix a typo in a diagnostic.
23327
23328 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
23329
23330         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
23331         or AC_FUNC_REALLOC.
23332
23333 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
23334
23335         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
23336         macros to be defined.
23337         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
23338         the allocator returns NULL because the requested size is zero.
23339
23340 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
23341
23342         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
23343         var.  Add comment explaining why libc still defines it.  This
23344         merges the following patch from glibc:
23345         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
23346
23347 2004-05-20  Andreas Schwab  <schwab@suse.de>
23348
23349         * m4/free.m4: Replace free if it not known to work, not the other
23350         way round.
23351
23352 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23353
23354         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
23355         present in glibc since revision 1.1 of this file.
23356         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
23357         obstack_alignment_mask, obstack_alloc, obstack_base,
23358         obstack_blank, obstack_blank_fast, obstack_chunk_size,
23359         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
23360         obstack_grow0, obstack_init, obstack_int_grow,
23361         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
23362         obstack_next_free, obstack_object_size, obstack_ptr_grow,
23363         obstack_ptr_grow_fast, obstack_room): Remove declarations of
23364         nonexistent functions.
23365
23366 2004-05-18  Karl Berry  <karl@gnu.org>
23367
23368         * config/srclist.txt: break link for vasnprintf.c.
23369
23370 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
23371
23372         Port obstack to the AS/400, where pointers are 16 bytes wide and
23373         you cannot cast an integer to a valid pointer.  This patch is
23374         currently waiting to be integrated into glibc; see
23375         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
23376
23377         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
23378         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
23379         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
23380         (struct obstack): temp member is now a union of a pointer and
23381         an integer, instead of an integer.  All integer uses changed.
23382         This does not affect the physical layout of struct obstack,
23383         except on hosts (like the AS/400) where the size or alignment of
23384         void * is greater than that of ptrdiff_t.
23385         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
23386         __STDC__)]: Store temporary in pointer member of union, not
23387         integer member.
23388         * lib/obstack.c: Include <stddef.h>, for offsetof.
23389         (struct fooalign): Remove; it doesn't need a name.
23390         (union fooround): Change double to long double, and add void *.
23391         (DEFAULT_ALIGNMENT): Use offsetof to compute.
23392         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
23393         not a macro.  Hence the values are always int; so remove all
23394         casts-to-int in uses.
23395
23396 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
23397
23398         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
23399         we can get this patch merged into glibc.
23400
23401 2004-05-17  Derek R. Price  <derek@ximbiot.com>
23402             Paul Eggert  <eggert@cs.ucla.edu>
23403
23404         * m4/argp: Depend on alloca.
23405
23406 2004-05-17  Derek R. Price  <derek@ximbiot.com>
23407             Paul Eggert  <eggert@cs.ucla.edu>
23408
23409         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
23410         freecoding.
23411
23412 2004-05-17  Bruno Haible  <bruno@clisp.org>
23413
23414         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
23415         precision that consists of a '.' followed by an empty digit string.
23416         Patch by Tor Lillqvist <tml@iki.fi>.
23417
23418 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
23419
23420         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
23421         for backward compatibility with older code.  We need our own
23422         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
23423         it under some other name, and our alloca.h will define it.
23424
23425 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
23426             Derek Price  <derek@ximbiot.com>
23427
23428         * lib/alloca.c: Include <alloca.h>, to get our interface.
23429         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
23430         include <alloca.h> first.  Use C89 prototype for alloca; this
23431         requires including <stddef.h> for size_t.  Use extern "C" if C++.
23432         Use #elif for simplicity, since we can assume C89 now.
23433         Don't try to source the system alloca.h since it will not be found
23434         and to prevent recursively including its replacement.
23435         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
23436         * lib/regex.c: Likewise.
23437
23438 2004-05-16  Derek Price  <derek@ximbiot.com>
23439             Paul Eggert  <eggert@cs.ucla.edu>
23440
23441         getline cleanup.  This changes the getndelim2 API: both order of
23442         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
23443         no delimiter).
23444
23445         * lib/getline.c: Don't include stddef.h or stdio.h, since our
23446         interface does that.
23447         (getline): Always use getdelim, so that we don't have two
23448         copies of this code.
23449         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
23450         if available.
23451         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
23452         (GETNDELIM2_MAXIMUM): New macro.
23453         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
23454         instead of the old practice of delim2==0.  All callers changed.
23455         Return -1 on overflow, instead of returning junk.
23456         Do not set *linesize unless allocation succeeds.
23457         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
23458         that we include sys/types.h.
23459         * lib/getnline.h: Likewise.
23460         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
23461         (getndelim2): Reorder arguments.
23462         * lib/getnline.c (getnline, getndelim):
23463         Don't discard the NMAX argument.
23464         (getnline): Invoke getndelim, to avoid code duplication.
23465         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
23466         of (size_t) -1 by callers of the getnline family.
23467
23468 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
23469
23470         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
23471         Check for gettimeofday.
23472         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
23473         Check for settimeofday, stime.
23474
23475 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
23476
23477         * lib/nanosleep.c (suspended): Change its type from int to
23478         sig_atomic_t volatile.
23479         (first_call): Make it private to rpl_nanosleep, and have it
23480         be zero initially as that's a bit faster.
23481         (my_usleep): Round up fractional times instead of truncating them,
23482         as this is the usual meaning for 'sleep'.
23483
23484         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
23485         doesn't work.
23486         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
23487         (ENOSYS): Define if not defined.
23488         (settime): Fall back on stime if it exists and settimeofday fails.
23489         But don't bother with fallbacks if a method fails with errno == EPERM.
23490
23491 2004-05-11  Jim Meyering  <jim@meyering.net>
23492
23493         Prior to this change, the save_cwd caller required read access to the
23494         current directory on most systems (ones with the fchdir function).
23495
23496         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
23497         fails, try write-only, and finally, resort to using xgetcwd.
23498
23499 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
23500
23501         * lib/obstack.c, obstack.h: Import changes from libc.
23502
23503 2004-04-28  Bruno Haible  <bruno@clisp.org>
23504
23505         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
23506         also implicitly appends .exe to executables.
23507         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
23508         accepts Windows pathnames.
23509         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
23510         Treat Cygwin like Windows, since it now accepts Windows pathnames.
23511         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
23512         Treat Cygwin like Windows, since it now accepts Windows pathnames.
23513         Reported by Derek Robert Price <derek@ximbiot.com>.
23514
23515 2004-04-21  Karl Berry  <karl@gnu.org>
23516
23517         * config/srclist.txt (localcharset.c): break sync.
23518
23519 2004-04-20  Paul Eggert  <eggert@twinsun.com>
23520
23521         * m4/host-os.m4: Add a copyright notice.
23522
23523 2004-04-20  Jim Meyering  <jim@meyering.net>
23524
23525         Change UTILS_ to gl_ in AC_DEFINE'd names.
23526         Change utils_- and jm_-prefixed variables, too.
23527         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
23528         UTILS_FUNC_MKDIR_TRAILING_SLASH.
23529         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
23530
23531         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
23532         Don't emit trailing blanks.
23533         Also rename jm_-prefixed variables to have gl_ prefix.
23534
23535         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
23536         Also rename jm_-prefixed variables to have gl_ prefix.
23537
23538         * m4/jm-macros.m4: Reflect the renamings.
23539         * m4/prereq.m4: Likewise.
23540
23541 2004-04-20  Jim Meyering  <jim@meyering.net>
23542
23543         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
23544         memory.
23545
23546 2004-04-20  Jim Meyering  <jim@meyering.net>
23547             Bruno Haible  <bruno@clisp.org>
23548
23549         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
23550         memory when realloc fails.
23551
23552 2004-04-19  Jim Meyering  <jim@meyering.net>
23553
23554         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
23555         now that readutmp.c may call `free (0)'.
23556
23557 2004-04-19  Bruno Haible  <bruno@clisp.org>
23558
23559         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
23560         * m4/inttypes_h.m4: Likewise.
23561         * m4/stdint_h.m4: Likewise.
23562         * m4/intmax_t.m4: Likewise.
23563         * m4/uintmax_t.m4: Likewise.
23564
23565 2004-04-18  Jim Meyering  <jim@meyering.net>
23566
23567         * m4/prereq.m4: Don't forbid jm_ prefix.
23568
23569         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
23570         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
23571         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
23572         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
23573         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
23574         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
23575         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
23576         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
23577         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
23578         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
23579         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
23580         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
23581         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
23582         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
23583         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
23584         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
23585         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
23586         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
23587         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
23588
23589 2004-04-18  Jim Meyering  <jim@meyering.net>
23590
23591         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
23592         failure, don't leak memory and do call END_UTMP_ENT.
23593
23594 2004-04-16  Jim Meyering  <jim@meyering.net>
23595
23596         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
23597         coreutils' stat program.
23598         (gl_PREREQ): Don't require jm_PREREQ_STAT.
23599
23600 2004-04-11  Paul Eggert  <eggert@twinsun.com>
23601
23602         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
23603         C89.
23604         (CHAR_BIT): Remove, since we assume C89.
23605         Include <stdint.h> if available, as per current Autoconf CVS advice.
23606
23607 2004-03-31  Jim Meyering  <jim@meyering.net>
23608
23609         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
23610         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
23611         * m4/xalloc.m4: Likewise.
23612
23613 2004-03-30  Paul Eggert  <eggert@twinsun.com>
23614
23615         Merge from coreutils.
23616
23617         * m4/inttostr.m4: New file.
23618         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
23619         Require AM_STDBOOL_H and gl_TIMESPEC instead.
23620         Require gl_CLOCK_TIME.
23621         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
23622
23623 2004-03-30  Paul Eggert  <eggert@twinsun.com>
23624
23625         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
23626         not bool, to be more consistent with Unix conventions.
23627         Suggested by Bruno Haible.
23628
23629         Merge from coreutils.
23630
23631         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
23632         * lib/umaxtostr.c: New files.
23633
23634         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
23635         the usual <time.h> dance.
23636         (get_date): Change signature to support fractional time stamps.
23637         All callers changed.
23638         * lib/getdate.y: Include "getdate.h" first, as we can now
23639         assume C89 and don't need to worry about 'const'.
23640         Similarly, include "unlocked-io.h" near start, not in middle.
23641         Include <limits.h>.
23642         (textint.value): Use long int rather than int.
23643         (textint.digits): Use size_t rather than int.
23644         (BILLION, LOG10_BILLION): New constants.
23645         (parser_control): New member rel_ns.  Members day_ordinal,
23646         time_zone, month, day, hour, minutes, rel_year, rel_month,
23647         rel_day, rel_hour, rel_minutes, rel_seconds
23648         are now long int, not int.  Member seconds is now struct timespec,
23649         not int.  New member timespec_seen.  Members dates_seen, days_seen,
23650         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
23651         not int.
23652         (%union.intval): Now long int, not int.
23653         New member timespec.
23654         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
23655         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
23656         (spec): Now is a timespec or an item list.
23657         (timespec, items): New nonterminals.
23658         (time, rel, relunit, number, get_date):
23659         Add support for fractional seconds.
23660         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
23661         (gmtime, localtime, mktime): Remove decls; not needed with C89.
23662         (to_hour): First arg is now long int, not int.
23663         (to_year): Returns long int, not int.
23664         Don't treat year -70 like 70.
23665         (tm_diff): Returns long int, not int.
23666         (lookup_word): Use bool instead of int when appropriate.
23667         (yylex): Use size_t for count, not int.
23668         Detect overflow when parsing large integer constants.
23669         Add support for fractions.
23670         (get_date): Make pointers 'const' if possible.
23671         Use more-portable code to detect integer overflow.
23672         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
23673         Don't use ctime; it's not reliable if the year has >4 digits.
23674
23675         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
23676         This is for compatibility with BSD.
23677
23678         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
23679         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
23680         From coreutils' system.h.
23681
23682         * lib/userspec.c: Don't include "posixver.h".
23683         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
23684         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
23685         compatible extension.  Simplify code by removing a boolean int
23686         that was always nonzero if a string was nonnull.
23687
23688 2004-03-30  Jim Meyering  <jim@meyering.net>
23689
23690         Merge from coreutils.
23691
23692         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
23693         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
23694         on some systems one must include <grp.h> before it.
23695         Reported by Christian Krackowizer.
23696
23697 2004-03-30  Jim Meyering  <jim@meyering.net>
23698
23699         Merge from coreutils.
23700
23701         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
23702
23703         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
23704         an empty input stream.
23705
23706         * lib/readtokens.c: Include <stdbool.h>.
23707         (readtoken): Use `size_t' rather than int/long.
23708         All callers adjusted.
23709         Use `bool' rather than `int' where appropriate.
23710         Use memset rather than an explicit loop.
23711         Use x2nrealloc rather than xrealloc.
23712         Allow the use of `\0' as a delimiter.
23713         (readtokens): Likewise.
23714         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
23715
23716 2004-03-30  Jim Meyering  <jim@meyering.net>
23717
23718         * m4/realloc.m4: Remove file, since now it does no more than
23719         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
23720         the `configure.ac' section of module/realloc.
23721         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
23722
23723 2004-03-30  Bruno Haible  <bruno@clisp.org>
23724
23725         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
23726         nonnull.
23727
23728 2004-03-29  Paul Eggert  <eggert@twinsun.com>
23729
23730         Merge changes to getloadavg.c from coreutils and Emacs.
23731
23732         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
23733         Define to an expression, not to the empty string.
23734         Include cloexec.h and xalloc.h.
23735         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
23736         Use set_cloexec_flag rather than rolling our own.
23737         * lib/cloexec.c, lib/cloexec.h: New files.
23738
23739 2004-03-29  Paul Eggert  <eggert@twinsun.com>
23740
23741         * m4/cloexec.m4: New file.
23742
23743 2004-03-18  Paul Eggert  <eggert@twinsun.com>
23744
23745         * lib/getopt.h: Sync with libc CVS.
23746
23747 2004-03-18  Paul Eggert  <eggert@twinsun.com>
23748             Bruno Haible  <bruno@clisp.org>
23749
23750         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
23751         mbswidth.
23752
23753 2004-03-18  Paul Eggert  <eggert@twinsun.com>
23754             Bruno Haible  <bruno@clisp.org>
23755
23756         * lib/mbswidth.h: Include <wchar.h> only if
23757         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
23758         <wchar.h>.
23759         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
23760
23761 2004-03-09  Paul Eggert  <eggert@twinsun.com>
23762
23763         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
23764         Sync with libc CVS.
23765         * lib/getopt_int.h: New file, also synced from libc.
23766
23767 2004-03-09  Paul Eggert  <eggert@twinsun.com>
23768
23769         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
23770         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
23771         Bring back getopt.c, getopt.h, getopt1.c.
23772
23773 2004-03-07  Paul Eggert  <eggert@twinsun.com>
23774
23775         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
23776         All uses changed.  Check for sa_sigaction member; this fixes
23777         a bug first reported by Jason Andrade in
23778         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
23779
23780 2004-03-07  Paul Eggert  <eggert@twinsun.com>
23781
23782         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
23783         '#if' expressions.  Unlike the code it replaces, it does not
23784         depend on (defined _SC_PAGESIZE).  However, it does depend on
23785         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
23786         first reported by Jason Andrade in
23787         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
23788
23789 2004-02-25  Simon Josefsson  <jas@extundo.com>
23790
23791         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
23792
23793 2004-02-25  Simon Josefsson  <jas@extundo.com>
23794
23795         * lib/strdup.h: New file.
23796         * lib/strdup.c: Include it.
23797         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
23798         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
23799
23800 2004-02-23  Karl Berry  <karl@gnu.org>
23801
23802         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
23803         (from fencepost.gnu.org:/gd/gnuorg).
23804
23805 2004-02-23  Karl Berry  <karl@gnu.org>
23806
23807         * config/srclistvars.sh (GNUORG) [karl]: redefine.
23808         * config/srclist.txt: add maintain/standards documents.
23809
23810 2004-02-18  Bruno Haible  <bruno@clisp.org>
23811
23812         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
23813         Reported by Derek Robert Price <derek@ximbiot.com>.
23814
23815 2004-02-16  Karl Berry  <karl@gnu.org>
23816
23817         * config/mkinstalldirs, install-sh: update from automake.
23818
23819 2004-02-06  Karl Berry  <karl@gnu.org>
23820
23821         * m4/po.m4: update from gettext 0.14.1.
23822
23823 2004-02-06  Karl Berry  <karl@gnu.org>
23824
23825         * lib/config.charset: update from gettext 0.14.1.
23826
23827 2004-02-05  Paul Eggert  <eggert@twinsun.com>
23828
23829         Add comments and code, prompted by suggestions from Bruno Haible
23830         for sh-quote.
23831         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
23832         describing the enum quoting_style values.
23833         * lib/quotearg.c (quotearg_alloc): New function.
23834         (quotearg_buffer_restyled): Treat lone { and } as special.
23835         Treat = as special.  Work around bug with older shells
23836         that "see" a '\' that is really the 2nd byte of a multibyte char.
23837         Quote empty string with shell_quoting_style.
23838
23839 2004-02-03  Bruno Haible  <bruno@clisp.org>
23840
23841         * m4/pipe.m4: New file, from GNU gettext.
23842
23843 2004-02-03  Bruno Haible  <bruno@clisp.org>
23844
23845         * lib/pipe.h: New file, from GNU gettext.
23846         * lib/pipe.c: New file, from GNU gettext.
23847
23848 2004-01-27  Bruno Haible  <bruno@clisp.org>
23849
23850         * m4/execute.m4: New file, from GNU gettext.
23851
23852 2004-01-27  Bruno Haible  <bruno@clisp.org>
23853
23854         * lib/execute.h: New file, from GNU gettext.
23855         * lib/execute.c: New file, from GNU gettext.
23856         * lib/w32spawn.h: New file, from GNU gettext.
23857
23858 2004-01-24  Paul Eggert  <eggert@twinsun.com>
23859
23860         Merge from diffutils.
23861
23862         * lib/file-type.c (file_type): Add typed memory objects.
23863         * lib/file-type.h (S_TYPEISTMO): New macro.
23864
23865         * lib/c-stack.h (c_stack_action): Remove argv argument.
23866         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
23867         (die): Don't calculate message unless segv_action returns.
23868         (get_stack_location, min_address_from_argv, max_address_from_argv,
23869         volatile stack_base, volatile_stack_size): Remove.
23870         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
23871         that every segmentation violation is a stack overflow.  (Ouch!)
23872         See Debian bug 136249 (still outstanding) for more info about why
23873         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
23874
23875 2004-01-24  Paul Eggert  <eggert@twinsun.com>
23876
23877         Exit-status fix from coreutils.
23878
23879         Use exit_failure consistently in place of EXIT_FAILURE,
23880         so that program exit statuses are consistent on failure.
23881
23882         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
23883         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
23884         * lib/argmatch.h: Comment fix to match the above.
23885         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
23886         Now a macro referring to exit_failure, instead of a separate
23887         variable.  Include "exitfail.h" to get it.
23888         * lib/xstrtol.h: Include "exitfail.h".
23889         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
23890
23891         * lib/long-options.c (parse_long_options): Use prototype
23892         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
23893         for clarity.
23894
23895 2004-01-21  Jim Meyering  <jim@meyering.net>
23896
23897         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
23898         so as not to conflict with a different-sized __mktime_internal
23899         function in GNU libc.
23900         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
23901         Problem building statically-linked `ls' reported by Michael Brunnbauer.
23902
23903 2004-01-20  Karl Berry  <karl@gnu.org>
23904
23905         * config/config.guess: update from config.
23906
23907         * config/srclistvars.sh: GNUWWWLICENSES for karl.
23908
23909 2004-01-20  Bruno Haible  <bruno@clisp.org>
23910
23911         Safer stack allocation.
23912         * lib/setenv.c: Include allocsa.h.
23913         (alloca): Remove fallback definition.
23914         (freea): Remove macro.
23915         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
23916         instead of freea.
23917
23918 2004-01-20  Bruno Haible  <bruno@clisp.org>
23919
23920         * m4/eealloc.m4: New file, from GNU gettext.
23921
23922 2004-01-20  Bruno Haible  <bruno@clisp.org>
23923
23924         * m4/allocsa.m4: New file, from GNU gettext.
23925
23926 2004-01-20  Bruno Haible  <bruno@clisp.org>
23927
23928         * lib/xallocsa.h: New file, from GNU gettext.
23929         * lib/xallocsa.c: New file, from GNU gettext.
23930
23931 2004-01-20  Bruno Haible  <bruno@clisp.org>
23932
23933         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
23934
23935 2004-01-20  Bruno Haible  <bruno@clisp.org>
23936
23937         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
23938         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
23939         specially.
23940
23941 2004-01-20  Bruno Haible  <bruno@clisp.org>
23942
23943         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
23944         patch.
23945
23946 2004-01-20  Bruno Haible  <bruno@clisp.org>
23947
23948         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
23949
23950 2004-01-20  Bruno Haible  <bruno@clisp.org>
23951
23952         * lib/eealloc.h: New file.
23953
23954 2004-01-20  Bruno Haible  <bruno@clisp.org>
23955
23956         * lib/binary-io.h: Avoid warnings on Cygwin.
23957
23958 2004-01-20  Bruno Haible  <bruno@clisp.org>
23959
23960         * lib/allocsa.h: New file, from GNU gettext.
23961         * lib/allocsa.c: New file, from GNU gettext.
23962
23963 2004-01-18  Karl Berry  <karl@gnu.org>
23964
23965         * doc/gpl.texi, doc/lgpl.texi: new files.
23966
23967 2004-01-18  Karl Berry  <karl@gnu.org>
23968
23969         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
23970         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
23971
23972 2004-01-15  Paul Eggert  <eggert@twinsun.com>
23973
23974         Merge from coreutils.
23975
23976         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
23977         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
23978         (gl_DEFAULT_POSIX2_VERSION): Move
23979         the documentation from 'configure' into 'config.hin',
23980         so that 'configure --help' isn't burdened by it and
23981         we don't have to worry about its formatting there.
23982         Reword the documentation so that it's more succinct
23983         and can be run together into a single paragraph.
23984         * m4/same.m4 (gl_SAME): Check for pathconf.
23985
23986 2004-01-15  Paul Eggert  <eggert@twinsun.com>
23987
23988         Merge from coreutils.
23989
23990         * lib/posixver.c: Include posixver.h.
23991
23992         * lib/same.c: Include <stdbool.h>, <limits.h>.
23993         (_POSIX_NAME_MAX): Define if not defined.
23994         (MIN): New macro.
23995         (same_name): If file names are silently truncated, report
23996         that the file names are the same if they are the same after
23997         the silent truncation.
23998
23999         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
24000         conversion function.
24001         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
24002         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
24003         longer needed.
24004
24005 2004-01-15  Jim Meyering  <jim@meyering.net>
24006
24007         Merge from coreutils.
24008
24009         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
24010         if no library is required.
24011         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
24012         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
24013         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
24014         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
24015         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
24016         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
24017         value, $ac_cv_search_crypt, if it's "none required".
24018         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
24019         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
24020         not gl_FUNC_GETLOADAVG.
24021         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
24022         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
24023
24024 2004-01-15  Jim Meyering  <jim@meyering.net>
24025
24026         Merge from coreutils.
24027
24028         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
24029         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
24030         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
24031
24032         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
24033         optional configure-time default.
24034
24035         * lib/version-etc.c (version_etc_copyright): Update copyright date.
24036
24037         * lib/xreadlink.c (xreadlink): Correct outdated comment.
24038
24039 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
24040
24041         Merge from coreutils.
24042
24043         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
24044         value, $ac_cv_search_nanosleep, if it's "none required".
24045
24046 2004-01-14  Paul Eggert  <eggert@twinsun.com>
24047
24048         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
24049         with like-named macro in fnmatch.c.
24050         (EXT): Use an internal constant instead.
24051
24052         Merge fnmatch patches from glibc.
24053         * lib/fnmatch.c (mbsinit): Remove define.
24054         Add libc_hidden_ver (__fnmatch, fnmatch).
24055         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
24056         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
24057
24058 2004-01-14  Karl Berry  <karl@gnu.org>
24059
24060         * config/install-sh: update from automake.
24061
24062 2004-01-13  Karl Berry  <karl@gnu.org>
24063
24064         * config/install-sh: update from automake.
24065
24066 2004-01-09  Karl Berry  <karl@gnu.org>
24067
24068         * config/install-sh: update from automake.
24069
24070 2004-01-05  Karl Berry  <karl@gnu.org>
24071
24072         * config/config.{sub,guess}: update from config.
24073
24074 2003-12-31  Karl Berry  <karl@gnu.org>
24075
24076         * config/depcomp: update from automake.
24077
24078 2003-12-14  Karl Berry  <karl@gnu.org>
24079
24080         * lib/config.charset: update from gettext-runtime.
24081
24082 2003-12-03  Paul Eggert  <eggert@twinsun.com>
24083
24084         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
24085         Bug reported by Alfred M. Szmidt.
24086
24087 2003-12-03  Bruno Haible  <bruno@clisp.org>
24088
24089         * m4/gettext.m4: Upgrade from gettext-0.13.
24090         * m4/po.m4: Upgrade from gettext-0.13.
24091         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
24092         * m4/intmax.m4: New file, from gettext-0.13.
24093         * m4/printf-posix.m4: New file, from gettext-0.13.
24094
24095 2003-11-29  Karl Berry  <karl@gnu.org>
24096
24097         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
24098
24099 2003-11-25  Paul Eggert  <eggert@twinsun.com>
24100             Bruno Haible  <bruno@clisp.org>
24101
24102         * lib/printf-parse.h: Don't include sys/types.h.
24103         (ARG_NONE): New macro.
24104         (char_directive): Change type of *arg_index fields to size_t.
24105         * lib/printf-parse.c: Don't include sys/types.h.
24106         (SSIZE_MAX): Remove macro.
24107         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
24108         Remove unnecessary overflow check.
24109         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
24110         fields.
24111
24112 2003-11-25  Bruno Haible  <bruno@clisp.org>
24113
24114         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
24115
24116 2003-11-25  Bruno Haible  <bruno@clisp.org>
24117
24118         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
24119         gt_TYPE_SSIZE_T.
24120
24121 2003-11-24  Paul Eggert  <eggert@twinsun.com>
24122
24123         * modules/alloca: Remove dependency on xalloc.
24124
24125 2003-11-24  Paul Eggert  <eggert@twinsun.com>
24126
24127         * lib/alloca.c: Remove dependency on xalloc module.
24128         (xalloc_die): Remove.
24129         (memory_full) [!defined emacs]: New macro.
24130         [!defined emacs]: Don't include xalloc.h.
24131         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
24132         address arithmetic overflows.  Change datatypes a bit to avoid
24133         unnecessary casts.
24134
24135 2003-11-22  Jim Meyering  <jim@meyering.net>
24136
24137         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
24138         s/size/size_t/.
24139
24140 2003-11-21  Karl Berry  <karl@gnu.org>
24141
24142         * config/config.{sub,guess}: update from config.
24143
24144 2003-11-18  Karl Berry  <karl@gnu.org>
24145
24146         * config/config.{sub,guess}: update from config.
24147
24148         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
24149
24150 2003-11-17  Paul Eggert  <eggert@twinsun.com>
24151
24152         * README: Mention that S+T cannot overflow if S is the size of
24153         an existing object and T is sufficiently small.
24154
24155 2003-11-17  Jim Meyering  <jim@meyering.net>
24156
24157         On systems without utime and without a utimes function capable of
24158         dealing with a NULL struct utimbuf* argument, this utime replacement
24159         could -- in unusual circumstances -- leak a file descriptor.
24160         * lib/utime.c: Include <unistd.h> and <errno.h>.
24161         (utime_null): Be sure to close `fd' and to preserve errno.
24162         Reported by Geoff Collyer via Arnold Robbins.
24163
24164 2003-11-17  Bruno Haible  <bruno@clisp.org>
24165
24166         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
24167         (Depends-on): Add xsize.
24168
24169 2003-11-17  Bruno Haible  <bruno@clisp.org>
24170
24171         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
24172
24173 2003-11-17  Bruno Haible  <bruno@clisp.org>
24174
24175         * lib/vasnprintf.c (alloca): Remove fallback definition.
24176         (freea): Remove definition.
24177         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
24178         Reported by Paul Eggert.
24179
24180 2003-11-16  Paul Eggert  <eggert@twinsun.com>
24181             Bruno Haible  <bruno@clisp.org>
24182
24183         Protect against address arithmetic overflow.
24184         * lib/printf-args.h: Include stddef.h.
24185         (arguments): Change type of field 'count' to size_t.
24186         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
24187         'unsigned int' where appropriate.
24188         * lib/printf-parse.h: Include sys/types.h.
24189         (char_directive): Change type of *arg_index fields to ssize_t.
24190         (char_directives): Change type of fields 'count', max_*_length to
24191         size_t.
24192         * lib/printf-parse.c: Include sys/types.h and xsize.h.
24193         (SSIZE_MAX): Define fallback value.
24194         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
24195         instead of 'int' where appropriate. Check a_allocated, d_allocated
24196         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
24197         * lib/vasnprintf.c: Include xsize.h.
24198         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
24199         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
24200         overflow. Avoid wraparound when converting a width or precision from
24201         decimal to binary.
24202
24203 2003-11-16  Bruno Haible  <bruno@clisp.org>
24204
24205         Update from GNU gettext.
24206         * lib/printf-parse.c: Generalize to it can be compiled for wide
24207         strings.
24208         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
24209         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
24210         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
24211         SNPRINTF): New macros.
24212         Don't include <alloca.h> if the file is used inside libintl.
24213         (local_wcslen): New function, for Solaris 2.5.1.
24214         (VASNPRINTF): Use it instead of wcslen.
24215
24216 2003-11-16  Bruno Haible  <bruno@clisp.org>
24217
24218         * lib/xsize.h (xmax): New function.
24219         (xsum, xsum3, xsum4): Declare as "pure" functions.
24220
24221 2003-11-12  Paul Eggert  <eggert@twinsun.com>
24222
24223         * modules/xalloc (Files): Undo latest change, since xalloc.h
24224         no longer needs SIZE_MAX or PTRDIFF_MAX.
24225
24226 2003-11-12  Paul Eggert  <eggert@twinsun.com>
24227
24228         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
24229         gl_PTRDIFF_MAX.
24230
24231 2003-11-12  Paul Eggert  <eggert@twinsun.com>
24232
24233         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
24234         "return", to pacify some unknown compiler.  Problem reported
24235         by Joerg Schilling.
24236
24237 2003-11-12  Paul Eggert  <eggert@twinsun.com>
24238
24239         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
24240         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
24241         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
24242         heuristic is just as accurate as far as we know, and it removes a
24243         dependency on size_max.m4 and ptrdiff_max.m4.
24244
24245 2003-11-11  Bruno Haible  <bruno@clisp.org>
24246
24247         * modules/xsize (Files): Add m4/size_max.m4.
24248         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
24249
24250 2003-11-11  Bruno Haible  <bruno@clisp.org>
24251
24252         * m4/size_max.m4: New file.
24253         * m4/ptrdiff_max.m4: New file.
24254         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
24255         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
24256         (gl_XALLOC): Invoke it.
24257
24258 2003-11-11  Bruno Haible  <bruno@clisp.org>
24259
24260         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
24261         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
24262         defined.
24263
24264 2003-11-10  Paul Eggert  <eggert@twinsun.com>
24265
24266         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
24267         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
24268         rejected some allocations of exactly SIZE_MAX - 2 bytes.
24269         From Bruno Haible.
24270         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
24271         not (size_t) -1, since it's defined here.
24272
24273 2003-11-09  Karl Berry  <karl@gnu.org>
24274
24275         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
24276
24277 2003-11-06  Paul Eggert  <eggert@twinsun.com>
24278
24279         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
24280         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
24281         Reject sizes of exactly SIZE_MAX bytes.
24282         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
24283         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
24284
24285 2003-11-05  Bruno Haible  <bruno@clisp.org>
24286
24287         * lib/xsize.h: Include limits.h, to avoid a possible collision with
24288         SIZE_MAX defined in <limits.h> on Solaris.
24289
24290 2003-11-04  Jim Meyering  <jim@meyering.net>
24291
24292         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
24293         variable names, rather than @VAR@.
24294         * modules/poll: Likewise.
24295
24296 2003-11-04  Bruno Haible  <bruno@clisp.org>
24297
24298         * modules/xsize: New file.
24299         * modules/linebreak: Depend on xsize.
24300         * MODULES.html.sh (func_all_modules): Add xsize.
24301
24302 2003-11-04  Bruno Haible  <bruno@clisp.org>
24303
24304         * m4/xsize.m4: New file.
24305
24306 2003-11-04  Bruno Haible  <bruno@clisp.org>
24307
24308         * lib/xsize.h: New file.
24309         * lib/linebreak.c: Include xsize.h.
24310         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
24311         argument for overflow.
24312         Suggested by Paul Eggert.
24313
24314 2003-11-03  Karl Berry  <karl@gnu.org>
24315
24316         * config/config.{guess,sub}: update from config.
24317
24318 2003-11-03  Jim Meyering  <jim@meyering.net>
24319
24320         * modules/userspec (lib_SOURCES): Add userspec.h.
24321         (Include): Add "userspec.h".
24322         Improve description.
24323
24324 2003-11-03  Jim Meyering  <jim@meyering.net>
24325
24326         * lib/userspec.c: Include "userspec.h".
24327         * lib/userspec.h: New file.
24328
24329 2003-11-03  Bruno Haible  <bruno@clisp.org>
24330
24331         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
24332
24333 2003-11-03  Bruno Haible  <bruno@clisp.org>
24334
24335         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
24336         available, to avoid (extremely rare) race condition.
24337         Suggested by Paul Eggert.
24338
24339 2003-11-02  Karl Berry  <karl@gnu.org>
24340
24341         * config/srclist.txt (vasprintf.c): sync broken, sigh.
24342
24343 2003-10-31  Paul Eggert  <eggert@twinsun.com>
24344
24345         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
24346         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
24347         (read_filesystem_list): Set and use me_type_malloced.
24348         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
24349         whatever the type happens to be), for brevity and consistency.
24350         Check for size calculation overflow on Alphas running OSF/1.
24351
24352 2003-10-31  Jim Meyering  <jim@meyering.net>
24353
24354         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
24355
24356         * lib/linebuffer.c: Include <string.h> for declaration of memset.
24357
24358 2003-10-30  Paul Eggert  <eggert@twinsun.com>
24359             Bruno Haible  <bruno@clisp.org>
24360
24361         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
24362         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
24363
24364 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
24365
24366         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
24367         netbsd*-gnu*.  Suggested by Robert Millan.
24368
24369 2003-10-29  Paul Eggert  <eggert@twinsun.com>
24370
24371         * modules/group-member: Depend on stdbool.
24372
24373 2003-10-29  Paul Eggert  <eggert@twinsun.com>
24374
24375         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
24376
24377 2003-10-29  Paul Eggert  <eggert@twinsun.com>
24378
24379         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
24380         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
24381         after the 'gnu' in these cases.  This fixes some bugs in the
24382         previous change, and is based on suggestions by Robert Millan.
24383
24384 2003-10-29  Paul Eggert  <eggert@twinsun.com>
24385
24386         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
24387         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
24388         no longer needed.
24389         * lib/quotearg.c (quotearg_n_options): Use it.
24390         * lib/group-member.c: Include <stdbool.h>.
24391         (free_group_info): Arg is now const *; don't free arg.
24392         (get_group_info): Now returns bool and accepts struct group_info *,
24393         rather than returning a malloc'ed struct group_info *.
24394         All uses changed.  Check for overflow in internal size calculation.
24395
24396         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
24397         rather than xmalloc/xrealloc.
24398         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
24399         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
24400         conformance bug: the old code used a pointer after freeing the
24401         storage that it addressed.
24402         * lib/hash.c (hash_initialize): Simplify the code by using
24403         xalloc_oversized rather than doing it by hand.
24404         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
24405         the buffer preserved.  Use free and xmalloc instead.
24406         * lib/quotearg.c (quotearg_n_options): Likewise.
24407         Use a simpler test for size overflow.  Don't use xalloc_oversized
24408         because unsigned int might be wider than size_t (!); this suggests
24409         that we should switch from unsigned int to size_t for slot numbers.
24410
24411 2003-10-28  Paul Eggert  <eggert@twinsun.com>
24412
24413         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
24414         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
24415         NetBSD kernels.  Requested by Richard Stallman.
24416
24417 2003-10-27  Paul Eggert  <eggert@twinsun.com>
24418
24419         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
24420         to allocate the returned structure.  Do not allocate a subarray,
24421         as x2nrealloc will do that.
24422         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
24423         instead of xnrealloc.
24424         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
24425
24426 2003-10-27  Bruno Haible  <bruno@clisp.org>
24427
24428         * lib/stdbool_.h: Better support for BeOS.
24429
24430 2003-10-26  Paul Eggert  <eggert@twinsun.com>
24431
24432         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
24433         now uses inline.
24434
24435 2003-10-26  Paul Eggert  <eggert@twinsun.com>
24436
24437         * lib/xalloc.h (xalloc_oversized): New static inline function, for
24438         callers that want to do their own size-overflow checking.  Include
24439         <stdbool.h>, since xalloc_oversized returns bool.
24440         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
24441         to use xalloc_oversized.
24442
24443         Add two functions x2realloc, x2nrealloc, for programs that grow
24444         arrays dynamically by doubling their sizes.
24445         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
24446         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
24447         New functions.
24448
24449         Port to C99 semantics for 'inline' of external functions.
24450         Bug reported by Bruno Haible.
24451         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
24452         with the old contents of xnmalloc.
24453         (xnmalloc, xmalloc): Use it.
24454         (xnrealloc_inline): New static inline function,
24455         with the old contents of xnrealloc.
24456         (xnrealloc, xrealloc): Use it.
24457
24458         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
24459         that.
24460
24461 2003-10-26  Karl Berry  <karl@gnu.org>
24462
24463         * config/srclist.txt (COPYING.DOC): no longer available from
24464         /gd/gnuorg; don't know where the ultimate source is.
24465
24466 2003-10-25  Paul Eggert  <eggert@twinsun.com>
24467
24468         Fix several address-calculation bugs in the hash modules,
24469         plus some minor code cleanup.
24470
24471         * lib/hash.h: Include <stdbool.h>, for bool.
24472         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
24473         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
24474         hash_get_n_entries, hash_get_max_bucket_length,
24475         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
24476         hash_rehash): Use size_t rather than unsigned.
24477         * lib/hash.c (struct hash_table, hash_get_n_buckets,
24478         hash_get_n_buckets_used, hash_get_n_entries,
24479         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
24480         hash_get_entries, hash_do_for_each, hash_string, is_prime,
24481         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
24482         Likewise.
24483         (SIZE_MAX): Define if not defined.
24484         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
24485         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
24486         hash_print):
24487         Use const * when possible.
24488         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
24489         (check_tuning): Fix bug: if tuning parameters were very close to
24490         0 or 1, rounding errors could have caused subscript violations.
24491         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
24492         (hash_initialize): Add 'fail:' label
24493         to free table and return NULL, and use it to simplify code.
24494         Use calloc rather than clearing the storage ourself.
24495         (hash_initialize, hash_rehash): Check for arithmetic overflow in
24496         buffer size calculations.
24497         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
24498         Include <stddef.h>, for size_t.
24499         * lib/hash-pjw.c (hash_pjw): Likewise.
24500         Switch to method described by Bruno Haible.
24501         Include <limits.h>, for CHAR_BIT.
24502         (SIZE_BITS): New macro.
24503
24504 2003-10-23  Paul Eggert  <eggert@twinsun.com>
24505
24506         * m4/getline.m4 (AM_FUNC_GETLINE):
24507         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
24508         hosts.  Problem reported by Derek Robert Price in
24509         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
24510         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
24511         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
24512
24513 2003-10-21  Paul Eggert  <eggert@twinsun.com>
24514
24515         * lib/getndelim2.c (getndelim2): When size calculation overflows,
24516         ceiling the allocation at NMAX bytes rather than silently
24517         discarding input bytes before NMAX is reached.  This makes
24518         a difference only if NMAX exceeds SIZE_MAX / 2.
24519
24520         * lib/obstack.c: Merge from glibc.
24521         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
24522         Add libc_hidden_def (_obstack_newchunk).
24523         (_obstack_free) [! defined _LIBC]: Remove.
24524         [defined _LIBC]: Make a strong alias from obstack_free, rather than
24525         a clone of the function body.
24526         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
24527         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
24528
24529         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
24530         glibc.
24531         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
24532         arg to memcpy.
24533
24534         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
24535         (obstack_ptr_grow_fast, obstack_int_grow_fast):
24536         Don't use lvalue casts, as GCC plans to remove support for them
24537         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
24538         was also present in the non-GCC version, indicating that this
24539         code had always been buggy and had never been widely used.
24540         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
24541         Use the fast variant of each macro, rather than copying the
24542         definiens of the fast variant; that way, we'll be more likely to
24543         catch future bugs in the fast variants.
24544
24545 2003-10-20  Bruno Haible  <bruno@clisp.org>
24546
24547         * modules/wait-process: New file.
24548         * MODULES.html.sh (func_all_modules): Add wait-process.
24549
24550 2003-10-20  Bruno Haible  <bruno@clisp.org>
24551
24552         * m4/wait-process.m4: New file.
24553
24554 2003-10-20  Bruno Haible  <bruno@clisp.org>
24555
24556         * lib/wait-process.h: New file, from GNU gettext.
24557         * lib/wait-process.c: New file, from GNU gettext.
24558
24559 2003-10-19  Jim Meyering  <jim@meyering.net>
24560
24561         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
24562         HPUX 10.20.
24563
24564 2003-10-18  Karl Berry  <karl@gnu.org>
24565
24566         * config/config.guess: update from config.
24567
24568 2003-10-16  Paul Eggert  <eggert@twinsun.com>
24569
24570         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
24571         (getgroups): First arg is int, not size_t.
24572         Don't let 'free' mangle errno.
24573
24574 2003-10-16  Paul Eggert  <eggert@twinsun.com>
24575
24576         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
24577
24578 2003-10-16  Karl Berry  <karl@gnu.org>
24579
24580         * config/config.{guess,sub}: update from config.
24581
24582 2003-10-16  Jim Meyering  <jim@meyering.net>
24583
24584         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
24585         memcpy.
24586
24587 2003-10-15  Paul Eggert  <eggert@twinsun.com>
24588
24589         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
24590         (SIZE_MAX): Remove.
24591         (new_exclude, add_exclude_file): Initial size no longer needs to
24592         be a power of 2.
24593         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
24594         our own address arithmetic overflow checking.
24595
24596         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
24597         (fnmatch): Do not alloca more than 2000 wide characters;
24598         instead, use malloc for large buffers.
24599         Check for address arithmetic overflow, and return -1
24600         with errno set to ENOMEM in that case.
24601         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
24602         (NEW_PATTERN): Do not alloca more than 8000 bytes;
24603         instead, return -1.  Check for address arithmetic overflow.
24604
24605 2003-10-14  Paul Eggert  <eggert@twinsun.com>
24606
24607         Handle invalid suffixes and overflow independently, so that
24608         callers can treat them independently as needed.  Fix some bugs in
24609         suffix handling, e.g., "100k@" was not diagnosed as an invalid
24610         suffix for a human-readable blocksize.  The major caller-visible
24611         change is the addition of a new
24612         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
24613         that both overflow and suffix chars were found.
24614
24615         * lib/human.c (humblock): Don't check separately for invalid suffix
24616         char; that is xstrtoumax's job (now that its bug is fixed).
24617         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
24618         INTMAX_MAX]: New macros.
24619         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
24620         TYPE_MAXIMUM): New macros.
24621         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
24622         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
24623         if overflow occurs, as it's what __strtol does and it's more useful
24624         in practice.
24625         (__xstrtol): If __strtol reports some error other than ERANGE,
24626         reflect it to the caller as LONGINT_INVALID.  If it reports
24627         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
24628         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
24629         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
24630         value.
24631         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
24632         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
24633         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
24634         [defined UINTMAX_MAX]: New macros.
24635
24636 2003-10-14  Bruno Haible  <bruno@clisp.org>
24637
24638         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
24639
24640 2003-10-14  Bruno Haible  <bruno@clisp.org>
24641
24642         * m4/sig_atomic_t: New file, from GNU gettext.
24643         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
24644
24645 2003-10-14  Bruno Haible  <bruno@clisp.org>
24646
24647         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
24648         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
24649         Also use volatile where needed.
24650
24651 2003-10-12  Paul Eggert  <eggert@twinsun.com>
24652
24653         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
24654         Change maintainer from Bruno Haible to 'all'.
24655
24656 2003-10-12  Paul Eggert  <eggert@twinsun.com>
24657
24658         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
24659
24660 2003-10-12  Paul Eggert  <eggert@twinsun.com>
24661
24662         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
24663         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
24664         and define in terms of the other primitives.
24665         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
24666         (SIZE_MAX): Define if not already defined.
24667         (array_size_overflow): New function.
24668         (xalloc_die): Abort instead of exiting if 'error' returns.
24669         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
24670         (xmalloc, xrealloc): Use them.
24671         (xcalloc): Check for address arithmetic overflow.
24672         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
24673         a bit faster than strcpy.
24674
24675 2003-10-10  Simon Josefsson  <jas@extundo.com>
24676
24677         * modules/argp (Depends-on): Add restrict and strcase.
24678
24679 2003-10-10  Simon Josefsson  <jas@extundo.com>
24680
24681         * m4/argp.m4: Add AC_C_INLINE.
24682
24683 2003-10-08  Paul Eggert  <eggert@twinsun.com>
24684
24685         Merge getpass from libc, plus a few fixes.
24686
24687         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
24688         Include <stdbool.h>.
24689         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
24690         __fsetlocking to empty.
24691         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
24692         do include <bits/libc-lock.h>.
24693         Do not include <fcntl.h>; not needed.
24694         [_LIBC]: Include <wchar.h>.
24695         (NOTCANCEL_MODE): New macro.
24696         (flockfile, funlockfile) [_LIBC]: New macros.
24697         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
24698         [!_LIBC]: New macros.
24699         (call_fclose): New function.
24700         (getpass): Use it.  Save tty stream separately; this simplifies the
24701         code and makes it more reliable if stdin happens to equal stdout.
24702         Invoke __fsetlocking on tty.
24703         Handle thread cancellation if needed.
24704         Namespace cleanup (use __tcgetattr, __getline).
24705         Use bool for Booleans.
24706         [USE_IN_LIBIO]: Handle wide streams.
24707         [!_LIBC]: Unconditionally do the fseek, since we don't know what
24708         stream might go where.
24709
24710         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
24711         doesn't have to include <stdio.h> before us.
24712         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
24713         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
24714         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
24715         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
24716         if not declared, so that we can use getpass.c code from libc without
24717         rewriting it.
24718         (flockfile, ftrylockfile, funlockfile): New macros.
24719
24720 2003-10-08  Paul Eggert  <eggert@twinsun.com>
24721
24722         * modules/getpass: Depend on stdbool.
24723
24724 2003-10-08  Paul Eggert  <eggert@twinsun.com>
24725
24726         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
24727
24728 2003-10-07  Karl Berry  <karl@gnu.org>
24729
24730         * config/config.{guess,sub}: update from config.
24731
24732 2003-10-06  Jim Meyering  <jim@meyering.net>
24733             Bruno Haible  <bruno@clisp.org>
24734
24735         This lets translators provide better translations for the
24736         "Written by ..." part of --version output.
24737         * lib/version-etc.h: Include stdarg.h.
24738         (version_etc_copyright): Declare as readonly.
24739         (version_etc): Make this function variadic with a NULL-terminated list
24740         of author name strings.
24741         (version_etc_va): New declaration.
24742         * lib/version-etc.c: Include stdarg.h, stdlib.h.
24743         (version_etc_copyright): Declare as readonly.
24744         (version_etc_va): New function. Provide a different translatable string
24745         for each possible number of authors < 10. Abbreviate when there are 10
24746         authors or more.
24747         (version_etc): Make this function variadic. Call version_etc_va.
24748         Suggestion from Gary V. Vaughan.
24749
24750         * lib/long-options.h (parse_long_options): Change prototype: the
24751         authors string is moved to the end and becomes variadic.
24752         * lib/long-options.c: Include stdarg.h.
24753         (parse_long_options): Make this function variadic, too.
24754         Call version_etc_va, not version_etc.
24755
24756 2003-10-06  Bruno Haible  <bruno@clisp.org>
24757
24758         * modules/version-etc-2: Remove file.
24759         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
24760
24761 2003-10-06  Bruno Haible  <bruno@clisp.org>
24762
24763         * modules/fatal-signal: New file.
24764         * MODULES.html.sh (func_all_modules): Add fatal-signal.
24765
24766 2003-10-06  Bruno Haible  <bruno@clisp.org>
24767
24768         * m4/fatal-signal.m4: New file.
24769         * m4/signalblocking.m4: New file, from GNU gettext.
24770
24771 2003-10-06  Bruno Haible  <bruno@clisp.org>
24772
24773         * lib/version-etc-2.h: Remove file.
24774         * lib/version-etc-2.c: Remove file.
24775
24776 2003-10-06  Bruno Haible  <bruno@clisp.org>
24777
24778         * lib/fatal-signal.h: New file, from GNU gettext.
24779         * lib/fatal-signal.c: New file, from GNU gettext.
24780
24781 2003-10-05  Paul Eggert  <eggert@twinsun.com>
24782
24783         * README: Rework advice for preventing empty .o files.
24784         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
24785         not <sys/types.h>.
24786
24787 2003-10-04  Karl Berry  <karl@gnu.org>
24788
24789         * lib/argp*: update from libc.
24790
24791 2003-10-04  Karl Berry  <karl@gnu.org>
24792
24793         * config/config.{guess,sub}: update from config.
24794
24795 2003-10-02  Bruno Haible  <bruno@clisp.org>
24796
24797         * modules/lchown (Include): Add lchown.h.
24798         * modules/time_r (Include): Use "..." syntax.
24799         * modules/xgetdomainname (Include): Add xgetdomainname.h.
24800
24801 2003-10-01  Simon Josefsson  <jas@extundo.com>
24802
24803         * MODULES.html.sh (func_all_modules): Move gethostname from section
24804         'based on' to section 'lacking' POSIX:2001.
24805
24806 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
24807
24808         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
24809         to output mode on the same stream.
24810
24811 2003-09-29  Paul Eggert  <eggert@twinsun.com>
24812
24813         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
24814         Fix arg typo in previous patch.
24815
24816 2003-09-28  Jim Meyering  <jim@meyering.net>
24817
24818         * lib/error.c: Correct cpp indentation.
24819
24820 2003-09-27  Paul Eggert  <eggert@twinsun.com>
24821
24822         * modules/free: New file.
24823
24824 2003-09-27  Paul Eggert  <eggert@twinsun.com>
24825
24826         * m4/free.m4: New file.
24827
24828 2003-09-27  Paul Eggert  <eggert@twinsun.com>
24829
24830         * lib/minmax.h (MIN, MAX)
24831         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
24832         Omit the special code that used __typeof__, since we worry that
24833         it could be more trouble than it's worth.  See:
24834         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
24835         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
24836
24837         * lib/free.c: New file.
24838
24839 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
24840
24841         Trivial fixes to Makefile.am parts of module listings.
24842         * modules/strstr: Append strstr.h to lib_SOURCES.
24843         * modules/strcase: Likewise, for strcase.h.
24844
24845 2003-09-27  Karl Berry  <karl@gnu.org>
24846
24847         * config/mkinstalldirs: update from automake.
24848
24849 2003-09-26  Paul Eggert  <eggert@twinsun.com>
24850
24851         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
24852         (error_tail): Do not loop, reallocating temporary buffer, since
24853         the output cannot contain more wide characters than the input
24854         contains bytes, the size must be big enough already.  This avoids
24855         one potential size overflow calculation.  Check for size overflow
24856         when calculating temporary buffer size.  Free temporary buffer
24857         when done, if it was allocated with malloc; this plugs a memory
24858         leak.  Remove casts from void * to pointers, that are no longer
24859         needed now that we're assuming C89 or better.
24860
24861         Merge error changes from glibc.
24862
24863         * lib/error.c, error.h: Update copyright notice header to match glibc.
24864         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
24865         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
24866         Disable cancellation while printing error.
24867         * lib/error.h: Prepend __ to parameter names.
24868
24869 2003-09-26  Jim Meyering  <jim@meyering.net>
24870
24871         * lib/error.c (error_tail): Move some declarations
24872         into inner scope where the local variables are used.
24873
24874 2003-09-26  Bruno Haible  <bruno@clisp.org>
24875
24876         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
24877         stpncpy().
24878         Don't define stpncpy through config.h; it's now done through stpncpy.h.
24879
24880 2003-09-26  Bruno Haible  <bruno@clisp.org>
24881
24882         * lib/stpncpy.h (gnu_stpncpy): New declaration.
24883         (stpncpy): Define as alias for gnu_stpncpy.
24884         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
24885
24886 2003-09-25  Simon Josefsson  <jas@extundo.com>
24887
24888         * lib/xgetdomainname.h: New file.
24889         * lib/xgetdomainname.c: New file.
24890
24891 2003-09-25  Simon Josefsson  <jas@extundo.com>
24892             Bruno Haible  <bruno@clisp.org>
24893
24894         * modules/getdomainname: New file.
24895         * modules/xgetdomainname: New file.
24896         * MODULES.html.sh (func_all_modules): Add getdomainname,
24897         xgetdomainname.
24898
24899 2003-09-25  Simon Josefsson  <jas@extundo.com>
24900             Bruno Haible  <bruno@clisp.org>
24901
24902         * m4/getdomainname.m4: New file.
24903
24904 2003-09-25  Simon Josefsson  <jas@extundo.com>
24905             Bruno Haible  <bruno@clisp.org>
24906
24907         * lib/getdomainname.h: New file.
24908         * lib/getdomainname.c: New file.
24909
24910 2003-09-25  Karl Berry  <karl@gnu.org>
24911
24912         * lib/argp-fmtstream.c, argp-help.c: update from libc.
24913
24914 2003-09-25  Karl Berry  <karl@gnu.org>
24915
24916         * config/install-sh: update from automake.
24917
24918 2003-09-25  Bruno Haible  <bruno@clisp.org>
24919
24920         * modules/version-etc-2: New file, from modules/version-etc with
24921         modifications.
24922         * MODULES.html.sh (func_all_modules): Add version-etc-2.
24923
24924 2003-09-25  Bruno Haible  <bruno@clisp.org>
24925
24926         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
24927         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
24928
24929 2003-09-24  Simon Josefsson  <jas@extundo.com>
24930
24931         * modules/xgethostname: Add xgethostname.h.
24932
24933 2003-09-24  Paul Eggert  <eggert@twinsun.com>
24934
24935         * lib/linebuffer.c (freebuffer): Don't free the argument, just
24936         the buffer associated with the argument.  Bug reported by
24937         Simon Josefsson.
24938
24939 2003-09-24  Paul Eggert  <eggert@twinsun.com>
24940
24941         * README: Document assumptions that 'int' is at least 32 bits
24942         wide, that integer arithmetic is 2's complement without overflow,
24943         that there are no holes in integer values, that adding sizes of
24944         two nonoverlapping objects can't overflow, and that all-bits-zero
24945         yields scalar zero.  Fix spelling and capitalization typos.
24946
24947 2003-09-19  Karl Berry  <karl@gnu.org>
24948
24949         * lib/argp.h: update from libc.
24950
24951 2003-09-17  Paul Eggert  <eggert@twinsun.com>
24952
24953         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
24954         to avoid spurious warnings like "AC_RUN_IFELSE was called before
24955         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
24956
24957 2003-09-17  Paul Eggert  <eggert@twinsun.com>
24958
24959         * gnulib-tool: Use "test -h", not "test -L", for portability
24960         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
24961         (tags_regexp): Remove, since \| doesn't conform to POSIX.
24962         (sed_extract_prog): Issue s commands one-by-one, rather than
24963         using \| in one s command.
24964
24965 2003-09-16  Paul Eggert  <eggert@twinsun.com>
24966
24967         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
24968         input error, instead of returning NULL the next time we are called
24969         (and therefore losing track of errno).
24970
24971 2003-09-16  Bruno Haible  <bruno@clisp.org>
24972
24973         * gnulib-tool (func_create_testdir): Warn about duplicated
24974         dependencies.
24975
24976 2003-09-15  Paul Eggert  <eggert@twinsun.com>
24977
24978         * modules/argmatch, modules/fatal, modules/obstack,
24979         modules/xalloc, modules/xgethostname: Sort dependencies by
24980         importance, not alphabetically.
24981
24982 2003-09-15  Paul Eggert  <eggert@twinsun.com>
24983
24984         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
24985         fails, so that the caller gets the proper errno.
24986
24987         * lib/readutmp.c (read_utmp): Likewise.
24988         Check for fstat error.  Close stream and free storage
24989         when failing.
24990
24991 2003-09-14  Karl Berry  <karl@gnu.org>
24992
24993         * config/srclist.txt (strdup.c): disable for c89 changes.
24994
24995 2003-09-14  Jim Meyering  <jim@meyering.net>
24996
24997         * lib/getloadavg.c: Correct cpp indentation.
24998         * lib/strdup.c: Likewise.
24999         * lib/vasnprintf.c: Likewise.
25000
25001 2003-09-14  Bruno Haible  <bruno@clisp.org>
25002
25003         * modules/fwriteerror: New file.
25004         * MODULES.html.sh (func_all_modules): Add fwriteerror.
25005
25006 2003-09-14  Bruno Haible  <bruno@clisp.org>
25007
25008         * lib/fwriteerror.h: New file.
25009         * lib/fwriteerror.c: New file.
25010
25011 2003-09-12  Paul Eggert  <eggert@twinsun.com>
25012
25013         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
25014         modules/xgethostname, modules/xalloc: Depend on exit.
25015
25016 2003-09-12  Paul Eggert  <eggert@twinsun.com>
25017
25018         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
25019
25020         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
25021         and AC_MINIX, too, so that their extensions are available.
25022
25023         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
25024         This macro has been superseded by gl_BACKUPFILE.
25025
25026         More patches to assume C89 or better.
25027
25028         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
25029
25030         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
25031         unconditionally.
25032         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
25033         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
25034         Include <string.h>, <stdlib.h> unconditionally.
25035         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
25036         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
25037         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
25038         headers or for string.h.
25039         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
25040         or strtoul.
25041
25042         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
25043         headers.
25044         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
25045         * m4/userspec.m4 (gl_USERSPEC): Likewise.
25046         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
25047         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
25048         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25049         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
25050         memcpy, memset.
25051         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
25052         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
25053         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
25054         strtol.
25055         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
25056         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
25057         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
25058         strtoul.
25059
25060 2003-09-12  Paul Eggert  <eggert@twinsun.com>
25061
25062         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
25063         * lib/obstack.c [!defined _LIBC]: Likewise.
25064         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
25065         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
25066         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
25067
25068         More changes to assume C89 or better.
25069
25070         * lib/error.c (error_tail): Assume vprintf.
25071
25072         * lib/argmatch.c (getenv): Remove decl.
25073         * lib/progreloc.c (get_full_program_name): Define via prototype.
25074         * lib/setenv.c (clearenv): Likewise.
25075         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
25076         needed.
25077         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
25078         (malloc, memcpy): Remove decls.
25079         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
25080         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
25081         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
25082         (memcpy): Remove macro.
25083         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
25084         (__P): Remove.  All uses removed.
25085         (PTR): Remove.  All uses changed to void *.
25086         (CHAR_BIT, NULL): Remove.
25087         (spaces, zeros, memset_space, memset_zero)
25088         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
25089         Remove.
25090         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
25091         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
25092         Define with prototype.
25093         Remove now-unnecessary prototype decl.
25094         (extra_args_spec): Assume ANSI C.  All uses changed.
25095         (extra_args_spec_iso): Remove.
25096         (my_strftime, emacs_strftimeu): Define via prototype.
25097         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
25098         unconditionally.
25099         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
25100         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
25101         (strtoul, strtol): Remove decls.
25102         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
25103         LONG_MAX): Remove.
25104         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
25105         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
25106         (LOCALE_PARAM_PROTO): New macro.
25107         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
25108         (INTERNAL (strtol), strtol): Define with a prototype.
25109         (PARAMS): Remove.  All uses removed.
25110         * lib/tempname.c: Include <string.h> unconditionally.
25111         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
25112         * lib/xgethostname.c (main): Define with a prototype.
25113         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
25114         Include <stdlib.h> unconditionally.
25115         (calloc, malloc, realloc, free): Remove decls.
25116         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
25117         Include <stdlib.h> unconditionally.  Sort include file names.
25118         (strtod): Remove.
25119         (xstrtod): Define with a prototype.
25120         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
25121         (strtol, strtoul): Remove decls.
25122
25123 2003-09-11  Paul Eggert  <eggert@twinsun.com>
25124
25125         More patches to assume C89 or better.
25126         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
25127         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
25128         string.h, memchr, STDC_HEADERS.
25129
25130 2003-09-11  Paul Eggert  <eggert@twinsun.com>
25131
25132         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
25133         Include <stdlib.h>, <string.h> unconditionally.
25134         Remove now-unnecessary cast to char *.
25135         * lib/strnlen.c: Include <string.h> unconditionally.
25136         * lib/yesno.c (yesno): Define with a prototype.
25137
25138 2003-09-11  Bruno Haible  <bruno@clisp.org>
25139
25140         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
25141
25142 2003-09-10  Jim Meyering  <jim@meyering.net>
25143
25144         * lib/error.c: Correct indentation of cpp directives.
25145
25146 2003-09-10  Bruno Haible  <bruno@clisp.org>
25147
25148         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
25149         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
25150         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
25151         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
25152         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
25153         <stdlib.h> and <string.h> checks.
25154         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
25155         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
25156
25157 2003-09-10  Bruno Haible  <bruno@clisp.org>
25158
25159         * lib/strcspn.c: Include <string.h> unconditionally.
25160         * lib/strpbrk.c: Include <string.h> unconditionally.
25161         * lib/strstr.c: Include <string.h> unconditionally.
25162         * lib/unicodeio.c: Include <string.h> unconditionally.
25163         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
25164         * lib/unsetenv.c: Likewise.
25165         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
25166         * lib/yesno.c: Include <stdlib.h> unconditionally.
25167         (rpmatch): Add prototype.
25168
25169 2003-09-09  Paul Eggert  <eggert@twinsun.com>
25170
25171         More patches to assume C89 or better.
25172         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
25173         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
25174         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
25175         or for string.h.
25176         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
25177         stdlib.h.
25178         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
25179         C headers.
25180         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
25181         string.h.
25182         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
25183         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
25184         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
25185         or for string.h.
25186         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
25187         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
25188         C headers.
25189         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
25190         memcpy.
25191         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
25192         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
25193         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
25194         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
25195         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
25196         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
25197         string.h, free.
25198         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
25199         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
25200         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
25201         C headers, or for string.h.
25202         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
25203         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
25204         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
25205         headers, memory.h, stdlib.h, string.h, strings.h.
25206         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
25207         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
25208         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
25209         strchr.
25210         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
25211         headers, memory.h, string.h.
25212         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
25213         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
25214         free.
25215         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
25216         headers.
25217         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
25218         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
25219         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
25220         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
25221         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
25222
25223 2003-09-09  Paul Eggert  <eggert@twinsun.com>
25224
25225         More K&R removal.
25226
25227         * lib/acosl.c (main): Use a prototype.
25228         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
25229         tanl.c: Likewise.
25230
25231         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
25232
25233         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
25234         (getopt, etopt_long, getopt_long_only, _getopt_internal)
25235         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
25236         with a prototype.
25237         * lib/getopt.c (const): Remove macro.
25238         Include <string.h> unconditionally.
25239         (my_index): Remove; all uses changed to strchr.
25240         (strlen): Remove decl.
25241         (exchange): Remove forward decl; no longer needed.
25242         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
25243         Define with prototype.
25244         * lib/getopt1.c (const): Remove macro.
25245         (getopt_long, getopt_long_only, main): Define with prototype.
25246
25247         * lib/getugroups.c: Include <string.h> unconditionally.
25248
25249         * lib/getusershell.c: Include <stdlib.h> unconditionally.
25250         (getusershell, setusershell, endusershell, readname, main):
25251         Define with prototypes.
25252
25253         * lib/group-member.c: Include group-member.h first.
25254         Include <stdlib.h> unconditionally.
25255
25256         * lib/hard-locale.c: Include hard-locale.h first.
25257         Include <stdlib.h>, <string.h> unconditionally.
25258
25259         * lib/hash.c (free, malloc): Remove decls.
25260         Include <stdlib.h> unconditionally.
25261
25262         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
25263         (getenv): Do not declare.
25264
25265         * lib/idcache.c: Include <string.h> unconditionally.
25266
25267         * lib/long-options.c: Include long-options.h first, to test interface.
25268         Include <stdlib.h> unconditionally.
25269
25270         * lib/makepath.c: Include makepath.h first, to test interface.
25271         Include <stdlib.h> and <string.h> unconditionally.
25272
25273         * lib/linebuffer.c: Include <stdlib.h>.
25274         (free): Remove decl.
25275
25276         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
25277         stddef.h. rpl_malloc returns void *, not char *.
25278         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
25279         prototype.
25280
25281         * lib/md5.h: Include <limits.h> unconditionally.
25282         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
25283         (__P): Remove; all uses removed.
25284         * lib/md5.c: Include "md5.h" first.
25285         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
25286         md5_buffer, md5_process_bytes, md5_process_block):
25287         Define with prototypes.
25288         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
25289         * lib/sha.c: Include "sha.h" first.
25290         Include <stdlib.h>, <string.h> unconditionally.
25291
25292         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
25293         * lib/memcmp.c (__ptr_t): Likewise.
25294         * lib/memrchr.c (__ptr_t): Likewise.
25295         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
25296         Include <string.h> unconditionally.
25297         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
25298         * lib/memchr.c: Include <stdlib.h> unconditionally.
25299         * lib/memchr.c (LONG_MAX): Remove.
25300         * lib/memrchr.c (LONG_MAX): Likewise.
25301         * lib/memchr.c (__memchr): Define via a prototype.
25302         * lib/memrchr.c (__memrchr): Likewise.
25303         * lib/memcmp.c (__P): Remove, and remove all uses.
25304         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
25305         Remove forward decls; no longer needed.
25306         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
25307         Use types required by C89 in prototype.
25308
25309         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
25310         * lib/savedir.c: Likewise.
25311         * lib/mkdir.c (free): Remove decl.
25312         * lib/rmdir.c (rmdir): Define with a prototype.
25313         * lib/savedir.c: Include savedir.h first, to test interface.
25314
25315         * lib/mktime.c (STDC_HEADERS): Remove.
25316         Include <stdlib.h>, <string.h> unconditionally.
25317
25318         * lib/modechange.c: Include <stdlib.h> unconditionally.
25319         (malloc): Remove decl.
25320
25321         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
25322         (free): Remove decl.
25323
25324         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
25325         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
25326         (This type really should be intptr_t, but that's a C99ism.)
25327         (_obstack_memcpy): Remove: all uses changed to memcpy.
25328         Include <string.h> unconditionally.
25329         (struct obstack): Assume __STDC__ for types of members
25330         chunkfun, freefun, extra_arg.
25331         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
25332         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
25333         obstack_begin, obstack_specify_allocation,
25334         obstack_specify_allocation_with_arg, obstack_chunkfun,
25335         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
25336         Remove unprototyped decls and the macros that use them.
25337         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
25338         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
25339         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
25340         (defined __STDC__ && __STDC__)]:
25341         Remove nonprototyped code.
25342         Include <stdlib.h> unconditionally.
25343         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
25344         _obstack_allocated_p, _obstack_free, obstack_free,
25345         _obstack_memory_used, print_and_abort):
25346         Define using prototypes.
25347         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
25348         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
25349         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
25350         obstack_next_free, obstack_object_size, obstack_room) [0]:
25351         Remove unused, unprototyped code.
25352
25353         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
25354
25355         * lib/physmem.c (physmem_total, physmem_available, main): Define
25356         with prototypes.
25357
25358         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
25359         (main): Define with a prototype.
25360
25361         * lib/posixver.c (getenv): Remove decl.
25362
25363         * lib/putenv.c (malloc): Returns void *, not char *.
25364         Include <string.h> unconditionally.
25365         (strchr, memcpy, NULL): Do not define.
25366
25367         * lib/readtokens.c: Include readtokens.h first, to test interface.
25368         Include <stdlib.h>, <string.h> unconditionally.
25369         (init_tokenbuffer): Define with a prototype.
25370
25371         * lib/regex.c (PARAMS): Remove.  All uses removed.
25372         All uses of _RE_ARGS removed, too.
25373         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
25374         unconditionally.
25375         (bzero): Assume memset exists.
25376         (memcmp, memcpy, NULL): Remove.
25377         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
25378         char, or assignments to local vars of type signed char.
25379         (init_syntax_once, PREFIX(extract_number_and_incr),
25380         PREFIX(print_partial_compiled_pattern),
25381         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
25382         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
25383         PREFIX(regex_grow_registers), PREFIX(regex_compile),
25384         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
25385         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
25386         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
25387         wcs_compile_range, byte_compile_range, truncate_wchar,
25388         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
25389         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
25390         count_mbs_length, wcs_re_match_2_internal,
25391         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
25392         PREFIX(alt_match_null_string_p),
25393         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
25394         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
25395         regfree, PREFIX(extract_number)): Define with prototype.  Remove
25396         now-unnecessary declaration, if any.
25397         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
25398         regcomp, regexec):
25399         Remove now-unnecessary casts among pointer types.
25400         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
25401
25402         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
25403         (free): Remove decl.
25404
25405         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
25406
25407         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
25408         (free): Remove decl.
25409
25410         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
25411         * lib/xgetcwd.c: Likewise.
25412
25413         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
25414         (free): Remove decl.
25415
25416         * lib/strchrnul.c (strchrnul): Define with a prototype.
25417         Fix bug: c_in was not converted to char before searching.
25418
25419         The following changes are not K&R related:
25420
25421         * lib/group-member.h: Include <sys/types.h>, so that this file is
25422         self-contained.
25423         * lib/makepath.h: Likewise.
25424
25425         * lib/getusershell.c (readname, default_index, line_size, readname):
25426         Use size_t, not int, for sizes.
25427         (readname): If the size overflows, report an error instead of
25428         looping forever.
25429
25430 2003-09-09  Paul Eggert  <eggert@twinsun.com>
25431
25432         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
25433         libc.
25434
25435 2003-09-09  Paul Eggert  <eggert@twinsun.com>
25436
25437         * README: New section: portability guidelines.
25438
25439 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
25440
25441         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
25442         C89 spec.
25443
25444 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
25445
25446         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
25447
25448 2003-09-08  Paul Eggert  <eggert@twinsun.com>
25449
25450         Assume C89 or better; remove K&R cruft.
25451         A few of these changes were first proposed by Derek Robert Price
25452         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
25453
25454         * lib/addext.c: Include <string.h> unconditionally.
25455         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
25456         Don't declare getenv or malloc.
25457
25458         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
25459         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
25460         (NULL): Remove.
25461         (find_stack_direction, alloca): Use prototypes.
25462
25463         * lib/atexit.c (atexit): Define using a prototype.
25464
25465         * lib/basename.c, dirname.c, stripslash.c:
25466         Include <string.h> unconditionally.
25467
25468         * lib/bcopy.c: Include <stddef.h>.
25469         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
25470
25471         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
25472
25473         * lib/error.h (error, error_at_line, error_print_progname)
25474         [! (defined (__STDC__) && __STDC__)]: Remove decls.
25475         * lib/error.c: Include error.h first, to check interface.
25476         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
25477         (VA_START): Remove; all uses changeed to va_start.
25478         (exit, strerror): Remove decls.
25479         (error_print_progname): Prototype uncondionally.
25480         Don't include <errno.h>; no longer needed.
25481         (private_strerror): Remove.
25482         (error_tail): Always define.
25483         (error, error_at_line): Assume C89 or better; always use prototypes.
25484         * lib/fatal.c: Include "fatal.h" first, to test interface.
25485         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
25486         (VA_START): Remove; all uses changed to va_start.
25487         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
25488         this case.
25489         (exit): Remove decl.
25490         (fatal): Prototype unconditionally.  Assume va_start works.
25491         Abort at end, to pacify gcc.
25492
25493         * lib/euidaccess.c (main): Define with a prototype.
25494
25495         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
25496
25497         * lib/exitfail.c: Include <stdlib.h> unconditionally.
25498
25499         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
25500         prototypes.
25501         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
25502         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
25503         (getenv): Remove decl.
25504         (fnmatch): Define using a prototype.
25505         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
25506         (FCT): Define using a prototype.
25507
25508         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
25509
25510         * lib/gethostname.c: Include <stddef.h>.
25511         (gethostname): Define with prototype.  Length is size_t, not int.
25512
25513 2003-09-08  Paul Eggert  <eggert@twinsun.com>
25514
25515         Assume C89 or better; remove K&R cruft.
25516         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
25517         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
25518         string.h, getenv, malloc.
25519         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
25520         headers.
25521         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
25522         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
25523         do not check for strerror.
25524         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
25525         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
25526         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
25527         do not check for doprnt or vprintf.
25528         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
25529         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
25530
25531 2003-09-08  Paul Eggert  <eggert@twinsun.com>
25532
25533         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
25534         getversion.c should have been removed then, but was accidentally
25535         preserved.
25536
25537         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
25538         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
25539
25540 2003-09-08  Karl Berry  <karl@gnu.org>
25541
25542         * config/config.sub, config.guess, srclistvars.sh: update from savannah
25543                 config, forget about prep.
25544
25545         * config/depcomp, missing: update from automake.
25546
25547 2003-09-07  Paul Eggert  <eggert@twinsun.com>
25548
25549         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
25550         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
25551
25552 2003-09-07  Paul Eggert  <eggert@twinsun.com>
25553
25554         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
25555         copy_tm_result.  Bug reported by Simon Josefsson in
25556         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
25557
25558 2003-09-06  Paul Eggert  <eggert@twinsun.com>
25559
25560         * m4/time_r.m4: New file.
25561         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
25562         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
25563         is. Check for timegm declaration.
25564         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
25565         Do not check for gmtime_r.
25566         Replace mktime if __mktime_internal does not exist and if mktime
25567         hasn't been replaced already.
25568
25569 2003-09-06  Paul Eggert  <eggert@twinsun.com>
25570
25571         * lib/time_r.c, lib/time_r.h: New files.
25572
25573         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
25574         __localtime_r.
25575         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
25576         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
25577
25578         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
25579         __gmtime_r.
25580         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
25581         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
25582         Include <time_r.h>.
25583
25584         * lib/timegm.c: Switch to glibc implementation, with the following
25585         changes:
25586         [defined HAVE_CONFIG_H]: Include <config.h>.
25587         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
25588         (__mktime_internal) [!defined _LIBC]: New decl.
25589         (__gmtime_r) [!defined _LIBC]: New macro and function.
25590         (timegm): Use a prototype, since gnulib assumes C89.
25591         Do not bother declaring tmp to be const, as it's not really usefu.
25592         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
25593         (timegm): Declare only if HAVE_DECL_TIMEGM.
25594
25595 2003-09-06  Paul Eggert  <eggert@twinsun.com>
25596
25597         * MODULES.html.sh (func_all_modules): Add time_r.
25598         * modules/time_r: New file.
25599         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
25600         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
25601
25602 2003-09-03  Paul Eggert  <eggert@twinsun.com>
25603
25604         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
25605         Bug reported by Lute Kamstra in
25606         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
25607
25608         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
25609         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
25610         course with correspondingly smaller numbers for tomorrow and
25611         yesterday.  From Tadayoshi Funaba.  Originally installed into
25612         sh-utils on 1999-08-07, but the patch got lost (I guess during the
25613         coreutils merge?).
25614
25615 2003-08-31  Simon Josefsson  <jas@extundo.com>
25616
25617         * modules/timegm: New file.
25618         * MODULES.html.sh (func_all_modules): Add timegm.
25619
25620 2003-08-31  Simon Josefsson  <jas@extundo.com>
25621
25622         * m4/timegm.m4: New file.
25623
25624 2003-08-31  Simon Josefsson  <jas@extundo.com>
25625
25626         * lib/timegm.h: New file.
25627         * lib/timegm.c: New file.  Based on
25628         wget-1.8.2/src/http.c:mktime_from_utc.
25629
25630 2003-08-31  Karl Berry  <karl@gnu.org>
25631
25632         * lib/argp.h: update from libc.
25633
25634 2003-08-28  Bruno Haible  <bruno@clisp.org>
25635
25636         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
25637         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
25638         followed by '#define fnmatch fnmatch_posix' gives an error.
25639
25640 2003-08-28  Bruno Haible  <bruno@clisp.org>
25641
25642         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
25643         warning on QNX, which defines O_BINARY to 000000.
25644
25645 2003-08-27  Jim Meyering  <jim@meyering.net>
25646
25647         * m4/mkstemp.m4: Require that the system mkstemp be able to create
25648         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
25649         would fail after 32.  Reported by Danny Levinson.  Details here:
25650         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
25651
25652 2003-08-24  Bruno Haible  <bruno@clisp.org>
25653
25654         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
25655         MSVC7 <stdio.h> is included later.
25656
25657 2003-08-22  Simon Josefsson  <jas@extundo.com>
25658
25659         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
25660
25661 2003-08-20  Karl Berry  <karl@gnu.org>
25662
25663         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
25664
25665 2003-08-20  Bruno Haible  <bruno@clisp.org>
25666
25667         * modules/progname: New file.
25668         * MODULES.html.sh (func_all_modules): Add progname.
25669
25670 2003-08-20  Bruno Haible  <bruno@clisp.org>
25671
25672         * lib/progname.h: New file, from GNU gettext.
25673         * lib/progname.c: New file, from GNU gettext.
25674         * lib/progreloc.c: New file, from GNU gettext.
25675
25676 2003-08-19  Jim Meyering  <jim@meyering.net>
25677
25678         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
25679         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
25680
25681 2003-08-19  Bruno Haible  <bruno@clisp.org>
25682
25683         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
25684         more.
25685
25686 2003-08-19  Bruno Haible  <bruno@clisp.org>
25687
25688         * lib/xstrdup.c: Assume <string.h> exists.
25689
25690 2003-08-18  Paul Eggert  <eggert@twinsun.com>
25691
25692         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
25693         in makefile rules.
25694
25695 2003-08-18  Jim Meyering  <jim@meyering.net>
25696
25697         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
25698         * m4/lib-ld.m4: Likewise.
25699
25700 2003-08-18  Jim Meyering  <jim@meyering.net>
25701
25702         * lib/setenv.h: Indent nested cpp directive.
25703         * lib/vasnprintf.c: Remove trailing blanks.
25704
25705 2003-08-17  Simon Josefsson  <jas@extundo.com>
25706
25707         * modules/xstrndup: New file.
25708         * MODULES.html.sh (func_all_modules): Add xstrndup.
25709
25710 2003-08-17  Simon Josefsson  <jas@extundo.com>
25711
25712         * modules/argp: Fix autoconf macro name. Add more dependencies.
25713
25714 2003-08-17  Simon Josefsson  <jas@extundo.com>
25715
25716         * m4/xstrndup.m4: New file.
25717
25718 2003-08-17  Simon Josefsson  <jas@extundo.com>
25719
25720         * m4/argp.m4: New file.
25721
25722 2003-08-17  Simon Josefsson  <jas@extundo.com>
25723             Bruno Haible  <bruno@clisp.org>
25724
25725         * lib/xstrndup.h: New file.
25726         * lib/xstrndup.c: New file.
25727
25728 2003-08-17  Bruno Haible  <bruno@clisp.org>
25729
25730         * modules/strndup (Files, Include): Add lib/strndup.h.
25731
25732 2003-08-17  Bruno Haible  <bruno@clisp.org>
25733
25734         * modules/euidaccess (Files): Add lib/euidaccess.h.
25735
25736 2003-08-17  Bruno Haible  <bruno@clisp.org>
25737
25738         * lib/strndup.h: New file.
25739
25740 2003-08-17  Bruno Haible  <bruno@clisp.org>
25741
25742         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
25743         like AC_GNU_SOURCE.
25744         * modules/extensions (configure.ac): Comment out the invocation of
25745         gl_USE_SYSTEM_EXTENSIONS.
25746
25747 2003-08-16  Paul Eggert  <eggert@twinsun.com>
25748
25749         Merges from coreutils, etc.
25750         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
25751         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
25752         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
25753         fixing a typo.
25754         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
25755         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
25756
25757 2003-08-16  Paul Eggert  <eggert@twinsun.com>
25758
25759         Document merge from coreutils.
25760         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
25761         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
25762         * modules/utime: Add m4/utimes-null.m4.
25763
25764 2003-08-16  Paul Eggert  <eggert@twinsun.com>
25765
25766         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
25767         space, undoing this 2003-08-12 change:
25768         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
25769
25770 2003-08-16  Paul Eggert  <eggert@twinsun.com>
25771
25772         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
25773         strtoul.c from libc, undoing this 2003-08-12 change:
25774         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
25775
25776 2003-08-16  Jim Meyering  <jim@meyering.net>
25777
25778         Merges from coreutils.
25779         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
25780         prefix.  Adjust cache variables similarly.  Create 500 rather than
25781         just 300 files, to exercise bug on Darwin6.5, too.
25782         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
25783         $missing_dir.
25784         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
25785         AM_SYS_POSIX_TERMIOS.
25786         Reported by mkc@mathdogs.com.
25787         Also change use of $am_cv_sys_posix_termios
25788         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
25789         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
25790         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
25791         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
25792         in /proc/mounts until it finds one with matching device number.  This
25793         is unnecessary when the FILE argument *is* a mount point.  No stat call
25794         is necessary in that case.  So, disable the statvfs-testing code on
25795         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
25796         as RedHat bug# 84846.
25797         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
25798         to 1MB, so as not to render systems with no stack size limit (e.g.,
25799         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
25800         Include <unistd.h>.  On some systems,
25801         it is required for the definition of _SC_PAGESIZE.
25802
25803 2003-08-16  Jim Meyering  <jim@meyering.net>
25804
25805         Merge from coreutils.
25806         * lib/xstrtoimax.c: #else #if -> #elif.
25807         * lib/xstrtoumax.c: Likewise.
25808
25809 2003-08-16  Jim Meyering  <jim@meyering.net>
25810
25811         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
25812         * m4/utimes.m4: Removed.
25813         * m4/utimes-null.m4: Renamed from utimes.m4.
25814
25815         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
25816         to 1MB, so as not to render systems with no stack size limit (e.g.,
25817         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
25818         Include <unistd.h>.  On some systems,
25819         it is required for the definition of _SC_PAGESIZE.
25820
25821 2003-08-16  Jim Meyering  <jim@meyering.net>
25822         and Paul Eggert  <eggert@cs.ucla.edu>
25823
25824         Merges from coreutils, etc.
25825
25826         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
25827         using the latest version from cvs.  This avoids problems with #line
25828         directives using a vendor (Sun) compiler.
25829         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
25830         Don't set GETGROUPS_LIB here; now it's
25831         done via getgroups.m4's wrapper function.
25832         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
25833         rather than just in sh-util/configure.in, so that the
25834         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
25835         same.
25836         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
25837         AC_FUNC_GETLOADAVG where to find getloadavg.c.
25838         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
25839         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
25840         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
25841         Remove code that is now done by the newly-required macros.
25842         Append $(EXEEXT) to DF_PROG.
25843         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
25844         Do not invoke or require the following here,
25845         since prereq.m4 or some gnulib .m4 now does this for us:
25846         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
25847         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
25848         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
25849         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
25850         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
25851         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
25852         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
25853         AC_FUNC_OBSTACK.
25854         Do not replace the following functions, as this is now the job
25855         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
25856         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
25857         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
25858         atexit getpass, strdup, getpagesize.
25859         Replace 'raise'.
25860         Do not check for the following functions, as this is now the job
25861         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
25862         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
25863         setregid.
25864         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
25865         Check for sys/sysctl.h.
25866         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
25867         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
25868         of checking for ssize_t ourselves.
25869
25870         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
25871         Require every macro that gnulib/modules/* suggests for us.
25872         (jm_PREREQ_ADDEXT): New macro.
25873         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
25874         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
25875
25876         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
25877         (gl_PHYSMEM): Use it.
25878         Also check for `table' function.
25879         Check for new headers and functions.
25880         Add check for sys/sysmp.h.
25881         With suggestions from Kaveh Ghazi.
25882         Ignore headers that are present but cannot be compiled.  This
25883         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
25884         C 5.4.
25885
25886 2003-08-15  Paul Eggert  <eggert@twinsun.com>
25887
25888         Document merge from coreutils.
25889         * modules/userspec: Depend on posixver.
25890         * modules/strftime: Depend on tzset.
25891
25892 2003-08-15  Paul Eggert  <eggert@twinsun.com>
25893
25894         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
25895         rather than tab, after '#' in shell-script copyright notices.
25896         Suggested by Bruno Haible.
25897
25898 2003-08-15  Paul Eggert  <eggert@twinsun.com>
25899
25900         * config/srclist-update: Use three spaces, rather than tab, after '#'
25901         in shell-script copyright notices.  Suggested by Bruno Haible.
25902         Remove unnecessary parenthesization in regular expression.
25903
25904 2003-08-15  Jim Meyering  <jim@meyering.net>
25905
25906         Merge from coreutils.
25907         * lib/xgethostname.c: Include <stdlib.h>.
25908         (xghostname): Don't exit for anything other than memory-related
25909         failure; just return NULL.
25910         * lib/userspec.c: Include "posixver.h".
25911         (parse_user_spec): Accept `.' as a separator only
25912         in pre-POSIX-200112 mode.
25913         * lib/strtoimax.c: Use #elif rather than #else #if.
25914         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
25915         Remove function, now that we can rely on a working tzset function.
25916         [!_LIBC]: Ensure that the required autoconf test has been run.
25917         [!defined _NL_CURRENT && HAVE_STRFTIME]:
25918         Use underlying_strftime for %r.
25919         * lib/sha.c: Merge in some clean-up and optimization changes from
25920         glibc.
25921         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
25922         Ensure that it is a multiple of 64.
25923         Rearrange loop exit tests so as to avoid performing an
25924         additional fread after encountering an error or EOF.
25925         * lib/realloc.c: Update copyright date.
25926
25927 2003-08-15  Jim Meyering  <jim@meyering.net>
25928         and Paul Eggert  <eggert@twinsun.com>
25929
25930         Merge from coreutils.
25931         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
25932         member but strut utmpx does not.  Needed for AIX 4.3.3.
25933         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
25934
25935 2003-08-15  Jim Meyering  <jim@meyering.net>
25936         and Paul Eggert  <eggert@cs.ucla.edu>
25937
25938         Merges from coreutils, etc.
25939         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
25940         Require gl_FUNC_TZSET_CLOBBER.
25941         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
25942         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
25943         members.
25944
25945 2003-08-14  Paul Eggert  <eggert@twinsun.com>
25946
25947         Help the merge from coreutils.
25948         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
25949         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
25950         * m4/tzset.m4: Use it too.
25951
25952 2003-08-14  Paul Eggert  <eggert@twinsun.com>
25953
25954         * modules/tzset: New file.
25955
25956 2003-08-14  Jim Meyering  <jim@meyering.net>
25957
25958         Merges from coreutils.
25959         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
25960         variable names, rather than @FNMATCH_H@.
25961         * modules/alloca: Likewise for $(ALLOCA_H).
25962
25963         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
25964         the three copies of the literal target, `fnmatch.h'.
25965         * modules/alloca (alloca.h): Likewise.
25966
25967 2003-08-14  Jim Meyering  <jim@meyering.net>
25968
25969         Merge from coreutils.
25970         * m4/tzset.m4: New file.
25971         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
25972         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
25973         otherwise, AIX 5.1 systems would end up using the latter.
25974         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
25975         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
25976         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
25977         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
25978
25979 2003-08-14  Jim Meyering  <jim@meyering.net>
25980
25981         Merge from coreutils.
25982         * lib/obstack.h: Whitespace changes.
25983         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
25984         and xcalloc return values.
25985         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
25986         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
25987         hang on OSF/1 5.1 for DIR on both local and remote file systems.
25988         Reported by (and fix confirmed by) Nelson H. F. Beebe.
25989         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
25990         error from mntctl.
25991         Use mntctl's return value to drive the entry-processing loop, since
25992         we can't rely on the value of the vmt_length member in the last
25993         entry.  On some systems doing so could result in exhausting
25994         virtual memory.  Based in part on a patch from Mike Jetzer.
25995
25996 2003-08-14  Jim Meyering  <jim@meyering.net>
25997         and Paul Eggert  <eggert@twinsun.com>
25998
25999         Merges from coreutils, plus other fixes.
26000         * lib/physmem.c: Merge in portability changes from gcc/libiberty
26001         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
26002         for credits and details.  Thanks to Kaveh Ghazi for helping
26003         to keep these files in sync.
26004         (ARRAY_SIZE): Define it.
26005         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
26006         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
26007         (memcasecmp): Don't assume size_t fits in unsigned int.
26008         Remove casts and duplicate code.
26009         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
26010         (memcpy): Remove definition.
26011         Merge in some clean-up and optimization changes from glibc.
26012         [BLOCKSIZE]: Move definition to top of file.
26013         Ensure that it is a multiple of 64.
26014         Rearrange loop exit tests so as to avoid performing an
26015         additional fread after encountering an error or EOF.
26016         * lib/md5.h (md5_uintptr): Define.
26017         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
26018         return to the initial working directory.  Preserve errno
26019         for caller.
26020         * lib/idcache.c: Include "xalloc.h".
26021         (xmalloc, xrealloc): Remove decls.
26022         (getuser): Remove casts no longer required in C89.
26023         * lib/human.c: Include stdio.h, for sprintf.
26024         * lib/group-member.c: Include "xalloc.h".
26025         (xmalloc, xrealloc): Remove decls.
26026         (get_group_info): Remove casts no longer required in C89.
26027         * lib/getusershell.c (readname): Remove casts no longer required in
26028         C89.
26029         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
26030         * lib/getline.c: Whitespace fix, from coreutils.
26031
26032 2003-08-13  Paul Eggert  <eggert@twinsun.com>
26033
26034         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
26035         Check for isascii.
26036
26037         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
26038         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
26039         Undo previous (whitespace-only) change.
26040
26041 2003-08-13  Paul Eggert  <eggert@twinsun.com>
26042
26043         * lib/exclude.c: Include <ctype.h>
26044         (IN_CTYPE_DOMAIN): New macro.
26045         (is_space): New fn.
26046         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
26047         and empty lines.
26048
26049         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
26050         Undo previous (whitespace-only) change.
26051
26052 2003-08-13  Paul Eggert  <eggert@twinsun.com>
26053
26054         * config/srclist-update: Change update back to the old behavior,
26055         leaving whitespace alone.  Use one 'sed' command rather than a
26056         pipeline.
26057         (fixlicense): Now a variable, not a function.
26058         (remove_trailing_blanks): Remove.
26059         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
26060         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
26061         Undo previous (whitespace-only) change.
26062
26063 2003-08-12  Paul Eggert  <eggert@twinsun.com>
26064
26065         Merge from coreutils.
26066         * modules/euidaccess: Add lib_SOURCES, include for new
26067         file euidaccess.h
26068
26069 2003-08-12  Paul Eggert  <eggert@twinsun.com>
26070
26071         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
26072         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
26073         Normalize leading white space and remove trailing white space.
26074
26075         Merge from coreutils
26076         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
26077
26078         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
26079         0.12.1.  These files are now being upgraded automatically by
26080         ../config/srclist-update.
26081
26082 2003-08-12  Paul Eggert  <eggert@twinsun.com>
26083
26084         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
26085         Normalize leading white space and remove trailing white space.
26086         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
26087         notice, as per ../config/srclist-update.
26088
26089         Merge from coreutils.
26090         * lib/euidaccess.h: New file.
26091         * lib/euidaccess.c: Include it.
26092         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
26093         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
26094         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
26095
26096 2003-08-12  Paul Eggert  <eggert@twinsun.com>
26097
26098         * config/srclist-update: Add copyright notice.
26099         (remove_id_lines, remove_trailing_blanks): New constants.
26100         (fixfile): Use them to normalize spacing a bit in copied files.
26101         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
26102         Normalize leading white space and remove trailing white space.
26103
26104         * config/texinfo.tex: Sync with texinfo.
26105
26106         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
26107         strtoul.c from libc, to merge coreutils whitespace changes.
26108
26109         * config/srclist.txt: Get the following m4 files from gettext:
26110         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
26111         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
26112         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
26113         wint_t.m4.
26114
26115 2003-08-12  Karl Berry  <karl@gnu.org>
26116
26117         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
26118         been made.
26119
26120 2003-08-11  Paul Eggert  <eggert@twinsun.com>
26121
26122         * modules/gnu-source, m4/gnu-source.m4:
26123         Remove; we're assuming Autoconf 2.54 or later now.
26124         Suggested by Bruno Haible.
26125         * MODULES.html.sh (func_all_modules): Remove gnu-source.
26126
26127 2003-08-11  Bruno Haible  <bruno@clisp.org>
26128
26129         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
26130
26131 2003-08-11  Bruno Haible  <bruno@clisp.org>
26132
26133         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
26134         (vasnprintf): Use it instead of wcslen.
26135
26136 2003-08-11  Bruno Haible  <bruno@clisp.org>
26137
26138         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
26139         value to ensure that _Bool promotes to int. Use #define for _Bool when
26140         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
26141
26142 2003-08-10  Karl Berry  <karl@gnu.org>
26143
26144         * lib/regex.h: update from libc (whitespace fix).
26145
26146 2003-08-09  Paul Eggert  <eggert@twinsun.com>
26147
26148         Merge some files from coreutils.  These changes were
26149         originally made by Jim Meyering.
26150         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
26151         many older Unixes require this.
26152         * lib/alloca.c (alloca): Remove cast to argument of free;
26153         no longer needed in C89.
26154         * lib/alloca_.h, regex.h: Fix white space to match
26155         what GNU indent does.
26156
26157 2003-08-09  Paul Eggert  <eggert@twinsun.com>
26158
26159         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
26160         apparently Emacs's Unicode mode got confused before my 2003-08-05
26161         checkin.
26162
26163 2003-08-08  Paul Eggert  <eggert@twinsun.com>
26164
26165         * m4/extensions.m4: New file.
26166         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
26167         Require gl_USE_SYSTEM_EXTENSIONS.
26168         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
26169         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
26170
26171 2003-08-08  Paul Eggert  <eggert@twinsun.com>
26172
26173         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
26174         * modules/extensions, modules/gnu-source: New files.
26175         * modules/timespec, modules/unlocked-io: Depend on extensions.
26176
26177 2003-08-07  Paul Eggert  <eggert@twinsun.com>
26178
26179         * modules/restrict: New file.
26180         * MODULES.html.sh (func_all_modules): Add restrict.
26181         * modules/regex: Depend on restrict.
26182
26183 2003-08-07  Paul Eggert  <eggert@twinsun.com>
26184
26185         * m4/restrict.m4: New file.
26186         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
26187
26188 2003-08-07  Bruno Haible  <bruno@clisp.org>
26189
26190         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
26191         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
26192
26193 2003-08-07  Bruno Haible  <bruno@clisp.org>
26194
26195         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
26196         makes the module 'getndelim2' compatible with the module 'getline'.
26197
26198 2003-08-05  Paul Eggert  <eggert@twinsun.com>
26199
26200         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
26201         byte with "\201" to avoid glitches when editing that source file
26202         with multi-gnome-terminal.
26203
26204 2003-08-05  Paul Eggert  <eggert@twinsun.com>
26205
26206         * lib/bumpalloc.h: Remove.
26207
26208 2003-08-05  Paul Eggert  <eggert@twinsun.com>
26209
26210         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
26211         * modules/bumpalloc: Remove.
26212
26213 2003-08-04  Paul Eggert  <eggert@twinsun.com>
26214
26215         * lib/getloadavg.c: Change copyright notice and spacing to conform to
26216         GNU coding style.
26217
26218         Merge from coreutils.
26219         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
26220         1. From glibc.
26221         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
26222         from Karl Berry, implemented by Jim Meyering.
26223         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
26224         from Dmitry V. Levin.
26225         Remove anachronistic cast of xrealloc.
26226         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
26227         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
26228         type. Otherwise, it wouldn't compile with at least /bin/cc on
26229         ymp-cray-unicos9.0.2.X.
26230         Combine two mostly-identical uses of alloca into one.
26231         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
26232
26233 2003-08-04  Dave Love  <d.love@dl.ac.uk>
26234
26235         [From Emacs.]
26236
26237         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
26238         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
26239         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
26240         obsolete NLIST_NAME_UNION.
26241         [__GNU__]: Undef BSD and FSCALE.
26242         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
26243
26244 2003-08-03  Paul Eggert  <eggert@twinsun.com>
26245
26246         * lib/stdbool_.h (_Bool): Make it signed char, instead of
26247         an enum type, so that it's guaranteed to promote to int.  See:
26248         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
26249
26250 2003-08-03  Karl Berry  <karl@gnu.org>
26251
26252         * config/depcomp: update from automake.
26253
26254 2003-07-31  Paul Eggert  <eggert@twinsun.com>
26255
26256         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
26257         (strerror): Don't assume that a printable int fits in 14 bytes.
26258
26259 2003-07-31  Bruno Haible  <bruno@clisp.org>
26260
26261         * modules/getpass-gnu: New file.
26262         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
26263
26264 2003-07-31  Bruno Haible  <bruno@clisp.org>
26265
26266         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
26267
26268 2003-07-24  Karl Berry  <karl@gnu.org>
26269
26270         * config/missing: update from automake.
26271
26272 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
26273             Bruno Haible  <bruno@clisp.org>
26274
26275         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
26276         * lib/getline.c (getline, getdelim): Likewise.
26277         Remove _GNU_SOURCE define; now it's defined in config.h through
26278         m4/getline.m4.
26279
26280 2003-07-23  Karl Berry  <karl@gnu.org>
26281
26282         * config/config.sub: update from prep.
26283
26284 2003-07-22  Paul Eggert  <eggert@twinsun.com>
26285
26286         * modules/xalloc (Depends-on): Add exitfail.
26287         * modules/xmemcoll: Likewise.
26288
26289 2003-07-22  Paul Eggert  <eggert@twinsun.com>
26290
26291         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
26292         over-parenthesization in macros.
26293
26294         Sync with coreutils.
26295
26296         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
26297         required by C99.
26298
26299         Use `exit_failure' for xalloc and xmemcoll instead of their own
26300         private exit-failure variables.
26301         * lib/xalloc.h (xalloc_exit_failure): Remove.
26302         * lib/xmalloc.c: Likewise.  Include exitfail.h.
26303         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
26304         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
26305         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
26306         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
26307
26308 2003-07-20  Jim Meyering  <jim@meyering.net>
26309
26310         * modules/closeout (Depends-on): Add exitfail.
26311         Suggestion from Bruno Haible.
26312
26313 2003-07-19  Karl Berry  <karl@gnu.org>
26314
26315         * config/config.sub: update from prep.
26316
26317 2003-07-18  Paul Eggert  <eggert@twinsun.com>
26318
26319         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
26320         Remove.
26321         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
26322         to test that it can stand by itself.  Include "exitfail.h".
26323         Clients should set exit_failure instead.
26324         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
26325
26326 2003-07-18  Bruno Haible  <bruno@clisp.org>
26327
26328         * modules/getndelim2: New file.
26329         * modules/getline: Share files with module getndelim2.
26330         * modules/getnline: Depend on getndelim2 instead of sharing files with
26331         it. Add getnline.c to lib_SOURCES.
26332         * MODULES.html.sh (func_all_modules): Add getndelim2.
26333
26334 2003-07-18  Bruno Haible  <bruno@clisp.org>
26335
26336         * m4/getndelim2.m4: New file.
26337         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
26338         invoke gl_PREREQ_GETNDELIM2.
26339         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
26340         gl_PREREQ_GETNDELIM2.
26341         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
26342         gl_GETNDELIM2.
26343
26344 2003-07-18  Bruno Haible  <bruno@clisp.org>
26345
26346         * lib/getndelim2.h: New file.
26347         * lib/getndelim2.c: Make into a module of its own. Include config.h,
26348         getndelim2.h.
26349         (getndelim2): Make non-static. Change return type to ssize_t.
26350         * lib/getline.h: Change argument names.
26351         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
26352         * lib/getnline.c: Include getndelim2.h.
26353
26354 2003-07-18  Andreas Schwab  <schwab@suse.de>
26355
26356         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
26357
26358 2003-07-17  Karl Berry  <karl@gnu.org>
26359
26360         * config/config.sub: update from prep.
26361
26362 2003-07-17  Bruno Haible  <bruno@clisp.org>
26363
26364         * modules/getnline: New file.
26365         * modules/getline: Add lib/getndelim2.c to source file list.
26366         * MODULES.html.sh (func_all_modules): Add getnline.
26367
26368 2003-07-17  Bruno Haible  <bruno@clisp.org>
26369
26370         * m4/getnline.m4: New file.
26371
26372 2003-07-17  Bruno Haible  <bruno@clisp.org>
26373
26374         * m4/Makefile.am.in: Remove file.
26375         * m4/Makefile.am: Remove file.
26376         * m4/Makefile.in: Remove file.
26377
26378 2003-07-17  Bruno Haible  <bruno@clisp.org>
26379
26380         * lib/getnline.h: New file.
26381         * lib/getnline.c: New file.
26382         * lib/getndelim2.c: New file, extracted from getline.c.
26383         (getndelim2): Renamed from getdelim2, with added nmax argument.
26384         * lib/getline.c: Include getndelim2.c.
26385         (getdelim2): Moved out to getndelim2.c.
26386         (getline, getdelim): Update.
26387
26388 2003-07-17  Bruno Haible  <bruno@clisp.org>
26389
26390         * lib/Makefile.am: Remove file.
26391         * lib/Makefile.in: Remove file.
26392
26393 2003-07-17  Bruno Haible  <bruno@clisp.org>
26394
26395         * configure.in: Remove file.
26396         * Makefile.in: Remove file.
26397
26398 2003-07-17  Bruno Haible  <bruno@clisp.org>
26399
26400         * MODULES.html.sh: Put the </BODY> right before </HTML>.
26401
26402 2003-07-16  Karl Berry  <karl@gnu.org>
26403
26404         * config/srclist-update: was running fixlicense twice, which caused
26405                 texinfo.tex to be nullified for some reason.  Simplify,
26406                 $gplsrc is no longer needed as far as I can see?
26407
26408 2003-07-16  Jim Meyering  <jim@meyering.net>
26409
26410         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
26411
26412 2003-07-15  Paul Eggert  <eggert@twinsun.com>
26413
26414         * config/srclist.txt: Get the following files from gettext-runtime/intl
26415         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
26416         ref-del.sin.  From Bruno Haible.
26417         * config/srclist-update (fixfile): Change grep pattern again, since the
26418         previous fix didn't work (there was another trailing $).  Use
26419         '[$]' to escape the $s.
26420
26421 2003-07-15  Karl Berry  <karl@gnu.org>
26422
26423         * lib/vasnprintf.c: update from gettext.
26424
26425 2003-07-15  Karl Berry  <karl@gnu.org>
26426
26427         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
26428         gets expanded when surrounded by '$'.
26429
26430 2003-07-15  Jim Meyering  <jim@meyering.net>
26431
26432         * modules/save-cwd: Don't depend on error.  From Derek Price.
26433
26434 2003-07-15  Jim Meyering  <jim@meyering.net>
26435
26436         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
26437
26438 2003-07-14  Simon Josefsson  <jas@extundo.com>
26439
26440         * modules/mempcpy: New file.
26441         * MODULES.html.sh (func_all_modules): Add mempcpy.
26442
26443 2003-07-14  Simon Josefsson  <jas@extundo.com>
26444
26445         * m4/mempcpy.m4: New file.
26446
26447 2003-07-14  Simon Josefsson  <jas@extundo.com>
26448
26449         * lib/mempcpy.h: New file.
26450         * lib/mempcpy.c: New file.
26451
26452 2003-07-14  Paul Eggert  <eggert@twinsun.com>
26453
26454         * modules/getdate, modules/posixtm: Depend on mktime.
26455
26456 2003-07-14  Paul Eggert  <eggert@twinsun.com>
26457
26458         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
26459         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
26460         unicodeio.c, unicodeio.h, unlocked-io.h:
26461         Switch from LGPL to GPL.
26462
26463 2003-07-14  Paul Eggert  <eggert@twinsun.com>
26464
26465         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
26466         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
26467         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
26468         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
26469         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
26470         updated automatically by ../config/srclist-update.  This changes
26471         their license from LPGL to GPL.
26472
26473 2003-07-14  Paul Eggert  <eggert@twinsun.com>
26474
26475         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
26476         assumed to refer to the root of the most recent stable gettext version.
26477         * config/srclistvars.sh: Add defaults for eggert.
26478         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
26479         Match "This program" as well as "The program".  This is needed
26480         for gettext.
26481
26482 2003-07-14  Jim Meyering  <jim@meyering.net>
26483
26484         Don't emit diagnostics.  Let callers do that.
26485         * lib/save-cwd.c: Don't include "error.h".
26486         (save_cwd): Don't call error.  Ensure that errno is valid
26487         when returning nonzero.
26488
26489         * lib/save-cwd.h (restore_cwd): Update prototype.
26490         * lib/save-cwd.c (restore_cwd): Remove two parameters.
26491         Simplify.  Don't call error upon failure.  Let callers do that.
26492         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
26493         when auditing is enabled.  But don't bother updating the #if.
26494
26495 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
26496
26497         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
26498         it breaks C++ compilation.
26499         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
26500
26501 2003-07-10  Simon Josefsson  <jas@extundo.com>
26502
26503         * modules/strchrnul (Makefile.am): Add strchrnul.h.
26504
26505 2003-07-10  Jim Meyering  <jim@meyering.net>
26506
26507         * m4/clock_time.m4: Remove trailing blank.
26508         * m4/intmax_t.m4: Likewise.
26509
26510 2003-07-10  Jim Meyering  <jim@meyering.net>
26511
26512         * lib/vasnprintf.c: Remove trailing blanks.
26513         Make cpp indentation consistent.
26514
26515 2003-07-09  Paul Eggert  <eggert@twinsun.com>
26516
26517         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
26518         posixver.c, strftime.c, strnlen.c, strverscmp.c:
26519         Switch from LGPL to GPL.
26520
26521 2003-07-09  Paul Eggert  <eggert@twinsun.com>
26522
26523         * config/srclist.txt: Sort sublists.  Add
26524         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
26525         that differ from gnulib for one reason or another; we'd like this list
26526         to be smaller but for now let's document what we have.
26527
26528 2003-07-08  Paul Eggert  <eggert@twinsun.com>
26529
26530         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
26531         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
26532         and sweeter "eval x=$x".
26533         * config/srclist.txt: Get lib/argp* from glibc.
26534
26535 2003-07-07  Paul Eggert  <eggert@twinsun.com>
26536
26537         * lib/mktime.c: Fix some boundary cases and remove need for floating
26538         point.
26539
26540         Issue a compile-time diagnostic if time_t is floating point, or if
26541         two's complement arithmetic is not in effect, or if arithmetic
26542         right shift does not propagate the sign.  These assumptions were
26543         all in the original code but they weren't checked.
26544
26545         (TIME_T_MIDPOINT, verify): New macros.
26546         (__isleap): Remove; it has integer overflow problems.
26547         (leapyear): New function, without those problems.
26548         (ydhms_tm_diff): Remove; splitting into two parts.
26549         (ydhms_diff): New function, containing the arithmetic part of
26550         the old ydhms_tm_diff function.  Issue a compile-time
26551         diagnostic if we are not using C99 integer division.
26552         Avoid casts when possible.
26553         (guess_time_tm): New function, containing the checking part of
26554         the old ydhms_tm_diff function.  Return the new value, rather than
26555         the difference between it and the old.  Accept a new argument T
26556         so that *T specifies the old value.  Check for overflow in the result.
26557
26558         (__mktime_internal): Use a time_t offset, not a long int offset.
26559         This undoes the 2003-06-04 change, which is no longer needed now
26560         that we have better overflow checking.
26561         (localtime_offset): Likewise.
26562
26563         (__mktime_internal): Avoid harmful overflow on hosts where time_t
26564         and long are 64-bit but int is only 32-bit.
26565         (ydhms_diff): Use long int to store year1 and yday1.
26566         Issue a compile-time diagnostic if long int is not wide enough.
26567
26568         (__mktime_internal): Use long int to store adjusted year and yday.
26569         Use plain C rather than preprocessor commands, if that doesn't
26570         affect efficiency.
26571         Check for overflow (and try to repair) after each probe
26572         rather than checking only at the very end.  This avoids some bugs
26573         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
26574         does not equal GMT offset at maximum time).
26575         Use integer to check for overflow rather than floating point; this
26576         is more portable to non-IEEE hosts, and is a tad faster.
26577         When we detect that we are oscillating between two values,
26578         don't check whether tm_isdst has the requested value, since
26579         we already know the answer.  When tm_isdst has the wrong value,
26580         use a different heuristic to find the right one, based on the
26581         extreme values actually observed in practice in tz2003a,
26582         rather than the (overly optimistic) "previous 3 calendar quarters".
26583
26584         (not_equal_tm, print_tm, check_result): Use "const T" rather than
26585         "T const" to accommodate glibc style.
26586         (check_result): Use less-confusing report format.  "long" -> "long int.
26587         (main): Likewise.
26588         Don't loop if the iteration overflows time_t.
26589         Allow a negative step in the iteration.
26590
26591 2003-07-06  Karl Berry  <karl@gnu.org>
26592
26593         * config/depcomp: update from automake.
26594         * config/config.sub: update from prep.
26595
26596 2003-07-03  Karl Berry  <karl@gnu.org>
26597
26598         * config/config.guess: update from prep.
26599
26600 2003-07-01  Paul Eggert  <eggert@twinsun.com>
26601
26602         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
26603         xreadlink.c now includes it unconditionally.
26604
26605 2003-07-01  Paul Eggert  <eggert@twinsun.com>
26606
26607         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
26608         having it depend on HAVE_SYS_TYPES_H.
26609
26610 2003-07-01  Bruno Haible  <bruno@clisp.org>
26611
26612         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
26613         <sys/types.h> should be sufficient.
26614         Reported by Paul Eggert.
26615
26616 2003-06-26  Karl Berry  <karl@gnu.org>
26617
26618         * config/depcomp: update from automake.
26619
26620 2003-06-26  Bruno Haible  <bruno@clisp.org>
26621
26622         * modules/human: Depend on module stdbool.
26623
26624 2003-06-25  Bruno Haible  <bruno@clisp.org>
26625
26626         * modules/readlink: New file.
26627         * modules/xreadlink: Depend on it.
26628         * MODULES.html.sh (func_all_modules): Add readlink.
26629
26630 2003-06-25  Bruno Haible  <bruno@clisp.org>
26631
26632         * m4/readlink.m4: New file.
26633
26634 2003-06-25  Bruno Haible  <bruno@clisp.org>
26635
26636         * lib/readlink.c: New file.
26637
26638 2003-06-22  Karl Berry  <karl@gnu.org>
26639
26640         * config/srclist.txt: update mkinstalldirs from automake.
26641         * config/mkinstalldirs: update.
26642
26643 2003-06-22  Bruno Haible  <bruno@clisp.org>
26644
26645         Portability to mingw32.
26646         * m4/ssize_t.m4: New file, from GNU gettext.
26647         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
26648         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
26649
26650 2003-06-22  Bruno Haible  <bruno@clisp.org>
26651
26652         * modules/safe-read: Add m4/ssize_t.m4.
26653         * modules/xreadlink: Add m4/ssize_t.m4.
26654
26655 2003-06-20  Bruno Haible  <bruno@clisp.org>
26656
26657         Assume C89, so PARAMS isn't needed.
26658         * lib/unicodeio.h (PARAMS): Remove.
26659         * lib/unicodeio.c: Don't use PARAMS.
26660
26661 2003-06-18  Karl Berry  <karl@gnu.org>
26662
26663         * config/config.{guess,sub}: update from prep.
26664
26665 2003-06-18  Jim Meyering  <jim@meyering.net>
26666
26667         Merge changes from coreutils.
26668         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
26669         Remove explicit declarations of xmalloc and realloc.
26670         Include xalloc.h.
26671         (read_utmp): Remove anachronistic cast of xmalloc.
26672
26673 2003-06-17  Paul Eggert  <eggert@twinsun.com>
26674
26675         Assume C89, so PARAMS isn't needed.
26676         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
26677         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
26678         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
26679         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
26680         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
26681         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
26682         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
26683         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
26684         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
26685         lib/xstrtod.h, lib/xstrtol.h: Likewise.
26686         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
26687         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
26688         no longer needed. Anyway, config.h should always be included before any
26689         other file.
26690
26691 2003-06-11  Simon Josefsson  <jas@extundo.com>
26692
26693         * modules/sysexits: New file.
26694         * MODULES.html.sh (func_all_modules): Add sysexits.
26695
26696 2003-06-11  Simon Josefsson  <jas@extundo.com>
26697
26698         * lib/sysexit_.h: New file.
26699
26700 2003-06-11  Derek Price  <derek@ximbiot.com>
26701
26702         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
26703         necessary.
26704
26705 2003-06-11  Bruno Haible  <bruno@clisp.org>
26706
26707         * m4/sysexits.m4: New file.
26708
26709 2003-06-10  Simon Josefsson  <jas@extundo.com>
26710
26711         * lib/argp.h: New file, from glibc.
26712         * lib/argp-ba.c: New file, from glibc.
26713         * lib/argp-eexst.c: New file, from glibc.
26714         * lib/argp-fmtstream.c: New file, from glibc.
26715         * lib/argp-fmtstream.h: New file, from glibc.
26716         * lib/argp-fs-xinl.c: New file, from glibc.
26717         * lib/argp-help.c: New file, from glibc.
26718         * lib/argp-namefrob.h: New file, from glibc.
26719         * lib/argp-parse.c: New file, from glibc.
26720         * lib/argp-pv.c: New file, from glibc.
26721         * lib/argp-pvh.c: New file, from glibc.
26722         * lib/argp-xinl.c: New file, from glibc.
26723
26724 2003-06-10  Simon Josefsson  <jas@extundo.com>
26725
26726         * modules/strchrnul: New file.
26727
26728 2003-06-10  Simon Josefsson  <jas@extundo.com>
26729
26730         * modules/argp: New file.
26731
26732 2003-06-10  Simon Josefsson  <jas@extundo.com>
26733
26734         * m4/strchrnul.m4: New file.
26735
26736 2003-06-10  Simon Josefsson  <jas@extundo.com>
26737
26738         * lib/strchrnul.h: New file.
26739         * lib/strchrnul.c: New file.
26740
26741 2003-06-10  Bruno Haible  <bruno@clisp.org>
26742
26743         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
26744
26745 2003-06-07  Karl Berry  <karl@gnu.org>
26746
26747         * config/config.{guess,sub}: update from prep.
26748
26749 2003-06-07  Jim Meyering  <jim@meyering.net>
26750
26751         * modules/strtod: Use $(...) notation, not @...@ for
26752         AC_REPLACE'd variables.
26753         * modules/localcharset: Likewise.
26754
26755 2003-06-07  Jim Meyering  <jim@meyering.net>
26756
26757         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
26758         in place of my name in the copyright comment.
26759         Remove definition and uses of __P.
26760
26761         From coreutils.
26762         * lib/stat.c: Don't declare xmalloc explicitly.
26763         Instead, include "xalloc.h".
26764         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
26765         xrealloc, and xcalloc return values.
26766         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
26767         Improve comment.
26768         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
26769
26770 2003-06-07  Bruno Haible  <bruno@clisp.org>
26771
26772         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
26773         avoid AC_CONFIG_LINKS.
26774         * modules/fnmatch (Makefile.am): Use explicit creation rule for
26775         fnmatch.h, to avoid AC_CONFIG_LINKS.
26776         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
26777
26778 2003-06-07  Bruno Haible  <bruno@clisp.org>
26779
26780         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
26781         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
26782         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
26783         directory.
26784         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
26785         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
26786         directory.
26787
26788 2003-06-06  Jim Meyering  <jim@meyering.net>
26789
26790         Merge from coreutils.
26791         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
26792         Consolidate declarations and initializations of *_base* locals.
26793
26794         Merge from coreutils.
26795         This avoids a core dump on systems without GNU putenv,
26796         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
26797         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
26798         (unsetenv): New static function, from GNU libc.
26799         (rpl_putenv): Use it.
26800
26801         * lib/modechange.c: Remove trailing blanks.
26802
26803         Merge from coreutils.
26804         * lib/fsusage.c: Remove declaration of statfs.
26805         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
26806
26807         * lib/posixtm.c: Include <stdbool.h> unconditionally.
26808
26809 2003-06-06  Jim Meyering  <jim@meyering.net>
26810
26811         * lib/stdbool_.h: Renamed from stdbool.h.in.
26812
26813 2003-06-06  Jim Meyering  <jim@meyering.net>
26814             Bruno Haible  <bruno@clisp.org>
26815
26816         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
26817         Adjust Makefile.am snippet not to redirect directly to target.
26818         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
26819
26820 2003-06-05  Paul Eggert  <eggert@twinsun.com>
26821
26822         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
26823         mismatch, look in future quarters as well as past.  This fixes a
26824         bug when processing fall-backwards gaps immediately after a long
26825         period of daylight-saving time.
26826
26827         * lib/mktime.c: Assume freestanding C89 or better.
26828         (HAVE_LIMITS_H): Remove.  Assume it's 1.
26829         (__P): Remove; not used.
26830         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
26831         (mktime, not_equal_tm, print_tm, check_result,
26832         main): Use prototypes.  Use const * where appropriate.
26833         (main): Fix typo in testing code that uncovered by above changes.
26834         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
26835
26836 2003-06-04  Paul Eggert  <eggert@twinsun.com>
26837
26838         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
26839         locale.h, localeconv.  This merges changes from coreutils.
26840
26841         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
26842         It can be removed after the next Autoconf is released.
26843         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
26844         needed.
26845
26846 2003-06-04  Paul Eggert  <eggert@twinsun.com>
26847
26848         * lib/mktime.c: Fix Debian bug 177940
26849         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
26850         (localtime_offset): Now long int, not time_t, because we want it
26851         to be guaranteed to be signed.  All uses changed.
26852         (__mktime_internal): If overflow would occur when adding offset,
26853         don't add it.
26854
26855         Merge 'human' changes from coreutils.  Rewrite to support
26856         locale-specific notations like thousands separators.
26857         * lib/human.c: Simplify authorship notice.
26858         Include human.h immediately after config.h.
26859         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
26860         <limits.h>: Do not include, since human.h does.
26861         (SIZE_MAX, UINTMAX_MAX): New macros.
26862         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
26863         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
26864         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
26865         (power_letter): Renamed from suffixes.
26866         (generate_suffix_backwards): Remove.
26867         (adjust_value): Now takes int style (because of human.h changes)
26868         and long double value (for greater precision on some platforms).
26869         (group_number): New function.
26870         (human_readable): Use it.  Use integer options, not enum.
26871         Put the options before the sizes in the arg list.
26872         Support all the new options.
26873         The old human_readable function has been removed;
26874         use inttostr.h instead.
26875         (human_readable, default_block_size, humblock):
26876         Use uintmax_t, not int, for block sizes.
26877         (human_readable_inexact, block_size_types): Remove.
26878         (block_size_opts): New constant.
26879         (human_options): Renamed from human_block_size, with new signature
26880         that allows block sizes up to UINTMAX_MAX.  All callers changed.
26881         * lib/human.h: Add copyright and authorship notice.
26882         Include <limits.h> and <stdbool.h> unconditionally.
26883         (PARAMS): Remove.  All uses removed.
26884         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
26885         (enum human_inexact_style): Remove tag; now a nameless enum.
26886         (human_floor, human_ceiling, human_round_to_even): Now have
26887         values 2, 0, 1 rather than -1, 1, 0.
26888         (human_group_digits, human_suppress_point_zero, human_autoscale,
26889         human_base_1024, human_SI, human_B): New constants.
26890         (human_readable_inexact, human_block_size): Remove.
26891         (human_readable): Size args are now uintmax_t, not int.
26892         (human_options): New decl.
26893
26894         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
26895         unnecessary now that we assume C89 or better.  This change
26896         imported from coreutils.
26897
26898         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
26899         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
26900         in the 2003-05-30 sync from glibc.
26901
26902         .h files should stand alone, but we shouldn't include <sys/types.h>
26903         if we can get away with just <stddef.h>.
26904
26905         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
26906         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
26907         rather than <sys/types.h>, as we merely need size_t.
26908         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
26909         to get size_t.
26910         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
26911         Include <stdio.h>, to get FILE.
26912         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
26913         memcasecmp.h has included <stddef.h> and all we need is size_t.
26914         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
26915         our interface, instead of including <sys/types.h>
26916
26917 2003-06-04  Paul Eggert  <eggert@twinsun.com>
26918
26919         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
26920         now, as glibc mktime is buggy on non-glibc systems.
26921
26922 2003-06-03  Karl Berry  <karl@gnu.org>
26923
26924         * config/config.sub: update from prep.
26925
26926 2003-06-02  Paul Eggert  <eggert@twinsun.com>
26927
26928         [from coreutils]
26929         Fix some minor time-related bugs with POSIX time arguments.
26930         Some valid time stamps were being rejected (notably -1, and
26931         time stamps before 1900 on 64-bit hosts).  And some invalid
26932         time stamps were being accepted, e.g. September 31.
26933
26934         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
26935         that we can return (time_t) -1 successfully.
26936         * lib/posixtm.c: Likewise.
26937         [HAVE_STDBOOL_H]: Include <stdbool.h>.
26938         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
26939         (t): Remove static var.
26940         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
26941         of static var.  All uses changed.
26942         (year): Do not reject years before 1900; they can occur with
26943         64-bit time_t.
26944         (posix_time_parse): Do not check for out-of-range components;
26945         that is now the caller's responsibility, since our checks were
26946         only approximations.
26947         (posixtime): Use mktime to check for out-of-range components,
26948         since it knows them exactly.
26949         If mktime returns (time_t) -1, check whether an error actually occurred
26950         by invoking localtime on -1.
26951         (main) [TEST_POSIXTIME]: Check for input data errors, and report
26952         posixtime failures better.
26953         Improve the test data (in comments only).
26954
26955 2003-06-02  Karl Berry  <karl@gnu.org>
26956
26957         * config/mkinstalldirs (version): new variable.
26958         (--version): new option.
26959         (usage): improve message.
26960
26961 2003-05-30  Karl Berry  <karl@gnu.org>
26962
26963         * lib/mktime.c: update from libc.
26964
26965 2003-05-30  Bruno Haible  <bruno@clisp.org>
26966
26967         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
26968         * config/config.rpath: Upgrade to gettext-0.12.1.
26969
26970 2003-05-30  Bruno Haible  <bruno@clisp.org>
26971
26972         * m4/gettext.m4: Upgrade to gettext-0.12.1.
26973         * m4/nls.m4: New file, from gettext-0.12.1.
26974         * m4/po.m4: New file, from gettext-0.12.1.
26975         * m4/progtest.m4: Upgrade to gettext-0.12.1.
26976
26977 2003-05-30  Bruno Haible  <bruno@clisp.org>
26978
26979         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
26980         * lib/localcharset.h: Likewise.
26981         * lib/localcharset.c: Likewise.
26982
26983 2003-05-29  Karl Berry  <karl@gnu.org>
26984
26985         * config/config.rpath: update from gettext.
26986
26987 2003-05-28  Paul Eggert  <eggert@twinsun.com>
26988
26989         Assume the headers required for C89 freestanding compilers.
26990         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
26991         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
26992         * m4/human.m4 (gl_HUMAN): Likewise.
26993         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
26994         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
26995         * m4/userspec.m4 (gl_USERSPEC): Likewise.
26996         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
26997         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26998         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
26999
27000 2003-05-28  Paul Eggert  <eggert@twinsun.com>
27001
27002         Assume the headers required for C89 freestanding compilers.
27003         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
27004         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
27005         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
27006         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
27007         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
27008         define, since <limits.h> is guaranteed to do that.
27009         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
27010         * lib/exclude.c: Include <stdbool.h> unconditionally.
27011         * lib/tempname.c: Include <stddef.h> unconditionally.
27012         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
27013         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
27014         <stddef.h> does that.
27015         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
27016         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
27017         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
27018         needed.
27019         * lib/xstrtol.c: Likewise.
27020         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
27021         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
27022
27023         * lib/addext.c (addext): Use assignment rather than cast, to avoid
27024         warnings on some platforms.
27025
27026         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
27027         arbitrarily.
27028
27029 2003-05-26  Jim Meyering  <jim@meyering.net>
27030
27031         Merge in a change from coreutils:
27032         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
27033         that is guaranteed to be `no'.  Use `no_such_member' to indicate
27034         that condition, rather than `-1' which is slightly misleading.
27035         Change the name of the cache variable to have the gl_ prefix.
27036         Prompted by a patch from Richard Dawe for DJGPP.
27037
27038 2003-05-24  Karl Berry  <karl@gnu.org>
27039
27040         * config/config.guess: update from prep.
27041
27042 2003-05-22  Karl Berry  <karl@gnu.org>
27043
27044         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
27045
27046 2003-05-20  Karl Berry  <karl@gnu.org>
27047
27048         * config/config.guess: update from prep.
27049
27050 2003-05-18  Karl Berry  <karl@gnu.org>
27051
27052         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
27053         might actually be set by the user.
27054
27055         * config/depcomp, install-sh, mdate-sh: update from automake.
27056
27057 2003-05-17  Bruno Haible  <bruno@clisp.org>
27058
27059         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
27060         invalid expansion for AC_EGREP_CPP.
27061         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
27062         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
27063         Suggested by Akim Demaille <akim@epita.fr> in
27064         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
27065
27066 2003-05-12  Jim Meyering  <jim@meyering.net>
27067
27068         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
27069         the space-padded-by-default conversion specifiers, %e, %k, %l.
27070
27071 2003-05-12  Bruno Haible  <bruno@clisp.org>
27072
27073         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
27074         the string is longer than 4 KB.
27075
27076 2003-05-11  Karl Berry  <karl@gnu.org>
27077
27078         * config/config.{guess,sub}: update from prep.
27079
27080 2003-05-09  Bruno Haible  <bruno@clisp.org>
27081
27082         * modules/error: Add m4/strerror_r.m4 to file list.
27083
27084 2003-05-03  Bruno Haible  <bruno@clisp.org>
27085
27086         Upgrade to Unicode-4.0.
27087         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
27088         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
27089         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
27090         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
27091         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
27092         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
27093         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
27094         Change width of U+E0100..U+E01EF from 1 to 0.
27095
27096 2003-04-25  Jim Meyering  <jim@meyering.net>
27097
27098         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
27099         of type size_t, not int.
27100
27101 2003-04-25  Bruno Haible  <bruno@clisp.org>
27102
27103         * lib/copy-file.c: Include <stddef.h>, for size_t.
27104
27105 2003-04-21  Paul Eggert  <eggert@twinsun.com>
27106
27107         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
27108         code which expansion is under static control.  Patch imported from
27109         Akim Demaille's patch to Bison; see
27110         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
27111
27112 2003-04-14  Bruno Haible  <bruno@clisp.org>
27113
27114         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
27115
27116 2003-04-11  Jim Meyering  <jim@meyering.net>
27117
27118         Merge changes from Coreutils.
27119
27120         2003-03-22  Jim Meyering  <jim@meyering.net>
27121
27122         * lib/strftime.c (widen): Cast alloca return value to proper type.
27123
27124         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
27125
27126         From GNU libc.
27127         * lib/strftime.c (my_strftime): Handle very large width
27128         specifications for numeric values correctly.  Improve checks for
27129         overflow.
27130
27131         2003-01-19  Jim Meyering  <jim@meyering.net>
27132
27133         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
27134         definitions.
27135         (nl_get_alt_digit) [! defined my_strftime]: Define.
27136         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
27137         _nl_get_alt_digit and _nl_get_walt_digit.
27138
27139         * lib/strftime.c (my_strftime): Merge in locale-related changes from
27140         libc. These changes have no effect outside of _LIBC.
27141
27142 2003-04-10  Bruno Haible  <bruno@clisp.org>
27143
27144         * modules/findprog: New file.
27145         * MODULES.html.sh (func_all_modules): Add it.
27146
27147 2003-04-10  Bruno Haible  <bruno@clisp.org>
27148
27149         * m4/findprog.m4: New file.
27150         * m4/eaccess.m4: New file.
27151
27152 2003-04-10  Bruno Haible  <bruno@clisp.org>
27153
27154         * lib/findprog.h: New file, from GNU gettext.
27155         * lib/findprog.c: New file, from GNU gettext.
27156
27157 2003-04-05  Jim Meyering  <jim@meyering.net>
27158
27159         Merge changes from Coreutils.
27160
27161         * lib/exclude.h (PARAMS): Remove definition and uses.
27162         * lib/exclude.c: Remove uses of `PARAMS'.
27163
27164         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
27165         Add test-cases for DOS filenames. Declare program_name.
27166         (main): Set up program_name.  Patch by Rich Dawe.
27167
27168         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
27169         error from mntctl.
27170         Use mntctl's return value to drive the entry-processing loop, since
27171         we can't rely on the value of the vmt_length member in the last
27172         entry.  On some systems doing so could result in exhausting
27173         virtual memory.  Based in part on a patch from Mike Jetzer.
27174
27175 2003-04-04  Bruno Haible  <bruno@clisp.org>
27176
27177         * modules/linebreak: New file.
27178         * MODULES.html.sh (func_all_modules): Add it.
27179
27180 2003-04-04  Bruno Haible  <bruno@clisp.org>
27181
27182         * m4/linebreak.m4: New file.
27183
27184 2003-04-04  Bruno Haible  <bruno@clisp.org>
27185
27186         * lib/linebreak.h: New file, from GNU gettext.
27187         * lib/linebreak.c: New file, from GNU gettext with slight
27188         modifications.
27189         * lib/lbrkprop.h: New file, from GNU gettext.
27190
27191 2003-04-03  Bruno Haible  <bruno@clisp.org>
27192
27193         * modules/utf8-ucs4: New file.
27194         * modules/utf16-ucs4: New file.
27195         * modules/ucs4-utf8: New file.
27196         * modules/ucs4-utf16: New file.
27197         * MODULES.html.sh (func_all_modules): Add them.
27198
27199 2003-04-03  Bruno Haible  <bruno@clisp.org>
27200
27201         * m4/utf-ucs4.m4: New file.
27202         * m4/ucs4-utf.m4: New file.
27203
27204 2003-04-03  Bruno Haible  <bruno@clisp.org>
27205
27206         * lib/utf8-ucs4.h: New file, from GNU gettext.
27207         * lib/utf16-ucs4.h: New file, from GNU gettext.
27208         * lib/ucs4-utf8.h: New file, from GNU gettext.
27209         * lib/ucs4-utf16.h: New file, from GNU gettext.
27210
27211 2003-04-02  Bruno Haible  <bruno@clisp.org>
27212
27213         * modules/binary-io: New file.
27214         * MODULES.html.sh (func_all_modules): Add it.
27215
27216 2003-04-02  Bruno Haible  <bruno@clisp.org>
27217
27218         * lib/binary-io.h: New file, from GNU gettext.
27219
27220 2003-04-01  Bruno Haible  <bruno@clisp.org>
27221
27222         * modules/pathname: New file.
27223         * MODULES.html.sh (func_all_modules): Add it.
27224
27225 2003-04-01  Bruno Haible  <bruno@clisp.org>
27226
27227         * lib/pathname.h: New file, from GNU gettext.
27228         * lib/concatpath.c: New file, from GNU gettext.
27229
27230 2003-03-30  Bruno Haible  <bruno@clisp.org>
27231
27232         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
27233
27234 2003-03-30  Bruno Haible  <bruno@clisp.org>
27235
27236         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
27237         function chown() doesn't exist.
27238
27239 2003-03-28  Bruno Haible  <bruno@clisp.org>
27240
27241         * modules/copy-file: New file.
27242         * MODULES.html.sh (func_all_modules): Add it.
27243
27244 2003-03-28  Bruno Haible  <bruno@clisp.org>
27245
27246         * m4/copy-file.m4: New file.
27247
27248 2003-03-28  Bruno Haible  <bruno@clisp.org>
27249
27250         * lib/copy-file.h: New file, from GNU gettext.
27251         * lib/copy-file.c: New file, from GNU gettext.
27252
27253 2003-03-18  Jim Meyering  <jim@meyering.net>
27254
27255         * lib/quote.c (quote_n): Fix typo in comment.
27256
27257 2003-03-18  Bruno Haible  <bruno@clisp.org>
27258
27259         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
27260         checking.
27261         * m4/onceonly_2_57.m4: Likewise.
27262
27263 2003-03-17  Bruno Haible  <bruno@clisp.org>
27264
27265         * m4/onceonly.m4: Require autoconf 2.54 or newer.
27266         (m4_quote): Remove macro.
27267         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
27268
27269 2003-03-14  Jim Meyering  <jim@meyering.net>
27270
27271         Merge changes from Coreutils.
27272         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
27273         to be const, in order to avoid warnings.
27274         (obstack_room): Likewise.
27275         (obstack_empty_p): Likewise.
27276
27277 2003-03-14  Bruno Haible  <bruno@clisp.org>
27278
27279         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
27280         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
27281
27282 2003-03-13  Paul Eggert  <eggert@twinsun.com>
27283
27284         Merge changes from Bison.
27285         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
27286         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
27287         when compiling Bison 1.875's `bitset bset = obstack_alloc
27288         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
27289         * lib/hash.c: Include <stdbool.h> unconditionally.
27290
27291 2003-03-13  Paul Eggert  <eggert@twinsun.com>
27292
27293         * m4/onceonly.m4 (m4_quote): New macro.
27294         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
27295         Quote AC_FOREACH variable-expansions properly.
27296
27297 2003-03-13  Paul Eggert  <eggert@twinsun.com>
27298
27299         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
27300
27301 2003-03-09  Paul Eggert  <eggert@twinsun.com>
27302
27303         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
27304         Reported by Bruce Becker; see:
27305         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
27306
27307 2003-03-03  Paul Eggert  <eggert@twinsun.com>
27308             Bruno Haible  <bruno@clisp.org>
27309
27310         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
27311         Reported by John Hughes, see
27312         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
27313
27314 2003-02-20  Bruno Haible  <bruno@clisp.org>
27315
27316         * MODULES.html.sh (func_all_modules): Add poll.
27317
27318 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
27319
27320         * modules/poll: New file.
27321
27322 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
27323
27324         * lib/poll_.h: New file.
27325         * lib/poll.c: New file.
27326
27327 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
27328
27329         * m4/poll.m4: New file.
27330
27331 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
27332
27333         * modules/mathl: New file.
27334
27335 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
27336
27337         * lib/mathl.h: New file.
27338         * lib/acosl.c: New file.
27339         * lib/asinl.c: New file.
27340         * lib/atanl.c: New file.
27341         * lib/ceill.c: New file.
27342         * lib/cosl.c: New file.
27343         * lib/expl.c: New file.
27344         * lib/floorl.c: New file.
27345         * lib/frexpl.c: New file.
27346         * lib/ldexpl.c: New file.
27347         * lib/logl.c: New file.
27348         * lib/sincosl.c: New file.
27349         * lib/sinl.c: New file.
27350         * lib/sqrtl.c: New file.
27351         * lib/tanl.c: New file.
27352         * lib/trigl.c: New file.
27353         * lib/trigl.h: New file.
27354
27355 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
27356
27357         * m4/mathl.m4: New file.
27358
27359 2003-02-18  Bruno Haible  <bruno@clisp.org>
27360
27361         * MODULES.html.sh (func_all_modules): Add mathl.
27362
27363 2003-02-17  Bruno Haible  <bruno@clisp.org>
27364
27365         * modules/mkdtemp: New module.
27366         * MODULES.html.sh (func_all_modules): Add it.
27367
27368 2003-02-17  Bruno Haible  <bruno@clisp.org>
27369
27370         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
27371
27372 2003-02-17  Bruno Haible  <bruno@clisp.org>
27373
27374         * lib/mkdtemp.h: New file, from GNU gettext.
27375         * lib/mkdtemp.c: New file, from GNU gettext.
27376
27377 2003-02-02  Jim Meyering  <jim@meyering.net>
27378
27379         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
27380         e.g. glibc-2.2.93.
27381
27382 2003-01-31  Bruno Haible  <bruno@clisp.org>
27383
27384         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
27385         'rpl_rename'.
27386         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
27387         'rpl_strnlen'.
27388         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
27389         'rpl_strtod'.
27390         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
27391         'rpl_utime'.
27392
27393 2003-01-31  Bruno Haible  <bruno@clisp.org>
27394
27395         * lib/rename.c: #undef rename before defining rpl_rename.
27396         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
27397
27398 2003-01-30  Bruno Haible  <bruno@clisp.org>
27399
27400         * modules/vasnprintf, modules/vasprintf: New modules.
27401         * MODULES.html.sh (func_all_modules): Add them.
27402
27403 2003-01-30  Bruno Haible  <bruno@clisp.org>
27404
27405         * m4/signed.m4: New file, from GNU gettext.
27406         * m4/longdouble.m4: New file, from GNU gettext.
27407         * m4/wchar_t.m4: New file, from GNU gettext.
27408         * m4/wint_t.m4: New file, from GNU gettext.
27409         * m4/vasnprintf.m4: New file.
27410         * m4/vasprintf.m4: New file.
27411
27412 2003-01-30  Bruno Haible  <bruno@clisp.org>
27413
27414         * lib/printf-args.h: New file, from GNU gettext.
27415         * lib/printf-args.c: New file, from GNU gettext.
27416         * lib/printf-parse.h: New file, from GNU gettext.
27417         * lib/printf-parse.c: New file, from GNU gettext.
27418         * lib/vasnprintf.h: New file, from GNU gettext.
27419         * lib/vasnprintf.c: New file, from GNU gettext.
27420         * lib/asnprintf.c: New file, from GNU gettext.
27421         * lib/vasprintf.h: New file, from GNU gettext with modifications.
27422         * lib/vasprintf.c: New file, from GNU gettext.
27423         * lib/asprintf.c: New file, from GNU gettext.
27424
27425 2003-01-29  Bruno Haible  <bruno@clisp.org>
27426
27427         * modules/stpncpy: New module.
27428         * MODULES.html.sh (func_all_modules): Add it.
27429
27430 2003-01-29  Bruno Haible  <bruno@clisp.org>
27431
27432         * m4/stpncpy.m4: New file.
27433
27434 2003-01-29  Bruno Haible  <bruno@clisp.org>
27435
27436         * lib/stpncpy.h: New file, from GNU gettext with modifications.
27437         * lib/stpncpy.c: New file, from GNU gettext with modifications.
27438
27439 2003-01-28  Bruno Haible  <bruno@clisp.org>
27440
27441         * modules/c-ctype: New module.
27442         * MODULES.html.sh (func_all_modules): Add it.
27443
27444 2003-01-28  Bruno Haible  <bruno@clisp.org>
27445
27446         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
27447         Paul Eggert.
27448         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
27449         Paul Eggert.
27450
27451 2003-01-27  Bruno Haible  <bruno@clisp.org>
27452
27453         * modules/xsetenv: New module.
27454         * MODULES.html.sh (func_all_modules): Add it.
27455
27456 2003-01-27  Bruno Haible  <bruno@clisp.org>
27457
27458         * lib/xsetenv.h: New file, from GNU gettext.
27459         * lib/xsetenv.c: New file, from GNU gettext.
27460
27461 2003-01-23  Jim Meyering  <jim@meyering.net>
27462
27463         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
27464         from working on systems without dirfd (at least Irix and OSF1/Tru64).
27465
27466 2003-01-23  Bruno Haible  <bruno@clisp.org>
27467
27468         * modules/minmax: New module.
27469         * MODULES.html.sh (func_all_modules): Add it.
27470
27471 2003-01-23  Bruno Haible  <bruno@clisp.org>
27472
27473         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
27474         Eggert.
27475
27476 2003-01-22  Bruno Haible  <bruno@clisp.org>
27477
27478         * modules/exit: New module.
27479         * MODULES.html.sh (func_all_modules): Add it.
27480
27481 2003-01-22  Bruno Haible  <bruno@clisp.org>
27482
27483         * lib/exit.h: New file, from GNU gettext.
27484
27485 2003-01-19  Bruno Haible  <bruno@clisp.org>
27486
27487         * gnulib-tool: Recognize option --extract-maintainer.
27488         (func_get_maintainer): New function.
27489         * modules/*: Add Maintainer entry.
27490
27491 2003-01-16  Jim Meyering  <jim@meyering.net>
27492
27493         * m4/regex.m4: The `regex' struct is both input and output.
27494         Initialize it before each use.  Patch by Tim Waugh.
27495
27496 2003-01-16  Bruno Haible  <bruno@clisp.org>
27497
27498         * MODULES.html.sh: Add a table of contents. Add the module name as
27499         leftmost column. Add hyperlinks.
27500
27501 2003-01-15  Bruno Haible  <bruno@clisp.org>
27502
27503         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
27504
27505 2003-01-15  Bruno Haible  <bruno@clisp.org>
27506
27507         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
27508         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
27509         suffix.
27510
27511 2003-01-15  Bruno Haible  <bruno@clisp.org>
27512
27513         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
27514
27515 2003-01-15  Bruno Haible  <bruno@clisp.org>
27516
27517         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
27518         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
27519
27520 2003-01-14  Jim Meyering  <jim@meyering.net>
27521
27522         * lib/same.c (same_name): Tweak a comment.
27523
27524 2003-01-14  Bruno Haible  <bruno@clisp.org>
27525
27526         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
27527         when a string comparison is sufficient.
27528
27529 2003-01-14  Bruno Haible  <bruno@clisp.org>
27530
27531         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
27532         'unsigned int'.
27533
27534 2003-01-14  Bruno Haible  <bruno@clisp.org>
27535
27536         * lib/hash-pjw.c: Add comment about low quality of this function.
27537
27538 2003-01-13  Bruno Haible  <bruno@clisp.org>
27539
27540         * modules/stpcpy: Distribute lib/stpcpy.h.
27541         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
27542
27543 2003-01-13  Bruno Haible  <bruno@clisp.org>
27544
27545         * modules/*: Add a description.
27546         * modules/strpbrk: Fix Makefile.am snippet.
27547         * modules/strtoimax: Fix dependencies.
27548         * modules/strtoumax: Likewise.
27549
27550 2003-01-13  Bruno Haible  <bruno@clisp.org>
27551
27552         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
27553         * modules/alloca (Makefile.am): All object files depend on alloca.h.
27554         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
27555
27556 2003-01-13  Bruno Haible  <bruno@clisp.org>
27557
27558         * gnulib-tool (func_create_testdir): Store config/* files in the main
27559         directory.
27560         * config.rpath: Move to ...
27561         * config/config.rpath: ... here.
27562         * modules/gettext: Contains config/config.rpath, not config.rpath.
27563         * modules/iconv: Likewise.
27564
27565 2003-01-12  Paul Eggert  <eggert@twinsun.com>
27566
27567         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27568         to avoid collisions with libcurses and libreadline.
27569
27570         * m4/getstr.m4: Remove.
27571         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
27572
27573 2003-01-12  Paul Eggert  <eggert@twinsun.com>
27574
27575         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27576         to avoid collisions with libcurses and libreadline.
27577
27578         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
27579         * lib/getstr.h, getstr.c: Remove.
27580         * lib/getline.c: Include "getline.h", to check interface.
27581         Move body of old getstr.c here: this defines MIN_CHUNK and
27582         declares getdelim2, which is renamed from getstr.
27583         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
27584
27585         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
27586         All uses changed.
27587         * lib/linebuffer.h: Likewise.
27588         (readline): Remove backward-compatibility macro.
27589
27590 2003-01-12  Paul Eggert  <eggert@twinsun.com>
27591
27592         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27593         to avoid collisions with libcurses and libreadline.
27594         * getstr: Remove.
27595         * MODULES.html.sh: Remove getstr.
27596         * modules/getline: Depend on unlocked-io, not getstr.
27597
27598 2003-01-12  Jim Meyering  <jim@meyering.net>
27599
27600         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
27601
27602 2003-01-10  Bruno Haible  <bruno@clisp.org>
27603
27604         * modules/alloca: Change Makefile.am requirements. Simplify Include
27605         requirements. Add lib/alloca_.h to file list.
27606
27607 2003-01-10  Bruno Haible  <bruno@clisp.org>
27608
27609         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
27610
27611 2003-01-10  Bruno Haible  <bruno@clisp.org>
27612
27613         * lib/alloca_.h: New file.
27614         * lib/getdate.y: Unconditionally include alloca.h.
27615         * lib/makepath.c: Likewise.
27616         * lib/setenv.c: Likewise.
27617         * lib/userspec.c: Likewise.
27618
27619 2003-01-09  Karl Berry  <karl@gnu.org>
27620
27621         * MODULES.html.sh: include `dirname $0` in PATH, to find
27622         gnulib-tool.
27623
27624 2003-01-09  Bruno Haible  <bruno@clisp.org>
27625
27626         * modules/stdbool: Change configure.ac, Makefile.am requirements.
27627         Simplify Include requirements. Add lib/stdbool.h.in to file list.
27628
27629 2003-01-09  Bruno Haible  <bruno@clisp.org>
27630
27631         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
27632
27633 2003-01-09  Bruno Haible  <bruno@clisp.org>
27634
27635         * lib/stdbool.h.in: New file.
27636
27637 2003-01-09  Bruno Haible  <bruno@clisp.org>
27638
27639         * gnulib-tool (func_all_modules): Ignore files ending in ~.
27640         * MODULES.html.sh: Likewise.
27641
27642 2003-01-08  Jim Meyering  <jim@meyering.net>
27643
27644         * lib/full-write.c: Undefine and define-away `const' after inclusion
27645         of errno.h, not before.  Suggestion from Bruno Haible.
27646
27647 2003-01-08  Bruno Haible  <bruno@clisp.org>
27648
27649         * modules/full-read: Depend on full-write.
27650
27651 2003-01-08  Bruno Haible  <bruno@clisp.org>
27652
27653         * lib/safe-read.c: Include specification header first, to ensure its
27654         selfcontainedness.
27655         * lib/full-write.c: Likewise.
27656
27657 2003-01-07  Jim Meyering  <jim@meyering.net>
27658
27659         * lib/full-write.c: Rework so that it may serve to define full_read,
27660         too.
27661         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
27662
27663 2003-01-07  Bruno Haible  <bruno@clisp.org>
27664
27665         * lib/strtoimax.c: Include <stdint.h> as an alternative to
27666         <inttypes.h>.
27667         * lib/xstrtol.h: Likewise.
27668         * lib/xstrtoimax.c: Likewise.
27669         * lib/xstrtoumax.c: Likewise.
27670         * lib/human.h: Likewise.
27671
27672         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
27673         on systems that have <inttypes.h> but not <stdint.h>.
27674
27675 2003-01-07  Bruno Haible  <bruno@clisp.org>
27676
27677         * MODULES.html.sh: Add copyright notice.
27678         (missed_files): Omit CVS directory entries.
27679         (func_module): Make it work with sed-3.02.
27680         * MODULES.txt: Remove file.
27681
27682 2003-01-06  Jim Meyering  <jim@meyering.net>
27683
27684         * lib/version-etc.c: Update year in translatable copyright string.
27685
27686 2003-01-03  Karl Berry  <karl@gnu.org>
27687
27688         * config/config.{guess,sub}: update from prep.
27689
27690 2003-01-02  Karl Berry  <karl@gnu.org>
27691
27692         * doc/COPYING.DOC: belatedly updated to 1.2.
27693
27694 2003-01-01  Karl Berry  <karl@gnu.org>
27695
27696         * gnulib-tool (func_verify_module): report module name $module in
27697         error message, not $1.
27698         * gnulib-tool (create-testdir): don't complain if destdir couldn't
27699         be created, only if it doesn't exist.
27700         * gnulib-tool (last_checkin_date): don't expand the $Date here.
27701
27702 2002-12-31  Paul Eggert  <eggert@twinsun.com>
27703
27704         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
27705
27706 2002-12-31  Paul Eggert  <eggert@twinsun.com>
27707
27708         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
27709         memcmp if strcoll doesn't work.
27710
27711 2002-12-31  Bruno Haible  <bruno@clisp.org>
27712
27713         * lib/utime.c (utime_null): No need to call ftruncate if the file was
27714         nonempty.
27715
27716 2002-12-31  Bruno Haible  <bruno@clisp.org>
27717
27718         * lib/memcoll.c (STRCOLL): New macro.
27719         (memcoll): Use it.
27720
27721 2002-12-31  Bruno Haible  <bruno@clisp.org>
27722
27723         * lib/localcharset.h: New file.
27724         * lib/localcharset.c: Include it.
27725         * lib/unicodeio.c: Likewise.
27726
27727 2002-12-31  Bruno Haible  <bruno@clisp.org>
27728
27729         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
27730         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
27731
27732 2002-12-31  Bruno Haible  <bruno@clisp.org>
27733
27734         * lib/getline.h: Include <stddef.h>, for size_t.
27735
27736         * lib/unicodeio.h: Include <stddef.h>, for size_t.
27737         * lib/unicodeio.c: Don't include <stddef.h>.
27738
27739 2002-12-31  Bruno Haible  <bruno@clisp.org>
27740
27741         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
27742         HAVE_TM_ZONE.
27743
27744 2002-12-24  Karl Berry  <karl@gnu.org>
27745
27746         * config/config.guess: update from prep.
27747
27748 2002-12-24  Bruno Haible  <bruno@clisp.org>
27749
27750         General infrasructure.
27751         * m4/README: Rewritten.
27752         * m4/onceonly.m4: New file.
27753         * m4/onceonly_2_57.m4: New file.
27754
27755         Module atexit.
27756         * m4/atexit.m4: New file.
27757
27758         Module strtod.
27759         * m4/strtod.m4: New file.
27760
27761         Module strtol.
27762         * m4/strtol.m4: New file.
27763
27764         Module strtoul.
27765         * m4/strtoul.m4: New file.
27766
27767         Module memchr.
27768         * m4/memchr.m4: New file.
27769
27770         Module memcmp.
27771         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
27772         (jm_FUNC_MEMCMP): Invoke it.
27773
27774         Module memcpy.
27775         * m4/memcpy.m4: New file.
27776
27777         Module memmove.
27778         * m4/memmove.m4: New file.
27779
27780         Module memset.
27781         * m4/memset.m4: New file.
27782
27783         Module strcspn.
27784         * m4/strcspn.m4: New file.
27785
27786         Module strpbrk.
27787         * m4/strpbrk.m4: New file.
27788
27789         Module strstr.
27790         * m4/strstr.m4: New file.
27791
27792         Module strerror.
27793         * m4/strerror.m4: New file.
27794
27795         Module mktime.
27796         * m4/mktime.m4: Renamed from jm-mktime.m4.
27797         (gl_PREREQ_MKTIME): New macro.
27798         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
27799
27800         Module malloc.
27801         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
27802         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
27803         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
27804
27805         Module realloc.
27806         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
27807         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
27808         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
27809
27810         Module strftime.
27811         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
27812         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
27813         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
27814         gl_TM_GMTOFF.
27815         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
27816
27817         Module xalloc.
27818         * m4/xalloc.m4: New file.
27819
27820         Module alloca.
27821         * m4/alloca.m4: New file.
27822
27823         Module putenv.
27824         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
27825         (jm_FUNC_PUTENV): Invoke it.
27826
27827         Module setenv.
27828         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
27829         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
27830         when invoked twice.
27831         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
27832         gt_FUNC_SETENV.
27833
27834         Module memrchr.
27835         * m4/memrchr.m4: New file.
27836
27837         Module stpcpy.
27838         * m4/stpcpy.m4: New file.
27839
27840         Module strcase.
27841         * m4/strcase.m4: New file.
27842
27843         Module strdup.
27844         * m4/strdup.m4: New file.
27845
27846         Module strnlen.
27847         * m4/strnlen.m4: New file.
27848
27849         Module strndup.
27850         * m4/strndup.m4: New file.
27851
27852         Module xstrtod.
27853         * m4/xstrtod.m4: New file.
27854
27855         Module xstrtol.
27856         * m4/xstrtol.m4: New file.
27857
27858         Module getdate.
27859         * m4/getdate.m4: New file.
27860
27861         Module unlocked-io.
27862         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
27863         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
27864         * m4/jm-glibc-io.m4n: Remove file.
27865
27866         Module long-options.
27867         * m4/long-options.m4: New file.
27868
27869         Module md5.
27870         * m4/md5.m4: New file.
27871
27872         Module sha.
27873         * m4/sha.m4: New file.
27874
27875         Module getstr.
27876         * m4/getstr.m4: New file.
27877
27878         Module getline.
27879         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
27880         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
27881         <sys/types.h>, for size_t. Use the function name gnu_getline, not
27882         simply getline. Infoke gl_PREREQ_GETLINE.
27883
27884         Module obstack.
27885         * m4/obstack.m4: New file.
27886
27887         Module hash.
27888         * m4/hash.m4: New file.
27889
27890         Module readtokens.
27891         * m4/readtokens.m4: New file.
27892
27893         Module strverscmp.
27894         * m4/strverscmp.m4: New file.
27895
27896         Module stdbool.
27897         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
27898         OSF/1.
27899
27900         Module strtoll.
27901         * m4/strtoll.m4: New file.
27902
27903         Module strtoull.
27904         * m4/strtoull.m4: New file.
27905
27906         Module strtoimax.
27907         * m4/strtoimax.m4: New file.
27908
27909         Module strtoumax.
27910         * m4/strtoumax.m4: New file.
27911
27912         Module xstrtoimax.
27913         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
27914         jm_AC_PREREQ_XSTRTOIMAX.
27915         Moved the strtol prerequisites to strtol.m4.
27916         Moved the strtoll prerequisites to strtoll.m4.
27917         Moved the strtoimax prerequisites to strtoimax.m4.
27918
27919         Module xstrtoumax.
27920         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
27921         jm_AC_PREREQ_XSTRTOUMAX.
27922         Moved the strtoul prerequisites to strtoul.m4.
27923         Moved the strtoull prerequisites to strtoull.m4.
27924         Moved the strtoumax prerequisites to strtoumax.m4.
27925
27926         Module chown.
27927         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
27928         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
27929
27930         Module dup2.
27931         * m4/dup2.m4: New file.
27932
27933         Module ftruncate.
27934         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
27935         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
27936
27937         Module getgroups.
27938         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
27939         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
27940
27941         Module gettimeofday.
27942         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
27943         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
27944         gl_PREREQ_GETTIMEOFDAY.
27945
27946         Module mkdir.
27947         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
27948         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
27949
27950         Module mkstemp.
27951         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
27952         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
27953         jm_AC_TYPE_UINTMAX_T.
27954         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
27955
27956         Module stat.
27957         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
27958         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
27959
27960         Module lstat.
27961         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
27962         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
27963
27964         Module timespec.
27965         * m4/timespec.m4 (gl_TIMESPEC): New macro.
27966         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
27967         * m4/st_mtim.m4: Indentation.
27968
27969         Module nanosleep.
27970         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
27971         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
27972         gl_PREREQ_NANOSLEEP.
27973
27974         Module regex.
27975         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
27976         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
27977         (gl_REGEX): New macro.
27978
27979         Module rename.
27980         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
27981         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
27982
27983         Module rmdir.
27984         * m4/rmdir.m4: New file.
27985
27986         Module utime.
27987         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
27988         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
27989         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
27990
27991         Module dirname.
27992         * m4/dirname.m4: New file.
27993
27994         Module getopt.
27995         * m4/getopt.m4: New file.
27996
27997         Module unistd-safer.
27998         * m4/unistd-safer.m4: New file.
27999
28000         Module fnmatch.
28001         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
28002         declaration.
28003         (gl_PREREQ_FNMATCH_EXTRA): New macro.
28004         (gl_FUNC_FNMATCH_POSIX): New macro.
28005         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
28006         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
28007         simply fnmatch.
28008
28009         Module exclude.
28010         * m4/exclude.m4: New file.
28011
28012         Module human.
28013         * m4/human.m4: New file.
28014
28015         Module acl.
28016         * m4/acl.m4: Nop.
28017
28018         Module backupfile.
28019         * m4/backupfile.m4: New file.
28020         * m4/d-ino.m4: Indentation.
28021
28022         Module fsusage.
28023         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
28024         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
28025         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
28026
28027         Module dirfd.
28028         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
28029         requirements.
28030
28031         Module euidaccess.
28032         * m4/euidaccess.m4: New file.
28033
28034         Module file-type.
28035         * m4/file-type.m4: New file.
28036
28037         Module fileblocks.
28038         * m4/fileblocks.m4: New file.
28039
28040         Module filemode.
28041         * m4/filemode.m4: New file.
28042
28043         Module isdir.
28044         * m4/isdir.m4: New file.
28045
28046         Module lchown.
28047         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
28048         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
28049
28050         Module makepath.
28051         * m4/makepath.m4: New file.
28052
28053         Module modechange.
28054         * m4/modechange.m4: New file.
28055
28056         Module mountlist.
28057         * m4/mountlist.m4: New file.
28058         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
28059         Indentation.
28060
28061         Module path-concat.
28062         * m4/path-concat.m4: New file.
28063
28064         Module pathmax.
28065         * m4/pathmax.m4: New file.
28066
28067         Module same.
28068         * m4/same.m4: New file.
28069
28070         Module save-cwd.
28071         * m4/save-cwd.m4: New file.
28072
28073         Module savedir.
28074         * m4/savedir.m4: New file.
28075
28076         Module xgetcwd.
28077         * m4/xgetcwd.m4: New file.
28078         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
28079
28080         Module xreadlink.
28081         * m4/xreadlink.m4: New file.
28082
28083         Module safe-read.
28084         * m4/safe-read.m4: New file.
28085
28086         Module safe-write.
28087         * m4/safe-write.m4: New file.
28088
28089         Module closeout.
28090         * m4/closeout.m4: New file.
28091
28092         Module stdio-safer.
28093         * m4/stdio-safer.m4: New file.
28094
28095         Module getpass.
28096         * m4/getpass.m4: New file.
28097
28098         Module getugroups.
28099         * m4/getugroups.m4: New file.
28100
28101         Module group-member.
28102         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
28103         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
28104
28105         Module idcache.
28106         * m4/idcache.m4: New file.
28107
28108         Module userspec.
28109         * m4/userspec.m4: New file.
28110
28111         Module gettime.
28112         * m4/clock_time.m4: New file.
28113         * m4/gettime.m4: New file.
28114
28115         Module settime.
28116         * m4/settime.m4: New file.
28117
28118         Module posixtm.
28119         * m4/posixtm.m4: New file.
28120
28121         Module gethostname.
28122         * m4/gethostname.m4: New file.
28123
28124         Module canon-host.
28125         * m4/canon-host.m4: New file.
28126
28127         Module gettext.
28128         * m4/codeset.m4: New file, from gettext-0.11.5.
28129         * m4/gettext.m4: New file, from gettext-0.11.5.
28130         * m4/glibc21.m4: New file, from gettext-0.11.5.
28131         * m4/iconv.m4: New file, from gettext-0.11.5.
28132         * m4/intdiv0.m4: New file, from gettext-0.11.5.
28133         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
28134         * m4/inttypes.m4: New file, from gettext-0.11.5.
28135         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
28136         * m4/isc-posix.m4: New file, from gettext-0.11.5.
28137         * m4/lcmessage.m4: New file, from gettext-0.11.5.
28138         * m4/lib-ld.m4: New file, from gettext-0.11.5.
28139         * m4/lib-link.m4: New file, from gettext-0.11.5.
28140         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
28141         * m4/progtest.m4: New file, from gettext-0.11.5.
28142         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
28143         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
28144         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
28145
28146         Module localcharset.
28147         * m4/localcharset.m4: New file.
28148
28149         Module hard-locale.
28150         * m4/hard-locale.m4: New file.
28151
28152         Module mbswidth.
28153         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
28154         onceonly macros.
28155         * m4/mbrtowc.m4: Add comment.
28156
28157         Module memcasecmp.
28158         * m4/memcasecmp.m4: New file.
28159
28160         Module memcoll.
28161         * m4/memcoll.m4: New file.
28162
28163         Module unicodeio.
28164         * m4/unicodeio.m4: New file.
28165
28166         Module rpmatch.
28167         * m4/rpmatch.m4: New file.
28168
28169         Module yesno.
28170         * m4/yesno.m4: New file.
28171
28172         Module exitfail.
28173         * m4/exitfail.m4: New file.
28174
28175         Module c-stack.
28176         * m4/c-stack.m4 (gl_C_STACK): New macro.
28177         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
28178
28179         Module error.
28180         * m4/error.m4 (gl_ERROR): New macro.
28181         (jm_PREREQ_ERROR): Use onceonly macros.
28182
28183         Module fatal.
28184         * m4/fatal.m4: New file.
28185
28186         Module getloadavg.
28187         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
28188         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
28189
28190         Module getpagesize.
28191         * m4/getpagesize.m4: New file.
28192
28193         Module getusershell.
28194         * m4/getusershell.m4: New file.
28195
28196         Module physmem.
28197         * m4/physmem.m4: New file.
28198
28199         Module posixver.
28200         * m4/posixver.m4: New file.
28201
28202         Module quotearg.
28203         * m4/quotearg.m4: New file.
28204
28205         Module quote.
28206         * m4/quote.m4: New file.
28207
28208         Module readutmp.
28209         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
28210
28211         Module sig2str.
28212         * m4/sig2str.m4: New file.
28213
28214         Other.
28215         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
28216         ulonglong.m4.
28217         * m4/intmax_t.m4: New file.
28218         * m4/d-type.m4: Indentation.
28219         * m4/jm-macros.m4: Update.
28220         * m4/prereq.m4 (jm_PREREQ): Update.
28221         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
28222         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
28223         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
28224         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
28225         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
28226         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
28227         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
28228         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
28229         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
28230         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
28231         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
28232         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
28233         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
28234         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
28235         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
28236         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
28237         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
28238         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
28239         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
28240
28241 2002-12-24  Bruno Haible  <bruno@clisp.org>
28242
28243         * MODULES.txt: Update according to m4/ changes.
28244
28245         Module gettext.
28246         * config.rpath: New file, from gettext-0.11.5.
28247
28248         * modules/*: New module descriptions.
28249         * gnulib-tool: New file.
28250         * MODULES.html.sh: New file.
28251
28252 2002-12-21  Karl Berry  <karl@gnu.org>
28253
28254         * doc/fdl.texi: update to version 1.2.
28255
28256 2002-12-19  Karl Berry  <karl@gnu.org>
28257
28258         * config/config.guess: update from prep.
28259
28260 2002-12-18  Bruno Haible  <bruno@clisp.org>
28261
28262         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
28263         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
28264
28265 2002-12-17  Bruno Haible  <bruno@clisp.org>
28266
28267         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
28268         stdlib.h, string.h.
28269
28270 2002-12-17  Bruno Haible  <bruno@clisp.org>
28271
28272         * lib/canon-host.c (strdup): Remove unused declaration.
28273
28274         * lib/fsusage.c: Include full_read.h.
28275         (get_fs_usage): Use full_read instead of safe_read.
28276
28277         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
28278
28279 2002-12-12  Karl Berry  <karl@gnu.org>
28280
28281         * config/config.guess: update from prep.
28282
28283 2002-12-11  Bruno Haible  <bruno@clisp.org>
28284
28285         * m4/setenv.m4: New file, from gettext-0.11.5.
28286
28287 2002-12-11  Bruno Haible  <bruno@clisp.org>
28288
28289         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
28290         not unsetenv().
28291         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
28292         modifications:
28293
28294         2002-12-11  Bruno Haible  <bruno@clisp.org>
28295
28296                 * setenv.c (alloca): Fall back to malloc.
28297                 (freea): New macro.
28298                 (setenv): Use freea() to free memory allocated with alloca().
28299
28300         2002-11-13  Bruno Haible  <bruno@clisp.org>
28301
28302                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
28303                 function declarations.
28304                 * unsetenv.c (unsetenv): Likewise.
28305
28306         2002-03-04  Bruno Haible  <bruno@clisp.org>
28307
28308                 Portability to AIX 4.3.3.
28309                 * unsetenv.c: New file, extracted from setenv.c.
28310                 * setenv.c: Move the unsetenv() function to unsetenv.c.
28311
28312         2001-12-20  Bruno Haible  <bruno@clisp.org>
28313
28314                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
28315                 use malloc instead. For SunOS 4.
28316
28317         2001-12-11  Bruno Haible  <bruno@clisp.org>
28318
28319                 * setenv.c: Declare alloca.
28320                 (compar_fn_t): New typedef.
28321                 (KNOWN_VALUE, STORE_VALUE): Use it.
28322
28323         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
28324         setenv.h.
28325
28326 2002-12-10  Paul Eggert  <eggert@twinsun.com>
28327
28328         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
28329         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
28330         Choose values that are less likely to collide with system fnmatch
28331         options.
28332         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
28333         defined (e.g., a pure POSIX system).
28334         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
28335         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
28336
28337 2002-12-06  Paul Eggert  <eggert@twinsun.com>
28338
28339         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
28340         a pain in practice to deal with generated m4 files.  This change
28341         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
28342
28343         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
28344         and jm-glibc-io.m4, as they are no longer a special case.
28345         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
28346         kludge and the auto-generation stuff.  Check only whether the
28347         functions are declared, not whether they exist, since older hosts
28348         that don't declare the functions can't use the optimization anyway.
28349
28350 2002-12-06  Jim Meyering  <jim@meyering.net>
28351
28352         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
28353
28354         Merge in changes from libc's misc/error.c, in preparation
28355         for the merge of gnulib's changes back into libc.
28356
28357         * lib/error.c (_): Define only if not already defined.
28358         Move definition to follow all #include directives.
28359         Include unlocked-io.h only if !_LIBC.
28360         [_LIBC]: Include <libio/libioP.h>.
28361         [USE_IN_LIBIO]: Include <libio/iolibio.h>
28362         (fflush): Tweak definition to use INTUSE.
28363         (putc): Define.
28364
28365 2002-12-05  Paul Eggert  <eggert@twinsun.com>
28366
28367         * lib/alloca.c [defined emacs]: Include "lisp.h".
28368         (xalloc_die) [defined emacs]: New macro.
28369         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
28370         [! defined emacs]: Include <xalloc.h>.
28371         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
28372         (pointer): Typedef to POINTER_TYPE *.
28373         (malloc): Remove decl; we now always use xmalloc.
28374         (alloca): Use old-style definition, since Emacs needs this.
28375         Check for arithmetic overflow when computing combined size.
28376
28377 2002-12-04  Paul Eggert  <eggert@twinsun.com>
28378
28379         Do not generate unlocked-io.h automatically, since it's easier to
28380         maintain it by hand.
28381
28382         * lib/unlocked-io.h: New file, from GNU diffutils,
28383         but with proper copyright notice and attribution.
28384         * lib/gen-uio: Remove.
28385         * lib/Makefile.am: Add copyright notice.
28386         (libfetish_a_SOURCES): Add unlocked-io.h.
28387         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
28388         (DISTCLEANFILES, io_functions): Remove macros.
28389         (EXTRA_DIST): Remove gen_uio.
28390         (unlocked-io.h): Remove rule.
28391
28392 2002-12-04  Jim Meyering  <jim@meyering.net>
28393
28394         Reflect the fact that stat.c and lstat.c are no longer generated.
28395         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
28396         (DISTCLEANFILES): Likewise.
28397         (EXTRA_DIST): Likewise.
28398         (all_local): Don't depend on stat.c or lstat.c.
28399         (stat.c, lstat.c): Remove rules.
28400         (EXTRA_DIST): Remove xstat.in.
28401
28402         * lib/xstat.in: Remove file.  Contents moved into stat.c.
28403         * lib/stat.c: New file.  Contents mostly from xstat.in.
28404         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
28405         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
28406
28407         * lib/safe-read.c: Rework so that it may serve to define safe_write,
28408         too.
28409         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
28410
28411 2002-12-03  Jim Meyering  <jim@meyering.net>
28412
28413         * lib/safe-read.c, safe-write.c: Change variable names and comments,
28414         but not semantics, to minimize the differences between these two files.
28415         (safe_read): Change comment to mention SAFE_READ_ERROR.
28416
28417         * lib/safe-read.c (IS_EINTR): Define.
28418         (safe_read): Use IS_EINTR in place of in-function cpp directives.
28419
28420 2002-12-02  Jim Meyering  <jim@meyering.net>
28421
28422         * lib/safe-read.c (EINTR): Define.
28423         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
28424         (INT_MAX): Provide fallback.
28425         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
28426
28427         * lib/safe-read.h (SAFE_READ_ERROR): Define.
28428
28429 2002-12-02  Bruno Haible  <bruno@clisp.org>
28430
28431         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
28432         Define, taken from safe-read.c.
28433         (INT_MAX): Provide fallback.
28434         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
28435         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
28436
28437         * lib/safe-read.c (EINTR): Remove definition.
28438         (safe_read): Don't use EINTR if it is absent.
28439
28440 2002-12-01  Jim Meyering  <jim@meyering.net>
28441
28442         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
28443         zero.
28444         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
28445
28446 2002-11-27  Paul Eggert  <eggert@twinsun.com>
28447
28448         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
28449         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
28450         with `if (! (value < limit)) abort ();', for readability.
28451
28452 2002-11-26  Karl Berry  <karl@gnu.org>
28453
28454         * lib/strdup.c: copy from libc again, with jim's ok.
28455         * lib/.cppi-disable: re-add strdup.c
28456
28457 2002-11-25  Karl Berry  <karl@gnu.org>
28458
28459         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
28460         instead of "strtol.c".
28461
28462 2002-11-25  Karl Berry  <karl@gnu.org>
28463
28464         * config/install-sh: update from automake for variable quoting, $0 in
28465         error msgs, etc.
28466
28467         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
28468         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
28469         entry.
28470
28471 2002-11-25  Jim Meyering  <jim@meyering.net>
28472
28473         * lib/mktime.c: Sync from libc, now that it has the latest fix.
28474
28475 2002-11-24  Karl Berry  <karl@gnu.org>
28476
28477         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
28478         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
28479
28480 2002-11-24  Jim Meyering  <jim@meyering.net>
28481
28482         Update from coreutils:
28483
28484         * lib/mktime.c: Merge in changes from libc.
28485
28486         Avoid a link-time failure on some Linux systems.
28487         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
28488         (otherwise).
28489         (__mon_yday): Declare with the STATIC attribute.
28490         (__mktime_internal): Likewise.
28491         Based on a report from Greg Schafer.
28492
28493 2002-11-23  Jim Meyering  <jim@meyering.net>
28494
28495         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
28496         Use `unsigned', not `int', as type of index.
28497
28498         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
28499
28500         * lib/fsusage.c: Remove unneeded parentheses around operands of
28501         `defined'.
28502
28503 2002-11-22  Paul Eggert  <eggert@twinsun.com>
28504
28505         * lib/quotearg.h: Allow multiple inclusion by surrounding with
28506         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
28507         so that we can be included first.
28508         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
28509         * lib/quotearg.c: Include quotearg.h immediately after config.h.
28510         No need to include stddef.h or sys/types.h any more.
28511         Surround local include files with "", not "<>".
28512         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
28513         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
28514         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
28515         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
28516         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
28517         (ISPRINT): Remove; no longer needed now that we assume C89.
28518
28519         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
28520         Preserve errno.
28521
28522         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
28523         quotearg_char): Use SIZE_MAX rather than
28524         (size_t) -1 when we are talking about "infinity".
28525
28526         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
28527
28528 2002-11-22  Paul Eggert  <eggert@twinsun.com>
28529
28530         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
28531         hint that one should use `if (! x) abort ();' rather than `assert
28532         (x);', and anyway it's one less thing to worry about configuring.
28533         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
28534         hash_rehash, hash_insert): Use abort rather than assert.
28535
28536 2002-11-22  Bruno Haible  <bruno@clisp.org>
28537
28538         * lib/safe-read.h: Assume C89. Add comments.
28539         (safe_read): Change return type to size_t.
28540         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
28541         byte counts > SSIZE_MAX correctly.
28542         * lib/safe-write.h: New file.
28543         * lib/safe-write.c: New file.
28544         * lib/full-read.h: New file.
28545         * lib/full-read.c: New file.
28546         * lib/full-write.h: Assume C89. Add comments.
28547         * lib/full-write.c: Include safe-write.h.
28548         (full_write): Rewritten to use safe_write.
28549         Suggested by Jim Meyering and Paul Eggert.
28550
28551 2002-11-21  Jim Meyering  <jim@meyering.net>
28552
28553         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
28554
28555         Merge in changes from the coreutils.
28556
28557         2002-09-25  Paul Eggert  <eggert@twinsun.com>
28558         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
28559         <stdint.h>.
28560         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
28561         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
28562         int.  Work more efficiently if X is the same width as uintmax_t.
28563         Do not compare X to -1, to avoid bogus compiler warning.
28564         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
28565         Don't assume that f_frsize and f_bsize are the same type.
28566
28567         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
28568         warning on FreeBSD.
28569
28570         * lib/makepath.c (make_path): Restore umask *before* creating the final
28571         component.
28572         (make_path): Minor reformatting.
28573
28574         * lib/xmalloc.c: Adjust to work with new autoconf macros,
28575         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
28576         HAVE_MALLOC/HAVE_REALLOC.
28577
28578         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
28579         dummy ones.  At least on GNU/Linux systems, `auto' means something
28580         else.
28581         From Michael Stone.
28582
28583 2002-11-21  Bruno Haible  <bruno@clisp.org>
28584
28585         Remove case insensitive option matching.
28586         * lib/argmatch.h (argcasematch): Remove declaration.
28587         (ARGCASEMATCH): Remove macro.
28588         (__xargmatch_internal): Remove case_sensitive argument.
28589         (XARGMATCH): Update.
28590         (XARGCASEMATCH): Remove macro.
28591         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
28592         case_sensitive argument.
28593         (argcasematch): Remove function.
28594         (__xargmatch_internal): Remove case_sensitive argument.
28595         (main): Use XARGMATCH instead of XARGCASEMATCH.
28596
28597         * lib/xmalloc.c: Change compile-time error message. Add comment about
28598         required autoconf version.
28599
28600 2002-11-20  Paul Eggert  <eggert@twinsun.com>
28601
28602         Merge argmatch cleanups from Bison.  Assume C89.
28603
28604         * lib/argmatch.c: Include config.h here, not in argmatch.h.
28605         Include stdlib.h, for EXIT_FAILURE.
28606         Always include <string.h>, since we assume C89.
28607         (EXIT_FAILURE): Remove pre-C89 bug workaround.
28608         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
28609         Include <stddef.h> instead, since it's all we need for size_t.
28610         (PARAMS): Remove.  All uses removed.
28611         (ARRAY_CARDINALITY): Do not bother to #undef.
28612         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
28613         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
28614         Remove unnecessary parentheses.
28615         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
28616         Insert necessary parentheses.
28617         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
28618         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
28619
28620 2002-11-19  Bruno Haible  <bruno@clisp.org>
28621
28622         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
28623         * lib/mbswidth.h: Include <stddef.h>, for size_t.
28624
28625         * lib/mbswidth.h (PARAMS): Remove macro.
28626         (mbswidth, mbsnwidth): Use ANSI C function declarations.
28627         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
28628
28629         * lib/gcd.h (PARAMS): Remove macro.
28630         (gcd): Use ANSI C function declarations.
28631         * lib/gcd.c (gcd): Likewise.
28632
28633 2002-11-15  Bruno Haible  <bruno@clisp.org>
28634
28635         * lib/strcspn.c: Include <stddef.h>.
28636         (strcspn): Use ANSI C function declaration. Change return type to
28637         size_t. Use NULL.
28638         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
28639         (strpbrk): Use NULL.
28640         * lib/strpbrk.h (PARAMS): Remove macro.
28641         (strpbrk): Use ANSI C function declaration.
28642         * lib/strstr.c: Don't include <sys/types.h>.
28643         * lib/strstr.h (PARAMS): Remove macro.
28644         (strstr): Use ANSI C function declarations.
28645
28646 2002-11-14  Karl Berry  <karl@gnu.org>
28647
28648         * config/mkinstalldirs: `do' on separate line, instead of
28649         `for var; do'.
28650
28651 2002-11-06  Bruno Haible  <bruno@clisp.org>
28652
28653         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
28654         * lib/gcd.c (gcd): Likewise.
28655
28656 2002-11-05  Bruno Haible  <bruno@clisp.org>
28657
28658         * lib/gcd.h: New file, from gettext-0.11.5.
28659         * lib/gcd.c: New file, from gettext-0.11.5.
28660
28661 2002-11-05  Bruno Haible  <bruno@clisp.org>
28662
28663         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28664         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28665         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28666         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28667
28668         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
28669         <libintl.h>.
28670         * lib/makepath.c: Include gettext.h instead of <locale.h> and
28671         <libintl.h>.
28672
28673         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
28674         * lib/human.c: Include gettext.h instead of <libintl.h>.
28675         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
28676         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
28677         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
28678         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
28679         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
28680         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
28681         (textdomain): Remove definition.
28682         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
28683
28684         * lib/long-options.c: Remove include of <libintl.h> and definition of
28685         _.
28686         * lib/same.c: Remove include of <libintl.h> and definition of _.
28687
28688 2002-11-04  Owen Taylor  <otaylor@redhat.com>
28689
28690         * lib/config.charset: A few additions for Solaris.
28691
28692 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
28693
28694         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
28695         * lib/localcharset.c (locale_charset): Declare as extern "C".
28696
28697 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
28698
28699         * lib/config.charset: msdos in uk_UA uses CP1125.
28700
28701 2002-11-04  Bruno Haible  <bruno@clisp.org>
28702
28703         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
28704         * lib/strcase.h: New file, from GNU gettext-0.11.5.
28705         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
28706         * lib/strstr.h: New file, from GNU gettext-0.11.5.
28707         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
28708
28709 2002-11-04  Bruno Haible  <bruno@clisp.org>
28710
28711         * lib/localcharset.c (locale_charset): Don't return an empty string.
28712
28713 2002-11-04  Bruno Haible  <bruno@clisp.org>
28714
28715         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
28716         aliases.
28717
28718 2002-11-04  Bruno Haible  <bruno@clisp.org>
28719
28720         * lib/config.charset: Update for newest glibc. Add canonical names
28721         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
28722
28723 2002-11-04  Bruno Haible  <bruno@clisp.org>
28724
28725         * lib/config.charset: Add support for NetBSD.
28726
28727 2002-11-04  Bruno Haible  <bruno@clisp.org>
28728
28729         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
28730
28731 2002-11-01  Bruno Haible  <bruno@clisp.org>
28732
28733         * configure.in: Add AC_CONFIG_AUX_DIR call.
28734         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
28735         test/Makefile.
28736         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
28737
28738 2002-09-28  Karl Berry  <karl@gnu.org>
28739
28740         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
28741         installed automake until the next release, since changes have been
28742         made.
28743
28744 2002-09-25  Karl Berry  <karl@gnu.org>
28745
28746         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
28747         * lib/getopt*: copy from libc/posix.
28748         * lib/gettext.h: copy from gettext.
28749         * lib/.cppi-disable: add strdup.c, gettext.h.
28750
28751 2002-09-25  Karl Berry  <karl@gnu.org>
28752
28753         * config/srclist.txt: enable gettext.h check.
28754         * config/config.{guess,sub}: update from prep.
28755         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
28756                 from automake 1.6.3.
28757         See srclist*.
28758
28759 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
28760
28761         * regex.c (PATFETCH): Remove the translating fetch.
28762         (PATFETCH_RAW): Rename to PATFETCH.
28763         (set_image_of_range): New fun.
28764         (SET_RANGE_TABLE_WORK_AREA): Use it.
28765         (regex_compile): Don't translate the pattern chars so eagerly.
28766         Only do it when inserting an `exactn' bytecode or when handling
28767         a char-range.
28768         (mutually_exclusive_p): Avoid empty statement.
28769
28770 2002-07-06  Jim Meyering  <meyering@lucent.com>
28771
28772         * m4/README: Don't mention Makefile.am.in.
28773         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
28774
28775 2002-07-01  Jim Meyering  <meyering@lucent.com>
28776
28777         * lib/c-stack.c: Include sys/time.h.
28778         From Volker Borchert.
28779
28780 2002-06-26  Paul Eggert  <eggert@twinsun.com>
28781
28782         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
28783
28784 2002-06-26  Paul Eggert  <eggert@twinsun.com>
28785
28786         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
28787         New macro.  Use it uniformly instead of
28788         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
28789         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
28790         reported by Vin Shelton.
28791
28792 2002-06-22  Paul Eggert  <eggert@twinsun.com>
28793
28794         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
28795         Do not assume SA_SIGINFO behavior.
28796         Bug reported by Jim Meyering on NetBSD 1.5.2.
28797
28798 2002-06-22  Jim Meyering  <meyering@lucent.com>
28799
28800         * m4/c-stack.m4: New file, from diffutils-2.8.2.
28801         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
28802
28803         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
28804         now that configure.ac uses AC_GNU_SOURCE.
28805         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
28806         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
28807
28808         Update to latest tools.  Suggestions from Paul Eggert.
28809         * m4/stdbool.m4: New file, from diffutils-2.8.2.
28810         * m4/gnu-source.m4: Update from diffutils-2.8.2.
28811         * m4/fnmatch.m4: Likewise.
28812         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
28813         to AC_HEADER_STDBOOL
28814
28815 2002-06-22  Jim Meyering  <meyering@lucent.com>
28816
28817         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
28818         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
28819
28820 2002-06-22  Jim Meyering  <meyering@lucent.com>
28821
28822         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
28823
28824         * lib/exitfail.c, exitfail.h: Likewise.
28825         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
28826
28827         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
28828         of fnmatch.h.
28829         (EXTRA_DIST): Add fnmatch_loop.c.
28830         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
28831
28832         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
28833         * lib/fnmatch.c: Update from diffutils-2.8.2.
28834         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
28835         * lib/fnmatch.h: Remove file.
28836
28837 2002-06-21  Jim Meyering  <meyering@lucent.com>
28838
28839         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
28840         * m4/mbrtowc.m4: Likewise.
28841
28842         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
28843         * m4/mbswidth.m4: Reflect name change:
28844         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
28845         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
28846
28847         * m4/lib-link.m4: Update from gettext-0.11.2.
28848         * m4/gettext.m4: Likewise.
28849
28850         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
28851         From Alfred M. Szmidt.
28852
28853 2002-06-18  Paul Eggert  <eggert@twinsun.com>
28854
28855         * lib/file-type.h: Report an error if neither S_ISREG nor
28856         S_IFREG is defined, instead of using a test specific to glibc
28857         2.2.  This should be safe, since POSIX requires S_ISREG and
28858         Unix Version 7 had S_IFREG.  We don't need to check for
28859         <sys/types.h> since we don't use any symbols that it defines.
28860
28861 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
28862
28863         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
28864         $@-t, so that each temporary file name is unique and valid in the first
28865         8 characters, for operation under DOS.
28866
28867 2002-06-15  Paul Eggert  <eggert@twinsun.com>
28868
28869         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
28870
28871 2002-06-15  Jim Meyering  <meyering@lucent.com>
28872
28873         Work even with DJGPP 2.03, which lacks support for symlinks.
28874         From Richard Dawe.
28875         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
28876         is defined.
28877         * lib/lchown.c (S_ISLNK): Likewise.
28878
28879 2002-06-15  Jim Meyering  <meyering@lucent.com>
28880
28881         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
28882         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
28883         have been included before this file.
28884
28885 2002-06-14  Jim Meyering  <meyering@lucent.com>
28886
28887         * lib/file-type.h: Use the version from diffutils-2.8.2.
28888         * lib/file-type.c: Likewise.
28889
28890 2002-06-07  Jim Meyering  <meyering@lucent.com>
28891
28892         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
28893         They're needed at least for NetBSD 1.5.2.
28894         ($statxfs_includes): Include those same headers.
28895         ($statxfs_includes): Include sys/vfs.h if available.
28896         ($statxfs_includes): Likewise for sys/statvfs.h.
28897         Check for the following members in both structs statfs and statvfs:
28898         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
28899
28900 2002-06-01  Jim Meyering  <meyering@lucent.com>
28901
28902         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
28903         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
28904
28905 2002-05-28  Jim Meyering  <meyering@lucent.com>
28906
28907         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
28908         Reported by Volker Borchert.
28909
28910 2002-05-27  Jim Meyering  <meyering@lucent.com>
28911
28912         Fix a problem seen only on nonconforming systems whereby ls.c's
28913         use of localtime, and then of gettimeofday would cause trouble:
28914         the localtime call used to initialize rpl_gettimeofday's save
28915         mechanism would clobber ls's current local time information so
28916         that in any long listing the first file would always be listed
28917         with date 1970-01-01.  Analysis by Volker Borchert.
28918
28919         * lib/gettimeofday.c (localtime): Undefine.
28920         (rpl_localtime): New function.
28921
28922 2002-05-27  Jim Meyering  <meyering@lucent.com>
28923
28924         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
28925         localtime.
28926
28927         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
28928         use the replacement function; it wouldn't resolve at link time.
28929         Reported by Volker Borchert.
28930
28931 2002-05-22  Jim Meyering  <meyering@lucent.com>
28932
28933         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
28934         file-type.h.
28935         * lib/file-type.h: New file.
28936         * lib/file-type.c (file_type): New file/function.  Extracted from
28937         diffutils.
28938
28939 2002-04-30  Jim Meyering  <meyering@lucent.com>
28940
28941         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
28942
28943 2002-04-29  Paul Eggert  <eggert@twinsun.com>
28944
28945         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
28946
28947 2002-04-29  Paul Eggert  <eggert@twinsun.com>
28948
28949         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
28950         Do not check for alloca.h (no longer used) or stdbool.h (was never
28951         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
28952
28953 2002-04-29  Paul Eggert  <eggert@twinsun.com>
28954
28955         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
28956
28957 2002-04-29  Jim Meyering  <meyering@lucent.com>
28958
28959         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
28960         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
28961         Use AC_FUNC_STRNLEN here instead.
28962
28963         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
28964         With autoconf-2.53a, it's part of AC_PROG_CC.
28965
28966 2002-04-28  Paul Eggert  <eggert@twinsun.com>
28967
28968         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
28969         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
28970
28971 2002-04-28  Paul Eggert  <eggert@twinsun.com>
28972
28973         * lib/sig2str.h, lib/sig2str.c: New files.
28974         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
28975
28976 2002-04-28  Paul Eggert  <eggert@twinsun.com>
28977
28978         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
28979         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
28980         of 127, since 64 is the largest conceivable number for ancient
28981         nonstandard hosts.
28982         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
28983
28984 2002-04-28  Jim Meyering  <meyering@lucent.com>
28985
28986         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
28987
28988 2002-04-24  Jim Meyering  <meyering@lucent.com>
28989
28990         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
28991         (jm_PREREQ): Use it.
28992
28993         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
28994         mach/mach.h fcntl.h.
28995         Check for this function: setlocale.
28996
28997 2002-04-24  Jim Meyering  <meyering@lucent.com>
28998
28999         * lib/gettext.h: New file, from Gettext.
29000         * lib/Makefile.am (INCLUDES): Remove -I../intl.
29001         (libfetish_a_SOURCES): Add gettext.h.
29002
29003 2002-04-16  Jim Meyering  <meyering@lucent.com>
29004
29005         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
29006         ut_pid, ut_id, ut_exit.
29007
29008 2002-04-16  Jim Meyering  <meyering@lucent.com>
29009
29010         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
29011         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
29012         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
29013
29014 2002-04-12  Jim Meyering  <meyering@lucent.com>
29015
29016         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
29017         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
29018         existence of the getmntinfo function.  Needed for Darwin 5.3.
29019
29020         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
29021         This is necessary at least on Darwin 5.3.
29022
29023         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
29024         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
29025         strnlen.o in the library, and that makes some versions of ranlib
29026         object.
29027
29028 2002-04-12  Jim Meyering  <meyering@lucent.com>
29029
29030         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
29031
29032 2002-04-09  Jim Meyering  <meyering@lucent.com>
29033
29034         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
29035         to be more precise.  Rather than saying we're checking whether the
29036         function `works', say what we're testing.
29037         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
29038         Reported by Bruno Haible.
29039
29040 2002-03-10  Jim Meyering  <meyering@lucent.com>
29041
29042         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
29043         Suggestion from Santiago Vila.
29044
29045 2002-03-08  Jim Meyering  <meyering@lucent.com>
29046
29047         * lib/rename.c: Mention that this wrapper is needed also on
29048         mips-dec-ultrix4.4 systems.
29049
29050 2002-03-02  Jim Meyering  <meyering@lucent.com>
29051
29052         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
29053         not HAVE_CLOCK_SETTIME.
29054
29055 2002-02-27  Paul Eggert  <eggert@twinsun.com>
29056
29057         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
29058         Check for clock_settime.
29059
29060 2002-02-27  Paul Eggert  <eggert@twinsun.com>
29061
29062         * lib/nanosleep.h: Rename to....
29063         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
29064
29065         * lib/gettime.c: New file.
29066         * lib/settime.c: New file.
29067         * lib/stime.c: Remove.
29068
29069         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
29070         timespec.h.  Remove nanosleep.h.
29071
29072 2002-02-25  Paul Eggert  <eggert@twinsun.com>
29073
29074         * m4/acl.m4: New file.
29075         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
29076         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
29077
29078 2002-02-25  Paul Eggert  <eggert@twinsun.com>
29079
29080         * lib/acl.c, lib/acl.h: New files.
29081         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
29082
29083 2002-02-24  Jim Meyering  <meyering@lucent.com>
29084
29085         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
29086         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
29087         cause trouble.  Reported by Nelson Beebe.
29088
29089 2002-02-23  Paul Eggert  <eggert@twinsun.com>
29090
29091         * lib/path-concat.c (xpath_concat): Reorder code to pacify
29092         compilers that don't know that xalloc_die never returns.
29093
29094 2002-02-20  Jim Meyering  <meyering@lucent.com>
29095
29096         * lib/getdate.c: Regenerate using bison-1.33.
29097
29098 2002-02-17  Jim Meyering  <meyering@lucent.com>
29099
29100         * config/config.guess (main): Don't use `head -1'; it's no longer
29101         portable. Use `sed 1q' instead.
29102
29103 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
29104
29105         * m4/codeset.m4: Upgrade to gettext-0.11.
29106         * m4/gettext.m4: Upgrade to gettext-0.11.
29107         * m4/glibc21.m4: Upgrade to gettext-0.11.
29108         * m4/iconv.m4: Upgrade to gettext-0.11.
29109         * m4/isc-posix.m4: Upgrade to gettext-0.11.
29110         * m4/lcmessage.m4: Upgrade to gettext-0.11.
29111         * m4/lib-ld.m4: New file, from gettext-0.11.
29112         * m4/lib-link.m4: New file, from gettext-0.11.
29113         * m4/lib-prefix.m4: New file, from gettext-0.11.
29114         * m4/progtest.m4: Upgrade to gettext-0.11.
29115
29116 2002-02-15  Paul Eggert  <eggert@twinsun.com>
29117
29118         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
29119         (jm_PREREQ): Use it.
29120
29121 2002-02-15  Paul Eggert  <eggert@twinsun.com>
29122
29123         * lib/posixver.c, lib/posixver.h: New files.
29124         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
29125
29126 2002-02-02  Paul Eggert  <eggert@twinsun.com>
29127             Bruno Haible  <bruno@clisp.org>
29128
29129         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
29130         (fwrite_success_callback): New declaration.
29131         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
29132         print_unicode_char. Call failure callback instead of error.
29133         (fwrite_success_callback): New function.
29134         (exit_failure_callback): New function.
29135         (fallback_failure_callback): New function.
29136         (print_unicode_char): Call unicode_to_mb.
29137
29138 2002-01-26  Jim Meyering  <meyering@lucent.com>
29139
29140         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
29141         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
29142
29143 2002-01-26  Jim Meyering  <meyering@lucent.com>
29144
29145         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
29146
29147 2002-01-22  Paul Eggert  <eggert@twinsun.com>
29148
29149         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
29150
29151 2002-01-22  Jim Meyering  <meyering@lucent.com>
29152
29153         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
29154         Otherwise, some versions of automake would omit the rule that makes
29155         Makefile from Makefile.in.
29156
29157 2002-01-21  Paul Eggert  <eggert@twinsun.com>
29158
29159         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
29160         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
29161         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
29162         (memcoll): Set errno to zero if there is no error.
29163
29164         * lib/quotearg.c (quotearg_buffer_restyled):
29165         Fix bug with quoting buffers containing NUL when backslashing escapes.
29166         This bug was exposed by the other changes in this patch.
29167         (quotearg_n_options): New arg ARGSIZE.
29168         All callers changed.
29169         (quoting_options_from_style): New function.
29170         (quotearg_n_style): Use it.
29171         (quotearg_n_style_mem): New function.
29172
29173         * lib/quotearg.h (quotearg_n_style_mem): New function.
29174
29175 2002-01-19  Jim Meyering  <meyering@lucent.com>
29176
29177         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
29178         Remove useless quotes: DF_PROG="df".
29179         * m4/strnlen.m4: New file.
29180
29181 2002-01-16  Paul Eggert  <eggert@twinsun.com>
29182
29183         * lib/backupfile.c (ISDIGIT): Comment fix.
29184         * lib/getdate.y (ISDIGIT): Likewise.
29185         * lib/posixtm.c (ISDIGIT, year): Likewise.
29186         * lib/strverscmp.c (ISDIGIT): Likewise.
29187         * lib/userspec.c (ISDIGIT): Likewise.
29188
29189 2002-01-16  Jim Meyering  <meyering@lucent.com>
29190
29191         * lib/getdate.y: Add three semicolons, each just before a closing
29192         brace. Bison (as of version 1.31) no longer papers over that mistake.
29193
29194 2002-01-05  Jim Meyering  <meyering@lucent.com>
29195
29196         * lib/version-etc.c (version_etc_copyright): Update copyright year.
29197
29198 2001-12-19  Paul Eggert  <eggert@twinsun.com>
29199
29200         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
29201         not silently exit merely because the output buffer happens to
29202         have nothing pending.
29203
29204 2001-12-18  Paul Eggert  <eggert@twinsun.com>
29205
29206         See the big note in ../ChangeLog.
29207         * lib/human.c (suffixes): Prefer K to k for 1024.
29208         (generate_suffix_backwards): New function.
29209         (human_readable_inexact): Use it.
29210         * lib/xstrtol.c (__xstrtol): If there is no number but there
29211         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
29212         Accept 'K' as well as 'k'.
29213
29214 2001-12-15  Jim Meyering  <meyering@lucent.com>
29215
29216         * lib/regex.h (__restrict_arr): Update from libc.
29217
29218         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
29219         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
29220         (STREQ): Define.
29221
29222 2001-12-14  Jim Meyering  <meyering@lucent.com>
29223
29224         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
29225         Suggestion from Bruno Haible.
29226
29227 2001-12-10  Jim Meyering  <meyering@lucent.com>
29228
29229         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
29230         xrealloc, Instead, include "xalloc.h".
29231         (initbuffer): Don't cast xmalloc return value to char*.
29232         (readline): Reword comment.
29233         Don't cast xrealloc return value to char*
29234         Return NULL, not 0.
29235
29236 2001-12-09  Jim Meyering  <meyering@lucent.com>
29237
29238         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
29239         about `signed and unsigned type in conditional expression'.
29240         * lib/posixtm.c (posix_time_parse): Likewise.
29241
29242         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
29243
29244         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
29245         to avoid a pedantic warning.
29246
29247         * lib/getstr.c: Don't include assert.h.
29248         (getstr): Remove warning-evoking assertions.
29249         Return -1 if offset parameter is out of bounds.
29250         Change the type of a local from int to size_t.
29251
29252         * lib/strftime.c (my_strftime_localtime_r): Include this function
29253         definition in the `#if ! HAVE_TM_GMTOFF' block.
29254
29255         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
29256         Include xalloc.h instead.
29257
29258 2001-12-02  Jim Meyering  <meyering@lucent.com>
29259
29260         * lib/tempname.c: Don't declare getenv, thus reverting the change of
29261         2001-11-18.  It's no longer necessary, now that stdlib.h is always
29262         included.
29263
29264         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
29265         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
29266
29267 2001-11-30  Akim Demaille  <akim@epita.fr>
29268
29269         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
29270         before being defined.
29271
29272 2001-11-27  Paul Eggert  <eggert@twinsun.com>
29273
29274         * lib/quotearg.h (quotearg_n, quotearg_n_style):
29275         First arg is int, not unsigned.
29276         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
29277         (SIZE_MAX, UINT_MAX): New macros.
29278         (quotearg_n_options): Abort if N is negative.
29279         Avoid overflow check on hosts where size_t is 64 bits and int
29280         is 32 bits, as overflow is impossible there.
29281         Fix off-by-one typo that caused unnecessary reallocation.
29282
29283 2001-11-27  Jim Meyering  <meyering@lucent.com>
29284
29285         * lib/tempname.c: Merge with version from libc.
29286         * lib/regex.c: Likewise.
29287
29288         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
29289         systems for which STDC_HEADERS is 0, it was not included, resulting in
29290         a warning about an integer-to-pointer conversion problem with getenv.
29291         Reported by Volker Borchert.
29292
29293 2001-11-26  Jim Meyering  <meyering@lucent.com>
29294
29295         * lib/gtod.h: Remove file.
29296         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
29297         * lib/gettimeofday.c: Don't include gtod.h.
29298         (GTOD_init): Remove function.
29299         (rpl_gettimeofday): Do its job here instead, rather than aborting.
29300         Suggestion from Volker Borchert.
29301
29302 2001-11-23  Jim Meyering  <meyering@lucent.com>
29303
29304         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
29305         it.
29306         * lib/hash.c (struct hash_table): Define it here instead.
29307
29308 2001-11-22  Jim Meyering  <meyering@lucent.com>
29309
29310         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
29311
29312 2001-11-20  Jim Meyering  <meyering@lucent.com>
29313
29314         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
29315         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
29316
29317 2001-11-19  Jim Meyering  <meyering@lucent.com>
29318
29319         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
29320         directory.  Use "conftestXXXXXX" as the template.
29321         Suggestion from Paul Eggert.
29322
29323         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
29324         immediately, so the test doesn't mistakenly hit the max-open-files
29325         limit.
29326
29327 2001-11-18  Paul Eggert  <eggert@twinsun.com>
29328
29329         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
29330         (TEMPORARIES): New macro.
29331         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
29332         removes an artificial limitation (e.g. HP-UX 10.20, where
29333         TMP_MAX is 17576).
29334
29335 2001-11-18  Jim Meyering  <meyering@lucent.com>
29336
29337         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
29338
29339 2001-11-18  Jim Meyering  <meyering@lucent.com>
29340
29341         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
29342         on SunOS 4.
29343
29344         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
29345         files will be created before anything else.
29346
29347 2001-11-17  Paul Eggert  <eggert@twinsun.com>
29348
29349         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
29350         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
29351
29352 2001-11-17  Jim Meyering  <meyering@lucent.com>
29353
29354         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
29355         Prompted by a report from Bob Proulx.
29356
29357         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
29358         Instead, require UTILS_FUNC_MKSTEMP.
29359
29360 2001-11-17  Jim Meyering  <meyering@lucent.com>
29361
29362         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
29363         Now, that's done as part of AC_FUNC_STRTOD.
29364
29365 2001-11-17  Jim Meyering  <meyering@lucent.com>
29366
29367         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
29368         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
29369         rather than group writable.  Patch by Juan F. Codagnone.
29370
29371         * lib/readtokens.c: Remove explicit declarations of xmalloc and
29372         xrealloc, Instead, include "xalloc.h".
29373
29374         * lib/mountlist.c: Include unlocked-io.h after all system headers.
29375         Remove explicit declarations of xmalloc, xrealloc,
29376         and xstrdup.  Instead, include "xalloc.h".
29377
29378         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
29379         unlocked-io.h.
29380         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
29381         Likewise.
29382         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
29383
29384         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
29385         Reported by Padraig Brady.
29386
29387         * lib/mkstemp.c: #undef mkstemp.
29388         Include config.h.
29389         (rpl_mkstemp): Rename from mkstemp.
29390         Protoize.
29391
29392 2001-11-16  Jim Meyering  <meyering@lucent.com>
29393
29394         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
29395         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
29396         determine the amount of total physical memory, use pstat_getstatic.
29397         HPUX-11 doesn't define _SC_PHYS_PAGES.
29398         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
29399         If sysconf couldn't be used to determine the amount of available
29400         physical memory, use both pstat_getstatic and pstat_getdynamic.
29401         Based on a patch from Bob Proulx.
29402
29403 2001-11-10  Jim Meyering  <meyering@lucent.com>
29404
29405         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
29406         (jm_PREREQ): Use it.
29407
29408 2001-11-09  Jim Meyering  <meyering@lucent.com>
29409
29410         * m4/jm-macros.m4: Require autoconf-2.52f.
29411         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
29412         Use these AC_-prefixed names, not the AM_-prefixed ones.
29413
29414         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
29415
29416 2001-11-05  Jim Meyering  <meyering@lucent.com>
29417
29418         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
29419
29420 2001-11-04  Jim Meyering  <meyering@lucent.com>
29421
29422         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
29423         $DEFS.
29424
29425 2001-11-03  Jim Meyering  <meyering@lucent.com>
29426
29427         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
29428         of AC_DEFUN.
29429
29430         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
29431         know the name of the variable in the macro definition.
29432
29433 2001-11-03  Jim Meyering  <meyering@lucent.com>
29434
29435         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
29436         in argmatch_to_argument call.
29437
29438         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
29439         argument.
29440
29441         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
29442         e.g., a fault due to an attempt to free a NULL pointer.
29443
29444 2001-11-01  Jim Meyering  <meyering@lucent.com>
29445
29446         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
29447         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
29448
29449 2001-11-01  Jim Meyering  <meyering@lucent.com>
29450
29451         * lib/dirfd.c, lib/dirfd.h: New files.
29452         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
29453
29454         * lib/hash.c (hash_print) [TESTING]: Clean up.
29455
29456 2001-10-22  Paul Eggert  <eggert@twinsun.com>
29457
29458         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
29459         to avoid a warning if -Wall.
29460
29461 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
29462
29463         * README: New file
29464         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
29465         (per RMS's instructions, this is now the canonical source)
29466         * lgpl/, gpl/: New directories.
29467
29468 2001-10-21  Paul Eggert  <eggert@twinsun.com>
29469
29470         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
29471
29472 2001-10-21  Jim Meyering  <meyering@lucent.com>
29473
29474         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
29475         this code would end up calling gettext even in packages built
29476         with --disable-nls.
29477         * lib/getopt.c (_): Likewise.
29478         * lib/regex.c (_): Likewise.
29479
29480 2001-10-20  Paul Eggert  <eggert@twinsun.com>
29481
29482         * m4/error.m4 (jm_PREREQ_ERROR):
29483         Do not invoke AC_CHECK_FUNCS with strerror_r, as
29484         AC_FUNC_STRERROR_R does that.
29485         Check for strerror declaration.
29486
29487         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
29488         are supposed to have them these days.
29489         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
29490         Merge changes from latest Autoconf CVS.
29491         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
29492         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
29493         POSIX decided to standardize on the int flavor of strerror_r.
29494
29495 2001-10-20  Paul Eggert  <eggert@twinsun.com>
29496
29497         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
29498         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
29499         Use strerror_r that is only a macro, even if it is not a function.
29500         (strerror): Check for HAVE_DECL_STRERROR before declaring.
29501         (private_strerror): Use prototypes, not old-style function definition.
29502         (print_errno_message): New function.
29503         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
29504         char*-flavored one.
29505         (error_tail, error, error_at_line): Use it.
29506
29507 2001-10-11  Jim Meyering  <meyering@lucent.com>
29508
29509         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
29510         and quote_n (1, ... to avoid clobbering a buffer.
29511
29512 2001-10-05  Jim Meyering  <meyering@lucent.com>
29513
29514         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
29515         hash-pjw.h.
29516         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
29517         * lib/hash-pjw.h: New file.
29518
29519 2001-09-30  Jim Meyering  <meyering@lucent.com>
29520
29521         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
29522         `struct fsstat' has the `f_fstypename' member.
29523         Use that to define FS_TYPE, which is now used to make
29524         the getfsstat link test tighter.
29525
29526 2001-09-30  Jim Meyering  <meyering@lucent.com>
29527
29528         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
29529         Include <sys/ucred.h>, for Apple Darwin.
29530         Include sys/mount.h and sys/fs_types.h only if available.
29531         (FS_TYPE): Define.
29532         (read_filesystem_list): Use FS_TYPE.
29533
29534 2001-09-29  Paul Eggert  <eggert@twinsun.com>
29535
29536         * lib/exclude.c (excluded_filename): 0 -> false, since it's
29537         a boolean context.
29538
29539 2001-09-29  Jim Meyering  <meyering@lucent.com>
29540
29541         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
29542         [one-argument getmntent function]): Include stdio.h before mntent.h.
29543         SunOS 4.1.x needs it for the declaration of `FILE'.
29544         Patch by Volker Borchert.
29545
29546         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
29547         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
29548         sys/fs_types.h, and make the link-test for getfsstat guard #include
29549         directives with appropriate #if HAVE_*_H tests so that we can
29550         detect getfsstat on Apple Darwin1.3.7 systems.
29551         Reported by Nelson Beebe.
29552         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
29553
29554 2001-09-28  Paul Eggert  <eggert@twinsun.com>
29555
29556         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
29557         #defines strtoimax.  Also treat the other strto* functions
29558         like strtoimax.
29559
29560         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
29561         Check for strtoul and strtoumax,
29562         as those declarations are made even in the signed case.
29563         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
29564         Likewise, for strtol and strtoimax.
29565
29566 2001-09-28  Paul Eggert  <eggert@twinsun.com>
29567
29568         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
29569         #defines strtoimax.  Also treat the other strto* functions
29570         like strtoimax.
29571
29572         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
29573         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
29574         (strtoimax, strtoumax): Do not declare if already defined as a macro.
29575
29576 2001-09-26  Jim Meyering  <meyering@lucent.com>
29577
29578         Most macros in unlocked-io.h had the wrong number of arguments.
29579         * lib/gen-uio: New script.
29580         (USE_UNLOCKED_IO): Define to 1 if not already defined.
29581         * lib/unlocked-io.hin: Remove file.
29582         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
29583         rather than trying to embed it here.
29584         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
29585         Reported by Padraig Brady.
29586
29587 2001-09-25  Volker Borchert  <bt@teknon.de>
29588
29589         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
29590         `result'.
29591
29592 2001-09-24  Jim Meyering  <meyering@lucent.com>
29593
29594         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
29595
29596 2001-09-23  Jim Meyering  <meyering@lucent.com>
29597
29598         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
29599         instead of the mere test for existence of mntent.h.  The latter
29600         would get a false-positive on AIX 3.4 systems.
29601         In the outer getmntent if-block, don't die if neither of the getmntent
29602         tests succeeds.  Instead, just fall through and continue with the
29603         remaining tests.
29604
29605 2001-09-23  Jim Meyering  <meyering@lucent.com>
29606
29607         * lib/mountlist.c: Remove useless parentheses in #if directives.
29608         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
29609         the deprecated MOUNTED symbol is no longer defined in mntent.h.
29610
29611 2001-09-22  Jim Meyering  <meyering@lucent.com>
29612
29613         * m4/gettext.m4: New file.  From gettext.
29614         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
29615         * m4/progtest.m4: Likewise
29616         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
29617         * m4/glibc21.m4: Likewise.
29618
29619         * m4/libintl.m4: Remove.  No longer used.
29620
29621 2001-09-22  Jim Meyering  <meyering@lucent.com>
29622
29623         * lib/localcharset.c: Update from latest gettext.
29624         * lib/config.charset: Likewise.
29625
29626 2001-09-20  Jim Meyering  <meyering@lucent.com>
29627
29628         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
29629         strtoimax.
29630         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
29631         strtoumax.
29632
29633 2001-09-20  Jim Meyering  <meyering@lucent.com>
29634
29635         * lib/xstrtol.c (strtoimax): Guard declaration with
29636         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
29637         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
29638         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
29639         (strtoumax): Likewise, for completeness (it wasn't necessary).
29640
29641 2001-09-17  Paul Eggert  <eggert@twinsun.com>
29642
29643         * lib/strtoimax.c (HAVE_LONG_LONG):
29644         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
29645         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
29646         to work around bug in IBM C compiler.
29647
29648 2001-09-17  Jim Meyering  <meyering@lucent.com>
29649
29650         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
29651         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
29652         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
29653         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
29654         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
29655         whenever the right hand side need not be expanded by the shell.
29656
29657 2001-09-16  Paul Eggert  <eggert@twinsun.com>
29658
29659         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
29660         library.  It's not correct, as some older glibcs are buggy.
29661         fnmatch wasn't fixed until glibc 2.2.
29662
29663         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
29664         special shell magic here.
29665
29666 2001-09-16  Jim Meyering  <meyering@lucent.com>
29667
29668         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
29669         * m4/jm-macros.m4: Require it.
29670
29671 2001-09-16  Jim Meyering  <meyering@lucent.com>
29672
29673         * lib/mkdir.c: New file.
29674
29675 2001-09-15  Jim Meyering  <meyering@lucent.com>
29676
29677         * m4/jm-macros.m4: Check for help2man.
29678
29679 2001-09-11  Jim Meyering  <meyering@lucent.com>
29680
29681         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
29682         The body, by Paul Eggert, was moved here from configure.in.
29683         * m4/jm-macros.m4: Require UTILS_HOST_OS.
29684
29685 2001-09-04  Paul Eggert  <eggert@twinsun.com>
29686
29687         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
29688         (jm_PREREQ): Use it.
29689
29690 2001-09-04  Paul Eggert  <eggert@twinsun.com>
29691
29692         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
29693         Use ssize_t, not int, to store result of readlink.
29694         Check for ssize_t overflow as well as size_t overflow,
29695         as POSIX says the result of readlink is implementation-defined
29696         when ssize_t overflows.
29697         Remove unnecessary cast to char*.
29698         Use free+malloc instead of realloc, as the storage doesn't need
29699         to be preserved and it's clearer and can be more efficient that way.
29700         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
29701         * lib/xreadlink.h (xreadlink): Update prototype.
29702
29703 2001-09-04  Paul Eggert  <eggert@twinsun.com>
29704
29705         * lib/xgetcwd.c: Revert some of the previous change; intead,
29706         fix the HAVE_GETCWD_NULL code to behave more like the
29707         !HAVE_GETCWD_NULL code used to.
29708
29709         Include "xalloc.h".
29710         (xgetcwd): Do not return NULL when memory is exhausted; instead,
29711         invoke xalloc_die.
29712
29713 2001-09-03  Paul Eggert  <eggert@twinsun.com>
29714
29715         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
29716         sys/param.h, as pathmax.h includes them.
29717
29718 2001-09-03  Paul Eggert  <eggert@twinsun.com>
29719
29720         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
29721         (jm_PREREQ_XGETCWD): New macro.
29722
29723         * m4/getcwd.m4: New file.
29724
29725 2001-09-03  Paul Eggert  <eggert@twinsun.com>
29726
29727         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
29728         like the HAVE_GETCWD_NULL code.
29729         Include pathmax.h if not HAVE_GETCWD.
29730         Do not include xalloc.h.
29731         (INITIAL_BUFFER_SIZE): New symbol.
29732         Do not use xmalloc / xrealloc, since the caller is responsible for
29733         handling errors.  Preserve errno around `free' during failure.
29734         Do not overrun buffer when using getwd.
29735
29736 2001-09-03  Paul Eggert  <eggert@twinsun.com>
29737
29738         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
29739         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
29740         getcwd (NULL, 0).
29741
29742 2001-09-03  Paul Eggert  <eggert@twinsun.com>
29743
29744         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
29745         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
29746         spotted by Jim Meyering.
29747
29748 2001-09-03  Jim Meyering  <meyering@lucent.com>
29749
29750         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
29751         failure.
29752
29753 2001-09-02  Jim Meyering  <meyering@lucent.com>
29754
29755         * lib/error.c: Update from GNU libc.
29756
29757 2001-09-01  Jim Meyering  <meyering@lucent.com>
29758
29759         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
29760         Used by df.
29761
29762 2001-09-01  Jim Meyering  <meyering@lucent.com>
29763
29764         * lib/xreadlink.c: New file.
29765         * lib/xreadlink.h: New file.
29766         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
29767         xreadlink.h.
29768
29769         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
29770         doesn't conflict with sparc Solaris 7's definition in
29771         /usr/include/sys/int_types.h.
29772
29773         * lib/exclude.c: Use `""', not `<>' to #include non-system header
29774         files.
29775         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
29776         and strncasecmp as r-values.  Unixware didn't have declarations.
29777
29778 2001-08-31  Paul Eggert  <eggert@twinsun.com>
29779
29780         * lib/xstrtol.h: Add copyright notice.
29781         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
29782         LONGINT_INVALID_SUFFIX_CHAR.
29783
29784 2001-08-31  Paul Eggert  <eggert@twinsun.com>
29785
29786         * lib/xstrtol.c (strtoimax): New decl.
29787
29788 2001-08-31  Paul Eggert  <eggert@twinsun.com>
29789
29790         * lib/xgetcwd.c: Don't include pathmax.h.
29791         Include stdlib.h and unistd.h if available.
29792         Include xalloc.h.
29793         (xmalloc, xstrdup, free): Remove decls.
29794         (xgetcwd): Don't assume sizes fit in unsigned.
29795         Check for overflow when computing sizes.
29796         Simplify reallocation code.
29797
29798 2001-08-31  Paul Eggert  <eggert@twinsun.com>
29799
29800         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
29801         a directory's st_size can have an arbitrary value, so the old
29802         usage could waste an arbitrary amount of memory.  All uses
29803         changed.
29804         * lib/savedir.h: Update prototype.
29805
29806 2001-08-31  Paul Eggert  <eggert@twinsun.com>
29807
29808         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
29809
29810         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
29811         old strtoimax.c.
29812
29813         Also, make the following further changes to make this file's
29814         configuration more similar to that of strtol.c:
29815         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
29816         (strtoumax, uintmax_t, strtoull, strtol): Remove.
29817         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
29818         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
29819         changed to signed values.
29820
29821         And make the following changes as well:
29822         Fix copyright notice, as 1999 was missing.
29823         (verify): New macro.
29824         (strtoimax): Check sizes at compile-time, not run-time.
29825         Prefer strtol to strtoll if both work.
29826         (main): Remove; it was not that useful and was a pain to maintain.
29827
29828         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
29829
29830 2001-08-31  Jim Meyering  <meyering@lucent.com>
29831
29832         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
29833         Use an initial, malloc'd, buffer of length 128 rather than
29834         a statically allocated one of length 1024.
29835
29836 2001-08-30  Paul Eggert  <eggert@twinsun.com>
29837
29838         Simplify code, partly by assuming autoconf 2.52 semantics.
29839
29840         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
29841
29842         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
29843         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
29844         All uses removed.
29845         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
29846         Move AC_REQUIRE to next-to-top level, to avoid confusion.
29847         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
29848         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
29849         jm_AC_HEADER_INTTYPES_H.
29850         * m4/jm-macros.m4 (jm_MACROS): Likewise.
29851
29852         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
29853
29854         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
29855         Quote first arg of AC_DEFUN.
29856         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
29857         since they are needed to parse the include file even if we need
29858         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
29859         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
29860         but with opposite signedness.
29861
29862 2001-08-30  Paul Eggert  <eggert@twinsun.com>
29863
29864         Merge 'exclude' changes from tar 1.13.22.
29865         This fixes one or two unlikely storage allocation overflow bugs,
29866         but doesn't change user-visible behavior otherwise.
29867
29868 2001-08-30  Paul Eggert  <eggert@twinsun.com>
29869
29870         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
29871         (jm_PREREQ_EXCLUDE): New macro.
29872
29873 2001-08-30  Paul Eggert  <eggert@twinsun.com>
29874
29875         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
29876         tm to be declared.
29877
29878 2001-08-30  Paul Eggert  <eggert@twinsun.com>
29879
29880         * lib/hash.c: Remove '2001' from copyright notice.
29881
29882 2001-08-30  Paul Eggert  <eggert@twinsun.com>
29883
29884         * lib/full-write.h: New file.
29885         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
29886         * lib/full-write.c: Correct credits, as cccp.c no longer
29887         exists and anyway it was so heavily changed from the old cccp
29888         code as to be unrecognizable.  Include full-write.h.
29889         (full_write) Return size_t, with short writes meaning failure.
29890         All callers changed.  This fixes a bug with large buffers
29891         on 64-bit hosts.
29892         * lib/utime.c: Include full-write.h.
29893
29894 2001-08-30  Paul Eggert  <eggert@twinsun.com>
29895
29896         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
29897         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
29898         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
29899         Include if available.
29900         (<xalloc.h>): Include
29901         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
29902         (verify): New macro.  Use it to verify that EXCLUDE macros do not
29903         collide with FNM macros.
29904         (struct patopts): New struct.
29905         (struct exclude): Use it, as exclude patterns now come with options.
29906         (new_exclude): Support above changes.
29907         (new_exclude, add_exclude_file):
29908         Initial size must now be a power of two to simplify overflow checking.
29909         (free_exclude, fnmatch_no_wildcards): New function.
29910         (excluded_filename): No longer requires options arg, as the options
29911         are determined by add_exclude.  Now returns bool, not int.
29912         (excluded_filename, add_exclude):
29913         Add support for the fancy new exclusion options.
29914         (add_exclude, add_exclude_file): Now takes int options arg.
29915         Check for arithmetic overflow when computing sizes.
29916         (add_exclude_file): xrealloc might modify errno, so don't
29917         realloc until after errno might be used.
29918
29919         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
29920         New macros.
29921         (free_exclude): New decl.
29922         (add_exclude, add_exclude_file): Now takes int options arg.
29923         (excluded_filename): No longer requires options arg, as the options
29924         are determined by add_exclude.  Now returns bool, not int.
29925
29926 2001-08-30  Paul Eggert  <eggert@twinsun.com>
29927
29928         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
29929
29930 2001-08-27  Jim Meyering  <meyering@lucent.com>
29931
29932         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
29933
29934         * lib/version-etc.c (N_): Remove definition.
29935         Revert most of last change.
29936         Instead, simply don't mark the `Copyright...' string for translation.
29937         Based on advice from Paul Eggert.
29938
29939         * lib/strtoxmax.c: Tweak comment.
29940
29941 2001-08-26  Jim Meyering  <meyering@lucent.com>
29942
29943         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
29944
29945         * m4/xstrtoimax.m4: New file.
29946         * m4/xstrtoumax.m4: Add comments explaining why we
29947         AC_REPLACE_FUNCS(strtol).
29948
29949 2001-08-26  Jim Meyering  <meyering@lucent.com>
29950
29951         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
29952         of copyright with `%s' so translators don't get an untranslated
29953         message in 2002.
29954         (COPYRIGHT_YEAR): Define.
29955         (version_etc): Use fprintf rather than fputs.
29956         Suggestion from Ulrich Drepper.
29957
29958         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
29959
29960         * lib/strtoll.c: New file, from GNU libc.
29961         * lib/xstrtoimax.c: New file.
29962
29963         * lib/xstrtol.h: Add xstrtoimax.
29964         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
29965         * lib/strtoimax.c: New file.  Likewise, but first define
29966         STRTOUXMAX_SIGNED.
29967
29968         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
29969         ...
29970         * lib/strtoxmax.c: ... then renamed to this.
29971
29972 2001-08-18  Paul Eggert  <eggert@twinsun.com>
29973
29974         * m4/inttypes.m4: Add AC_PREREQ(2.13).
29975         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
29976         (jm_AC_TYPE_INTMAX_T): New macro.
29977         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
29978
29979         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
29980
29981         * m4/longlong.m4: Renamed from ulonglong.m4.
29982         * m4/inttypes.m4: Renamed from inttypes_h.m4.
29983         * m4/uintmax_t.m4: Removed.
29984
29985 2001-08-13  Paul Eggert  <eggert@twinsun.com>
29986
29987         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
29988         Port to Solaris 8, where 'sed' requires a space after the 'r'
29989         command, and where sh dislikes "$/".  Clean up the spacing a bit.
29990         Redirect output to $tmp just once.
29991
29992 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
29993
29994         * lib/addext.c (<errno.h>): Include.
29995         (errno): Declare if not defined.
29996         (addext): Work correctly when pathconf returns -1 and leaves
29997         errno alone because there is no limit.  Also, work even if
29998         pathconf returns a value greater than SIZE_MAX.
29999
30000 2001-08-12  Jim Meyering  <meyering@lucent.com>
30001
30002         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
30003         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
30004         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
30005         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
30006         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
30007         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
30008         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
30009         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
30010         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
30011         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
30012         utime.m4, utimes.m4, xstrtoumax.m4:
30013         Quote the first argument in each use of AC_DEFUN.
30014
30015 2001-08-12  Jim Meyering  <meyering@lucent.com>
30016
30017         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
30018         Simply `return getcwd (NULL, 0);'.
30019         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
30020         Use 1300 as initial value for length, not PATH_MAX.
30021
30022         * lib/pathmax.h: Clean up cpp syntax.
30023
30024 2001-08-12  Jim Meyering  <meyering@lucent.com>
30025
30026         * lib/gettimeofday.c: New file.
30027         * lib/gtod.h: New file.
30028         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
30029
30030 2001-08-05  Jim Meyering  <meyering@lucent.com>
30031
30032         * m4/jm-macros.m4: Require autoconf-2.52.
30033
30034 2001-08-04  Jim Meyering  <meyering@lucent.com>
30035
30036         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
30037         stmt, to get in sync with glibc.
30038
30039 2001-08-03  Paul Eggert  <eggert@twinsun.com>
30040
30041         The following changes are from gettext 0.10.39 as maintained by
30042         Bruno Haible.
30043
30044         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
30045         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
30046         with inverted sense.  All uses changed.
30047
30048         * lib/mbswidth.c: Don't include <limits.h>.
30049         Include <stdlib.h> and <string.h> unconditionally.
30050         (iswcntrl, mbsinit, ISCNTRL): New macros.
30051         (mbsnwidth): Use K&R style function declarations.
30052         Don't bother checking for MB_LEN_MAX == 1, since the compiler
30053         can optimize it when MB_CUR_MAX == 1.
30054         The width of control characters is zero, not 1.
30055
30056 2001-08-03  Paul Eggert  <eggert@twinsun.com>
30057
30058         The following changes are from gettext 0.10.39 as maintained by
30059         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
30060
30061         * m4/codeset.m4: Upgrade to serial AM1.
30062         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
30063         all uses changed.  Quote first arg of AC_DEFUN.
30064         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
30065
30066         * m4/iconv.m4: Upgrade to serial AM2.
30067         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
30068         Add --with-libconv-prefix.
30069         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
30070         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
30071         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
30072         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
30073         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
30074
30075         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
30076         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
30077         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
30078         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
30079         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
30080         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
30081         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30082         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
30083         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
30084
30085         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
30086         string.h any more.
30087
30088         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
30089         not the default value.
30090
30091         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
30092         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
30093         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
30094         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
30095         Also check for iswcntrl, used for wcwidth fallback.
30096         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
30097         to Autoconf 2.13.
30098
30099 2001-08-03  Jim Meyering  <meyering@lucent.com>
30100
30101         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
30102         as it was in the original.  Reported by Paul Eggert.
30103
30104 2001-07-16  Jim Meyering  <meyering@lucent.com>
30105
30106         * m4/gettimeofday.m4: New file.
30107         Prompted by a report from Bernhard Baehr.
30108
30109 2001-07-15  Jim Meyering  <meyering@lucent.com>
30110
30111         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
30112         stuff. Now it's in ../Makefile.cfg.
30113
30114 2001-07-15  Jim Meyering  <meyering@lucent.com>
30115
30116         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
30117         (BUILT_SOURCES): Add unlocked-io.h.
30118         (io_functions): Define.
30119         (unlocked-io.h): New rule.
30120         (DISTCLEANFILES): Add unlocked-io.h.
30121         (all-local): Depend on unlocked-io.h, to ensure it is created.
30122
30123         * lib/unlocked-io.hin: New file
30124
30125         * lib/regex.c: Update from glibc.
30126
30127 2001-07-05  Jim Meyering  <meyering@lucent.com>
30128
30129         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
30130         recommendation.
30131         (libfetish_a_SOURCES): Put all .h files here instead.
30132         Remove a thus-exposed (better checks in automake) duplicate and
30133         two unnecessary .h files.
30134
30135 2001-07-04  Jim Meyering  <meyering@lucent.com>
30136
30137         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
30138         that generates jm-glibc-io.m4 so that it doesn't trigger any make
30139         distcheck failure.
30140
30141 2001-07-02  Jim Meyering  <meyering@lucent.com>
30142
30143         The following changes were prompted by suggestions from Bruno Haible.
30144
30145         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
30146         is now generated.
30147         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
30148         definition of EXTRA_DIST.
30149         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
30150         ensure that the generated file is created/updated whenever the list
30151         of $(unlocked_functions) is changed.
30152         (jm-glibc-io.m4): New rule.
30153         (unlocked-io.h): New rule -- currently unused.
30154
30155 2001-06-24  Jim Meyering  <meyering@lucent.com>
30156
30157         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
30158         unmatched right bracket, rather than kludging it with an extra,
30159         falsely-matching quote in a comment.  Patch by Akim Demaille.
30160
30161 2001-06-11  Jim Meyering  <meyering@lucent.com>
30162
30163         * lib/regex.c: Update from GNU libc.
30164
30165 2001-05-27  Jim Meyering  <meyering@lucent.com>
30166
30167         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
30168         Check for ut_type in struct utmp.
30169
30170 2001-05-27  Jim Meyering  <meyering@lucent.com>
30171
30172         * lib/readutmp.h (UT_TYPE): Define.
30173
30174 2001-05-24  Jim Meyering  <meyering@lucent.com>
30175
30176         * lib/argmatch.c: Include "quote.h".
30177         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
30178         quote function.  Reported by Göran Uddeborg.
30179
30180 2001-05-22  Jim Meyering  <meyering@lucent.com>
30181
30182         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
30183         now that we use the package-supplied version unconditionally.
30184         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
30185
30186 2001-05-21  Jim Meyering  <meyering@lucent.com>
30187
30188         * m4/regex.m4: Change a couple backticks to single quotes to avoid
30189         shell syntax errors.
30190
30191 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
30192
30193         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
30194
30195 2001-05-20  Paul Eggert  <eggert@twinsun.com>
30196
30197         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
30198         Don't bother to check library strftime, since
30199         we'll be using our own my_strftime function anyway.
30200         Define my_strftime instead of strftime.
30201
30202 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
30203
30204         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
30205         which is not yet declared.
30206
30207 2001-05-15  Jim Meyering  <meyering@lucent.com>
30208
30209         * m4/regex.m4: Use proper quoting so brackets appear in the test
30210         program.
30211         Reported by, and with help from, Bruno Haible.
30212
30213 2001-05-13  Jim Meyering  <meyering@lucent.com>
30214
30215         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
30216         undefined.
30217
30218 2001-05-11  Paul Eggert  <eggert@twinsun.com>
30219
30220         dirname code cleanup.  base_name now behaves more compatibly
30221         with POSIX basename when given file names that have trailing
30222         slashes, and similarly for dir_name.  Add new primitives
30223         base_len and dir_len.  Put the directory-name-related decls
30224         into dirname.h.
30225
30226         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
30227         * lib/backupfile.c (base_name): Likewise.
30228         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
30229         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
30230         * lib/makepath.c (strip_trailing_slashes): Likewise.
30231         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
30232         ISSLASH): Likewise.
30233         * lib/rename.c (strip_trailing_slashes): Likewise.
30234         * lib/same.c (base_name): Likewise.
30235         * lib/stripslash.c (ISSLASH): Likewise.
30236
30237         * lib/addext.c: Include <dirname.h> after size_t is defined.
30238         * lib/backupfile.c: Likewise.
30239
30240         * lib/addext.c (addext): Use base_len to trim redundant
30241         trailing slashes instead of doing it ourselves.
30242         But do not trim the last slash if it is not redundant.
30243
30244         * lib/backupfile.c (find_backup_file_name,
30245         max_backup_version): Use base_len instead of rolling it ourselves.
30246         Handle the case of "" and (on DOS) "C:" correctly.
30247
30248         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
30249         needed. Include <string.h>, <dirname.h>.
30250         (base_name): Allow file names ending in slashes, other than names
30251         that are all slashes.  In this case, return the basename followed
30252         by the slashes.  This is more general, and can be used in places
30253         where the original base_name purposely had an assertion failure.
30254         (base_len): New function.
30255
30256         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
30257         Do not include <assert.h>; no longer needed.
30258         Include xalloc.h.
30259         (memrchr): Remove decl.
30260         (dir_name_r): Remove.
30261         (dir_len): Renamed from dirlen.  All callers changed.
30262         Rewrite in terms of base_name, for simplicity and consistency.
30263         (dir_name): Never return NULL.  All callers changed.
30264         Do not include <stdlib.h> in test program; no longer needed.
30265         return 0; is fine for test program.
30266
30267         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
30268         New macros.
30269         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
30270
30271         * lib/path-concat.c (path_concat): Use base_len to compute
30272         base length, not strlen; this means we cannot rely on memcpy
30273         to null-terminate.
30274
30275         * lib/same.c (STREQ): Remove.
30276         (same_name): Handle the case where the basename ends in trailing '/'.
30277
30278         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
30279         a slash was stripped.  Do not strip the last slash after a
30280         file system prefix.
30281
30282 2001-05-11  Paul Eggert  <eggert@twinsun.com>
30283
30284         * lib/Makefile.am (libfetish_a_SOURCES):
30285         Add strftime.c, since we now compile it on all hosts.
30286
30287         * lib/strftime.c (my_strftime):
30288         Define to nstrftime if emacs, but only if my_strftime is not defined.
30289         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
30290         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
30291         Add one more extra argument: a nanoseconds value.
30292         All uses changed.
30293         (ns): New macro.
30294         (my_strftime function): Add %N format.
30295         (emacs_strftimeu): Renamed from emacs_strftime,
30296         with extra ut argument.
30297
30298 2001-05-09  Paul Eggert  <eggert@twinsun.com>
30299
30300         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
30301
30302 2001-04-21  Jim Meyering  <meyering@lucent.com>
30303
30304         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
30305         doesn't interfere.
30306
30307 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
30308
30309         * m4/ftruncate.m4: Check for chsize.
30310         Link with ftruncate.o unconditionally if ftruncate is missing.
30311         This was required when cross-compiling to i586-mingw32msvc.
30312
30313 2001-04-08  Jim Meyering  <meyering@lucent.com>
30314
30315         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
30316         recomputed; that's necessary when the offset spans a DST transition.
30317         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
30318
30319 2001-04-02  Jim Meyering  <meyering@lucent.com>
30320
30321         * lib/regex.h, regex.c: Update from GNU libc.
30322
30323 2001-03-24  Jim Meyering  <meyering@lucent.com>
30324
30325         * m4/jm-macros.m4: Require autoconf-2.49d.
30326
30327 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
30328
30329         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
30330
30331 2001-03-19  Paul Eggert  <eggert@twinsun.com>
30332
30333         * lib/version-etc.c (version_etc_copyright): Update to 2001.
30334
30335 2001-03-17  Jim Meyering  <meyering@lucent.com>
30336
30337         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
30338         now that the version in autoconf is equivalent.
30339         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
30340
30341         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
30342         Suggestion from Akim Demaille.
30343
30344         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
30345         (jm_PREREQ_TEMPNAME): New function.
30346
30347 2001-03-16  Paul Eggert  <eggert@twinsun.com>
30348
30349         * lib/tempname.c (uint64_t): Define to uintmax_t if
30350         not defined, and if UINT64_MAX is not defined.
30351         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
30352         Reported by John David Anglin.
30353
30354 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
30355
30356         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
30357         resolve alias if codeset is empty.
30358         * lib/config.charset (BeOS): Use wildcard syntax.
30359
30360 2001-03-13  Jim Meyering  <meyering@lucent.com>
30361
30362         * lib/path-concat.c (path_concat)
30363         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
30364         concatenating e.g., `C:' and `foo'.
30365         From Bruno Haible.
30366
30367 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
30368
30369         * lib/localcharset.c (locale_charset): Don't use
30370         setlocale(LC_CTYPE,NULL). Don't return NULL.
30371         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
30372
30373 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
30374
30375         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
30376         support for DOS/DJGPP.
30377
30378 2001-03-01  Paul Eggert  <eggert@twinsun.com>
30379
30380         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
30381         lacks mkstemp.  Compile our own tempname.c if we compile our own
30382         mkstemp.c, as mkstemp relies on tempname.
30383
30384 2001-03-01  Jim Meyering  <meyering@lucent.com>
30385
30386         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
30387         AH_VERBATIM really does output its argument verbatim.
30388
30389 2001-02-28  Paul Eggert  <eggert@twinsun.com>
30390
30391         * lib/Makefile.am (libfetish_a_SOURCES):
30392         Add dup-safer.c, fopen-safer.c.
30393         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
30394
30395         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
30396         * lib/unistd-safer.h: New files.
30397
30398 2001-02-25  Paul Eggert  <eggert@twinsun.com>
30399
30400         The mkstemp replacement is taken from glibc 2.2.2, with some
30401         portability fixes for use outside glibc, as follows:
30402
30403         * lib/tempname.c (struct_stat64): New macro.
30404         (direxists, __gen_tempname): Use it.
30405         This avoids a portability problem with Solaris 8.
30406
30407         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
30408         (<stddef.h>, <stdint.h>, <string.h>):
30409         Include only if STDC_HEADERS || _LIBC.
30410         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
30411         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
30412         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
30413         (__set_errno): Define this macro if <errno.h> doesn't.
30414         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
30415         Define these macros if <stdio.h> doesn't.
30416         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
30417         Define these macros if <sys/stat.h>
30418         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
30419         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
30420         __xstat64): Define if not _LIBC.
30421         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
30422         (__gen_tempname): Invoke gettimeofday only if
30423         HAVE_GETTIMEOFDAY || _LIBC;
30424         otherwise, fall back on plain "time".
30425         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
30426
30427         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
30428
30429         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
30430
30431 2001-02-18  Paul Eggert  <eggert@twinsun.com>
30432
30433         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
30434
30435 2001-02-17  Paul Eggert  <eggert@twinsun.com>
30436
30437         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
30438         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
30439         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
30440         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
30441
30442 2001-02-17  Paul Eggert  <eggert@twinsun.com>
30443
30444         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
30445         Remove workaround macros for hosts that have mbrtowc but not
30446         mbstate_t, as we now insist on proper declarations for both
30447         before using mbrtowc.
30448
30449 2001-02-17  Jim Meyering  <meyering@lucent.com>
30450
30451         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
30452         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
30453         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
30454         UnixWare 7.1.1.
30455
30456         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
30457         rather than AC_CACHE_VAL.
30458
30459 2001-02-17  Jim Meyering  <meyering@lucent.com>
30460
30461         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
30462         around included file name.
30463
30464         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
30465
30466         * lib/strftime.c: Update from GNU libc (the only changes were to
30467         comments).
30468
30469 2001-02-17  Jim Meyering  <meyering@lucent.com>
30470
30471         * lib/regex.c: Update from libc.
30472
30473 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
30474
30475         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
30476         clash.
30477
30478 2001-02-16  Paul Eggert  <eggert@twinsun.com>
30479
30480         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
30481         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
30482         Reported by Mark Hounschell via Paul Eggert.
30483
30484 2001-02-07  Jim Meyering  <meyering@lucent.com>
30485
30486         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
30487
30488 2001-02-05  Jim Meyering  <meyering@lucent.com>
30489
30490         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
30491         it includes the patch required for `large file' support with at least
30492         HP-UX's 10.20 /bin/cc.
30493
30494 2001-02-03  Jim Meyering  <meyering@lucent.com>
30495
30496         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
30497         AS_IF, now that it works once again (mysteriously).
30498         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
30499
30500 2001-01-30  Jim Meyering  <meyering@lucent.com>
30501
30502         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
30503         * m4/chown.m4: Rename conftestchown to conftest.chown.
30504         * m4/rename.m4: s/conftestdir/conftest.d1/ and
30505         s/conftestdir2/conftest.d2/.
30506         * m4/utimes.m4: s/conftestdata/conftest.data/
30507         Inspired by Pavel Roskin's change in autoconf.
30508
30509 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
30510
30511         * lib/config.charset: Update for FreeBSD 4.2.
30512
30513 2001-01-27  Jim Meyering  <meyering@lucent.com>
30514
30515         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
30516         a use of AS_IF.
30517         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
30518
30519 2001-01-26  Jim Meyering  <meyering@lucent.com>
30520
30521         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
30522         quotearg.c includes it.
30523
30524 2001-01-26  Jim Meyering  <meyering@lucent.com>
30525
30526         * lib/quotearg.c: Include stddef.h.
30527         * lib/quote.c: Include stddef.h.
30528         Reported by Axel Kittenberger.
30529
30530         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
30531         line in double quotes so that it evokes a better diagnostic.
30532         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
30533         Reported by Axel Kittenberger.
30534
30535 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
30536
30537         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
30538         as if it was a `charset'.
30539
30540 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
30541
30542         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
30543         has const.
30544
30545 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
30546
30547         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
30548         to avoid a warning.  Add back 'const' to inptr.
30549
30550 2001-01-20  Jim Meyering  <meyering@lucent.com>
30551
30552         Be sure that headers are checked before used in code compiled
30553         for the type checks.
30554         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
30555         In place of that, invoke jm_CHECK_ALL_TYPES.
30556         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
30557         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
30558         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
30559         The check for ssize_t was mistakenly run before the test for unistd.h.
30560
30561         The configure-time check for stdbool.h was missing.
30562         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
30563         (jm_PREREQ_HASH): New function.
30564
30565 2001-01-17  Jim Meyering  <meyering@lucent.com>
30566
30567         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
30568         for autoconf-2.49c.
30569         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
30570
30571 2001-01-16  Jim Meyering  <meyering@lucent.com>
30572
30573         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
30574         From Bruno Haible.
30575
30576 2001-01-14  Jim Meyering  <meyering@lucent.com>
30577
30578         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
30579         foo and bar.  Create conftestdir/ in the script, not in the C code.
30580         Remove directories in the script, not in the C code.
30581         Remove conftestdir{,2} before trying to create the directory.
30582         Make the entire configure script fail if the mkdir fails.
30583
30584 2001-01-14  Jim Meyering  <meyering@lucent.com>
30585
30586         * lib/rename.c: New file.  From Volker Borchert.
30587         Include stdlib.h, string.h or strings.h, and xalloc.h.
30588         Use strip_trailing_slashes rather than open-coding it.
30589
30590 2001-01-03  Paul Eggert  <eggert@twinsun.com>
30591
30592         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
30593
30594 2001-01-03  Jim Meyering  <meyering@lucent.com>
30595
30596         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
30597         of local `inptr' to avoid warning with some system declarations of
30598         iconv.
30599
30600 2001-01-02  Volker Borchert  <bt@teknon.de>
30601
30602         * m4/rename.m4: New file.
30603         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
30604
30605 2001-01-01  Jim Meyering  <meyering@lucent.com>
30606
30607         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
30608         even on systems with utmpx.h.  It's necessary for the declaration of
30609         utmp's ut_user member.  Reported by Andreas Jaeger.
30610
30611         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
30612         available. They are required for the declarations of getgrgid and
30613         getpwuid resp.
30614         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
30615         Reported by Andreas Jaeger.
30616
30617 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
30618
30619         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
30620         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
30621         so `make install' also works in VPATH builds.
30622
30623 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
30624
30625         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
30626         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
30627         can be used in subdirectories.
30628
30629 2000-12-29  Paul Eggert  <eggert@twinsun.com>
30630
30631         * lib/modechange.c: Do not assume that mode_t uses the
30632         traditional octal encoding.  E.g. "chmod 1 FOO" should set
30633         the other-execute bit of FOO even if S_IXOTH != 1.
30634
30635         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
30636         WOTH, XOTH, ALLM): New macros.
30637         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
30638          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
30639         Use them.
30640         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
30641         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
30642         (mode_compile):
30643         No need to use uintmax_t; unsigned long is long enough.
30644         Don't bother to get suffix since we don't use it.
30645
30646 2000-12-26  Jim Meyering  <meyering@lucent.com>
30647
30648         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
30649         better with autoheader.
30650
30651 2000-12-24  Jim Meyering  <meyering@lucent.com>
30652
30653         * lib/hash.c (is_prime): Return explicit boolean values.
30654         (hash_get_first): Return NULL to appease Irix5.6's 89.
30655         Reported by Nelson Beebe.
30656
30657 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
30658
30659         * lib/localcharset.c (locale_charset): Add support for Win32.
30660
30661 2000-12-18  Paul Eggert  <eggert@twinsun.com>
30662
30663         * lib/physmem.h, lib/physmem.c: New files.
30664
30665         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
30666         (noinst_HEADERS): Add physmem.h.
30667
30668         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
30669         't' for compatibility with Solaris 8 sort.
30670
30671 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
30672
30673         * lib/config.charset: Add support for BeOS.
30674
30675 2000-12-17  Jim Meyering  <meyering@lucent.com>
30676
30677         * m4/dos.m4 (jm_AC_DOS): New file and macro.
30678         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
30679
30680 2000-12-16  Jim Meyering  <meyering@lucent.com>
30681
30682         This bug had a serious impact on chown: `chown N:M FILE' (for integer
30683         N and M) would have treated it like `chown N:N FILE'.
30684
30685         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
30686
30687 2000-12-16  Jim Meyering  <meyering@lucent.com>
30688
30689         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
30690         SHELLS_FILE to a file name that's useful on djgpp systems.
30691         Include stdlib.h.
30692         (ADDITIONAL_DEFAULT_SHELLS): Define.
30693         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
30694         Based mostly on a patch from Prashant TR.
30695
30696 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
30697
30698         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
30699         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
30700         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
30701
30702 2000-12-08  Andreas Schwab  <schwab@suse.de>
30703
30704         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
30705         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
30706
30707 2000-12-07  Jim Meyering  <meyering@lucent.com>
30708
30709         * lib/stripslash.c (ISSLASH): Define.
30710         (strip_trailing_slashes): Use ISSLASH rather than comparing against
30711         `/'.
30712         From Prashant TR.
30713
30714         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
30715         (dir_name_r): Declare this function as static.
30716         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
30717         manifest itself on a name containing a mix of slashes and
30718         backslashes.
30719         Make this function work with names starting with a DOS-style
30720         drive letter and colon prefix.
30721         (dir_name): Append `.' if necessary.
30722         Based mostly on patches from Prashant TR and Eli Zaretskii.
30723
30724         * lib/dirname.h (dir_name_r): Remove prototype.
30725
30726 2000-12-06  Paul Eggert  <eggert@twinsun.com>
30727
30728         * m4/off_t-format.m4: Remove this file.
30729         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
30730
30731 2000-12-06  Jim Meyering  <meyering@lucent.com>
30732
30733         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
30734         replacement strtoull, we may well need the replacement strtoul, too.
30735         Check for declarations of strtoul and strtoull.
30736         Check for strtol.  Mainly as a cue to cause automake to include
30737         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
30738         Check for limits.h -- strtol.c needs it.
30739
30740 2000-12-05  Jim Meyering  <meyering@lucent.com>
30741
30742         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
30743
30744 2000-12-04  Jim Meyering  <meyering@lucent.com>
30745
30746         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
30747         Also include memory.h, stdlib.h, unistd.h if appropriate.
30748         Reported by Andreas Jaeger (conflicting declaration of malloc).
30749
30750 2000-12-02  Jim Meyering  <meyering@lucent.com>
30751
30752         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
30753         * m4/jm-macros.m4 (jm_MACROS): require it.
30754
30755 2000-12-02  Jim Meyering  <meyering@lucent.com>
30756
30757         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
30758
30759 2000-12-01  Paul Eggert  <eggert@twinsun.com>
30760
30761         * lib/memrchr.c: Include <config.h> before any system include file.
30762
30763 2000-11-30  Jim Meyering  <meyering@lucent.com>
30764
30765         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
30766
30767 2000-11-30  Jim Meyering  <meyering@lucent.com>
30768
30769         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
30770
30771 2000-11-29  Paul Eggert  <eggert@twinsun.com>
30772
30773         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
30774
30775 2000-11-26  Jim Meyering  <meyering@lucent.com>
30776
30777         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
30778
30779 2000-11-22  Paul Eggert  <eggert@twinsun.com>
30780
30781         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
30782         size of (size_t) -1; it's not portable.
30783
30784 2000-11-17  Jim Meyering  <meyering@lucent.com>
30785
30786         * lib/strstr.c: Update from GNU libc.
30787
30788 2000-11-17  Akim Demaille  <akim@epita.fr>
30789
30790         * lib/obstack.h: Formatting changes.
30791         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
30792         prevent type checking.
30793         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
30794         cast the value to (void *): assigning a `foo *' to a `void *'
30795         variable is valid.
30796         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
30797
30798 2000-11-16  Jim Meyering  <meyering@lucent.com>
30799
30800         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
30801
30802 2000-11-11  Jim Meyering  <meyering@lucent.com>
30803
30804         * lib/error.c: Add a couple #includes, merging from GNU libc version.
30805
30806 2000-11-10  Jim Meyering  <meyering@lucent.com>
30807
30808         * lib/obstack.h: Update from GNU libc.
30809         * lib/obstack.c: Likewise.
30810
30811 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
30812
30813         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
30814
30815 2000-11-06  Paul Eggert  <eggert@twinsun.com>
30816
30817         * lib/getusershell.c (setusershell): Use rewind rather than
30818         fseek/fseeko, to avoid configuration hassles with fseeko.
30819         Don't bother opening SHELLS_FILE if shellstream is NULL;
30820         it's not necessary.
30821
30822 2000-11-05  Jim Meyering  <meyering@lucent.com>
30823
30824         * lib/makepath.h (make_dir): Declare.
30825         * lib/makepath.c (make_dir): Remove `static' attribute.
30826         Tweak a comment.
30827
30828 2000-11-04  Jim Meyering  <meyering@lucent.com>
30829
30830         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
30831
30832 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
30833
30834         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
30835         last one in a bucket, advance to the next bucket.
30836
30837 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
30838
30839         * lib/fnmatch.c: Do not comment out all the code if we are using
30840         the GNU C library, because in some cases we are replacing buggy
30841         code in the GNU C library itself.
30842
30843 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
30844
30845         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
30846         (regex_compile): Catch bogus \(\1\).
30847
30848 2000-10-30  Paul Eggert  <eggert@twinsun.com>
30849
30850         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
30851         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
30852         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
30853
30854 2000-10-30  Paul Eggert  <eggert@twinsun.com>
30855
30856         * lib/error.h, getline.h, modechange.h:
30857         Remove "2000" from Copyright line, as the file hasn't been
30858         changed this year other than in the copyright notice.
30859
30860         * lib/xalloc.h: Add "2000" to Copyright line, as this file
30861         was changed this year.
30862
30863 2000-10-29  Jim Meyering  <meyering@lucent.com>
30864
30865         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
30866         renaming.
30867         * m4/ls-mntd-fs.m4: Likewise
30868
30869 2000-10-29  Jim Meyering  <meyering@lucent.com>
30870
30871         * lib/xstat.in: Fix grammar in comment.
30872
30873 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
30874
30875         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
30876         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
30877         doesn't define __restrict_arr.
30878
30879 2000-10-28  Jim Meyering  <meyering@lucent.com>
30880
30881         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
30882         (jm_PREREQ_MEMCHR): New function.
30883
30884 2000-10-28  Jim Meyering  <meyering@lucent.com>
30885
30886         * lib/memchr.c: Update from libc.
30887         Adjust for portability:
30888         [HAVE_STDLIB_H]: Include stdlib.h.
30889         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
30890         Undef __memchr, too.
30891         [!weak_alias]: Define __memchr to memchr.
30892
30893         * lib/regex.c: Update from libc.
30894         * lib/regex.h: Likewise.
30895         * lib/getopt1.c: Likewise.
30896         * lib/memcmp.c: Likewise.
30897
30898         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
30899         Avoid using fseek, when possible -- it's broken by design.
30900         Patch by Ulrich Drepper.
30901
30902 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
30903
30904         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
30905         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
30906         Giving in to popular pressure to shut up the compiler with casts.
30907
30908 2000-10-26  Jim Meyering  <meyering@lucent.com>
30909
30910         * lib/strftime.c: Update from libc.
30911
30912 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
30913
30914         * regex.c: More `unsigned char' -> `re_char' changes.
30915         Also change several `int' into `re_wchar_t'.
30916         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
30917         (PUSH_FAILURE_POINTER): Don't cast any more.
30918         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
30919         We want GCC to complain, since this piece of code makes
30920         re_match non-reentrant, which *should* be fixed.
30921         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
30922         (EXTEND_BUFFER): Use RETALLOC.
30923         (SET_LIST_BIT): Don't cast.
30924         (re_wchar_t): New type.
30925         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
30926         that those two functions will always properly return.
30927         (IMMEDIATE_QUIT_CHECK): Cast to void.
30928         (analyse_first): Use recursion rather than an explicit stack.
30929         (re_compile_fastmap): Can't fail anymore.
30930         (re_search_2): Don't check re_compile_fastmap for failure.
30931         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
30932         Now also sets the new value (passed in a new argument).
30933         (re_match_2_internal): Use it.
30934         Also, use a new var `reg' of type size_t when looping through regs
30935         rather than reuse the inappropriate `mcnt'.
30936
30937 2000-10-25  Jim Meyering  <meyering@lucent.com>
30938
30939         * lib/obstack.c: Update from libc.
30940
30941 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
30942
30943         * regex.c (regex_compile): Change the way of handling a range from
30944         a char less than 256 to a char not less than 256.
30945
30946 2000-10-24  Andrew Innes  <andrewi@gnu.org>
30947
30948         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
30949         NT-Emacs only.
30950         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
30951         so that re_search functions only quit when callers expect them to.
30952
30953 2000-10-23  Jim Meyering  <meyering@lucent.com>
30954
30955         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
30956         wrong.  That set_locale call must not have any side effects.
30957         From Paul Eggert.
30958
30959 2000-10-22  Jim Meyering  <meyering@lucent.com>
30960
30961         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
30962         [CYCLIC]: Remove now-unused definition.
30963
30964         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
30965         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
30966         Suggestion from Ulrich Drepper.
30967
30968 2000-10-21  Jim Meyering  <meyering@lucent.com>
30969
30970         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
30971         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
30972         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
30973
30974 2000-10-21  Jim Meyering  <meyering@lucent.com>
30975
30976         * lib/dirname.c (memrchr): Declare if necessary.
30977         (dir_name): Remove the restriction that there be no
30978         trailing slashes.  Now, this code skips past them, effectively
30979         ignoring them.
30980         [TEST_DIRNAME] (main): New unit tests.
30981
30982         * lib/memrchr.c: New file from GNU libc.
30983         Undef __memrchr, too.
30984         [!weak_alias]: Define __memrchr to memrchr.
30985         Guard weak_alias use with `#ifdef weak_alias'.
30986
30987 2000-10-21  Jim Meyering  <meyering@lucent.com>
30988
30989         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
30990         (dir_name): Use dir_name_r.
30991         * lib/dirname.h (dir_name_r): Declare it.
30992
30993 2000-10-17  Jim Meyering  <meyering@lucent.com>
30994
30995         * lib/quote.h (PARAMS): Define and use.
30996         Reported by Akim Demaille.
30997
30998         * lib/getopt.c: Update from libc.
30999
31000 2000-10-16  Jim Meyering  <meyering@lucent.com>
31001
31002         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
31003         setlocale.
31004         From Jan Fedak.
31005
31006 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
31007
31008         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
31009
31010 2000-09-25  Jim Meyering  <meyering@lucent.com>
31011
31012         * lib/md5.h (rol): Define (from GnuPG).
31013
31014         * lib/sha.c: Give credit (GnuPG) where due.
31015         (M): Use rol rather than open-coding it.
31016         Add a FIXME comment.
31017
31018 2000-09-21  Jim Meyering  <meyering@lucent.com>
31019
31020         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
31021         Reported by Michael Stone.
31022
31023 2000-09-20  Jim Meyering  <meyering@lucent.com>
31024
31025         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
31026         (noinst_HEADERS): Add sha.h.
31027         Based on code from Scott G. Miller and from GnuPG.
31028
31029 2000-09-18  Jim Meyering  <meyering@lucent.com>
31030
31031         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
31032         LIBS. Otherwise, everyone ends up linking with -lelf for some
31033         configurations.
31034         Reported by Mike Stone.
31035
31036 2000-09-15  Jim Meyering  <meyering@lucent.com>
31037
31038         * lib/regex.c: Update from libc.
31039
31040 2000-09-10  Jim Meyering  <meyering@lucent.com>
31041
31042         * lib/getopt.c (_getopt_internal): Update from glibc.
31043
31044 2000-09-09  Jim Meyering  <meyering@lucent.com>
31045
31046         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
31047         think it should be used as a general replacement for isascii.
31048         * lib/fnmatch.c: Likewise.
31049         * lib/mbswidth.c: Likewise
31050         * lib/regex.c: Likewise.
31051
31052         Don't use atoi.
31053         * lib/userspec.c: Include sys/param.h and limits.h.
31054         Include xstrtol.h.
31055         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
31056         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
31057         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
31058         UID, GID.  Check range.
31059
31060 2000-09-06  Jim Meyering  <meyering@lucent.com>
31061
31062         * lib/getopt.c (_getopt_internal): Update from glibc.
31063
31064 2000-08-30  Jim Meyering  <meyering@lucent.com>
31065
31066         * lib/strftime.c: Merge in changes from GNU libc.
31067
31068 2000-08-26  Jim Meyering  <meyering@lucent.com>
31069
31070         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
31071         * m4/fpending.m4: New file.
31072
31073 2000-08-26  Jim Meyering  <meyering@lucent.com>
31074
31075         * lib/closeout.c: Include "__fpending.h".
31076         (close_stdout_status): Return right away if there's nothing to flush.
31077
31078         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
31079         * lib/__fpending.c: New file.
31080         * lib/__fpending.h: New file.
31081
31082 2000-08-20  Jim Meyering  <meyering@lucent.com>
31083
31084         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
31085         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
31086         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
31087
31088 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
31089
31090         Improve fileutils installation on systems where running
31091         programs (like install) can't be unlinked.
31092         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
31093         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
31094
31095 2000-08-07  Paul Eggert  <eggert@twinsun.com>
31096
31097         Standardize on "memory exhausted" instead of "Memory exhausted"
31098         or "virtual memory exhausted".
31099         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
31100         "virtual memory exhausted".
31101         * lib/same.c (same_name): Invoke xalloc_die instead of printing
31102         our own message.
31103         * lib/userspec.c (parse_user_spec): Likewise.
31104         * lib/bumpalloc.h: comment fix
31105         * lib/same.c, userspec.c: Include xalloc.h.
31106
31107         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
31108         not char *const and pointing to a constant array.
31109         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
31110         (xrealloc): Comment fix.
31111
31112         * lib/userspec.c (parse_user_spec):
31113         Don't translate a message until just before returning,
31114         to avoid unnecessary translation.
31115
31116 2000-08-07  Jim Meyering  <meyering@lucent.com>
31117
31118         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
31119         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
31120         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
31121         getgroups.c, gethostname.c, getopt.h, group-member.c,
31122         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
31123         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
31124         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
31125         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
31126         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
31127         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
31128         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
31129         yesno.c: Back out Copyright date changes for each file with no change
31130         this year.  This eases coordination with other programs using the same
31131         source code modules.  From Paul Eggert.
31132
31133 2000-08-06  Paul Eggert  <eggert@twinsun.com>
31134
31135         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
31136         not char, for compatibility with glibc 2.1.3 strftime.c.
31137
31138 2000-08-03  Greg McGary  <greg@mcgary.org>
31139
31140         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
31141         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
31142         (EXTEND_BUFFER): Use them.
31143
31144 2000-08-01  Jim Meyering  <meyering@lucent.com>
31145
31146         * lib/dirname.c (ISSLASH): Define.
31147         (BACKSLASH_IS_PATH_SEPARATOR): Define.
31148         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
31149         both `\' and `/' may be use as path separators.
31150         Based on a patch from Prashant TR.
31151
31152 2000-07-31  Paul Eggert  <eggert@twinsun.com>
31153
31154         * lib/quotearg.c (quotearg_n_options): Don't make the initial
31155         slot vector a constant, since it might get modified.
31156
31157 2000-07-31  Jim Meyering  <meyering@lucent.com>
31158
31159         * lib/xmalloc.c: Use `virtual memory exhausted', not
31160         `Memory exhausted'.
31161         * lib/obstack.c (print_and_abort): Likewise.
31162
31163 2000-07-30  Paul Eggert  <eggert@twinsun.com>
31164
31165         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
31166         buffer, so that the caller can always quote one small
31167         component of a "memory exhausted" message in slot 0.
31168         From a suggestion by Jim Meyering.
31169
31170 2000-07-30  Jim Meyering  <meyering@lucent.com>
31171
31172         * lib/makepath.c (make_path): Quote the other instance, too.
31173
31174         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
31175         (STATIC_BUF_SIZE): Define.
31176         (quotearg_n_options): Use only statically allocated storage when
31177         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
31178         than STATIC_BUF_SIZE.
31179
31180 2000-07-29  Jim Meyering  <meyering@lucent.com>
31181
31182         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
31183         * lib/dirname.c (dir_name): Likewise.
31184
31185         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
31186         `/'.
31187
31188         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
31189         (dir_name): Assert that there are no trailing slashes.
31190
31191 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
31192
31193         * lib/mbswidth.h (mbswidth): Add a flags argument.
31194         (mbswidth): New declaration.
31195         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
31196         * lib/mbswidth.c (mbswidth): Add a flags argument.
31197         (mbsnwidth): New function.
31198
31199 2000-07-24  Jim Meyering  <meyering@lucent.com>
31200
31201         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
31202
31203 2000-07-23  Paul Eggert  <eggert@twinsun.com>
31204
31205         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
31206
31207 2000-07-23  Paul Eggert  <eggert@twinsun.com>
31208
31209         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
31210         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
31211         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
31212         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
31213         invoke multibyte primitives.
31214
31215 2000-07-23  Paul Eggert  <eggert@twinsun.com>
31216
31217         * lib/quotearg.c:
31218         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
31219         so that mbstate_t is always defined.
31220
31221         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
31222         be 1 in at least one GCC installation, and this configuration
31223         error is likely to be common.  Ignoring MB_LEN_MAX hurts
31224         performance on hosts that have mbrtowc but have only unibyte
31225         locales, but I assume these hosts are rare.
31226
31227 2000-07-23  Paul Eggert  <eggert@twinsun.com>
31228
31229         * lib/mbswidth.c (_XOPEN_SOURCE):
31230         Don't define; this causes problems on Solaris 7.
31231         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
31232
31233 2000-07-23  Jim Meyering  <meyering@lucent.com>
31234
31235         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
31236         too: getgrgid, getpwuid, getuid.
31237
31238 2000-07-23  Jim Meyering  <meyering@lucent.com>
31239
31240         * lib/basename.c (base_name): Add an assertion.
31241
31242 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
31243
31244         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
31245         shadow its mbsinit function.
31246
31247 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
31248
31249         * lib/mbswidth.h: New file.
31250         * lib/mbswidth.c: New file.
31251         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
31252         (noinst_HEADERS): Add mbswidth.h.
31253
31254 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
31255
31256         * lib/config.charset: Add support for FreeBSD. Improve support for
31257         HP-UX and IRIX 6.
31258
31259 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
31260
31261         * m4/mbswidth.m4: New file.
31262         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
31263
31264 2000-07-15  Jim Meyering  <meyering@lucent.com>
31265
31266         * lib/makepath.c: Include quote.h.
31267         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
31268         corresponding argument in a `quote (...)' call.
31269         Give better diagnostics.
31270
31271         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
31272         (noinst_HEADERS): Add quote.h.
31273
31274         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
31275         from tar's src/misc.c.
31276         * lib/quote.h: New file.  Prototypes for same.
31277
31278 2000-07-14  Paul Eggert  <eggert@twinsun.com>
31279
31280         From a suggestion by Bruno Haible.
31281         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
31282         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
31283         to decide whether to define the BeOS workaround macro;
31284         this adjusts to the change to AC_MBSTATE_T.
31285
31286 2000-07-14  Jim Meyering  <meyering@lucent.com>
31287
31288         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
31289         jm_AC_TYPE_UINTMAX_T.
31290
31291 2000-07-13  Paul Eggert  <eggert@twinsun.com>
31292
31293         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
31294
31295         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
31296         quotearg_buffer_restyled): Add support for
31297         clocale_quoting_style.  Undo previous change to
31298         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
31299         and "{RIGHT QUOTATION MARK}" msgids.
31300
31301 2000-07-10  Paul Eggert  <eggert@twinsun.com>
31302
31303         From a suggestion by Bruno Haible.
31304         * m4/mbstate_t.m4 (AC_MBSTATE_T):
31305         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
31306         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
31307         and mbstate_t, to a single-part test that simply defines mbstate_t.
31308         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
31309         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
31310
31311 2000-07-10  Jim Meyering  <meyering@lucent.com>
31312
31313         * m4/strerror_r.m4: Mirror the correction made in autoconf.
31314
31315         * m4/gnu-source.m4: Output to confdefs.h directly.
31316         Suggestion from Akim Demaille.
31317
31318 2000-07-09  Paul Eggert  <eggert@twinsun.com>
31319
31320         The old behavior of quoting `like this' doesn't look good with
31321         newer, ISO-style fonts.  See:
31322         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
31323
31324         Instead, quote "like this" by default.  Let the translator
31325         tailor the locale-specific quoting behavior by providing
31326         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
31327
31328         * lib/quotearg.c (N_): New macro.
31329         (gettext_default): New function.
31330         (quotearg_buffer_restyled): Use
31331         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
31332         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
31333
31334 2000-07-09  Jim Meyering  <meyering@lucent.com>
31335
31336         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
31337         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
31338
31339         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
31340         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
31341
31342 2000-07-09  Jim Meyering  <meyering@lucent.com>
31343
31344         * lib/Most files: Update copyright dates to include 2000.
31345
31346 2000-07-08  Jim Meyering  <meyering@lucent.com>
31347
31348         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
31349         if not defined.
31350         (xgethostname): Remove now-unnecessary #ifdef.
31351         Move declaration of `err' into loop where it's used.
31352
31353 2000-07-05  Paul Eggert  <eggert@twinsun.com>
31354         and Bruno Haible  <haible@clisp.cons.org>
31355
31356         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
31357         only if the test for an object-type mbstate_t fails.  This
31358         prevents us from mistakenly reporting that mbstate_t is a
31359         system object type after we "#define mbstate_t int" to work
31360         around its lack.
31361
31362 2000-07-05  Paul Eggert  <eggert@twinsun.com>
31363         and Bruno Haible  <haible@clisp.cons.org>
31364
31365         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
31366
31367 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
31368
31369         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
31370         to strerror_r.
31371         Include <ctype.h> for use of isalpha.
31372
31373 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
31374
31375         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
31376         by allocating a larger buffer. Test the gethostname return value for
31377         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
31378         returns an error and ENAMETOOLONG isn't defined.
31379
31380 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
31381
31382         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
31383         dimension.
31384
31385 2000-07-04  Jim Meyering  <meyering@lucent.com>
31386
31387         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
31388         of the deprecated AC_CHECKING.
31389
31390 2000-07-04  Jim Meyering  <meyering@lucent.com>
31391
31392         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
31393         Reported by Bruno Haible.
31394
31395 2000-07-04  Jim Meyering  <meyering@lucent.com>
31396
31397         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
31398         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
31399         lacks mbrtowc.
31400
31401 2000-07-03  Paul Eggert  <eggert@twinsun.com>
31402
31403         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
31404         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
31405
31406 2000-07-03  Paul Eggert  <eggert@twinsun.com>
31407         and Bruno Haible  <haible@clisp.cons.org>
31408
31409         * lib/quotearg.c (mbrtowc):
31410         Assign to *pwc, and return 1 only if result is nonzero.
31411         (iswprint): Use ISPRINT when substituting our own mbrtowc.
31412
31413 2000-07-03  Jim Meyering  <meyering@lucent.com>
31414
31415         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
31416
31417 2000-07-03  Jim Meyering  <meyering@lucent.com>
31418
31419         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
31420         This is necessary to get a definition of e.g., UTMP_FILE on
31421         HP-UX 10.20.
31422         From Bob Proulx.
31423
31424 2000-07-02  Jim Meyering  <meyering@lucent.com>
31425
31426         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
31427
31428         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
31429         AC_LIBOBJ(function_name).
31430         * m4/chown.m4: Likewise.
31431         * m4/fnmatch.m4: Likewise.
31432         * m4/ftruncate.m4: Likewise.
31433         * m4/getgroups.m4: Likewise.
31434         * m4/getline.m4: Likewise.
31435         * m4/group-member.m4: Likewise.
31436         * m4/jm-macros.m4: Likewise.
31437         * m4/lstat.m4: Likewise.
31438         * m4/malloc.m4: Likewise.
31439         * m4/memcmp.m4: Likewise.
31440         * m4/nanosleep.m4: Likewise.
31441         * m4/putenv.m4: Likewise.
31442         * m4/realloc.m4: Likewise.
31443         * m4/regex.m4: Likewise.
31444         * m4/stat.m4: Likewise.
31445         * m4/strftime.m4: Likewise.
31446
31447 2000-07-02  Jim Meyering  <meyering@lucent.com>
31448
31449         * lib/quotearg.c (mbstate_t): Don't define here.
31450
31451 2000-07-02  Jim Meyering  <meyering@lucent.com>
31452
31453         * lib/nanosleep.c (SIGCONT): Define if not already defined.
31454
31455 2000-07-01  Jim Meyering  <meyering@lucent.com>
31456
31457         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
31458
31459 2000-07-01  Jim Meyering  <meyering@lucent.com>
31460
31461         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
31462         problem.
31463
31464 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
31465
31466         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
31467         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
31468
31469 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
31470
31471         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
31472         per change in ../m4/ls-mntd-fs.m4.
31473         (read_filesystem_list): Ignore symbolic links.
31474
31475 2000-06-29  Jim Meyering  <meyering@lucent.com>
31476
31477         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
31478         for declaration of strcmp.
31479
31480         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
31481
31482         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
31483         Avoid warning by casting result to `char *' to remove `const'.
31484
31485 2000-06-28  Jim Meyering  <meyering@lucent.com>
31486
31487         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
31488         included by quotearg.c, for which we perform this test.  From
31489         Bruno Haible.
31490
31491 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
31492
31493         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
31494         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
31495         <utmpx.h> exists, put readutmp.o into LIBOBJS.
31496
31497 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
31498
31499         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
31500
31501 2000-06-26  Paul Eggert  <eggert@twinsun.com>
31502
31503         savedir now sets errno on failure and invokes xmalloc to get memory.
31504         Fix a couple of other minor bugs while we're at it.
31505
31506         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
31507         (NAMLEN): Remove macro.
31508         (malloc, realloc): Remove decls.
31509         (stpcpy): Likewise.
31510         ("xalloc.h"): Include.
31511         (NAME_SIZE_DEFAULT): New macro.
31512         (savedir): Use xmalloc / xrealloc to allocate memory.
31513         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
31514         Skip "" directory entries.
31515         Use strlen to calculate directory entry length, since the old method
31516         is rarely used these days and isn't worth supporting.
31517         Don't use a pointer after freeing it.
31518         Check for integer overflow when calculating allocation size.
31519         Use memcpy to copy entries, instead of stpcpy.
31520         Set errno properly when returning NULL.
31521         Check for readdir error.
31522
31523 2000-06-26  Jim Meyering  <meyering@lucent.com>
31524
31525         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
31526
31527 2000-06-25  Jim Meyering  <meyering@lucent.com>
31528
31529         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
31530         Linux header bug when _XOPEN_SOURCE is defined to 500.
31531
31532 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
31533
31534         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
31535         deficiency.
31536
31537 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
31538
31539         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
31540         Include xalloc.h.
31541         Don't include <stdlib.h>.  Don't declare malloc, realloc.
31542
31543 2000-06-24  Jim Meyering  <meyering@lucent.com>
31544
31545         * m4/strerror_r.m4: Revive this file -- to try out an experimental
31546         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
31547         for which strerror does return char*, but which lacks a conveniently
31548         accessible declaration of the function.  If the compile-test says
31549         strerror_r doesn't work, then resort to a `run'-test that works on
31550         BeOS and segfaults on DEC Unix.
31551
31552 2000-06-24  Jim Meyering  <meyering@lucent.com>
31553
31554         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
31555
31556 2000-06-23  Paul Eggert  <eggert@twinsun.com>
31557
31558         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
31559         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
31560
31561 2000-06-23  Paul Eggert  <eggert@twinsun.com>
31562
31563         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
31564         (mbrtowc, mbstate_t): Define substitutes if
31565         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
31566         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
31567         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
31568
31569 2000-06-23  Jim Meyering  <meyering@lucent.com>
31570
31571         * m4/afs.m4: Add missing AC_MSG_RESULT.
31572         Reported by Bruno Haible.
31573
31574         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
31575         Suggestion from Bruno Haible.
31576
31577 2000-06-23  Jim Meyering  <meyering@lucent.com>
31578
31579         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
31580
31581 2000-06-21  Jim Meyering  <meyering@lucent.com>
31582
31583         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
31584
31585 2000-06-21  Jim Meyering  <meyering@lucent.com>
31586
31587         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
31588         (noinst_HEADERS): Add getstr.h.
31589
31590         * lib/getline.c (getstr): Move into a separate file.
31591         * lib/getstr.c (getstr): New file, extracted from getline.c, with
31592         the following changes: new parameter, delim2; both delim[12]
31593         parameters have type `int', not `char'.  The latter would lose
31594         with 8-bit delimiters.
31595         * lib/getstr.h: New file.
31596
31597 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
31598
31599         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
31600         than 1024, return a memory chunk of least possible size, instead
31601         of size PATH_MAX + 2. In the loop, increment the size proportionally.
31602         Use free/xmalloc instead of xrealloc to avoid copying for very long
31603         paths.
31604
31605 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
31606
31607         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
31608         the empty string.
31609
31610 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
31611
31612         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
31613         address, not strdup.  Include <stdlib.h> and don't declare free().
31614
31615 2000-06-19  Jim Meyering  <meyering@lucent.com>
31616
31617         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
31618
31619 2000-06-18  Jim Meyering  <meyering@lucent.com>
31620
31621         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
31622
31623         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
31624         `checking whether...' message to be consistent with that of the
31625         lstat test.
31626
31627 2000-06-18  Jim Meyering  <meyering@lucent.com>
31628
31629         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
31630         Besides, these days every porting target provides a mkdir function.
31631
31632         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
31633         needed. (this snippet comes from src/system.h).
31634
31635 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
31636
31637         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
31638
31639 2000-06-15  Paul Eggert  <eggert@twinsun.com>
31640
31641         * lib/human.c (adjust_value): New function.
31642         (human_readable_inexact): Apply rounding style even when
31643         printing approximate values.
31644
31645 2000-06-14  Paul Eggert  <eggert@twinsun.com>
31646
31647         * lib/human.c (human_readable_inexact): Allow an input block
31648         size that is not a multiple of the output block size, and vice versa.
31649         Reported by Piergiorgio Sartor.
31650
31651 2000-06-14  Paul Eggert  <eggert@twinsun.com>
31652
31653         * lib/getdate.y (get_date): Apply relative times after time
31654         zone indicator, not before.  Reported by Todd A. Jacobs.
31655
31656 2000-06-13  Jim Meyering  <meyering@lucent.com>
31657
31658         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
31659
31660         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
31661
31662 2000-06-12  Paul Eggert  <eggert@twinsun.com>
31663
31664         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
31665
31666 2000-06-12  Jim Meyering  <meyering@lucent.com>
31667
31668         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
31669         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
31670         optional argument.
31671         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
31672         the optional argument, `lib'.
31673
31674 2000-06-08  Jim Meyering  <meyering@lucent.com>
31675
31676         * m4/largefile.m4: Remove file (now that it's part of autoconf).
31677
31678 2000-06-04  Paul Eggert  <eggert@twinsun.com>
31679
31680         Rewrite largefile configuration so that we don't need to run
31681         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
31682         AC_CANONICAL_HOST in configure.in -- jmm]
31683
31684         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
31685         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
31686         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
31687         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
31688         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
31689         All uses changed.
31690         Instead of inspecting the output of getconf, try to compile the
31691         test program without and with the macro definition.
31692         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
31693         for getconf.  Instead, check for the needed flags by compiling
31694         test programs.
31695
31696 2000-06-04  Paul Eggert  <eggert@twinsun.com>
31697
31698         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
31699
31700 2000-06-04  Jim Meyering  <meyering@lucent.com>
31701
31702         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
31703         SunOS 4.1.4 for which gid_t is an unsigned type.
31704
31705 2000-06-03  Jim Meyering  <meyering@lucent.com>
31706
31707         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
31708         now that autoconf requires that.
31709
31710         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
31711         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
31712         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
31713
31714 2000-06-03  Jim Meyering  <meyering@lucent.com>
31715
31716         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
31717
31718 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
31719
31720         * m4/glibc21.m4: New file.
31721         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
31722
31723 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
31724
31725         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
31726         newer, don't install charset.alias.
31727         * lib/config.charset: Change the Linux/glibc rules so they become empty
31728         on glibc-2.1 or newer.
31729
31730 2000-06-02  Jim Meyering  <meyering@lucent.com>
31731
31732         * lib/mountlist.c: Back out last change.  Instead, do this...
31733         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
31734         me_dummy member using the same `ignore'-testing code.
31735         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
31736         fs_type strings.
31737         From Mark D. Roth.
31738
31739 2000-05-29  Jim Meyering  <meyering@lucent.com>
31740
31741         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
31742         mounts with the `ignore' attribute.  Based on a patch from
31743         Mark D. Roth.
31744
31745 2000-05-28  Jim Meyering  <meyering@lucent.com>
31746
31747         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
31748         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31749         * m4/stat.m4: Likewise.
31750         * m4/lstat.m4: Likewise.
31751         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
31752
31753         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
31754         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
31755
31756 2000-05-26  Jim Meyering  <meyering@lucent.com>
31757
31758         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
31759
31760 2000-05-24  Jim Meyering  <meyering@lucent.com>
31761
31762         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
31763         autoconf requires that.
31764         * m4/lib-check.m4: Likewise.
31765         * m4/jm-macros.m4: Likewise.
31766         * m4/strftime.m4: Likewise.
31767
31768         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
31769         AC_CHECK_DECLS, now that autoconf requires that.
31770
31771 2000-05-22  Jim Meyering  <meyering@lucent.com>
31772
31773         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31774         * m4/lstat.m4: Likewise.
31775
31776 2000-05-22  Jim Meyering  <meyering@lucent.com>
31777
31778         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
31779
31780 2000-05-20  Jim Meyering  <meyering@lucent.com>
31781
31782         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
31783         (jm_PREREQ): Use it.
31784
31785 2000-05-18  Jim Meyering  <meyering@lucent.com>
31786
31787         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
31788         back, too, since it may have been modified by allocate_entry.
31789         (hash_delete): Rewrite to use neither the assignment operator
31790         nor the comma operator in an if-expression.
31791
31792 2000-05-15  Paul Eggert  <eggert@twinsun.com>
31793
31794         * lib/closeout.c:
31795         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
31796         Remove; no longer needed.
31797         "quotearg.h": Add include.
31798         (file_name): Do not bother to explicitly initialize to NULL; it's less
31799         efficient on some hosts.
31800         (close_stdout_status): Remove test as to whether stdout was already
31801         closed; it breaks for the case "echo x | sort >&-".
31802         Quote file name colons.
31803         Do not assume that _("write error") lacks format strings.
31804
31805 2000-05-15  Jim Meyering  <meyering@lucent.com>
31806
31807         * lib/version-etc.c (version_etc_copyright): Update the copyright
31808         string used in all --version output.
31809
31810 2000-05-14  Jim Meyering  <meyering@lucent.com>
31811
31812         * lib/closeout.c (close_stdout_set_file_name): New function.
31813         (close_stdout_status): Use new file-scoped global.
31814         Return right away if fstat says the stdout file descriptor is invalid.
31815         * lib/closeout.h (close_stdout_set_file_name): Declare.
31816
31817 2000-05-10  Jim Meyering  <meyering@lucent.com>
31818
31819         * lib/closeout.c [default_exit_status]: New file-scoped variable.
31820         (close_stdout_set_status): New function.
31821         * lib/closeout.h (close_stdout_set_status): Declare.
31822
31823 2000-05-09  Jim Meyering  <meyering@lucent.com>
31824
31825         * m4/gettext.m4: Rename this...
31826         * m4/libintl.m4: ...to this.
31827
31828 2000-05-08  Jim Meyering  <meyering@lucent.com>
31829
31830         * lib/long-options.c: Don't include closeout.h.
31831         (parse_long_options): Don't call close_stdout for --version.
31832
31833 2000-05-06  Paul Eggert  <eggert@twinsun.com>
31834
31835         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
31836         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
31837         2.1.3 bug.  This avoids a clash when files like regex.c define
31838         _GNU_SOURCE.
31839
31840 2000-05-06  Jim Meyering  <meyering@lucent.com>
31841
31842         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
31843         (AC_REPLACE_FUNCS): Add strnlen.
31844
31845         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
31846         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
31847
31848         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
31849         AC_SEARCH_LIBS call for nanosleep.
31850         (LIB_NANOSLEEP): Set and AC_SUBST.
31851
31852 2000-05-06  Jim Meyering  <meyering@lucent.com>
31853
31854         * lib/strnlen.c: Undefine __strnlen and strnlen.
31855         [!weak_alias]: Define __strnlen to strnlen.
31856
31857         * lib/atexit.c: New file, from libiberty.
31858
31859 2000-05-06  Jim Meyering  <meyering@lucent.com>
31860
31861         * lib/closeout.c (close_stdout_status): Also check for errors on the
31862         stderr stream.
31863
31864 2000-05-05  Jim Meyering  <meyering@lucent.com>
31865
31866         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
31867         AC_SEARCH_LIBS call for clock_gettime.
31868         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
31869
31870         * m4/search-libs.m4: Update from autoconf.
31871
31872         su doesn't work on Solaris 2.6.
31873         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
31874         <shadow.h>.  Reported by Dragos Harabor.
31875
31876 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
31877
31878         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
31879         memcpy instead of xmalloc, xrealloc, path_concat.
31880         (locale_charset): Treat empty environment variables as absent.
31881         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
31882
31883 2000-05-04  Jim Meyering  <meyering@lucent.com>
31884
31885         * lib/getopt.c: Update from glibc.
31886         * lib/obstack.c: Likewise.
31887         * lib/obstack.h: Likewise.
31888         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
31889         file
31890
31891         * lib/regex.h: Likewise.
31892         * lib/strndup.c: Likewise.
31893         * lib/strnlen.c: New file, from glibc.
31894
31895 2000-05-03  Jim Meyering  <meyering@lucent.com>
31896
31897         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
31898
31899 2000-05-02  Paul Eggert  <eggert@twinsun.com>
31900
31901         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
31902         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
31903         compile-time test, rather than inspecting host and OS, to
31904         decide whether to define _LARGEFILE_SOURCE.
31905
31906 2000-05-01  Jim Meyering  <meyering@lucent.com>
31907
31908         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
31909
31910         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
31911         Based on a patch from Bruno Haible.
31912
31913 2000-05-01  Jim Meyering  <meyering@lucent.com>
31914
31915         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
31916
31917 2000-04-29  Jim Meyering  <meyering@lucent.com>
31918
31919         * lib/path-concat.c: Declare strdup only if it's not defined.
31920         * lib/canon-host.c: Likewise.
31921
31922 2000-04-28  Jim Meyering  <meyering@lucent.com>
31923
31924         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
31925         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
31926         is included first, then limits.h is included by locale.h by libintl.h.
31927         From John David Anglin.
31928
31929 2000-04-25  Jim Meyering  <meyering@lucent.com>
31930
31931         * lib/makepath.c (S_IRWXUGO): Define.
31932         (make_path): Always perform explicit chmod if MODE specifies any
31933         of the `special' permission bits.  Prompted by a bug report against
31934         install from Mate Wierdl and Joost van Baal.
31935
31936 2000-04-18  Jim Meyering  <meyering@lucent.com>
31937
31938         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
31939         (jm_PREREQ): Use it.
31940
31941 2000-04-18  Jim Meyering  <meyering@lucent.com>
31942
31943         * lib/README: New file.
31944
31945         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
31946         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
31947
31948 2000-04-17  Jim Meyering  <meyering@lucent.com>
31949
31950         Get it right :-)
31951         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
31952         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
31953         Suggestion from Akim Demaille.
31954
31955 2000-04-17  Jim Meyering  <meyering@lucent.com>
31956
31957         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
31958         the definition of it to rpl_strftime also defined-away the system's
31959         declaration.
31960
31961 2000-04-15  Jim Meyering  <meyering@lucent.com>
31962
31963         Use `C' to denote so-called `contiguous' files, the same way
31964         that tar does.
31965         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
31966         (ftypelet): Use S_ISCTG.
31967         From Michael Deutschmann.
31968
31969 2000-04-14  Jim Meyering  <meyering@lucent.com>
31970
31971         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
31972         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
31973         clobbered.
31974
31975 2000-04-14  Jim Meyering  <meyering@lucent.com>
31976
31977         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
31978
31979 2000-04-13  Jim Meyering  <meyering@lucent.com>
31980
31981         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
31982         AH_VERBATIM to insert required #ifndef into config.h.in.
31983         Suggestion from Akim Demaille.
31984
31985 2000-04-12  Jim Meyering  <meyering@lucent.com>
31986
31987         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
31988         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
31989         Christian Krackowizer.
31990
31991         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
31992         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
31993         (AC_SYS_LARGEFILE): Require.
31994         (AM_C_PROTOTYPES): Require.
31995
31996 2000-04-08  Jim Meyering  <meyering@lucent.com>
31997
31998         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
31999         names don't conflict.  Reported by Eli Zaretskii.
32000
32001 2000-04-07  Jim Meyering  <meyering@lucent.com>
32002
32003         * lib/putenv.c: Move inclusion of errno.h so it follows that of
32004         sys/types.h, to work around system header problems on AIX 3.2.5.
32005         From Bruno Haible.
32006
32007 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
32008
32009         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
32010         bug.  Deal with the different error behavior of Irix iconv.
32011
32012 2000-04-05  Paul Eggert  <eggert@twinsun.com>
32013
32014         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
32015         IRIX if the installer said otherwise.
32016
32017 2000-04-05  Jim Meyering  <meyering@lucent.com>
32018
32019         Portability tweaks required for ultrix4.3.
32020         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
32021         (jm_CHECK_DECLS): Add getutent to the list of functions.
32022         (_jm_DECL_HEADERS): Add utmpx.h.
32023         From John David Anglin.
32024
32025         * m4/strftime.m4: Back out the 2000-04-02 change.
32026         Instead of that change, simply undefine putenv in the test program.
32027
32028 2000-04-05  Jim Meyering  <meyering@lucent.com>
32029
32030         Portability tweaks required for ultrix4.3.
32031         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
32032         getutent.
32033         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
32034         * lib/canon-host.c: Declare strdup.
32035         * lib/path-concat.c: Likewise.
32036         From John David Anglin.
32037
32038 2000-04-04  Jim Meyering  <meyering@lucent.com>
32039
32040         Be more DOS 8.3-friendly.
32041         * lib/ref-add.sin: Renamed from ref-add.sed.in.
32042         * lib/ref-del.sin: Renamed from ref-del.sed.in.
32043         * lib/Makefile.am: Reflect renaming.
32044         Reported by Eli Zaretskii.
32045
32046         Use a temporary file name that won't clash with `charset.alias'
32047         in the DOS 8.3 name space.
32048         * lib/Makefile.am (charset_tmp): Define.
32049         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
32050         (uninstall-local): Likewise.
32051         Reported by Eli Zaretskii.
32052
32053 2000-04-03  Jim Meyering  <meyering@lucent.com>
32054
32055         * m4/gettext.m4: Fix typo in comment.
32056
32057         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
32058         textutils/configure.in).  Suggestion from Paul Eggert.
32059         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
32060
32061 2000-04-02  Paul Eggert  <eggert@twinsun.com>
32062
32063         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
32064         variable in the shell rather than using putenv, which isn't
32065         portable.  This avoids the configure-time inter-test dependency
32066         on the potentially-renamed putenv function.
32067
32068 2000-03-30  Paul Eggert  <eggert@twinsun.com>
32069
32070         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
32071         before checking struct stat.st_blksize, so that
32072         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
32073
32074 2000-03-29  Paul Eggert  <eggert@twinsun.com>
32075
32076         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
32077         since strftime.c uses HAVE_STRFTIME to decide whether to use
32078         the underlying strftime.
32079
32080 2000-03-29  Paul Eggert  <eggert@twinsun.com>
32081
32082         * lib/time/strftime.c (my_strftime): Make sure we call the system
32083         strftime, not ourselves, when invoking the underlying strftime.
32084
32085 2000-03-24  Jim Meyering  <meyering@lucent.com>
32086
32087         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
32088         (charset_alias): Define.
32089         (install-exec-local): Factor out common code.
32090         (uninstall-local): Split lines longer than 80.
32091         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
32092         (SUFFIXES): Define.
32093         (.sed.in.sed): New rule.  Don't redirect directly to $@.
32094         (CLEANFILES): Add ref-add.sed and ref-del.sed.
32095
32096 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
32097
32098         * lib/config.charset: Output a line containing "Packages using this
32099         file".
32100         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
32101         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
32102         ref-del.sed): New rules.
32103
32104 2000-03-17  Jim Meyering  <meyering@lucent.com>
32105
32106         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
32107         Otherwise, include <strings.h>
32108
32109 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
32110
32111         * lib/unicodeio.c (utf8_wctomb): New function.
32112         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
32113         format instead of in UCS-4 with platform dependent endianness.
32114
32115 2000-03-10  Jim Meyering  <meyering@lucent.com>
32116
32117         * m4/lib-check.m4: Look for getspnam in -lgen, too.
32118         From Marco Franzen.
32119
32120 2000-03-07  Paul Eggert  <eggert@twinsun.com>
32121
32122         * lib/savedir.c (savedir): Work even if directory size is
32123         negative; this can happen with some screwy NFS configurations.
32124
32125 2000-03-06  Jim Meyering  <meyering@lucent.com>
32126
32127         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
32128         if it's NULL (because we ran out of memory).  From Bruno Haible.
32129
32130 2000-03-05  Jim Meyering  <meyering@lucent.com>
32131
32132         * lib/localcharset.c ("path-concat.h"): Include.
32133         (get_charset_aliases): Use path_concat instead of ANSI string
32134         concatenation.
32135
32136         * lib/unicodeio.h (PARAMS): Define.
32137         Use it to guard prototype.
32138
32139 2000-03-04  Jim Meyering  <meyering@lucent.com>
32140
32141         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
32142         for lib/localcharset.c.
32143
32144 2000-03-04  Jim Meyering  <meyering@lucent.com>
32145
32146         * lib/Makefile.am (install-exec-local): Create $(libdir) before
32147         installing into it.
32148         (uninstall-local): Uncomment this rule so `make distcheck' works
32149         once again.
32150
32151         * lib/unicodeio.c (<errno.h>): Include it.
32152         (errno): Declare if not defined.
32153
32154         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
32155
32156         * lib/config.charset: New version, incorporating remarks from a linux
32157         i18n mailing list.  From Bruno Haible.
32158
32159 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
32160
32161         * m4/codeset.m4: New file.
32162         * m4/iconv.m4: New file.
32163         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
32164
32165 2000-03-03  Jim Meyering  <meyering@lucent.com>
32166
32167         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
32168
32169 2000-03-02  Jim Meyering  <meyering@lucent.com>
32170
32171         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
32172         the messages come out on separate lines.
32173
32174         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
32175         rather than jm_CHECK_DECLARATIONS.
32176         * m4/decl.m4: Remove now-unused file.
32177
32178         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
32179         geteuid.
32180
32181 2000-03-02  Jim Meyering  <meyering@lucent.com>
32182
32183         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
32184
32185 2000-03-01  Jim Meyering  <meyering@lucent.com>
32186
32187         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
32188         * lib/unicodeio.c: Likewise.
32189
32190 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
32191
32192         * lib/config.charset: New file.
32193         * lib/localcharset.c: New file.
32194         * lib/unicodeio.h, lib/unicodeio.c: New files.
32195         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
32196         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
32197         (noinst_HEADERS): Add unicodeio.h.
32198         (all-local, install-exec-local, charset.alias): New targets.
32199
32200 2000-02-28  Paul Eggert  <eggert@twinsun.com>
32201
32202         * lib/quotearg.c (ALERT_CHAR): New macro.
32203         (quotearg_buffer_restyled): Use it.
32204
32205 2000-02-27  Jim Meyering  <meyering@lucent.com>
32206
32207         * m4/check-decl.m4: Add getenv to the list.
32208
32209 2000-02-27  Jim Meyering  <meyering@lucent.com>
32210
32211         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
32212         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
32213
32214         * lib/backupfile.c: Guard inclusion of stdlib.h with
32215         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
32216         Declare malloc if needed.
32217
32218         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
32219         `#ifndef HAVE_DECL..'
32220         now that autoconf always defines the HAVE_DECL_ symbols.
32221         * lib/human.c: Likewise.
32222         * lib/same.c: Likewise.
32223         * lib/strtoumax.c: Likewise.
32224
32225         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
32226         declaration check was not run.
32227         * lib/hash.c: Likewise.
32228         * lib/human.c: Likewise.
32229         * lib/same.c: Likewise.
32230         * lib/strtoumax.c: Likewise.
32231
32232         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
32233         `.', then first look up the entire `.'-containing string as a login
32234         name.
32235
32236 2000-02-23  Jim Meyering  <meyering@lucent.com>
32237
32238         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
32239         in place of my hack.
32240
32241 2000-02-18  Paul Eggert  <eggert@twinsun.com>
32242
32243         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
32244         (textint): New typedef.
32245         (parser_control): Member year changed from int to textint.
32246         All uses changed.
32247         (YYSTYPE): Removed; replaced by %union with int and textint members.
32248         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
32249         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
32250         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
32251         (tSNUMBER, tUNUMBER): Now of type <textintval>.
32252         (date, number, to_year): Use width of number in digits, not its value,
32253         to determine whether it's a 2-digit year, or a 2-digit time.
32254         (yylex): Store number of digits of numeric tokens.
32255         Reported by John Kendall.
32256
32257         (parser_control): Changed from struct parser_control to typedef (for
32258         consistency).  All uses changed.
32259
32260         (tID): Removed; not used.
32261         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
32262
32263 2000-02-14  Paul Eggert  <eggert@twinsun.com>
32264
32265         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
32266         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
32267
32268 2000-02-12  Jim Meyering  <meyering@lucent.com>
32269
32270         * lib/userspec.c (ISDIGIT): Define it.
32271         (isdigit): Remove definition.
32272         (is_number): Use ISDIGIT, not isdigit.
32273         <libintl.h>: Include.
32274         (_ and N_): Define.
32275         (parse_user_spec): Mark translatable strings.
32276
32277 2000-02-10  Jim Meyering  <meyering@lucent.com>
32278
32279         With these changes, nanosleep.[ch] are finally enough like the other
32280         lib/* replacement files to compile on a few more losing systems.
32281
32282         * lib/nanosleep.h: Don't include config.h.
32283         Remove prototype from declaration of nanosleep.
32284         (PARAMS): Remove now-unneeded definition.
32285         * lib/nanosleep.c: #undef nanosleep.
32286         (rpl_nanosleep): Rename from nanosleep.
32287
32288 2000-02-10  Jim Meyering  <meyering@lucent.com>
32289
32290         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
32291         gnu_nanosleep to rpl_nanosleep.
32292
32293 2000-02-09  Jim Meyering  <meyering@lucent.com>
32294
32295         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
32296         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
32297
32298 2000-02-08  Akim Demaille  <akim@epita.fr>
32299
32300         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
32301         `[' and `]' and remove uses of `changequote'.
32302         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
32303         (AC_SYS_LARGEFILE): Likewise.
32304         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
32305         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
32306         of changequote.
32307         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
32308         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
32309         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
32310         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
32311
32312 2000-02-05  Jim Meyering  <meyering@lucent.com>
32313
32314         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
32315         Remove explicit use of AC_HEADER_TIME.  It is required by
32316         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
32317         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
32318         in autoconf whereby the expansion of the latter ended up preceding
32319         the expansion of its prerequisite, AC_HEADER_TIME.
32320         Reported by Volker Borchert.
32321
32322 2000-02-03  Jim Meyering  <meyering@lucent.com>
32323
32324         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
32325
32326 2000-02-03  Jim Meyering  <meyering@lucent.com>
32327
32328         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
32329         rather than with `#if HAVE_UTMPNAME'.
32330
32331 2000-02-02  Jim Meyering  <meyering@lucent.com>
32332
32333         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
32334         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
32335         Reported by Eli Zaretskii.
32336
32337 2000-02-01  Jim Meyering  <meyering@lucent.com>
32338
32339         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
32340
32341 2000-01-31  Jim Meyering  <meyering@lucent.com>
32342
32343         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
32344         functions.  Add the time.h and sys/time.h headers along with the
32345         AC_REQUIRE'ment of AC_HEADER_TIME.
32346
32347 2000-01-31  Jim Meyering  <meyering@lucent.com>
32348
32349         * lib/nanosleep.h (nanosleep): Guard declaration with
32350         `#if ! HAVE_DECL_NANOSLEEP'.
32351         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
32352         the declaration in that vendor's sys/timers.h.
32353         Reported by Christian Krackowizer.
32354
32355         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
32356         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
32357         (ISPRINT): Likewise.
32358         Reported by Tom Tromey.
32359
32360 2000-01-30  Jim Meyering  <meyering@lucent.com>
32361
32362         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
32363
32364         * m4/prereq.m4 (utmp_includes): Define.
32365         Check for ut_user and ut_name members in both struct utmpx
32366         and struct utmp.
32367
32368 2000-01-30  Jim Meyering  <meyering@lucent.com>
32369
32370         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
32371         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
32372         header files where only utmpx.ut_user is declared.
32373
32374         * lib/readutmp.h (UT_USER): Define.
32375
32376 2000-01-29  Jim Meyering  <meyering@lucent.com>
32377
32378         * m4/lib-check.m4: New file containing library-related checks from
32379         fileutils and sh-utils (textutils had none).
32380
32381 2000-01-28  Jim Meyering  <meyering@lucent.com>
32382
32383         * m4/perl.m4: Change format of warning message to look more like that
32384         from the missing script.  Suggestion from François Pinard.
32385
32386 2000-01-25  Jim Meyering  <meyering@lucent.com>
32387
32388         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
32389         well as time.h in the compile check.
32390         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
32391         Fix typo in cross-compiling case: s/yes/no/.
32392
32393 2000-01-23  Jim Meyering  <meyering@lucent.com>
32394
32395         * m4/jm-macros.m4: Move df-related tests here from
32396         fileutils/configure.in
32397
32398         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
32399         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
32400
32401         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
32402         s/space/ac_fsusage_space/.
32403         (jm_FILE_SYSTEM_USAGE): Take two parameters.
32404
32405         * m4/ftruncate.m4: New file (derived from part of
32406         fileutils/configure.in).
32407         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
32408         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
32409
32410         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
32411         AC_SUBST these here, rather than just in sh-util/configure.in, so
32412         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
32413         all the same.
32414         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
32415         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
32416         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
32417         (AC_SUBST(POW_LIBM)): Likewise.
32418         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
32419
32420 2000-01-23  Jim Meyering  <meyering@lucent.com>
32421
32422         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
32423         obstack.c.
32424
32425 2000-01-22  Jim Meyering  <meyering@lucent.com>
32426
32427         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
32428
32429         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
32430
32431         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
32432         configure.in
32433         (AC_CHECK_HEADERS): Likewise for sh-utils.
32434         (AC_CHECK_HEADERS): Likewise for textutils.
32435         Merge the three lists of headers.
32436
32437         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
32438         from fileutils' configure.in.
32439
32440         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
32441         code. Moved tests into their own function (_jm_DECL_HEADERS) in
32442         check-decl.m4.
32443
32444         * m4/check-decl.m4: Use #if rather than #ifdef.
32445         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
32446         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
32447         (_jm_DECL_HEADERS): Define new function.
32448         (jm_CHECK_DECLARATIONS): Require it.
32449
32450 2000-01-22  Jim Meyering  <meyering@lucent.com>
32451
32452         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
32453         [! HAVE_DECL_STRTOULL]: Declare strtoull.
32454         Required for some AIX systems.  Reported by Christian Krackowizer.
32455         [TESTING] (main): New function.
32456
32457         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
32458         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
32459         letters.
32460
32461         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
32462         iswprint.
32463
32464         * lib/strverscmp.c (ISDIGIT): Define.
32465         (strverscmp): Use ISDIGIT, not isdigit.
32466
32467 2000-01-19  Jim Meyering  <meyering@lucent.com>
32468
32469         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
32470         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
32471         defines `struct timespec' in <sys/time.h>
32472
32473         * m4/c-bs-a.m4: Remove uses of changequote altogether.
32474         Thanks to Akim for explaining.
32475
32476 2000-01-17  Paul Eggert  <eggert@twinsun.com>
32477
32478         * lib/nanosleep.c (nanosleep):
32479         Don't use SA_INTERRUPT to decide whether to call sigaction, as
32480         POSIX.1 doesn't require SA_INTERRUPT and some systems
32481         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
32482         it's been part of POSIX.1 since day 1 (in 1988).
32483
32484 2000-01-17  Jim Meyering  <meyering@lucent.com>
32485
32486         * lib/interlock: Remove unused file.  Reported by François Pinard.
32487
32488 2000-01-16  Paul Eggert  <eggert@twinsun.com>
32489
32490         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
32491         alert, backslash, formfeed, and vertical tab unnecessarily in
32492         shell quoting style.
32493
32494 2000-01-16  Jim Meyering  <meyering@lucent.com>
32495
32496         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
32497         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
32498         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
32499         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
32500
32501 2000-01-16  Jim Meyering  <meyering@lucent.com>
32502
32503         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
32504         because the latter didn't work.
32505
32506 2000-01-15  Jim Meyering  <meyering@lucent.com>
32507
32508         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
32509         (AC_REPLACE_FUNCS): Add memcpy and memset.
32510         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
32511         Add strpbrk.
32512         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
32513
32514 2000-01-12  Jim Meyering  <meyering@lucent.com>
32515
32516         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
32517         (jm_PREREQ): Use it.
32518         (jm_PREREQ_READUTMP): New macro.
32519         (jm_PREREQ): Use it.
32520
32521 2000-01-11  Paul Eggert  <eggert@twinsun.com>
32522
32523         Quote multibyte characters correctly.
32524         * m4/c-bs-a.m4: New file.
32525         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
32526         (jm_PREREQ): Use it.
32527
32528 2000-01-11  Paul Eggert  <eggert@twinsun.com>
32529
32530         * m4/uintmax_t.m4: Port to autoconf 2.13.
32531
32532 2000-01-08  Jim Meyering  <meyering@ascend.com>
32533
32534         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
32535         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
32536
32537 2000-01-04  Jim Meyering  <meyering@ascend.com>
32538
32539         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
32540         jm_STRUCT_DIRENT_D_TYPE.
32541         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
32542         jm_STRUCT_DIRENT_D_INO.
32543         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
32544         jm_STRUCT_UTIMBUF.
32545         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
32546         renamings.
32547         * m4/utime.m4: Likewise.
32548
32549         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
32550         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
32551
32552 2000-01-03  Paul Eggert  <eggert@twinsun.com>
32553
32554         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
32555         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
32556
32557 2000-01-02  Jim Meyering  <meyering@ascend.com>
32558
32559         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
32560         remember if this is necessary.
32561
32562 1999-12-26  Jim Meyering  <meyering@ascend.com>
32563
32564         * m4/jm-macros.m4: Use it here.
32565         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
32566
32567 1999-12-23  Jim Meyering  <meyering@ascend.com>
32568
32569         * m4/jm-macros.m4: Check for clock_gettime (moved from
32570         fileutils/configure.in)
32571         Check for gettimeofday.
32572
32573 1999-12-20  Jim Meyering  <meyering@ascend.com>
32574
32575         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
32576         autoconf-2.14a-1999-12-20.
32577
32578 1999-12-19  Jim Meyering  <meyering@ascend.com>
32579
32580         * m4/lstat-slash.m4: New file.
32581         * m4/jm-macros.m4: Use the new macro:
32582         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32583
32584 1999-12-07  Jim Meyering  <meyering@ascend.com>
32585
32586         * m4/perl.m4: Require that File::Compare be available, too.
32587         Too many systems seem to lack it.
32588
32589         * m4/strftime.m4: Add checks for most of the cpp macros tested in
32590         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
32591
32592 1999-11-18  Paul Eggert  <eggert@twinsun.com>
32593
32594         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
32595         problem with the QNX 4.25 shell, which doesn't propagate exit
32596         status of failed commands inside shell assignments.
32597
32598 1999-11-17  Jim Meyering  <meyering@ascend.com>
32599
32600         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
32601
32602 1999-11-07  Jim Meyering  <meyering@ascend.com>
32603
32604         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
32605
32606 1999-11-06  Jim Meyering  <meyering@ascend.com>
32607
32608         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
32609         * m4/jm-macros.m4 (jm_MACROS): Use it here.
32610
32611 1999-11-05  Jim Meyering  <meyering@ascend.com>
32612
32613         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
32614         configure.in of textutils, fileutils, and sh-utils into this one
32615         (shared between those packages) file.
32616         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
32617         AC_STRUCT_ST_BLKSIZE.
32618
32619 1999-11-03  Jim Meyering  <meyering@ascend.com>
32620
32621         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
32622         of AC_CHECK_TYPE checks includes unistd.h.
32623         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
32624         Suggestion from Akim Demaille.
32625
32626 1999-10-30  Jim Meyering  <meyering@ascend.com>
32627
32628         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
32629         m4-quoted string.
32630         * m4/ls-mntd-fs.m4: Likewise.
32631         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
32632         * m4/jm-winsz1.m4: Likewise.
32633
32634         * m4/const.m4: Remove file, since the fix made it into the experimental
32635         version of autoconf.
32636         * m4/mktime.m4: Likewise.
32637
32638         * m4/check-type.m4: Remove file, now that the latest version of
32639         AC_CHECK_TYPE takes a third arg to specify additional #includes.
32640
32641         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
32642         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
32643         AC_CHECK_TYPE.
32644
32645 1999-10-04  Jim Meyering  <meyering@ascend.com>
32646
32647         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
32648
32649 1999-09-22  Paul Eggert  <eggert@twinsun.com>
32650
32651         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
32652         2.95.1 bug with HP-UX 10.20.
32653
32654 1999-09-17  Jim Meyering  <meyering@ascend.com>
32655
32656         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
32657         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
32658         due to missing strdup (against sh-utils-2.0).
32659
32660 1999-08-29  Jim Meyering  <meyering@ascend.com>
32661
32662         * m4/jm-macros.m4: Require jm_BISON.
32663         * m4/bison.m4: New file.
32664
32665 1999-08-17  Paul Eggert  <eggert@twinsun.com>
32666
32667         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
32668         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
32669
32670 1999-08-05  Jim Meyering  <meyering@ascend.com>
32671
32672         * m4/getline.m4: Rename test file from conftestdata to conftest.data
32673         to avoid conflicts with `conftest' on 8+3 filesystems.
32674         Suggestion from Eli Zaretskii.
32675
32676 1999-08-04  Jim Meyering  <meyering@ascend.com>
32677
32678         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
32679         fileutils and sh-utils (textutils's getline test was inadequate).
32680         (AM_FUNC_GETLINE): Run this test.
32681         (AC_CHECK_FUNCS): Check for getdelim.
32682         Reported by Bob Proulx.
32683
32684 1999-08-02  Jim Meyering  <meyering@ascend.com>
32685
32686         * m4/jm-macros.m4: Add a comment.
32687
32688 1999-08-01  Paul Eggert  <eggert@twinsun.com>
32689
32690         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
32691         <inttypes.h> defines strtoumax as a macro (and not as a
32692         function).
32693
32694 1999-08-01  Paul Eggert  <eggert@twinsun.com>
32695
32696         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
32697         that we can shift, multiply and divide unsigned long long
32698         values; Ultrix cc can't do it.
32699
32700 1999-08-01  Paul Eggert  <eggert@twinsun.com>
32701
32702         * m4/mktime.m4: New file, which is a preview of what should appear
32703         in the next public autoconf release.
32704
32705 1999-08-01  Paul Eggert  <eggert@twinsun.com>
32706
32707         * m4/lfs.m4: Remove this file.
32708         * m4/largefile.m4: New file.  It contains the old contents of
32709         lfs.m4, except that all names with prefix AC_LFS have been
32710         changed to use the prefix AC_SYS_LARGEFILE instead, to be
32711         compatible with future autoconf versions.  Also, some minor m4
32712         quoting problems have been fixed.
32713
32714 1999-08-01  Paul Eggert  <eggert@twinsun.com>
32715
32716         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
32717         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
32718         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
32719         and simplify the shell code.
32720
32721 1999-08-01  Jim Meyering  <meyering@ascend.com>
32722
32723         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
32724         m4.
32725
32726 1999-07-20  Jim Meyering  <meyering@ascend.com>
32727
32728         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
32729
32730 1999-07-15  Jim Meyering  <meyering@ascend.com>
32731
32732         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
32733
32734 1999-05-22  Jim Meyering  <meyering@ascend.com>
32735
32736         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
32737
32738 1999-05-20  Jim Meyering  <meyering@ascend.com>
32739
32740         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
32741         Add a colon after each `then' in case $4 is empty.
32742
32743 1999-05-16  Jim Meyering  <meyering@ascend.com>
32744
32745         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
32746
32747 1999-05-10  Jim Meyering  <meyering@ascend.com>
32748
32749         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
32750
32751         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
32752         AC_FUNC_MKTIME.
32753
32754 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
32755
32756         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
32757
32758 1999-05-04  Paul Eggert  <eggert@twinsun.com>
32759
32760         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
32761         not CPPFLAGS, so that linking works correctly in IRIX.
32762
32763 1999-04-30  Paul Eggert  <eggert@twinsun.com>
32764
32765         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
32766
32767 1999-04-20  Paul Eggert  <eggert@twinsun.com>
32768
32769         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
32770         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
32771         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
32772         jm_AC_TYPE_UNSIGNED_LONG_LONG.
32773         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
32774
32775         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
32776
32777 1999-04-20  Jim Meyering  <meyering@ascend.com>
32778
32779         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
32780         AC_REPLACE xstroull if necessary.  From Paul Eggert.
32781         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
32782
32783 1999-04-18  Jim Meyering  <meyering@ascend.com>
32784
32785         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
32786         * m4/jm-macros.m4: Use it.
32787
32788 1999-04-06  Jim Meyering  <meyering@ascend.com>
32789
32790         * m4/strftime.m4: Remove test for %f.
32791
32792 1999-03-29  Jim Meyering  <meyering@ascend.com>
32793
32794         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
32795         superset of the AC_TYPE_* checks in the textutils, fileutils,
32796         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
32797         AC_TYPE_PID_T.
32798
32799 1999-03-28  Jim Meyering  <meyering@ascend.com>
32800
32801         * m4/jm-macros.m4: Define GNU_PACKAGE here.
32802         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
32803         replaced e.g., in the *.sh files of the sh-utils.
32804
32805 1999-03-20  Jim Meyering  <meyering@ascend.com>
32806
32807         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
32808         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
32809         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
32810
32811 1999-03-19  Jim Meyering  <meyering@ascend.com>
32812
32813         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
32814
32815 1999-03-12  Jim Meyering  <meyering@ascend.com>
32816
32817         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
32818
32819 1999-03-07  Jim Meyering  <meyering@ascend.com>
32820
32821         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
32822         declared.
32823
32824 1999-02-17  Jim Meyering  <meyering@ascend.com>
32825
32826         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
32827         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
32828
32829 1999-02-07  Jim Meyering  <meyering@ascend.com>
32830
32831         * m4/group-member.m4: New file -- extracted from sh-utils'
32832         configure.in.
32833
32834         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
32835         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
32836
32837 1999-02-06  Jim Meyering  <meyering@ascend.com>
32838
32839         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
32840         * m4/fnmatch.m4: Likewise.
32841         * m4/getgroups.m4: Likewise.
32842         * m4/lstat.m4: Likewise.
32843         * m4/malloc.m4: Likewise.
32844         * m4/putenv.m4: Likewise.
32845         * m4/realloc.m4: Likewise.
32846         * m4/regex.m4: Likewise.
32847         * m4/stat.m4: Likewise.
32848         * m4/strftime.m4: Likewise.
32849         Suggestion from Alain Magloire.
32850
32851         * m4/chown.m4: Use `.$ac_objext', not `.o'.
32852         * m4/fnmatch.m4: Likewise.
32853         * m4/getgroups.m4: Likewise.
32854         * m4/getline.m4: Likewise.
32855         * m4/lstat.m4: Likewise.
32856         * m4/malloc.m4: Likewise.
32857         * m4/memcmp.m4: Likewise.
32858         * m4/putenv.m4: Likewise.
32859         * m4/realloc.m4: Likewise.
32860         * m4/regex.m4: Likewise.
32861         * m4/stat.m4: Likewise.
32862         * m4/strftime.m4: Likewise.
32863         Suggestion from Alain Magloire.
32864
32865         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
32866         an argument.
32867
32868         * m4/regex.m4: Add a run-time Test for proper operation of
32869         re_compile_pattern.
32870
32871 1999-01-31  Jim Meyering  <meyering@ascend.com>
32872
32873         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
32874
32875 1999-01-30  Jim Meyering  <meyering@ascend.com>
32876
32877         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
32878
32879         * m4/jm-mktime.m4: Make this a wrapper around the official
32880         AM_FUNC_MKTIME rather than my private copy, now that the official one
32881         is up to date.
32882         * m4/mktime.m4: Remove file.
32883
32884         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
32885         * m4/uptime.m4: Likewise.
32886         * m4/uintmax_t.m4: Likewise.
32887
32888 1999-01-28  Jim Meyering  <meyering@ascend.com>
32889
32890         * m4/jm-macros.m4: Use jm_AFS.
32891         * m4/afs.m4: New file (from fileutils' configure.in).
32892
32893         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
32894         * m4/chown.m4: Likewise.
32895         * m4/d-ino.m4: Likewise.
32896         * m4/d-type.m4: Likewise.
32897         * m4/fnmatch.m4: Likewise.
32898         * m4/getgroups.m4: Likewise.
32899         * m4/gettext.m4: Likewise.
32900         * m4/jm-mktime.m4: Likewise.
32901         * m4/jm-winsz2.m4: Likewise.
32902         * m4/lcmessage.m4: Likewise.
32903         * m4/ls-mntd-fs.m4: Likewise.
32904         * m4/malloc.m4: Likewise.
32905         * m4/memcmp.m4: Likewise.
32906         * m4/putenv.m4: Likewise.
32907         * m4/realloc.m4: Likewise.
32908         * m4/st_mtim.m4: Likewise.
32909         * m4/strftime.m4: Likewise.
32910
32911 1999-01-16  Jim Meyering  <meyering@ascend.com>
32912
32913         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
32914         (ARGMATCH_DIE_DECL): Define.
32915
32916 1999-01-12  Jim Meyering  <meyering@ascend.com>
32917
32918         * m4/Makefile.am.in: Rewrite to avoid using fmt.
32919         Reported by Lars Hecking.
32920
32921 1999-01-10  Jim Meyering  <meyering@ascend.com>
32922
32923         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
32924         gross kludge.
32925         * m4/inttypes_h.m4: Likewise.
32926         * m4/lstat.m4: Likewise.
32927         * m4/malloc.m4: Likewise.
32928         * m4/readdir.m4: Likewise.
32929         * m4/realloc.m4: Likewise.
32930         * m4/st_dm_mode.m4: Likewise.
32931         * m4/stat.m4: Likewise.
32932         * m4/utimbuf.m4: Likewise.
32933         * m4/utimes.m4: Likewise.
32934
32935         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
32936         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
32937         comments in config.h.in are meaningful.
32938
32939         * m4/jm-macros.m4: Require autoconf-2.13 here.
32940
32941         * m4/regex.m4: By default, don't use the included regex.c on systems
32942         with glibc 2.  Suggestion from Uli Drepper.
32943
32944 1999-01-02  Jim Meyering  <meyering@ascend.com>
32945
32946         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
32947
32948 1998-12-18  Jim Meyering  <meyering@ascend.com>
32949
32950         * m4/Makefile.am.in (Makefile.am): Simplify rule.
32951         Based on a suggestion from Lars Hecking.
32952
32953 1998-11-16  Paul Eggert  <eggert@twinsun.com>
32954
32955         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
32956
32957 1998-11-16  Jim Meyering  <meyering@ascend.com>
32958
32959         * m4/lfs.m4: Double-quote the `uname...` expression.
32960
32961 1998-11-14  Jim Meyering  <meyering@ascend.com>
32962
32963         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
32964         * m4/stat.m4: Likewise.
32965
32966 1998-11-03  Jim Meyering  <meyering@ascend.com>
32967
32968         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
32969         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
32970
32971 1998-10-18  Jim Meyering  <meyering@ascend.com>
32972
32973         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
32974
32975 1998-10-17  Jim Meyering  <meyering@ascend.com>
32976
32977         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
32978         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
32979         calls for those previously hard-coded headers.  Instead, take a new
32980         parameter.
32981         (jm_CHECK_DECLARATIONS): Reflect interface change.
32982         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
32983         (jm_CHECK_DECL_LOCALTIME_R): New macro.
32984
32985         * m4/mktime.m4: Test for spring-forward gap before long-running test.
32986
32987 1998-10-14  Jim Meyering  <meyering@ascend.com>
32988
32989         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
32990         instead of "TZ=America/Vancouver".  From Paul Eggert.
32991
32992 1998-10-11  Jim Meyering  <meyering@ascend.com>
32993
32994         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
32995         This adds a test for a recently added compatibility fix for mktime.c.
32996         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
32997
32998 1998-09-27  Jim Meyering  <meyering@ascend.com>
32999
33000         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
33001
33002         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
33003         ../configure.in, including a change from Gordon Matzigkeit to allow
33004         cross-compiling for the Hurd.
33005
33006         * m4/glibc.m4: New file/macro to test for the GNU C Library
33007         versions 1 and 2.  From Gordon Matzigkeit.
33008         Indent.
33009
33010 1998-09-21  Jim Meyering  <meyering@ascend.com>
33011
33012         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
33013
33014 1998-08-18  Paul Eggert  <eggert@twinsun.com>
33015
33016         Port nanosecond-resolution times to UnixWare 2.1.2 and
33017         pedantic Solaris 2.6.
33018
33019         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
33020         AC_STRUCT_ST_MTIM.
33021         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
33022         Generate name of ns member, instead of just 1 or undef.
33023         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
33024
33025 1998-08-15  Jim Meyering  <meyering@ascend.com>
33026
33027         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
33028         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
33029         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
33030         instead of jm_TYPE_SSIZE_T.
33031
33032 1998-08-12  Jim Meyering  <meyering@ascend.com>
33033
33034         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
33035
33036 1998-08-02  Jim Meyering  <meyering@ascend.com>
33037
33038         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
33039         in acconfig.h manually.
33040
33041 1998-07-31  Paul Eggert  <eggert@twinsun.com>
33042
33043         * m4/st_mtim.m4: New file.
33044
33045 1998-07-28  Jim Meyering  <meyering@ascend.com>
33046
33047         * m4/utimes.m4: Undef stat.
33048
33049 1998-07-25  Jim Meyering  <meyering@ascend.com>
33050
33051         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
33052         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
33053
33054 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
33055
33056         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
33057         uid and gid actually remain unchanged.
33058
33059 1998-07-07  Jim Meyering  <meyering@ascend.com>
33060
33061         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
33062
33063 1998-07-04  Jim Meyering  <meyering@ascend.com>
33064
33065         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
33066         to prove that this macro can be used in packages without regex.c.
33067
33068 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
33069
33070         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
33071         is to be used.
33072
33073 1998-07-03  Jim Meyering  <meyering@ascend.com>
33074
33075         * m4/gettext.m4: Add -lintl if it's found to be necessary.
33076
33077         * m4/gettext.m4: New file -- from gettext-0.10.35.
33078         * m4/lcmessage.m4: Likewise.
33079         * m4/progtest.m4: Likewise.
33080
33081         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
33082         * m4/jm-macros.m4: Require the new macro.
33083
33084 1998-06-29  Jim Meyering  <meyering@ascend.com>
33085
33086         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
33087         for the definition of NGROUPS (used in a system header included
33088         by sys/mount.h).
33089
33090 1998-06-28  Jim Meyering  <meyering@ascend.com>
33091
33092         * m4/ls-mntd-fs.m4: New file.
33093         * m4/fstypename.m4: New file.
33094
33095         * m4/jm-macros.m4: Require the new macro.
33096         * m4/jm-glibc-io.m4: New file.
33097
33098 1998-05-19  Jim Meyering  <meyering@ascend.com>
33099
33100         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
33101         * m4/lchown.m4: New file.
33102
33103         * m4/Makefile.am.in: New file.
33104         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
33105
33106 1998-05-14  Jim Meyering  <meyering@ascend.com>
33107
33108         * m4/Makefile.am (EXTRA_DIST): Add them.
33109         * m4/jm-macros.m4: New file.
33110         * m4/utimbuf.m4: New file.
33111
33112 1998-05-12  Jim Meyering  <meyering@ascend.com>
33113
33114         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
33115
33116 1998-05-11  Jim Meyering  <meyering@ascend.com>
33117
33118         * m4/isc-posix.m4: New file.
33119
33120 1998-05-10  Jim Meyering  <meyering@ascend.com>
33121
33122         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
33123
33124 1998-05-09  Jim Meyering  <meyering@ascend.com>
33125
33126         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
33127         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
33128         with automake.
33129
33130         * m4/ssize_t.m4: New file.
33131         * m4/mktime.m4: Remove file -- the new automake has this now.
33132
33133 1998-04-26  Jim Meyering  <meyering@ascend.com>
33134
33135         * m4/assert.m4: New file.
33136         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
33137
33138 1998-04-05  Jim Meyering  <meyering@ascend.com>
33139
33140         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
33141         (jm_PREREQ): Use it here.
33142
33143 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
33144
33145         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
33146         in acconfig.h.
33147
33148 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
33149
33150         * m4/prereq.m4: New file.
33151         * m4/error.m4: New file.
33152         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
33153
33154 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
33155
33156         * m4/getline.m4: Don't set am_cv_func_working_getline before the
33157         cache-check for the same variable -- that defeated the purpose of
33158         the test; the test program was never run.  This was a problem only
33159         on systems with losing getline functions -- HP-UX 10.20 is one.
33160         Reported by Bjorn Helgaas.
33161
33162 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
33163
33164         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
33165
33166 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
33167
33168         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
33169
33170         * m4/const.m4: New file.  Use an initializer in this declaration
33171         typedef int charset[2]; const charset x;
33172         Reported by Bob Glickstein.
33173
33174 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
33175
33176         * m4/chown.m4: Fix reversed types on -1 args to chown.
33177         From Kaveh Ghazi.
33178
33179 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
33180
33181         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
33182         Add lseek and memchr.
33183
33184         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
33185         T.E.Dickey <dickey@clark.net> said that some older preprocessors
33186         have a 20-character limit on names.
33187
33188 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
33189
33190         * m4/inttypes_h.m4: New file.
33191         * m4/uintmax_t.m4: New file.
33192         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
33193
33194 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
33195   Free Software Foundation, Inc.
33196 Copying and distribution of this file, with or without modification,
33197 are permitted provided the copyright notice and this notice are preserved.