5df9267411b3403ba3d9b4586053a7a5f2350086
[gnulib.git] / ChangeLog
1 2008-03-30  Bruno Haible  <bruno@clisp.org>
2
3         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
4         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
5
6 2008-03-30  Bruno Haible  <bruno@clisp.org>
7
8         Avoid failure when attempting to return empty iconv results on some
9         platforms.
10         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
11         allocation, don't report ENOMEM when the resulting string is empty.
12
13 2008-03-30  Bruno Haible  <bruno@clisp.org>
14
15         Fix buffer overrun.
16         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
17         Don't consider the width for tmp_length. Check count against tmp_length
18         before doing the padding. Ensure enough allocation during padding.
19
20 2008-03-30  Eric Blake  <ebb9@byu.net>
21
22         strtod touchups.
23         * lib/strtod.c (strtod): Avoid compiler warnings.
24         Reported by Jim Meyering.
25
26 2008-03-30  Bruno Haible  <bruno@clisp.org>
27
28         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
29         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
30         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
31         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
32         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
33         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
34         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
35         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
36
37         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
38         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
39         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
40         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
41         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
42         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
43         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
44         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
45
46         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
48         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
49         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
50         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
52         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
53         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
54
55         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
57
58         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
59         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
60
61         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
62         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
63
64         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
65         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
66         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
67
68         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
69         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
70         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
71
72         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
73         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
74         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
75
76         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
77         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
78         * modules/vasprintf (Depends-on): Add EOVERFLOW.
79
80         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
81         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
82         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
83         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
84         (Depends-on): Add EOVERFLOW.
85         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
86         (Depends-on): Add EOVERFLOW.
87         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
88         (Depends-on): Add EOVERFLOW.
89         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
90         (Depends-on): Add EOVERFLOW.
91         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
92         (Depends-on): Add EOVERFLOW.
93         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
94         (Depends-on): Add EOVERFLOW.
95         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
96         (Depends-on): Add EOVERFLOW.
97         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
98         (Depends-on): Add EOVERFLOW.
99
100         * lib/sprintf.c (EOVERFLOW): Remove fallback.
101         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
102         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
103
104         * lib/snprintf.c (EOVERFLOW): Remove fallback.
105         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
106         * modules/snprintf (Depends-on): Add EOVERFLOW.
107
108         * lib/poll.c (EOVERFLOW): Remove fallback.
109         * modules/poll (Depends-on): Add EOVERFLOW.
110
111         * lib/getugroups.c (EOVERFLOW): Remove fallback.
112         * modules/getugroups (Depends-on): Add EOVERFLOW.
113
114         * lib/getdelim.c (EOVERFLOW): Remove fallback.
115         * modules/getdelim (Depends-on): Add EOVERFLOW.
116
117         * lib/ftell.c (EOVERFLOW): Remove fallback.
118         * modules/ftell (Depends-on): Add EOVERFLOW.
119
120         * lib/fprintf.c (EOVERFLOW): Remove fallback.
121         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
122         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
123
124         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
125
126         * modules/EOVERFLOW-tests: New file.
127         * tests/test-EOVERFLOW.c: New file.
128
129         * modules/EOVERFLOW: New file.
130         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
131
132 2008-03-30  Bruno Haible  <bruno@clisp.org>
133
134         Fix bug introduced on 2007-06-10.
135         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
136         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
137
138 2008-03-30  Bruno Haible  <bruno@clisp.org>
139
140         Improve freadseek's efficiency after ungetc.
141         * lib/freadseek.c: Include freadahead.h.
142         (freadptrinc): New function, extracted from freadseek.
143         (freadseek): Use it in a loop. Use freadahead to determine the number
144         of loop iterations.
145         * modules/freadseek (Depends-on): Add freadahead.
146         (configure.ac): Require AC_C_INLINE.
147
148 2008-03-30  Bruno Haible  <bruno@clisp.org>
149
150         * lib/freadseek.c (freadseek): Don't ignore the return value of
151         freadptr.
152
153 2008-03-29  Eric Blake  <ebb9@byu.net>
154
155         Add hex float support.
156         * modules/strtod (Depends-on): Add c-ctype.
157         (Link): Mention POW_LIB.
158         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
159         whitespace between 'e' and exponent.
160         * tests/test-strtod.c (main): Enable hex float tests.
161         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
162         now provides.
163
164         Document various strtod bugs, with some fixes.
165         * doc/posix-functions/strtod.texi (strtod): Document bugs with
166         "-0x", "inf", "nan", and hex constants.
167         * doc/posix-functions/atof.texi (atof): Likewise.
168         * modules/stdlib (Makefile.am): Support strtod.
169         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
170         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
171         detect additional strtod bugs.
172         * lib/stdlib.in.h (rpl_strtod): Add declarations.
173         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
174         bool where appropriate.  Parse 'inf' and 'nan'.
175         * tests/test-strtod.c: New file.
176         * modules/strtod (Depends-on): Add stdbool, stdlib.
177         (configure.ac): Turn on module indicator.
178         * modules/strtod-tests: New module.
179
180 2008-03-29  Eric Blake  <ebb9@byu.net>
181
182         Fix ftell on mingw.
183         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
184         * modules/ftell-tests (Depends-on): Add binary-io.
185         * modules/ftello-tests (Depends-on): Likewise.
186         * tests/test-ftell.c (main): Enhance test to cover behavior after
187         ungetc.  Enforce binary mode.
188         * tests/test-ftello.c (main): Likewise.
189
190         Pass test-freadseek on cygwin.
191         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
192         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
193         ungetc buffer.
194
195         * tests/test-fflush2.c (main): Fix typo.
196
197 2008-03-29  Bruno Haible  <bruno@clisp.org>
198
199         * tests/test-fflush2.c (main): Temporarily disable the contents of
200         this test.
201         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
202         Reported by Eric Blake.
203
204 2008-03-28  Simon Josefsson  <simon@josefsson.org>
205
206         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
207         (GC_SHA224_DIGEST_SIZE): Add.
208
209         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
210         (gc_hash_digest_length): Likewise.
211         (gc_hash_buffer): Likewise.
212
213 2008-03-25  Bruno Haible  <bruno@clisp.org>
214
215         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
216         detail which gettext release to use.
217         Reported by Simon Josefsson.
218
219 2008-03-26  Jim Meyering  <meyering@redhat.com>
220
221         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
222         * modules/gnumakefile (clean-GNUmakefile): Also, use
223         test ... && ... || : syntax rather than if-then ... fi.
224
225         gnumakefile: Don't double-quote-expand $(VPATH) value.
226         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
227
228 2008-03-24  Eric Blake  <ebb9@byu.net>
229
230         Alter GNUmakefile to install into top directory.
231         * modules/maintainer-makefile: Split, and add dependency...
232         * modules/gnumakefile: to this new module.
233         * build-aux/GNUmakefile: Move...
234         * top/GNUmakefile: ...here.
235         * build-aux/maint.mk: Move...
236         * top/maint.mk: ...here.
237         * MODULES.html.sh (Support for maintaining...): Document new
238         module.
239
240 2008-03-23  Bruno Haible  <bruno@clisp.org>
241
242         * gnulib-tool: New options --vc-files, --no-vc-files.
243         (func_usage): Document them.
244         (vc_files): New variable.
245         (func_import): Consider vc_files.
246         (func_create_testdir): Set vc_files to empty.
247         Suggested by Jim Meyering and Karl Berry.
248
249 2008-03-23  Bruno Haible  <bruno@clisp.org>
250
251         Fix regex compilation error on HP-UX 11.
252         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
253         * modules/regex (Files): Add m4/mbstate_t.m4.
254         Reported by Ton Voon <ton.voon@altinity.com>.
255
256 2008-03-23  Bruno Haible  <bruno@clisp.org>
257
258         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
259
260 2008-03-23  Eric Blake  <ebb9@byu.net>
261             Bruno Haible  <bruno@clisp.org>
262
263         Install files from top/ in the destination directory.
264         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
265         augmentation also for the files from top/.
266         (func_import, func_create_testdir): Rewrite file names:
267         top/filename -> filename.
268
269 2008-03-23  Bruno Haible  <bruno@clisp.org>
270
271         Tweak "gnulib --version" output.
272         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
273
274 2008-03-23  Bruno Haible  <bruno@clisp.org>
275
276         Tweak "gnulib --version" output.
277         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
278         rather than contents of ChangeLog, when possible.
279
280 2008-03-21  Eric Blake  <ebb9@byu.net>
281
282         More --version tweaks.
283         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
284         date of last ChangeLog entry.
285
286 2008-03-21  Jim Meyering  <meyering@redhat.com>
287
288         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
289
290 2008-03-20  Eric Blake  <ebb9@byu.net>
291
292         VPATH fix.
293         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
294
295 2008-03-20  Simon Josefsson  <simon@josefsson.org>
296
297         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
298         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
299
300 2008-03-20  Eric Blake  <ebb9@byu.net>
301
302         Sync GNUmakefile with coreutils.
303         * build-aux/GNUmakefile (have-Makefile): Rename...
304         (_have-Makefile): ...to this, for namespace consideration.
305         (GNUmakefile.cfg): Include, if present.
306         (_autoreconf): Define a default.
307         (_is-dist-target): New rule for rebuilds to pick up intra-release
308         version.
309         (maint-cfg.mk): Rename...
310         (cfg.mk): ...to this.
311
312 2008-03-18  Jim Meyering  <meyering@redhat.com>
313
314         New script and module: mktempd
315         * MODULES.html.sh (maint+release support): Add mktempd.
316         * build-aux/mktempd: New file.
317         * modules/mktempd: New file.
318
319 2008-03-15  Jim Meyering  <meyering@redhat.com>
320
321         Undo last change.
322         * lib/sha1.c, lib/md5.c: 63 != ~63.
323         Reported by Andreas Schwab.
324
325         sha1.c, md5.c: Hoist a redundant expression.
326         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
327         "ctx->buflen" only once, before calling *_process_block.
328         * lib/md5.c (md5_process_bytes): Likewise.
329
330 2008-03-14  Eric Blake  <ebb9@byu.net>
331
332         Bump copyright year in files generated by gnulib-tool.
333         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
334         gnulib-tool, rather than hard-coding it.
335
336         Fix 'gnulib-tool --version' output to work with git.
337         * gnulib-tool (func_gnulib_dir): New function, extracted from...
338         (startup): ...here.
339         (func_version): Use it to invoke git-version-gen, rather than
340         relying on CVS keyword expansion.  Modernize wording.
341         (cvsdatestamp, last_checkin_date, version): Kill unused
342         variables.
343
344 2008-03-12  Jim Meyering  <meyering@redhat.com>
345
346         Recognize optional cast of the argument to free.
347         * build-aux/useless-if-before-free: Update regexps.
348
349         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
350
351 2008-03-11  Bruno Haible  <bruno@clisp.org>
352
353         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
354         by a single package.
355         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
356         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
357         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
358         Reported by Sam Steingold <sds@gnu.org>.
359
360 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
361
362         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
363         repositories.
364
365 2008-03-11  Bruno Haible  <bruno@clisp.org>
366
367         Avoid conflicts between local macro definitions.
368         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
369         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
370
371 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
372             Bruno Haible  <bruno@clisp.org>
373
374         Make va_copy work with some version of xlc on AIX 5.1.
375         * lib/stdarg.in.h: New file.
376         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
377         On AIX, use a <stdarg.h> file substitute.
378         * modules/stdarg (Files): Add lib/stdarg.in.h.
379         (Depends-on): Add include_next.
380         (Makefile.am): Build a stdarg.h substitute if requested.
381         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
382
383 2008-03-10  Bruno Haible  <bruno@clisp.org>
384
385         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
386         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
387         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
388
389 2008-03-10  Bruno Haible  <bruno@clisp.org>
390
391         * modules/stdlib (Depends-on): Add include_next, remove
392         absolute-header.
393
394 2008-03-09  Bruno Haible  <bruno@clisp.org>
395
396         * lib/freadahead.h (freadahead): Document more precisely.
397         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
398         the sum of both buffer sizes.
399         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
400         * NEWS: Document the change.
401
402 2008-03-09  Bruno Haible  <bruno@clisp.org>
403
404         Extend freadptr to return also the buffer size.
405         * lib/freadptr.h (freadptr): Add sizep argument.
406         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
407         (freadptr): Add sizep argument. Determine buffer size like freadahead
408         does.
409         * tests/test-freadptr.c: Don't include freadahead.h.
410         (main): Adapt for new calling convention of freadptr.
411         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
412         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
413         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
414         tests/test-freadptr2.sh.
415         (Depends): Remove freadahead.
416         (TESTS): Add test-freadptr2.sh.
417         (check_PROGRAMS): Add test-freadptr2.
418
419 2008-03-09  Bruno Haible  <bruno@clisp.org>
420
421         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
422         Report and solution by Simon Josefsson.
423
424 2008-03-06  Bruno Haible  <bruno@clisp.org>
425
426         Make fflush after ungetc work on BSD platforms.
427         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
428         * tests/test-fflush2.c: New file.
429         * tests/test-fflush2.sh: New file.
430         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
431         tests/test-fflush2.c.
432         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
433         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
434
435 2008-03-06  Eric Blake  <ebb9@byu.net>
436
437         Likewise for ftello.
438         * modules/ftello (Dependencies): Add extensions.
439         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
440
441 2008-03-06  Bruno Haible  <bruno@clisp.org>
442
443         * modules/fseeko (Dependencies): Add extensions.
444         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
445         Needed on glibc systems.
446
447 2008-03-06  Bruno Haible  <bruno@clisp.org>
448
449         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
450         email address.
451         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
452
453 2008-03-06  Bruno Haible  <bruno@clisp.org>
454
455         * users.txt: Add libgnupdf.
456
457 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
458
459         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
460         (Header File Substitutes, Function Substitutes,
461         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
462         (Build robot for gnulib): Fix typo.
463
464 2008-03-06  Bruno Haible  <bruno@clisp.org>
465
466         * doc/gnulib-tool.texi (VCS Issues): Small updates.
467         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
468
469 2008-03-06  Bruno Haible  <bruno@clisp.org>
470
471         * doc/func.texi: New file, extracted from doc/gnulib.texi.
472         * doc/gnulib.texi: Include it.
473
474 2008-03-06  Simon Josefsson  <simon@josefsson.org>
475
476         * modules/func (License): Change license to unlimited; there was
477         no LGPL parts in the module anyway.
478
479 2008-03-06  Simon Josefsson  <simon@josefsson.org>
480
481         * modules/__func__: Renamed to modules/func.
482         * modules/__func__-tests: Renamed to modules/func-tests.
483         * tests/test-__func__.c: Renamed to tests/test-func.c.
484         * m4/__func__.m4: Renamed to m4/func.m4.
485         * doc/gnulib.texi (__func__): Section renamed to func.
486         Suggested by Eric Blake <ebb9@byu.net>.
487
488 2008-03-06  Simon Josefsson  <simon@josefsson.org>
489
490         * doc/gnulib.texi (__func__): Use C99 terminology when talking
491         about __func__.  Make example self-contained.  Suggested by Eric
492         Blake <ebb9@byu.net>.
493
494         * tests/test-__func__.c (main): Avoid extraneous () around __func.
495         Suggested by Eric Blake <ebb9@byu.net>.
496
497 2008-03-06  Simon Josefsson  <simon@josefsson.org>
498
499         * modules/__func__: New file.
500         * modules/__func__-tests: New file.
501         * tests/test-__func__.c: New file.
502         * m4/__func__.m4: New file.
503         * doc/gnulib.texi (__func__): Document __func__ module.
504
505 2008-03-05  Simon Josefsson  <simon@josefsson.org>
506
507         * modules/byteswap (License): Re-license as LGPLv2+.
508
509 2008-03-05  Simon Josefsson  <simon@josefsson.org>
510
511         * doc/Makefile: Add pdf target.
512
513 2008-03-05  Simon Josefsson  <simon@josefsson.org>
514
515         * modules/inline (License): Use 'unlimited', since there are only
516         *.m4 files in this module.
517
518 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
519             Bruno Haible  <bruno@clisp.org>
520
521         Add support for HP C 7.1 on OpenVMS 8.3.
522         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
523
524 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
525
526         Update VMS specifics.
527         * lib/getopt.c [VMS]: Remove include of unixlib.h.
528
529 2008-03-02  Jim Meyering  <meyering@redhat.com>
530
531         Remove the last dependency on the "free" module.
532         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
533         Reported by Bob Proulx.
534
535         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
536
537         Remove useless "if" tests before free.  Deprecate "free" module.
538         * doc/posix-functions/free.texi: Mention that this
539         module is no longer useful.
540         * modules/free (Notice): Say this module is obsolete.
541         * modules/readutmp (Depends-on): Remove free.
542         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
543         * lib/putenv.c (putenv): Likewise.
544         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
545         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
546         * tests/test-c-strcasestr.c (main): Likewise.
547         * tests/test-c-strstr.c (main): Likewise.
548         * tests/test-mbscasestr1.c (main): Likewise.
549         * tests/test-mbscasestr2.c (main): Likewise.
550         * tests/test-mbsstr1.c (main): Likewise.
551         * tests/test-mbsstr2.c (main): Likewise.
552         * tests/test-memmem.c (main): Likewise.
553         * tests/test-strcasestr.c (main): Likewise.
554         * tests/test-striconv.c (main): Likewise.
555         * tests/test-striconveh.c (main): Likewise.
556         * tests/test-striconveha.c (main): Likewise.
557         * tests/test-strstr.c (main): Likewise.
558
559         * build-aux/git-version-gen: Adjust a comment and the Usage string.
560
561         bootstrap: sync from coreutils again
562         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
563
564 2008-03-01  Jim Meyering  <meyering@redhat.com>
565
566         bootstrap: sync from coreutils
567         * build-aux/bootstrap (update_po_files): Copy a .po file into place
568         also when the target doesn't exist.
569
570 2008-03-01  Eric Blake  <ebb9@byu.net>
571
572         Fix bugs in last patch.
573         * lib/memchr2.c (memchr2): Fix typo.
574         * tests/test-memchr2.c: Test previous bug, and don't use GNU
575         extension.
576         Reported by Bruce Korb.
577
578         New module 'memchr2'.
579         * modules/memchr2: New file.
580         * modules/memchr2-tests: Likewise.
581         * lib/memchr2.h: Likewise.
582         * lib/memchr2.c: Likewise, based on memchr.c.
583         * tests/test-memchr2.c: New test.
584         * MODULES.html.sh (String handling): Add memchr2.
585
586 2008-02-29  Bruno Haible  <bruno@clisp.org>
587
588         * modules/freadseek-tests: New file.
589         * tests/test-freadseek.sh: New file.
590         * tests/test-freadseek.c: New file.
591
592         New module 'freadseek'.
593         * modules/freadseek: New file.
594         * lib/freadseek.h: New file.
595         * lib/freadseek.c: New file.
596         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
597
598 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
599
600         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
601         wydawca.
602
603         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
604         program_invocation_name and program_invocation_short_name are
605         present.
606
607 2008-02-28  Bruno Haible  <bruno@clisp.org>
608
609         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
610         * tests/test-freadptr.sh: Also test non-seekable stdin.
611
612 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
613
614         * build-aux/bootstrap (source_base, m4_base)
615         (doc_base, tests_base): New variables.
616         (gnulib_tool_options): Do not hardcode base directories, use
617         the above variables instead.
618
619 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
620
621         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
622
623 2008-02-28  Bruno Haible  <bruno@clisp.org>
624
625         * modules/freadptr-tests: New file.
626         * tests/test-freadptr.sh: New file.
627         * tests/test-freadptr.c: New file.
628
629         New module 'freadptr'.
630         * modules/freadptr: New file.
631         * lib/freadptr.h: New file.
632         * lib/freadptr.c: New file.
633         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
634
635 2008-02-26  Karl Berry  <karl@freefriends.org>
636
637         Sync from Libtool:
638         * libltdl/argz.c (argz_add, argz_count): New functions.
639         * libltdl/argz.in.h: Declare them.
640         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
641
642 2008-02-22  Bruno Haible  <bruno@clisp.org>
643
644         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
645         is a pointer type.  Needed for HP-UX 10.
646         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
647         * doc/posix-functions/gmtime_r.texi: Likewise.
648         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
649
650 2008-02-24  Bruno Haible  <bruno@clisp.org>
651
652         * modules/environ-tests: New file.
653         * tests/test-environ.c: New file.
654
655         New module 'environ'.
656         * modules/environ: New file.
657         * lib/unistd.in.h (environ): New declaration.
658         * m4/environ.m4: New file.
659         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
660         after use.
661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
662         HAVE_DECL_ENVIRON.
663         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
664         HAVE_DECL_ENVIRON.
665         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
666         wrong claim that 'environ' is missing on some systems.
667         * modules/execute (Depends-on): Add environ.
668         * lib/execute.c (environ): Remove fallback declaration.
669         * modules/pipe (Depends-on): Add environ.
670         * lib/pipe.c (environ): Remove fallback declaration.
671         * modules/setenv (Depends-on): Add environ.
672         * lib/setenv.c (environ): Remove fallback declaration.
673         * modules/unsetenv (Depends-on): Add environ.
674         * lib/unsetenv.c (environ): Remove fallback declaration.
675         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
676         m4/environ.m4.
677         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
678         (gl_PREREQ_UNSETENV): Likewise.
679
680 2008-02-24  Bruno Haible  <bruno@clisp.org>
681
682         * doc/posix-functions/environ.texi: Document the MacOS X problem.
683
684 2008-02-20  Bob Proulx  <bob@proulx.com>
685
686         Enable use of older two part flavor 'git describe'.
687         * build-aux/git-version-gen: If using the older two part flavor of
688         git version then recreate the third part now present in the
689         newer three part flavor of git describe.
690
691 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
692
693         * lib/fts.c (fts_build): Typo correction to comment.
694
695 2008-02-17  Bruno Haible  <bruno@clisp.org>
696
697         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
698         generating no-op conflicts.
699
700 2008-02-17  Bruno Haible  <bruno@clisp.org>
701
702         Speed up by 10%.
703         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
704         result_entries, rather than an index-based loop.
705
706 2008-02-17  Bruno Haible  <bruno@clisp.org>
707
708         Speed up by 25%.
709         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
710         'hashcode_cached'.
711         (entry_create): New function.
712         (entry_hashcode): Use the cached hashcode if possible.
713         (read_changelog_file, try_split_merged_entry): Use entry_create.
714
715 2008-02-17  Bruno Haible  <bruno@clisp.org>
716
717         Speed up from O(n^2) to O(n) for long ChangeLog files.
718         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
719         (read_changelog_file): Change implementation of entries_reversed list
720         to rbtreehash.
721         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
722
723 2008-02-17  Bruno Haible  <bruno@clisp.org>
724
725         New option --split-merged-entry.
726         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
727         (find_paragraph_end, try_split_merged_entry): New functions.
728         (long_options): Add option --split-merged-entry.
729         (usage): Document option --split-merged-entry.
730         (main): Implement option --split-merged-entry.
731         Reported by Eric Blake.
732
733 2008-02-17  Bruno Haible  <bruno@clisp.org>
734
735         * lib/git-merge-changelog.c: Include c-strstr.h.
736         (main): Support the "git pull --rebase" situation.
737         * modules/git-merge-changelog (Depends-on): Add c-strstr.
738         Reported by Eric Blake.
739
740 2008-02-16  Eric Blake  <ebb9@byu.net>
741
742         Avoid doubling \ in common case of "c-maybe" quoting style.
743         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
744         eliding outer quotes.
745         * lib/quotearg.h: Document this.
746         * tests/test-quotearg.c (result_strings, inputs, results_g)
747         (flag_results, locale_results): Test it by adding a new string to
748         each test group.
749         (compare_strings): Test new string.
750
751 2008-02-13  Eric Blake  <ebb9@byu.net>
752
753         Avoid trigraph quoting in default output.
754         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
755         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
756         unless explicitly requested.
757         * tests/test-quotearg.c (flag_results, main): Add additional tests.
758
759 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
760
761         Don't rely on signed integer overflowing to negative value.
762         * lib/getugroups.c (getugroups): Include <limits.h>.
763         Instead, compare against INT_MAX, and increment only if the test passes.
764
765 2008-02-13  Jim Meyering  <meyering@redhat.com>
766         and Eric Blake  <ebb9@byu.net>
767
768         Avoid shadowing warning and compile errors on Linux.
769         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
770         forwarding macros on Linux.
771         (dcgettext): Define a stub, for Linux.
772         (results_g, main): Avoid warnings.
773
774 2008-02-12  Eric Blake  <ebb9@byu.net>
775
776         Silence warning in last patch.
777         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
778
779         Quotearg part 4: add tests, fix c-maybe colon quoting.
780         * lib/quotearg.h: Improve documentation.
781         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
782         escapes when adding outer quotes.  When quoting trigraphs, use
783         valid C notation.  When quoting NUL, omit extra characters if next
784         character is not digit.  Alter prototype.
785         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
786         callers.
787         * modules/quotearg-tests: New module.
788         * tests/test-quotearg.c: New test.
789
790 2008-02-07  Eric Blake  <ebb9@byu.net>
791
792         Quotearg part 3: add flag to control outer quote elision.
793         * lib/quotearg.h (c_maybe_quoting_style): New style.
794         (enum quoting_flags): Better documentation of flags.
795         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
796         c-maybe style.
797         (quotearg_buffer_restyled): Handle new flag to elide outer
798         quotes.
799
800         Quotearg part 2: add flag that can control NUL elision.
801         * lib/quotearg.h (set_quoting_flags): New prototype.
802         * lib/quotearg.c (struct quoting_options): Add flag field.
803         (set_quoting_flags): New function.
804         (quotearg_buffer_restyled): Add flags parameter.
805         (quotearg_alloc_mem): Set the flag if length cannot be returned.
806         (quotearg_n_options): Set the flag, since length cannot be
807         returned.
808         (quoting_options_from_style): Default flags correctly.
809
810         Quotearg part 1: more wrappers, restore quotearg_char state.
811         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
812         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
813         (quotearg_colon_mem): New wrappers.
814         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
815         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
816         functions.
817         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
818         (quotearg_colon_mem): New functions.
819
820 2008-02-11  Bruno Haible  <bruno@clisp.org>
821
822         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
823         library in the current directory: it does not work with parallel make.
824         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
825
826 2008-02-11  Bruno Haible  <bruno@clisp.org>
827
828         * .gitattributes: New file.
829
830 2008-02-11  Jim Meyering  <meyering@redhat.com>
831
832         useless-if-before-free: Fix reversed exit values.
833         * build-aux/useless-if-before-free: Use correct values
834         for EXIT_MATCH and EXIT_NO_MATCH.
835
836         * build-aux/useless-if-before-free: Close stdout carefully.
837
838 2008-02-10  Bruno Haible  <bruno@clisp.org>
839
840         New module 'git-merge-changelog'.
841         * modules/git-merge-changelog: New file.
842         * lib/git-merge-changelog.c: New file.
843
844 2008-02-10  Jim Meyering  <meyering@redhat.com>
845
846         useless-if-before-free: New option: --list (-l).
847
848         useless-if-before-free: Don't exit immediately upon open failure.
849         * build-aux/useless-if-before-free: Exit 2 for errors.
850         Upon failure to open a file, don't exit immediately.
851         Rather, just warn and continue with any remaining files.
852
853 2008-02-10  Bruno Haible  <bruno@clisp.org>
854
855         New abstract list operation 'node_set_value'.
856         * lib/gl_list.h (gl_list_node_set_value): New function.
857         (struct gl_list_implementation): New field node_set_value.
858         * lib/gl_list.c (gl_list_node_set_value): New function.
859         * lib/gl_array_list.c (gl_array_node_set_value): New function.
860         (gl_array_list_implementation): Update.
861         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
862         (gl_carray_list_implementation): Update.
863         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
864         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
865         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
866         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
867         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
868         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
869         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
870         Update.
871         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
872         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
873         (gl_sublist_list_implementation): Update.
874
875 2008-02-10  Bruno Haible  <bruno@clisp.org>
876
877         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
878         Needed when ELEMENT is #defined to 'some_type *'.
879
880 2008-02-10  Jim Meyering  <meyering@redhat.com>
881
882         New script and module: useless-if-before-free
883         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
884         * build-aux/useless-if-before-free: New file.
885         * modules/useless-if-before-free: New file.
886
887         * build-aux/gitlog-to-changelog: Use committer date, not author date.
888
889         xstrtol_error: Fix typo.
890         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
891         s/exit_failure/exit_status/.
892
893 2008-02-09  Jim Meyering  <meyering@redhat.com>
894
895         New script and module: gitlog-to-changelog
896         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
897         * modules/gitlog-to-changelog: New file.
898         * build-aux/gitlog-to-changelog: New file.
899
900 2008-02-08  Jim Meyering  <meyering@redhat.com>
901
902         Avoid two "parameter unused" warnings.
903         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
904         Mark "st" as used.
905
906         Use "git COMMAND", not "git-COMMAND".
907         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
908         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
909         * build-aux/git-version-gen: Use "git status", not "git-status".
910
911 2008-02-07  Bruno Haible  <bruno@clisp.org>
912
913         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
914         Avoids a crash on Windows Vista.
915         Reported by Adam Strzelecki <ono@java.pl> via
916         Simon Josefsson <simon@josefsson.org>.
917
918 2008-02-06  Bruno Haible  <bruno@clisp.org>
919
920         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
921         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
922         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
923         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
924         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
925         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
926         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
927         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
928         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
929         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
930         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
931         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
932         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
933         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
934         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
935         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
936         left-adjust flag.
937         * tests/test-snprintf-posix.h (test_function): Likewise.
938         * tests/test-sprintf-posix.h (test_function): Likewise.
939         * tests/test-vasprintf-posix.c (test_function): Likewise.
940         * doc/posix-functions/fprintf.texi: Update.
941         * doc/posix-functions/printf.texi: Update.
942         * doc/posix-functions/snprintf.texi: Update.
943         * doc/posix-functions/sprintf.texi: Update.
944         * doc/posix-functions/vfprintf.texi: Update.
945         * doc/posix-functions/vprintf.texi: Update.
946         * doc/posix-functions/vsnprintf.texi: Update.
947         * doc/posix-functions/vsprintf.texi: Update.
948         Reported by Peter Fales <psfales@alcatel-lucent.com>.
949
950 2008-02-06  Bruno Haible  <bruno@clisp.org>
951
952         Fix bug introduced on 2008-01-26.
953         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
954
955 2008-02-06  Bruno Haible  <bruno@clisp.org>
956
957         Fix bug introduced on 2007-06-10.
958         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
959         !NEED_PRINTF_FLAG_ZERO.
960
961 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
962
963         getloadavg: use libperfstat on AIX5
964         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
965
966 2008-02-03  Bruno Haible  <bruno@clisp.org>
967
968         * lib/diffseq.h: Add comments about required #includes.
969         Reported by Michael Biggs <gnulib@doubleplum.net>.
970
971 2008-02-01  Bruno Haible  <bruno@clisp.org>
972
973         * users.txt: Add gnuit.
974
975 2008-01-31  Bruno Haible  <bruno@clisp.org>
976
977         * lib/md4.c (set_uint32): Mark as inline.
978         * lib/md5.c (set_uint32): Likewise.
979         * lib/sha1.c (set_uint32): Likewise.
980         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
981         * m4/md5.m4 (gl_MD5): Likewise.
982         * m4/sha1.m4 (gl_SHA1): Likewise.
983
984 2008-01-31  Jim Meyering  <meyering@redhat.com>
985
986         Use "sizeof VAR", rather than a literal "4".
987         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
988         * lib/md4.c (md4_read_ctx): Likewise.
989         * lib/sha1.c (sha1_read_ctx): Likewise.
990
991 2008-01-31  Simon Josefsson  <simon@josefsson.org>
992
993         * tests/test-sha1.c: New file, based on test-md5.c.
994
995         * modules/crypto/sha1-tests: New file.
996
997 2008-01-31  Simon Josefsson  <simon@josefsson.org>
998
999         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
1000
1001 2008-01-31  Jim Meyering  <meyering@redhat.com>
1002
1003         Prefer "sizeof v" over the equivalent "4".
1004         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
1005         * lib/md5.c (set_uint32): Likewise.
1006         * lib/sha1.c (set_uint32): Likewise.
1007
1008 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1009
1010         * lib/sha1.c (set_uint32): Mark function as static.
1011
1012 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1013
1014         md2: clarify comments to say that alignment is not required.
1015         * lib/md2.h: Remove warning about alignment in comment.
1016         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
1017         never been required.
1018
1019 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1020
1021         md4: adapt alignment constraint fix from sha1.
1022         * lib/md4.c (set_uint32): New function, from sha1.c
1023         (md4_read_ctx): Use it.
1024         (md4_finish_ctx): Doc fix.
1025         * lib/md4.h: Doc fix.
1026
1027 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1028
1029         md5: adapt alignment constraint fix from sha1.
1030         * lib/md5.c (set_uint32): New function, from sha1.c
1031         (md5_read_ctx): Use it.
1032         (md5_finish_ctx): Doc fix.
1033         * lib/md5.h: Doc fix.
1034
1035 2008-01-30  Peter Palfrader  <weasel@debian.org>
1036
1037         sha1: remove the result buffer alignment constraint
1038         * lib/sha1.c (set_uint32): New function.
1039         (sha1_read_ctx): Rewrite to remove the result buffer alignment
1040         constraint.
1041         (sha1_finish_ctx): Remove comment warning about alignment constraint.
1042         * lib/sha1.h: Likewise.
1043
1044 2008-01-30  Andreas Schwab  <schwab@suse.de>
1045             Bruno Haible  <bruno@clisp.org>
1046
1047         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
1048         correct definition of LDBL_MIN_EXP.
1049
1050 2008-01-30  Karl Berry  <karl@gnu.org>
1051
1052         * config/srclist-update: try to preserve x bit on updates.
1053         * config/srclistvars.sh: update for karl.
1054
1055 2008-01-29  Jim Meyering  <meyering@redhat.com>
1056
1057         vasnprintf.c: Avoid warning about unused label
1058         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
1059         "overflow" label definition and associated code with the
1060         same cpp condition that guards the sole use of that label.
1061
1062 2008-01-26  Bruno Haible  <bruno@clisp.org>
1063
1064         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
1065         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
1066         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
1067         * lib/isnanl-nolibm.h (isnanl): Likewise.
1068         Reported by Paul Eggert <eggert@cs.ucla.edu>.
1069
1070 2008-01-26  Bruno Haible  <bruno@clisp.org>
1071
1072         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
1073         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
1074
1075 2008-01-26  Bruno Haible  <bruno@clisp.org>
1076
1077         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
1078         GCC >= 4.0 built-in.
1079         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
1080
1081 2008-01-26  Bruno Haible  <bruno@clisp.org>
1082
1083         Rename isnan, applicable to 'double' only, to isnand.
1084         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
1085         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
1086         (configure.ac): Update.
1087         (Include): Replace "isnan.h" with "isnand.h".
1088         * m4/isnand.m4: Renamed from m4/isnan.m4.
1089         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
1090         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
1091         instead of isnan.c.
1092         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
1093         instead of HAVE_ISNAN_IN_LIBC.
1094         (isnand): Renamed from isnan.
1095         * lib/isnand.c: New file.
1096         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
1097         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
1098         (Makefile.am): Update.
1099         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
1100         Include isnand.h instead of isnan.h.
1101         (main): Test isnand instead of isnan.
1102         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
1103         isnan-nolibm.
1104         * modules/frexp (Depends-on): Likewise.
1105         * modules/frexp-tests (Depends-on): Likewise.
1106         * modules/frexp-nolibm (Depends-on): Likewise.
1107         * modules/frexp-nolibm-tests (Depends-on): Likewise.
1108         * modules/isfinite (Depends-on): Likewise.
1109         * modules/round-tests (Depends-on): Likewise.
1110         * modules/signbit (Depends-on): Likewise.
1111         * modules/signbit-tests (Depends-on): Likewise.
1112         * modules/snprintf-posix (Depends-on): Likewise.
1113         * modules/sprintf-posix (Depends-on): Likewise.
1114         * modules/trunc-tests (Depends-on): Likewise.
1115         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1116         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1117         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1118         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1119         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1120         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1121         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1122         * modules/vasnprintf-posix (Depends-on): Likewise.
1123         * modules/vasprintf-posix (Depends-on): Likewise.
1124         * modules/vfprintf-posix (Depends-on): Likewise.
1125         * modules/vsnprintf-posix (Depends-on): Likewise.
1126         * modules/vsprintf-posix (Depends-on): Likewise.
1127         * lib/frexp.c: Include isnand.h instead of isnan.h.
1128         (ISNAN): Set to isnand instead of isnan.
1129         * lib/isfinite.c: Include isnand.h instead of isnan.h.
1130         (gl_isfinited): Use isnand instead of isnan.
1131         * lib/signbitd.c: Include isnand.h instead of isnan.h.
1132         (gl_signbitd): Use isnand instead of isnan.
1133         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
1134         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
1135         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
1136         (main): Use isnand instead of isnan.
1137         * tests/test-round1.c: Include isnand.h.
1138         (main): Use isnand instead of isnan.
1139         * tests/test-round2.c: Include isnand.h instead of isnan.h.
1140         (ISNAN): Set to isnand instead of isnan.
1141         * tests/test-trunc1.c: Include isnand.h.
1142         (main): Use isnand instead of isnan.
1143         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
1144         (equal): Use isnand instead of isnan.
1145         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
1146         isnand-nolibm.
1147         * NEWS: Mention the change.
1148
1149 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
1150             Bruno Haible  <bruno@clisp.org>
1151
1152         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
1153         the GCC builtins for signbits are present and set
1154         REPLACE_SIGNBIT_USING_GCC if so.
1155         * lib/math.in.h (signbit): Define using GCC builtins if
1156         REPLACE_SIGNBIT_USING_GCC is set.
1157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
1158         REPLACE_SIGNBIT_USING_GCC.
1159         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
1160
1161 2008-01-25  Jim Meyering  <meyering@redhat.com>
1162
1163         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
1164         * lib/poll.c: Include <config.h>, not "config.h".
1165         * tests/test-getaddrinfo.c: Likewise.
1166
1167 2008-01-25  Simon Josefsson  <simon@josefsson.org>
1168
1169         * modules/sockets-tests: New file.
1170
1171 2008-01-24  Simon Josefsson  <simon@josefsson.org>
1172
1173         * modules/sockets: New module, can be used to call WSA_Startup and
1174         WSA_Cleanup when needed.
1175
1176         * lib/sockets.h, lib/sockets.c: New files.
1177
1178         * m4/sockets.m4: New file.
1179
1180         * tests/test-sockets.c: New file.
1181
1182 2008-01-19  Bruno Haible  <bruno@clisp.org>
1183
1184         * doc/posix-headers: Renamed from doc/headers.
1185         * doc/posix-functions: Renamed from doc/functions.
1186         * doc/gnulib.texi: Update.
1187
1188 2008-01-19  Bruno Haible  <bruno@clisp.org>
1189
1190         * doc/glibc-functions/strcasestr.texi: Include contents of
1191         doc/functions/strcasestr.texi, fixing the list of platforms.
1192         * doc/functions/strcasestr.texi: Remove file.
1193
1194 2008-01-19  Bruno Haible  <bruno@clisp.org>
1195
1196         * doc/glibc-functions/memmem.texi: Include contents of
1197         doc/functions/memmem.texi.
1198         * doc/functions/memmem.texi: Remove file.
1199
1200 2008-01-18  Bruno Haible  <bruno@clisp.org>
1201
1202         * doc/glibc-functions/*.texi: New files.
1203         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
1204         to use the new files.
1205
1206 2008-01-17  Bruno Haible  <bruno@clisp.org>
1207
1208         * tests/test-gethostname.c (main): Fix printf statement.
1209
1210 2008-01-17  Simon Josefsson  <simon@josefsson.org>
1211
1212         * modules/gethostname-tests: New file.
1213
1214         * tests/test-gethostname.c: New file.
1215
1216 2008-01-17  Simon Josefsson  <simon@josefsson.org>
1217
1218         * lib/gethostname.c: Include string.h unconditionally, strncpy is
1219         used by the UNAME case.  Reported by Bruno Haible
1220         <bruno@clisp.org>.
1221
1222 2008-01-17  Eric Blake  <ebb9@byu.net>
1223
1224         Convert c-strcasestr to be more efficient.
1225         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
1226         (Depends-on): Add c-strcase, remove malloca, strnlen.
1227         * tests/test-c-strcasestr.c (main): Enhance test.
1228         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
1229
1230 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
1231
1232         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
1233         Use it in creating po/Makevars.
1234
1235 2008-01-15  Simon Josefsson  <simon@josefsson.org>
1236
1237         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
1238         Applications that requires it should initialize libgcrypt
1239         manually.
1240
1241 2008-01-16  Simon Josefsson  <simon@josefsson.org>
1242
1243         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
1244
1245 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
1246
1247         Fix problem with getdate on mingw32 reported by Simon Josefsson
1248         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
1249         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
1250         tzname", when deciding whether to declare tzname.
1251         * lib/strftime.c (tzname): Likewise.
1252
1253 2008-01-15  Bruno Haible  <bruno@clisp.org>
1254
1255         Work around a MacOS X 10.5 bug in frexpl().
1256         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
1257         * doc/functions/frexpl.texi: Document the bug.
1258         Reported by Elias Pipping <pipping@gentoo.org>.
1259
1260 2008-01-14  Eric Blake  <ebb9@byu.net>
1261
1262         Touch up previous patch.
1263         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
1264         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
1265
1266         Convert strcasestr module to use Two-Way algorithm.
1267         * modules/strcasestr-simple: New module, based on the old
1268         strcasestr, but with Two-Way rather than KMP.
1269         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
1270         * lib/string.in.h (rpl_strcasestr): Declare.
1271         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
1272         performance.
1273         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
1274         * modules/string (Makefile.am): Support strcasestr.
1275         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
1276         * modules/strcasestr-tests (Depends-on): Check for alarm.
1277         * tests/test-strcasestr.c: Augment test.
1278         * lib/str-two-way.h: Clean up stray macro.
1279         * NEWS: Document new module.
1280         * MODULES.html.sh (string handling): Likewise.
1281         * doc/functions/strcasestr.texi: New file.
1282         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
1283         here, since it is not a POSIX function.
1284
1285 2008-01-14  Colin Watson  <cjwatson@debian.org>
1286             Bruno Haible  <bruno@clisp.org>
1287
1288         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
1289         works fine; if not, set REPLACE_STRSIGNAL.
1290         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
1291         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1292         REPLACE_STRSIGNAL.
1293         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
1294         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
1295         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
1296
1297 2008-01-14  Bruno Haible  <bruno@clisp.org>
1298
1299         * modules/strsignal (Include): Change to <string.h>.
1300
1301 2008-01-14  Colin Watson  <cjwatson@debian.org>
1302
1303         * modules/argp (Notice): Add a notice recommending to change
1304         XGETTEXT_OPTIONS.
1305         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
1306
1307 2008-01-13  Colin Watson  <cjwatson@debian.org>
1308
1309         * modules/strsignal-tests: New file.
1310         * tests/test-strsignal.c: New file.
1311
1312         * lib/strsignal.c: New file, from glibc with modifications.
1313         * lib/siglist.h: New file, from glibc with modifications.
1314         * lib/string.in.h (strsignal): New declaration.
1315         * m4/strsignal.m4: New file.
1316         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1317         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
1318         * modules/strsignal: New file.
1319         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
1320         HAVE_DECL_STRSIGNAL.
1321
1322 2008-01-13  Bruno Haible  <bruno@clisp.org>
1323
1324         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
1325         locale encoding is not ASCII. Needed for OpenBSD 4.0.
1326         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1327         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1328
1329 2008-01-13  Bruno Haible  <bruno@clisp.org>
1330
1331         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
1332         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
1333         * lib/argp.h (__attribute__): Likewise.
1334         * lib/c-stack.c (__attribute__): Likewise.
1335         * lib/error.h (__attribute__): Likewise.
1336         * lib/fts.c (__attribute__): Likewise.
1337         * lib/openat.h (__attribute__): Likewise.
1338         * lib/stdio.in.h (__attribute__): Likewise.
1339         * lib/string.in.h (__attribute__): Likewise.
1340         * lib/utimens.c (__attribute__): Likewise.
1341         * lib/vasnprintf.h (__attribute__): Likewise.
1342         * lib/xalloc.h (__attribute__): Likewise.
1343         * lib/xprintf.h (__attribute__): Likewise.
1344         * lib/xstrtol.h (__attribute__): Likewise.
1345         * lib/xvasprintf.h (__attribute__): Likewise.
1346
1347 2008-01-12  Bruno Haible  <bruno@clisp.org>
1348
1349         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
1350         * doc/glibc-headers/a.out.texi: New file.
1351         * doc/glibc-headers/aliases.texi: New file.
1352         * doc/glibc-headers/alloca.texi: New file.
1353         * doc/glibc-headers/ar.texi: New file.
1354         * doc/glibc-headers/argp.texi: New file.
1355         * doc/glibc-headers/argz.texi: New file.
1356         * doc/glibc-headers/byteswap.texi: New file.
1357         * doc/glibc-headers/crypt.texi: New file.
1358         * doc/glibc-headers/endian.texi: New file.
1359         * doc/glibc-headers/envz.texi: New file.
1360         * doc/glibc-headers/err.texi: New file.
1361         * doc/glibc-headers/error.texi: New file.
1362         * doc/glibc-headers/execinfo.texi: New file.
1363         * doc/glibc-headers/fpu_control.texi: New file.
1364         * doc/glibc-headers/fstab.texi: New file.
1365         * doc/glibc-headers/fts.texi: New file.
1366         * doc/glibc-headers/getopt.texi: New file.
1367         * doc/glibc-headers/ieee754.texi: New file.
1368         * doc/glibc-headers/ifaddrs.texi: New file.
1369         * doc/glibc-headers/libintl.texi: New file.
1370         * doc/glibc-headers/mcheck.texi: New file.
1371         * doc/glibc-headers/mntent.texi: New file.
1372         * doc/glibc-headers/obstack.texi: New file.
1373         * doc/glibc-headers/paths.texi: New file.
1374         * doc/glibc-headers/printf.texi: New file.
1375         * doc/glibc-headers/pty.texi: New file.
1376         * doc/glibc-headers/resolv.texi: New file.
1377         * doc/glibc-headers/shadow.texi: New file.
1378         * doc/glibc-headers/sysexits.texi: New file.
1379         * doc/glibc-headers/ttyent.texi: New file.
1380
1381 2008-01-12  Jim Meyering  <meyering@redhat.com>
1382
1383         announce-gen: emit Gnulib's git-based version string.
1384         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
1385         New option --gnulib-version=V, where V is expected to be
1386         the output of running git describe in the gnulib directory.
1387         (get_tool_versions): Request feedback on xdelta.  I suspect it's
1388         not useful, and plan to stop publishing an xdelta file with each
1389         coreutils release.
1390
1391         * build-aux/announce-gen: Also check for lzma-compressed files.
1392
1393 2008-01-11  Bruno Haible  <bruno@clisp.org>
1394
1395         * tests/test-memmem.c (main): Increase maximum allowed time.
1396         * tests/test-strstr.c (main): Likewise.
1397
1398 2008-01-11  Bruno Haible  <bruno@clisp.org>
1399
1400         * doc/functions/memmem.texi: Add more precisions about platforms.
1401         * doc/functions/strstr.texi: Likewise.
1402
1403 2008-01-10  Eric Blake  <ebb9@byu.net>
1404
1405         * m4/strstr.m4: Delete cruft from copy-n-paste.
1406         Reported by Bruno Haible.
1407
1408 2008-01-10  Bruno Haible  <bruno@clisp.org>
1409
1410         Make c-strstr rely on strstr.
1411         * lib/c-strstr.c: Don't include str-kmp.h.
1412         (c_strstr): Define in terms of strstr.
1413         * modules/c-strstr (Files): Remove lib/str-kmp.h.
1414         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
1415
1416 2008-01-10  Bruno Haible  <bruno@clisp.org>
1417
1418         * doc/gnulib.texi (String Functions in C Locale): New section.
1419         * doc/c-ctype.texi: New file.
1420         * doc/c-strcase.texi: New file.
1421         * doc/c-strcaseeq.texi: New file.
1422         * doc/c-strcasestr.texi: New file.
1423         * doc/c-strstr.texi: New file.
1424         * doc/c-strtod.texi: New file.
1425         * doc/c-strtold.texi: New file.
1426
1427 2008-01-10  Eric Blake  <ebb9@byu.net>
1428
1429         * lib/relocatable.h: Fix a comment.
1430
1431 2008-01-10  Eric Blake  <ebb9@byu.net>
1432
1433         Share two-way algorithm.
1434         * lib/str-two-way.h: New file, merged from...
1435         * lib/memmem.c: ...here...
1436         * lib/strstr.c: ...and here.
1437         * modules/memmem (Files): Use it.
1438         * modules/strstr (Files): Likewise.
1439
1440         Avoid quadratic strstr implementations.
1441         * lib/strstr.c: New file.
1442         * m4/strstr.m4: Likewise.
1443         * modules/strstr: Likewise.
1444         * modules/strstr-tests: Likewise.
1445         * tests/test-strstr.c: Likewise.
1446         * lib/string.in.h (rpl_strstr): Declare.
1447         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
1448         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
1449         * modules/string (Makefile.am): Likewise.
1450         * MODULES.html.sh (string handling): Mention new module.
1451         * doc/functions/strstr.texi (strstr): Document the bug.
1452
1453 2008-01-10  Bruno Haible  <bruno@clisp.org>
1454
1455         * lib/relocatable.h (relocate): State whether result is freshly
1456         allocated or not.
1457         * lib/relocatable.c (relocate): Return a freshly allocated string
1458         instead of a pointer to a privately held string.
1459         Reported by Sylvain Beucler <beuc@gnu.org>.
1460
1461 2008-01-10  Colin Watson  <cjwatson@debian.org>
1462
1463         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
1464         s/S_ISNLK/S_ISLNK/.
1465
1466 2008-01-09  Bruno Haible  <bruno@clisp.org>
1467
1468         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
1469         and other files.
1470         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
1471         if it's only a guess.
1472         * modules/memmem: Simplify by depending on memmem-simple.
1473
1474 2008-01-09  Bruno Haible  <bruno@clisp.org>
1475
1476         Work around OpenBSD 4.0 tdelete() bug.
1477         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
1478         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
1479         macros and don't redefine the enum values.
1480         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
1481         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
1482         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
1483
1484 2008-01-09  Bruno Haible  <bruno@clisp.org>
1485
1486         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
1487         (main): Don't perform the tests if setlocale did not install a UTF-8
1488         locale. Needed on OpenBSD 4.0.
1489         * modules/wcwidth-tests (Depends-on): Add localcharset.
1490
1491 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
1492
1493         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
1494         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
1495         * NEWS: announce this.
1496         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
1497
1498 2008-01-09  Simon Josefsson  <simon@josefsson.org>
1499         and Eric Blake  <ebb9@byu.net>
1500
1501         Add memmem-simple module.
1502         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
1503         (gl_FUNC_MEMMEM): Separate performance from presence checks.
1504         * modules/memmem-simple: New file.
1505         * modules/memmem (Description): Tweak.
1506         * MODULES.html.sh (string handling): Mention new module.
1507         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
1508         addressed by memmem-simple.
1509         * NEWS: Document the difference.
1510
1511 2008-01-09  Eric Blake  <ebb9@byu.net>
1512
1513         Give gcc some memmem optimization hints.
1514         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
1515         (strcasestr): Declare as pure.
1516         * modules/memmem (Maintainer): Claim my implementation.
1517
1518 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1519
1520         Support AIX 6.1 and higher.
1521         * build-aux/config.libpath: Likewise.
1522         * build-aux/config.rpath: Likewise.
1523
1524 2008-01-08  Jim Meyering  <meyering@redhat.com>
1525             Bruno Haible  <bruno@clisp.org>
1526
1527         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
1528         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
1529         Reported by Peter Fales in
1530         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
1531
1532 2008-01-08  Bruno Haible  <bruno@clisp.org>
1533
1534         * modules/unictype/category-of (Depends-on): Add
1535         unictype/category-none.
1536         * modules/unictype/category-and-tests (Depends-on): Add
1537         unictype/category-{L,N,Lu,Nd}.
1538         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
1539         * modules/unictype/category-or-tests (Depends-on): Add
1540         unictype/category-{L,N}.
1541         * modules/unictype/category-name-tests (Depends-on): Add
1542         unictype/category-{Z,Nl}.
1543         Reported by Simon Josefsson.
1544
1545 2008-01-08  Bruno Haible  <bruno@clisp.org>
1546
1547         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
1548         convention better.
1549         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
1550         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
1551         Reported by Peter Miller <millerp@canb.auug.org.au>.
1552
1553 2008-01-08  Eric Blake  <ebb9@byu.net>
1554
1555         Rewrite memmem to guarantee linear complexity without malloc.
1556         * lib/memmem.c (memmem): Use Two-Way rather than
1557         Knuth-Morris-Pratt, to allow O(1) space usage.
1558         (critical_factorization, two_way_short_needle)
1559         (two_way_long_needle): New functions.
1560         (knuth_morris_pratt): Delete.
1561         * modules/memmem (Depends-on): No longer need malloca or stdbool.
1562         Add stdint.
1563         * tests/test-memmem.c (main): Add tests for periodic needle and
1564         sublinear performance.
1565         * doc/functions/memmem.texi (memmem): Document other deficiencies
1566         in cygwin and older glibc.
1567
1568 2008-01-08  Bruno Haible  <bruno@clisp.org>
1569
1570         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
1571         augmentation.
1572
1573 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
1574
1575         Add a configure time option: --disable-acl.
1576         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
1577         AC_ARG_ENABLE(acl).
1578
1579 2008-01-06  Simon Josefsson  <simon@josefsson.org>
1580
1581         * tests/test-localename.c: Don't include obsolete "setenv.h".
1582
1583         * modules/localename-tests (Depends-on): Need unsetenv.
1584
1585 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1586
1587         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
1588
1589 2008-01-06  Colin Watson  <cjwatson@debian.org>
1590
1591         * users.txt: Add man-db.
1592
1593 2008-01-07  Bruno Haible  <bruno@clisp.org>
1594
1595         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
1596         previous section name.
1597
1598 2008-01-07  Bruno Haible  <bruno@clisp.org>
1599
1600         * lib/progname.c (set_program_name): Don't strip off a leading
1601         "lt-" prefix outside a .libs directory.
1602         Suggested by Paul Eggert.
1603
1604 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
1605             Bruno Haible  <bruno@clisp.org>
1606
1607         Improve memory cleanup in 'relocatable' module.
1608         * lib/relocatable.h (compute_curr_prefix): Change return type to
1609         'char *'.
1610         * lib/relocatable.c (compute_curr_prefix): Change return type to
1611         'char *'. Free curr_installdir after use.
1612         (relocate): Free curr_prefix_better after use.
1613         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
1614
1615 2008-01-01  Bruno Haible  <bruno@clisp.org>
1616
1617         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
1618         failure on older glibc systems.
1619         Reported by Peter Fales <psfales@alcatel-lucent.com>.
1620
1621 2008-01-05  Eric Blake  <ebb9@byu.net>
1622
1623         Avoid quadratic system memmem.
1624         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
1625         Reported by Ralf Wildenhues.
1626
1627         Fix memmem test for mingw.
1628         * modules/memmem-tests (configure.ac): Check for alarm.
1629         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
1630         it.
1631         * doc/functions/memmem.texi: New file.
1632         * doc/gnulib.texi (Function Substitutes): Add memmem.
1633         Reported by Bruno Haible.
1634
1635 2008-01-04  Bruno Haible  <bruno@clisp.org>
1636
1637         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
1638         Require gl_HEADER_STRINGS_H_DEFAULTS, not
1639         gl_HEADER_STRING_H_DEFAULTS.
1640
1641 2008-01-04  Eric Blake  <ebb9@byu.net>
1642
1643         Shorten duration of memmem test.
1644         * tests/test-memmem.c (main): Use alarm to declare failure if test
1645         is taking too long.
1646         Reported by Ralf Wildenhues.
1647
1648 2007-12-21  Simon Josefsson  <simon@josefsson.org>
1649
1650         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
1651         string, needed by strerror.
1652
1653 2008-01-03  Colin Watson  <cjwatson@debian.org>
1654             Bruno Haible  <bruno@clisp.org>
1655
1656         * doc/gnulib-tool.texi (Localization): New section.
1657
1658 2008-01-02  Bruno Haible  <bruno@clisp.org>
1659
1660         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
1661         variables to 'unsigned char *' type.
1662         Reported by Paul Eggert.
1663
1664 2008-01-02  Jim Meyering  <jim@meyering.net>
1665
1666         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
1667
1668 2007-12-31  Jim Meyering  <jim@meyering.net>
1669
1670         Avoid use of private FTS type name.
1671         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
1672
1673 2007-12-30  Karl Berry  <karl@gnu.org>
1674
1675         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
1676         work around defect in Texinfo and/or the standalone Info browser.
1677
1678 2007-12-30  Bruno Haible  <bruno@clisp.org>
1679
1680         Unify 5 copies of the KMP code.
1681         * lib/str-kmp.h: New file.
1682         * lib/c-strcasestr.c: Include str-kmp.h.
1683         (knuth_morris_pratt): Remove function.
1684         (c_strcasestr): Update.
1685         * lib/c-strstr.c: Include str-kmp.h.
1686         (knuth_morris_pratt): Remove function.
1687         (c_strcasestr): Update.
1688         * lib/mbscasestr.c: Include str-kmp.h.
1689         (knuth_morris_pratt_unibyte): Remove function.
1690         * lib/mbsstr.c: Include str-kmp.h.
1691         (knuth_morris_pratt_unibyte): Remove function.
1692         * lib/strcasestr.c: Include str-kmp.h.
1693         (knuth_morris_pratt): Remove function.
1694         (strcasestr): Update.
1695         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
1696         * modules/c-strstr (Files): Likewise.
1697         * modules/mbscasestr (Files): Likewise.
1698         * modules/mbsstr (Files): Likewise.
1699         * modules/strcasestr (Files): Likewise.
1700         Suggested by Paul Eggert.
1701
1702 2007-12-30  Bruno Haible  <bruno@clisp.org>
1703
1704         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
1705         defined.
1706
1707 2007-12-30  Bruno Haible  <bruno@clisp.org>
1708
1709         * lib/xmalloca.h: Include xalloc.h.
1710         (xnmalloca): New macro.
1711
1712 2007-12-30  Bruno Haible  <bruno@clisp.org>
1713
1714         * lib/malloca.h (nmalloca): New macro.
1715         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
1716         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
1717         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
1718         knuth_morris_pratt_multibyte): Likewise.
1719         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
1720         knuth_morris_pratt_multibyte): Likewise.
1721         * lib/memmem.c (knuth_morris_pratt): Likewise.
1722         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
1723
1724 2007-12-25  Bruno Haible  <bruno@clisp.org>
1725
1726         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
1727         * lib/glob.c: Don't include openat.h.
1728         (link_exists2_p): Add back the code that deals with the
1729         !GLOB_ALTDIRFUNC case.
1730         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
1731         let it do the filename concatenation.
1732         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
1733         * modules/glob (Depends-on): Remove openat.
1734
1735 2007-12-31  Bruno Haible  <bruno@clisp.org>
1736
1737         * modules/dirfd (License): Change to LGPLv2+.
1738         Approved by Jim Meyering.
1739
1740 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1741
1742         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
1743         when multiplying M by sizeof (size_t).
1744
1745 2007-12-10  Martin Lambers  <marlam@marlam.de>
1746
1747         Override getpagesize on mingw.
1748         * lib/getpagesize.c: New file.
1749         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
1750         * modules/getpagesize (Files): Add lib/getpagesize.c.
1751         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
1752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1753         REPLACE_GETPAGESIZE.
1754         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
1755
1756 2007-12-25  Bruno Haible  <bruno@clisp.org>
1757
1758         * modules/localcharset (Notice): New field.
1759         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
1760         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
1761
1762 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1763             Bruno Haible  <bruno@clisp.org>
1764
1765         Avoid using the syntax symbol() in formatted documentation.
1766         * MODULES.html.sh (func_module): When replacing symbol() with a
1767         hyperlink, remove the parentheses. Show an error if some remain.
1768         Recognize and render the '...' syntax.
1769         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
1770         Rework. Add paragraph about GCC's inlining.
1771         * doc/alloca.texi: Likewise.
1772         * doc/error.texi: Remove parentheses from symbol reference.
1773         * doc/gnulib-intro.texi: Likewise.
1774         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
1775         * modules/fnmatch (Description): Reword to say "the ... function".
1776         * modules/full-read (Description): Likewise.
1777         * modules/full-write (Description): Likewise.
1778         * modules/safe-read (Description): Likewise.
1779         * modules/safe-write (Description): Likewise.
1780         * modules/strchrnul (Description): Likewise.
1781         * modules/trim (Description): Likewise.
1782         * modules/error (Description): Remove parentheses from symbol
1783         references.
1784         * modules/verror (Description): Likewise.
1785         Reported by Karl Berry.
1786
1787 2007-12-25  Bruno Haible  <bruno@clisp.org>
1788
1789         Fixup after 2007-10-16 commit.
1790         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
1791
1792 2007-12-24  Bruno Haible  <bruno@clisp.org>
1793
1794         Make --enable-relocatable work with DESTDIR.
1795         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
1796         to compute installdir from destprog.
1797         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
1798         also set the RELOC_DESTDIR variable.
1799         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
1800
1801 2007-12-24  Bruno Haible  <bruno@clisp.org>
1802
1803         Fix link error due to xalloc_die().
1804         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
1805         of xreadlink.
1806         * lib/relocwrapper.c: Update comments.
1807         * build-aux/install-reloc: Remove xreadlink.c from file list.
1808         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
1809         xreadlink.c.
1810         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
1811
1812 2007-12-24  Bruno Haible  <bruno@clisp.org>
1813
1814         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
1815         * lib/setenv.h: Remove file.
1816         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
1817         lib/setenv.h.
1818         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
1819         (Depends-on): Add stdlib.
1820         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
1821         gl_FUNC_UNSETENV.
1822         (Include): Replace setenv.h with <stdlib.h>.
1823         * modules/unsetenv: New file.
1824         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
1825         * lib/unsetenv.c: Include <stdlib.h> first.
1826         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
1827         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
1828         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
1829         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
1830         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
1831         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
1832         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
1833         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
1834         * doc/functions/unsetenv.texi: Update.
1835         * modules/xsetenv (Depends-on): Add unsetenv.
1836         * modules/getdate (Depends-on): Likewise.
1837         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
1838         * lib/xsetenv.c: Don't include setenv.h.
1839         * lib/getdate.y: Likewise.
1840         * lib/relocwrapper.c: Likewise.
1841         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
1842         (Depends-on): Add stdlib.
1843         * NEWS: Mention the changes.
1844         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
1845
1846 2007-12-23  Bruno Haible  <bruno@clisp.org>
1847
1848         * lib/memmem.c (memmem): Use lowercase variable names. Tab
1849         indentation.
1850
1851 2007-12-23  Bruno Haible  <bruno@clisp.org>
1852
1853         * lib/c-strcasestr.c: Add more comments.
1854         * lib/c-strstr.c: Likewise.
1855         * lib/mbscasestr.c: Likewise.
1856         * lib/mbsstr.c: Likewise.
1857         * lib/strcasestr.c: Likewise.
1858         * lib/memmem.c: Likewise.
1859
1860 2007-12-23  Bruno Haible  <bruno@clisp.org>
1861
1862         * tests/test-memmem.c: Include <string.h> first.
1863
1864 2007-12-22  Bruno Haible  <bruno@clisp.org>
1865
1866         * gnulib-tool (func_create_testdir): Change $auxdir while generating
1867         the contents of $testsbase.
1868         Reported by Ralf Wildenhues.
1869
1870 2007-12-22  Bruno Haible  <bruno@clisp.org>
1871
1872         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
1873         two variables local_ldadd_before, local_ldadd_last.
1874
1875 2007-12-20  Eric Blake  <ebb9@byu.net>
1876
1877         Work around circular library issue when cross-compiling.
1878         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
1879         that progname.o does not need to pull in rpl_memcmp.
1880
1881 2007-12-19  Eric Blake  <ebb9@byu.net>
1882
1883         Fix memmem to avoid O(n^2) worst-case complexity.
1884         * lib/memmem.c (knuth_morris_pratt): New function.
1885         (memmem): Use it if first few naive iterations fail.
1886         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
1887         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
1888         * modules/memchr (License): Likewise.
1889         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
1890         malloca.
1891         * tests/test-memmem.c: Rewrite, borrowing ideas from
1892         test-mbsstr1.c; the old version wouldn't even compile!
1893         * modules/memmem-tests: New file.
1894         * lib/string.in.h (rpl_memmem): Add declaration.
1895         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
1896         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
1897         REPLACE_MEMMEM.
1898
1899 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1900
1901         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
1902         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
1903         before any system include files, and undef after them all.  This
1904         should fix a problem on VMS reported by John E. Malmberg in
1905         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
1906
1907 2007-12-17  Eric Blake  <ebb9@byu.net>
1908
1909         Revert addition of verify, for BSD/OS.
1910         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
1911         can't handle large files, for the sake of obsolete platforms.
1912         * modules/fseeko (Depends-on): Remove verify.
1913         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
1914         * doc/functions/ftello.texi (ftello): Likewise.
1915         * doc/functions/fgetpos.texi (fgetpos): Likewise.
1916         Reported by Larry Jones.
1917
1918 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
1919
1920         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
1921         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
1922
1923 2007-12-17  Jim Meyering  <meyering@redhat.com>
1924
1925         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
1926         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
1927         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
1928         * modules/getcwd (Depends-on): Add openat.
1929         Reported by Petr Salinger.
1930
1931 2007-12-17  Bruno Haible  <bruno@clisp.org>
1932
1933         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
1934         avoid a segmentation fault of the configure test on x86_64 systems.
1935
1936 2007-12-15  Jim Meyering  <meyering@redhat.com>
1937
1938         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
1939
1940 2007-12-13  Eric Blake  <ebb9@byu.net>
1941
1942         Another fseek test.
1943         * tests/test-fseek.c (main): Also test ungetc handling.
1944         * tests/test-fseeko.c (main): Likewise.
1945         * modules/fseeko (Depends-on): Add verify.
1946         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
1947         large.
1948         Reported by Larry Jones.
1949
1950         Fix fseeko on mingw.
1951         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
1952         seek.
1953
1954         Beef up fseek tests.
1955         * tests/test-fseek.c (main): Also test eof handling.
1956         * tests/test-fseeko.c (main): Likewise.
1957         Reported by Larry Jones.
1958
1959 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
1960
1961         Fix fseeko on BSD-based platforms.
1962         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
1963         successful seek.
1964
1965 2007-12-12  Eric Blake  <ebb9@byu.net>
1966
1967         Allow circular dependency of separate libtests.a
1968         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
1969         when use_libtests.
1970
1971 2007-12-11  Eric Blake  <ebb9@byu.net>
1972
1973         Fix bug with -0.0L in previous patch.
1974         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
1975         * tests/test-isnan.c (main): Also test on zeroes.
1976         * tests/test-isnanf.c (main): Likewise.
1977         * tests/test-isnanl.h (main): Likewise.
1978
1979         Detect pseudo-denormals on x86 even when cross-compiling.
1980         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
1981         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
1982         invalid bit patterns that happen to satisfy ==.
1983
1984         Avoid link failures with separate libtests.a.
1985         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
1986         last, to satisfy circular dependencies.
1987
1988 2007-12-11  Eric Blake  <ebb9@byu.net>
1989         and Bruno Haible  <bruno@clisp.org>
1990
1991         Fix OpenBSD 4.0 <float.h> handling of long double.
1992         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
1993         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
1994         * doc/headers/float.texi (float.h): Document OpenBSD bug.
1995
1996 2007-12-11  Jim Meyering  <meyering@redhat.com>
1997
1998         * users.txt: Add libvirt.
1999
2000         Support versions of autoconf prior to 2.59c.
2001         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
2002         if it is not already defined.
2003
2004 2007-12-09  Bruno Haible  <bruno@clisp.org>
2005
2006         Let 'gnulib-tool --import' collect sources needed for the tests in
2007         tests/ rather than in lib/.
2008         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
2009         argument. If true, add rules to generate libtests.a, and put libtests.a
2010         into $(LDADD). Consider source files in subdirectories and set
2011         uses_subdirs.
2012         (func_emit_initmacro_start, func_emit_initmacro_end,
2013         func_emit_initmacro_done): Pass all arguments explicitly.
2014         (func_import): Determine two module lists main_modules,
2015         testsrelated_modules. Determine use_libtests. Determine two variables
2016         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
2017         instead of just sed_transform_lib_file. Determine two variables
2018         main_files and testsrelated_files. Compute 'files' as the union of
2019         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
2020         func_add_or_update. In the generated gnulib-comp.m4, collect the
2021         object files for tests/ in different variables than those for lib/.
2022         Substitute LIBTESTS_LIBDEPS.
2023         (func_create_testdir): Combine the uses_subdirs results from
2024         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
2025
2026 2007-12-09  Bruno Haible  <bruno@clisp.org>
2027
2028         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
2029         the build-aux directory.
2030
2031 2007-12-09  Bruno Haible  <bruno@clisp.org>
2032
2033         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
2034         introduced on 2006-09-09.
2035
2036 2007-12-07  Jim Meyering  <meyering@redhat.com>
2037
2038         Let these macros work also with autoconf-2.59.
2039         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
2040         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
2041         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2042
2043 2007-12-06  Jim Meyering  <meyering@redhat.com>
2044
2045         Avoid a configure-time syntax error in gl_FUNC_ACL.
2046         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
2047         function in each branch, before testing the cache variable.
2048
2049 2007-12-04  Eric Blake  <ebb9@byu.net>
2050
2051         Make scripts executable.
2052         * build-aux/config.guess: Add execute permissions.
2053         * build-aux/config.sub: Likewise.
2054         * build-aux/gendocs.sh: Likewise.
2055
2056         Fix frexp on mingw.
2057         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
2058         cross-compiling.
2059         * doc/functions/frexp.texi (frexp): Document the bug.
2060
2061         Make cygwin fseeko check more reliable.
2062         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
2063         version numbers, rather than unrelated feature check.
2064         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
2065         * doc/functions/ftello.texi (ftello): Likewise.
2066         Reported by Bruno Haible.
2067
2068         * m4/strerror.m4: Bump version number.
2069
2070 2007-12-03  Bruno Haible  <bruno@clisp.org>
2071
2072         * doc/functions/mprotect.texi: Mention the mingw problem.
2073
2074 2007-12-03  Eric Blake  <ebb9@byu.net>
2075
2076         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
2077         REPLACE_STRERROR is initialized before this macro.
2078
2079 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
2080
2081         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
2082         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
2083         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
2084         put -lsec in even for programs other than 'ls'.  This fixes a problem
2085         for gettext reported by Bruno Haible in
2086         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
2087         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
2088         Add support for Solaris 10.  This isn't efficient, but should get the
2089         job done for now.
2090
2091 2007-12-03  James Youngman  <jay@gnu.org>
2092
2093         * doc/regexprops-generic.texi: change "an close-group" to "a
2094         close-group" and "illegal" to "not allowed".
2095
2096 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2097
2098         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
2099         pr_byname.h. Needed for the rare case when the maintainer has done
2100         "make maintainer-clean" in the source directory and then attempts a
2101         build outside the source directory.
2102         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
2103         scripts_byname.h.
2104
2105 2007-12-02  Martin Lambers <marlam@marlam.de>
2106             Bruno Haible  <bruno@clisp.org>
2107
2108         * lib/getpagesize.h: Remove file.
2109         * lib/unistd.in.h: Include declaration of getpagesize here.
2110         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
2111         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
2112         HAVE_SYS_PARAM_H.
2113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
2114         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
2115         * modules/getpagesize (Files): Remove lib/getpagesize.h.
2116         (Depends-on): Add unistd.
2117         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2118         (Include): Use <unistd.h> instead of getpagesize.h.
2119         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
2120         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
2121         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
2122         gl_GETPAGESIZE invocation, already handled by module dependency.
2123         * lib/pagealign_alloc.c: Don't include getpagesize.h.
2124
2125 2007-12-02  Bruno Haible  <bruno@clisp.org>
2126
2127         * modules/strings-tests: New file.
2128         * tests/test-strings.c: New file.
2129
2130         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
2131         * lib/strings.in.h: New file.
2132         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
2133         * m4/strings_h.m4: New file.
2134         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
2135         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
2136         * modules/strings: New file.
2137         * modules/string (Makefile.am): Update.
2138         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
2139         Reported by Karl Berry.
2140
2141 2007-12-01  Eric Blake  <ebb9@byu.net>
2142
2143         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
2144         accomodate fix in cygwin 1.5.25.
2145
2146 2007-12-01  Jim Meyering  <meyering@redhat.com>
2147
2148         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
2149         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2150         that would inhibit utf8-optimization of a regexp containing line-
2151         or buffer-anchors, e.g., `^', `$'.
2152
2153 2007-11-30  Bruno Haible  <bruno@clisp.org>
2154
2155         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
2156         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
2157         glthread_recursive_lock_init.
2158         * lib/lock.c (glthread_recursive_lock_init)
2159         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
2160         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2161
2162 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
2163
2164         New function qset_acl, like set_acl but with syscall semantics.
2165         * lib/acl.h (qset_acl): New decl.
2166         * lib/acl.c (qset_acl): New function.
2167         (set_acl): Use new function.  Use more-consistent diagnostics.
2168
2169 2007-11-28  Jim Meyering  <meyering@redhat.com>
2170
2171         * modules/physmem (License): Change from GPL to LGPLv2+.
2172
2173 2007-11-26  Bruno Haible  <bruno@clisp.org>
2174
2175         * lib/vasnprintf.c (decode_long_double): Don't abort if the
2176         'long double' type has excess precision.
2177         Reported by Jim Meyering in
2178         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
2179
2180 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2181
2182         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
2183         Sync from <http://gnu.org/licenses>.
2184         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
2185         with license text from same location.
2186         * doc/maintain.texi, doc/standards.texi:  Sync from
2187         <http://savannah.gnu.org/projects/gnustandards>.
2188
2189 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
2190         and Jim Meyering  <meyering@redhat.com>
2191
2192         Adjust getdate' grammar to accept a slightly more regular language.
2193         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
2194         Before, the former was rejected.
2195         * lib/getdate.y (digits_to_date_time): New function, factored
2196         out of ...
2197         (number): ...here.  Just call digits_to_date_time.
2198         (hybrid): New non-terminal to handle an <unsigned number,
2199         signed relative offset> sequence consistently.
2200
2201 2007-11-18  Jim Meyering  <meyering@redhat.com>
2202
2203         Pull my changes from coreutils:
2204         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
2205         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
2206         use of $gnulib_tool_option_extras, so that it's separated from the
2207         preceding argument.
2208
2209         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
2210         * build-aux/bootstrap (cp_mark_as_generated): Create any required
2211         parent destination directories before copying a file into place.
2212
2213 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
2214
2215         bootstrap: work also with 4-argument variant of AC_INIT
2216         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
2217
2218 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
2219
2220         Port test-getaddrinfo to Solaris.
2221         Problem reported by Bruno Haible in
2222         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
2223         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
2224         explanation of setting 'hints'.
2225         Don't reject an implementation merely because it returns EAI_SERVICE.
2226         (EAI_SERVICE): Define to 0 if not defined.
2227
2228 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
2229
2230         The license of gnu-make and posix-shell is now "GPLed build tool".
2231         * modules/gnu-make (License): Likewise.
2232         * modules/posix-shell (License): Likewise.
2233
2234         New module posix-shell, for determining a POSIX shell
2235         or perhaps something that is close enough to a POSIX shell.
2236         * m4/posix-shell.m4: New file.
2237         * modules/posix-shell: New file.
2238
2239         * MODULES.html.sh: Mention new module.
2240
2241         New module gnu-make, for determining whether we're using GNU Make.
2242         * m4/gnu-make.m4: New file.
2243         * modules/gnu-make: New file.
2244         * MODULES.html.sh: Mention new module.
2245
2246 2007-11-14  Jim Meyering  <meyering@redhat.com>
2247
2248         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
2249         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
2250         use this macro to create a function _definition_.
2251         Remove useless "#undef ARGMATCH_DIE".
2252
2253 2007-11-14  Bruno Haible  <bruno@clisp.org>
2254
2255         * lib/config.charset: Update for OpenBSD 4.1.
2256         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
2257
2258 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
2259
2260         Document 64-bit #if problems in stdint.texi.
2261         * doc/headers/stdint.texi (stdint.h): Mention problems with
2262         64-bit-#if, and how to work around them.
2263
2264         Don't insist on 'long long int' support in the preprocessor.  It
2265         breaks too many things.  For example, PRIdMAX still uses a 'long
2266         long int' format with the latest Sun compiler, even though
2267         HAVE_LONG_LONG_INT isn't defined due to that compiler's
2268         preprocessor problem.  This causes the latest coreutils to dump
2269         core on Solaris 10 sparc with the Sun C compiler.
2270         Instead, fix the 2007-10-16 problem in a different way, by evaluating
2271         the troublesome expressions at configure-time, not at #if-time.
2272         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
2273         preprocessor.
2274         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
2275         compile-time C checks, done at 'configure'-time.
2276         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
2277         * modules/inttypes (Makefile): Substitute the new symbols that
2278         gl_INTTYPES_H now generates.
2279         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
2280
2281 2007-11-12  Bruno Haible  <bruno@clisp.org>
2282
2283         Tests for Unicode character classification functions.
2284
2285         * modules/unictype/bidicategory-byname-tests: New file.
2286         * modules/unictype/bidicategory-name-tests: New file.
2287         * modules/unictype/bidicategory-of-tests: New file.
2288         * modules/unictype/bidicategory-test-tests: New file.
2289         * modules/unictype/block-list-tests: New file.
2290         * modules/unictype/block-of-tests: New file.
2291         * modules/unictype/block-test-tests: New file.
2292         * modules/unictype/category-C-tests: New file.
2293         * modules/unictype/category-Cc-tests: New file.
2294         * modules/unictype/category-Cf-tests: New file.
2295         * modules/unictype/category-Cn-tests: New file.
2296         * modules/unictype/category-Co-tests: New file.
2297         * modules/unictype/category-Cs-tests: New file.
2298         * modules/unictype/category-L-tests: New file.
2299         * modules/unictype/category-Ll-tests: New file.
2300         * modules/unictype/category-Lm-tests: New file.
2301         * modules/unictype/category-Lo-tests: New file.
2302         * modules/unictype/category-Lt-tests: New file.
2303         * modules/unictype/category-Lu-tests: New file.
2304         * modules/unictype/category-M-tests: New file.
2305         * modules/unictype/category-Mc-tests: New file.
2306         * modules/unictype/category-Me-tests: New file.
2307         * modules/unictype/category-Mn-tests: New file.
2308         * modules/unictype/category-N-tests: New file.
2309         * modules/unictype/category-Nd-tests: New file.
2310         * modules/unictype/category-Nl-tests: New file.
2311         * modules/unictype/category-No-tests: New file.
2312         * modules/unictype/category-P-tests: New file.
2313         * modules/unictype/category-Pc-tests: New file.
2314         * modules/unictype/category-Pd-tests: New file.
2315         * modules/unictype/category-Pe-tests: New file.
2316         * modules/unictype/category-Pf-tests: New file.
2317         * modules/unictype/category-Pi-tests: New file.
2318         * modules/unictype/category-Po-tests: New file.
2319         * modules/unictype/category-Ps-tests: New file.
2320         * modules/unictype/category-S-tests: New file.
2321         * modules/unictype/category-Sc-tests: New file.
2322         * modules/unictype/category-Sk-tests: New file.
2323         * modules/unictype/category-Sm-tests: New file.
2324         * modules/unictype/category-So-tests: New file.
2325         * modules/unictype/category-Z-tests: New file.
2326         * modules/unictype/category-Zl-tests: New file.
2327         * modules/unictype/category-Zp-tests: New file.
2328         * modules/unictype/category-Zs-tests: New file.
2329         * modules/unictype/category-and-not-tests: New file.
2330         * modules/unictype/category-and-tests: New file.
2331         * modules/unictype/category-byname-tests: New file.
2332         * modules/unictype/category-name-tests: New file.
2333         * modules/unictype/category-none-tests: New file.
2334         * modules/unictype/category-of-tests: New file.
2335         * modules/unictype/category-or-tests: New file.
2336         * modules/unictype/category-test-withtable-tests: New file.
2337         * modules/unictype/combining-class-tests: New file.
2338         * modules/unictype/ctype-alnum-tests: New file.
2339         * modules/unictype/ctype-alpha-tests: New file.
2340         * modules/unictype/ctype-blank-tests: New file.
2341         * modules/unictype/ctype-cntrl-tests: New file.
2342         * modules/unictype/ctype-digit-tests: New file.
2343         * modules/unictype/ctype-graph-tests: New file.
2344         * modules/unictype/ctype-lower-tests: New file.
2345         * modules/unictype/ctype-print-tests: New file.
2346         * modules/unictype/ctype-punct-tests: New file.
2347         * modules/unictype/ctype-space-tests: New file.
2348         * modules/unictype/ctype-upper-tests: New file.
2349         * modules/unictype/ctype-xdigit-tests: New file.
2350         * modules/unictype/decimal-digit-tests: New file.
2351         * modules/unictype/digit-tests: New file.
2352         * modules/unictype/mirror-tests: New file.
2353         * modules/unictype/numeric-tests: New file.
2354         * modules/unictype/property-alphabetic-tests: New file.
2355         * modules/unictype/property-ascii-hex-digit-tests: New file.
2356         * modules/unictype/property-bidi-arabic-digit-tests: New file.
2357         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
2358         * modules/unictype/property-bidi-block-separator-tests: New file.
2359         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
2360         * modules/unictype/property-bidi-common-separator-tests: New file.
2361         * modules/unictype/property-bidi-control-tests: New file.
2362         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
2363         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
2364         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
2365         * modules/unictype/property-bidi-european-digit-tests: New file.
2366         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
2367         * modules/unictype/property-bidi-left-to-right-tests: New file.
2368         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
2369         * modules/unictype/property-bidi-other-neutral-tests: New file.
2370         * modules/unictype/property-bidi-pdf-tests: New file.
2371         * modules/unictype/property-bidi-segment-separator-tests: New file.
2372         * modules/unictype/property-bidi-whitespace-tests: New file.
2373         * modules/unictype/property-byname-tests: New file.
2374         * modules/unictype/property-combining-tests: New file.
2375         * modules/unictype/property-composite-tests: New file.
2376         * modules/unictype/property-currency-symbol-tests: New file.
2377         * modules/unictype/property-dash-tests: New file.
2378         * modules/unictype/property-decimal-digit-tests: New file.
2379         * modules/unictype/property-default-ignorable-code-point-tests: New file.
2380         * modules/unictype/property-deprecated-tests: New file.
2381         * modules/unictype/property-diacritic-tests: New file.
2382         * modules/unictype/property-extender-tests: New file.
2383         * modules/unictype/property-format-control-tests: New file.
2384         * modules/unictype/property-grapheme-base-tests: New file.
2385         * modules/unictype/property-grapheme-extend-tests: New file.
2386         * modules/unictype/property-grapheme-link-tests: New file.
2387         * modules/unictype/property-hex-digit-tests: New file.
2388         * modules/unictype/property-hyphen-tests: New file.
2389         * modules/unictype/property-id-continue-tests: New file.
2390         * modules/unictype/property-id-start-tests: New file.
2391         * modules/unictype/property-ideographic-tests: New file.
2392         * modules/unictype/property-ids-binary-operator-tests: New file.
2393         * modules/unictype/property-ids-trinary-operator-tests: New file.
2394         * modules/unictype/property-ignorable-control-tests: New file.
2395         * modules/unictype/property-iso-control-tests: New file.
2396         * modules/unictype/property-join-control-tests: New file.
2397         * modules/unictype/property-left-of-pair-tests: New file.
2398         * modules/unictype/property-line-separator-tests: New file.
2399         * modules/unictype/property-logical-order-exception-tests: New file.
2400         * modules/unictype/property-lowercase-tests: New file.
2401         * modules/unictype/property-math-tests: New file.
2402         * modules/unictype/property-non-break-tests: New file.
2403         * modules/unictype/property-not-a-character-tests: New file.
2404         * modules/unictype/property-numeric-tests: New file.
2405         * modules/unictype/property-other-alphabetic-tests: New file.
2406         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
2407         * modules/unictype/property-other-grapheme-extend-tests: New file.
2408         * modules/unictype/property-other-id-continue-tests: New file.
2409         * modules/unictype/property-other-id-start-tests: New file.
2410         * modules/unictype/property-other-lowercase-tests: New file.
2411         * modules/unictype/property-other-math-tests: New file.
2412         * modules/unictype/property-other-uppercase-tests: New file.
2413         * modules/unictype/property-paired-punctuation-tests: New file.
2414         * modules/unictype/property-paragraph-separator-tests: New file.
2415         * modules/unictype/property-pattern-syntax-tests: New file.
2416         * modules/unictype/property-pattern-white-space-tests: New file.
2417         * modules/unictype/property-private-use-tests: New file.
2418         * modules/unictype/property-punctuation-tests: New file.
2419         * modules/unictype/property-quotation-mark-tests: New file.
2420         * modules/unictype/property-radical-tests: New file.
2421         * modules/unictype/property-sentence-terminal-tests: New file.
2422         * modules/unictype/property-soft-dotted-tests: New file.
2423         * modules/unictype/property-space-tests: New file.
2424         * modules/unictype/property-terminal-punctuation-tests: New file.
2425         * modules/unictype/property-test-tests: New file.
2426         * modules/unictype/property-titlecase-tests: New file.
2427         * modules/unictype/property-unassigned-code-value-tests: New file.
2428         * modules/unictype/property-unified-ideograph-tests: New file.
2429         * modules/unictype/property-uppercase-tests: New file.
2430         * modules/unictype/property-variation-selector-tests: New file.
2431         * modules/unictype/property-white-space-tests: New file.
2432         * modules/unictype/property-xid-continue-tests: New file.
2433         * modules/unictype/property-xid-start-tests: New file.
2434         * modules/unictype/property-zero-width-tests: New file.
2435         * modules/unictype/scripts-tests: New file.
2436         * modules/unictype/syntax-c-ident-tests: New file.
2437         * modules/unictype/syntax-c-whitespace-tests: New file.
2438         * modules/unictype/syntax-java-ident-tests: New file.
2439         * modules/unictype/syntax-java-whitespace-tests: New file.
2440         * tests/unictype/test-bidi_byname.c: New file.
2441         * tests/unictype/test-bidi_name.c: New file.
2442         * tests/unictype/test-bidi_of.c: New file.
2443         * tests/unictype/test-bidi_test.c: New file.
2444         * tests/unictype/test-block_list.c: New file.
2445         * tests/unictype/test-block_of.c: New file.
2446         * tests/unictype/test-block_test.c: New file.
2447         * tests/unictype/test-categ_and.c: New file.
2448         * tests/unictype/test-categ_and_not.c: New file.
2449         * tests/unictype/test-categ_byname.c: New file.
2450         * tests/unictype/test-categ_name.c: New file.
2451         * tests/unictype/test-categ_none.c: New file.
2452         * tests/unictype/test-categ_of.c: New file.
2453         * tests/unictype/test-categ_or.c: New file.
2454         * tests/unictype/test-categ_test_withtable.c: New file.
2455         * tests/unictype/test-combining.c: New file.
2456         * tests/unictype/test-decdigit.c: New file.
2457         * tests/unictype/test-digit.c: New file.
2458         * tests/unictype/test-mirror.c: New file.
2459         * tests/unictype/test-numeric.c: New file.
2460         * tests/unictype/test-pr_byname.c: New file.
2461         * tests/unictype/test-pr_test.c: New file.
2462         * tests/unictype/test-predicate-part1.h: New file.
2463         * tests/unictype/test-predicate-part2.h: New file.
2464         * tests/unictype/test-scripts.c: New file.
2465         * tests/unictype/test-sy_c_ident.c: New file.
2466         * tests/unictype/test-sy_java_ident.c: New file.
2467
2468         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
2469         for Unicode 5.0.0.
2470         * tests/unictype/test-categ_Cc.c: Likewise.
2471         * tests/unictype/test-categ_Cf.c: Likewise.
2472         * tests/unictype/test-categ_Cn.c: Likewise.
2473         * tests/unictype/test-categ_Co.c: Likewise.
2474         * tests/unictype/test-categ_Cs.c: Likewise.
2475         * tests/unictype/test-categ_L.c: Likewise.
2476         * tests/unictype/test-categ_Ll.c: Likewise.
2477         * tests/unictype/test-categ_Lm.c: Likewise.
2478         * tests/unictype/test-categ_Lo.c: Likewise.
2479         * tests/unictype/test-categ_Lt.c: Likewise.
2480         * tests/unictype/test-categ_Lu.c: Likewise.
2481         * tests/unictype/test-categ_M.c: Likewise.
2482         * tests/unictype/test-categ_Mc.c: Likewise.
2483         * tests/unictype/test-categ_Me.c: Likewise.
2484         * tests/unictype/test-categ_Mn.c: Likewise.
2485         * tests/unictype/test-categ_N.c: Likewise.
2486         * tests/unictype/test-categ_Nd.c: Likewise.
2487         * tests/unictype/test-categ_Nl.c: Likewise.
2488         * tests/unictype/test-categ_No.c: Likewise.
2489         * tests/unictype/test-categ_P.c: Likewise.
2490         * tests/unictype/test-categ_Pc.c: Likewise.
2491         * tests/unictype/test-categ_Pd.c: Likewise.
2492         * tests/unictype/test-categ_Pe.c: Likewise.
2493         * tests/unictype/test-categ_Pf.c: Likewise.
2494         * tests/unictype/test-categ_Pi.c: Likewise.
2495         * tests/unictype/test-categ_Po.c: Likewise.
2496         * tests/unictype/test-categ_Ps.c: Likewise.
2497         * tests/unictype/test-categ_S.c: Likewise.
2498         * tests/unictype/test-categ_Sc.c: Likewise.
2499         * tests/unictype/test-categ_Sk.c: Likewise.
2500         * tests/unictype/test-categ_Sm.c: Likewise.
2501         * tests/unictype/test-categ_So.c: Likewise.
2502         * tests/unictype/test-categ_Z.c: Likewise.
2503         * tests/unictype/test-categ_Zl.c: Likewise.
2504         * tests/unictype/test-categ_Zp.c: Likewise.
2505         * tests/unictype/test-categ_Zs.c: Likewise.
2506         * tests/unictype/test-ctype_alnum.c: Likewise.
2507         * tests/unictype/test-ctype_alpha.c: Likewise.
2508         * tests/unictype/test-ctype_blank.c: Likewise.
2509         * tests/unictype/test-ctype_cntrl.c: Likewise.
2510         * tests/unictype/test-ctype_digit.c: Likewise.
2511         * tests/unictype/test-ctype_graph.c: Likewise.
2512         * tests/unictype/test-ctype_lower.c: Likewise.
2513         * tests/unictype/test-ctype_print.c: Likewise.
2514         * tests/unictype/test-ctype_punct.c: Likewise.
2515         * tests/unictype/test-ctype_space.c: Likewise.
2516         * tests/unictype/test-ctype_upper.c: Likewise.
2517         * tests/unictype/test-ctype_xdigit.c: Likewise.
2518         * tests/unictype/test-decdigit.h: Likewise.
2519         * tests/unictype/test-digit.h: Likewise.
2520         * tests/unictype/test-numeric.h: Likewise.
2521         * tests/unictype/test-pr_alphabetic.c: Likewise.
2522         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
2523         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
2524         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
2525         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
2526         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
2527         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
2528         * tests/unictype/test-pr_bidi_control.c: Likewise.
2529         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
2530         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
2531         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
2532         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
2533         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
2534         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
2535         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
2536         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
2537         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
2538         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
2539         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
2540         * tests/unictype/test-pr_combining.c: Likewise.
2541         * tests/unictype/test-pr_composite.c: Likewise.
2542         * tests/unictype/test-pr_currency_symbol.c: Likewise.
2543         * tests/unictype/test-pr_dash.c: Likewise.
2544         * tests/unictype/test-pr_decimal_digit.c: Likewise.
2545         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
2546         * tests/unictype/test-pr_deprecated.c: Likewise.
2547         * tests/unictype/test-pr_diacritic.c: Likewise.
2548         * tests/unictype/test-pr_extender.c: Likewise.
2549         * tests/unictype/test-pr_format_control.c: Likewise.
2550         * tests/unictype/test-pr_grapheme_base.c: Likewise.
2551         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
2552         * tests/unictype/test-pr_grapheme_link.c: Likewise.
2553         * tests/unictype/test-pr_hex_digit.c: Likewise.
2554         * tests/unictype/test-pr_hyphen.c: Likewise.
2555         * tests/unictype/test-pr_id_continue.c: Likewise.
2556         * tests/unictype/test-pr_id_start.c: Likewise.
2557         * tests/unictype/test-pr_ideographic.c: Likewise.
2558         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
2559         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
2560         * tests/unictype/test-pr_ignorable_control.c: Likewise.
2561         * tests/unictype/test-pr_iso_control.c: Likewise.
2562         * tests/unictype/test-pr_join_control.c: Likewise.
2563         * tests/unictype/test-pr_left_of_pair.c: Likewise.
2564         * tests/unictype/test-pr_line_separator.c: Likewise.
2565         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
2566         * tests/unictype/test-pr_lowercase.c: Likewise.
2567         * tests/unictype/test-pr_math.c: Likewise.
2568         * tests/unictype/test-pr_non_break.c: Likewise.
2569         * tests/unictype/test-pr_not_a_character.c: Likewise.
2570         * tests/unictype/test-pr_numeric.c: Likewise.
2571         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
2572         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
2573         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
2574         * tests/unictype/test-pr_other_id_continue.c: Likewise.
2575         * tests/unictype/test-pr_other_id_start.c: Likewise.
2576         * tests/unictype/test-pr_other_lowercase.c: Likewise.
2577         * tests/unictype/test-pr_other_math.c: Likewise.
2578         * tests/unictype/test-pr_other_uppercase.c: Likewise.
2579         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
2580         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
2581         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
2582         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
2583         * tests/unictype/test-pr_private_use.c: Likewise.
2584         * tests/unictype/test-pr_punctuation.c: Likewise.
2585         * tests/unictype/test-pr_quotation_mark.c: Likewise.
2586         * tests/unictype/test-pr_radical.c: Likewise.
2587         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
2588         * tests/unictype/test-pr_soft_dotted.c: Likewise.
2589         * tests/unictype/test-pr_space.c: Likewise.
2590         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
2591         * tests/unictype/test-pr_titlecase.c: Likewise.
2592         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
2593         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
2594         * tests/unictype/test-pr_uppercase.c: Likewise.
2595         * tests/unictype/test-pr_variation_selector.c: Likewise.
2596         * tests/unictype/test-pr_white_space.c: Likewise.
2597         * tests/unictype/test-pr_xid_continue.c: Likewise.
2598         * tests/unictype/test-pr_xid_start.c: Likewise.
2599         * tests/unictype/test-pr_zero_width.c: Likewise.
2600         * tests/unictype/test-sy_c_whitespace.c: Likewise.
2601         * tests/unictype/test-sy_java_whitespace.c: Likewise.
2602
2603 2007-11-12  Bruno Haible  <bruno@clisp.org>
2604
2605         Unicode character classification functions.
2606         * lib/unictype.h: New file.
2607         * modules/unictype/base: New file.
2608         * modules/unictype/category-L: New file.
2609         * modules/unictype/category-Lu: New file.
2610         * modules/unictype/category-Ll: New file.
2611         * modules/unictype/category-Lt: New file.
2612         * modules/unictype/category-Lm: New file.
2613         * modules/unictype/category-Lo: New file.
2614         * modules/unictype/category-M: New file.
2615         * modules/unictype/category-Mn: New file.
2616         * modules/unictype/category-Mc: New file.
2617         * modules/unictype/category-Me: New file.
2618         * modules/unictype/category-N: New file.
2619         * modules/unictype/category-Nd: New file.
2620         * modules/unictype/category-Nl: New file.
2621         * modules/unictype/category-No: New file.
2622         * modules/unictype/category-P: New file.
2623         * modules/unictype/category-Pc: New file.
2624         * modules/unictype/category-Pd: New file.
2625         * modules/unictype/category-Ps: New file.
2626         * modules/unictype/category-Pe: New file.
2627         * modules/unictype/category-Pi: New file.
2628         * modules/unictype/category-Pf: New file.
2629         * modules/unictype/category-Po: New file.
2630         * modules/unictype/category-S: New file.
2631         * modules/unictype/category-Sm: New file.
2632         * modules/unictype/category-Sc: New file.
2633         * modules/unictype/category-Sk: New file.
2634         * modules/unictype/category-So: New file.
2635         * modules/unictype/category-Z: New file.
2636         * modules/unictype/category-Zs: New file.
2637         * modules/unictype/category-Zl: New file.
2638         * modules/unictype/category-Zp: New file.
2639         * modules/unictype/category-C: New file.
2640         * modules/unictype/category-Cc: New file.
2641         * modules/unictype/category-Cf: New file.
2642         * modules/unictype/category-Cs: New file.
2643         * modules/unictype/category-Co: New file.
2644         * modules/unictype/category-Cn: New file.
2645         * modules/unictype/category-or: New file.
2646         * modules/unictype/category-of: New file.
2647         * modules/unictype/category-test: New file.
2648         * modules/unictype/category-test-withtable: New file.
2649         * modules/unictype/category-byname: New file.
2650         * modules/unictype/category-none: New file.
2651         * modules/unictype/category-and: New file.
2652         * modules/unictype/category-and-not: New file.
2653         * modules/unictype/category-name: New file.
2654         * modules/unictype/combining-class: New file.
2655         * modules/unictype/category-all: New file.
2656         * modules/unictype/bidicategory-all: New file.
2657         * modules/unictype/bidicategory-byname: New file.
2658         * modules/unictype/bidicategory-name: New file.
2659         * modules/unictype/bidicategory-of: New file.
2660         * modules/unictype/bidicategory-test: New file.
2661         * modules/unictype/decimal-digit: New file.
2662         * modules/unictype/digit: New file.
2663         * modules/unictype/numeric: New file.
2664         * modules/unictype/mirror: New file.
2665         * modules/unictype/property-white-space: New file.
2666         * modules/unictype/property-alphabetic: New file.
2667         * modules/unictype/property-other-alphabetic: New file.
2668         * modules/unictype/property-not-a-character: New file.
2669         * modules/unictype/property-default-ignorable-code-point: New file.
2670         * modules/unictype/property-other-default-ignorable-code-point: New
2671         file.
2672         * modules/unictype/property-deprecated: New file.
2673         * modules/unictype/property-logical-order-exception: New file.
2674         * modules/unictype/property-variation-selector: New file.
2675         * modules/unictype/property-private-use: New file.
2676         * modules/unictype/property-unassigned-code-value: New file.
2677         * modules/unictype/property-uppercase: New file.
2678         * modules/unictype/property-other-uppercase: New file.
2679         * modules/unictype/property-lowercase: New file.
2680         * modules/unictype/property-other-lowercase: New file.
2681         * modules/unictype/property-titlecase: New file.
2682         * modules/unictype/property-soft-dotted: New file.
2683         * modules/unictype/property-id-start: New file.
2684         * modules/unictype/property-other-id-start: New file.
2685         * modules/unictype/property-id-continue: New file.
2686         * modules/unictype/property-other-id-continue: New file.
2687         * modules/unictype/property-xid-start: New file.
2688         * modules/unictype/property-xid-continue: New file.
2689         * modules/unictype/property-pattern-white-space: New file.
2690         * modules/unictype/property-pattern-syntax: New file.
2691         * modules/unictype/property-join-control: New file.
2692         * modules/unictype/property-grapheme-base: New file.
2693         * modules/unictype/property-grapheme-extend: New file.
2694         * modules/unictype/property-other-grapheme-extend: New file.
2695         * modules/unictype/property-grapheme-link: New file.
2696         * modules/unictype/property-bidi-control: New file.
2697         * modules/unictype/property-bidi-left-to-right: New file.
2698         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
2699         * modules/unictype/property-bidi-arabic-right-to-left: New file.
2700         * modules/unictype/property-bidi-european-digit: New file.
2701         * modules/unictype/property-bidi-eur-num-separator: New file.
2702         * modules/unictype/property-bidi-eur-num-terminator: New file.
2703         * modules/unictype/property-bidi-arabic-digit: New file.
2704         * modules/unictype/property-bidi-common-separator: New file.
2705         * modules/unictype/property-bidi-block-separator: New file.
2706         * modules/unictype/property-bidi-segment-separator: New file.
2707         * modules/unictype/property-bidi-whitespace: New file.
2708         * modules/unictype/property-bidi-non-spacing-mark: New file.
2709         * modules/unictype/property-bidi-boundary-neutral: New file.
2710         * modules/unictype/property-bidi-pdf: New file.
2711         * modules/unictype/property-bidi-embedding-or-override: New file.
2712         * modules/unictype/property-bidi-other-neutral: New file.
2713         * modules/unictype/property-hex-digit: New file.
2714         * modules/unictype/property-ascii-hex-digit: New file.
2715         * modules/unictype/property-ideographic: New file.
2716         * modules/unictype/property-unified-ideograph: New file.
2717         * modules/unictype/property-radical: New file.
2718         * modules/unictype/property-ids-binary-operator: New file.
2719         * modules/unictype/property-ids-trinary-operator: New file.
2720         * modules/unictype/property-zero-width: New file.
2721         * modules/unictype/property-space: New file.
2722         * modules/unictype/property-non-break: New file.
2723         * modules/unictype/property-iso-control: New file.
2724         * modules/unictype/property-format-control: New file.
2725         * modules/unictype/property-dash: New file.
2726         * modules/unictype/property-hyphen: New file.
2727         * modules/unictype/property-punctuation: New file.
2728         * modules/unictype/property-line-separator: New file.
2729         * modules/unictype/property-paragraph-separator: New file.
2730         * modules/unictype/property-quotation-mark: New file.
2731         * modules/unictype/property-sentence-terminal: New file.
2732         * modules/unictype/property-terminal-punctuation: New file.
2733         * modules/unictype/property-currency-symbol: New file.
2734         * modules/unictype/property-math: New file.
2735         * modules/unictype/property-other-math: New file.
2736         * modules/unictype/property-paired-punctuation: New file.
2737         * modules/unictype/property-left-of-pair: New file.
2738         * modules/unictype/property-combining: New file.
2739         * modules/unictype/property-composite: New file.
2740         * modules/unictype/property-decimal-digit: New file.
2741         * modules/unictype/property-numeric: New file.
2742         * modules/unictype/property-diacritic: New file.
2743         * modules/unictype/property-extender: New file.
2744         * modules/unictype/property-ignorable-control: New file.
2745         * modules/unictype/property-test: New file.
2746         * modules/unictype/property-byname: New file.
2747         * modules/unictype/property-all: New file.
2748         * modules/unictype/scripts: New file.
2749         * modules/unictype/scripts-all: New file.
2750         * modules/unictype/block-of: New file.
2751         * modules/unictype/block-test: New file.
2752         * modules/unictype/block-list: New file.
2753         * modules/unictype/block-all: New file.
2754         * modules/unictype/syntax-c-whitespace: New file.
2755         * modules/unictype/syntax-java-whitespace: New file.
2756         * modules/unictype/syntax-c-ident: New file.
2757         * modules/unictype/syntax-java-ident: New file.
2758         * modules/unictype/ctype-alnum: New file.
2759         * modules/unictype/ctype-alpha: New file.
2760         * modules/unictype/ctype-cntrl: New file.
2761         * modules/unictype/ctype-digit: New file.
2762         * modules/unictype/ctype-graph: New file.
2763         * modules/unictype/ctype-lower: New file.
2764         * modules/unictype/ctype-print: New file.
2765         * modules/unictype/ctype-punct: New file.
2766         * modules/unictype/ctype-space: New file.
2767         * modules/unictype/ctype-upper: New file.
2768         * modules/unictype/ctype-xdigit: New file.
2769         * modules/unictype/ctype-blank: New file.
2770         * lib/unictype/bidi_byname.c: New file.
2771         * lib/unictype/bidi_name.c: New file.
2772         * lib/unictype/bidi_of.c: New file.
2773         * lib/unictype/bidi_test.c: New file.
2774         * lib/unictype/bitmap.h: New file.
2775         * lib/unictype/block_test.c: New file.
2776         * lib/unictype/blocks.c: New file.
2777         * lib/unictype/categ_C.c: New file.
2778         * lib/unictype/categ_Cc.c: New file.
2779         * lib/unictype/categ_Cf.c: New file.
2780         * lib/unictype/categ_Cn.c: New file.
2781         * lib/unictype/categ_Co.c: New file.
2782         * lib/unictype/categ_Cs.c: New file.
2783         * lib/unictype/categ_L.c: New file.
2784         * lib/unictype/categ_Ll.c: New file.
2785         * lib/unictype/categ_Lm.c: New file.
2786         * lib/unictype/categ_Lo.c: New file.
2787         * lib/unictype/categ_Lt.c: New file.
2788         * lib/unictype/categ_Lu.c: New file.
2789         * lib/unictype/categ_M.c: New file.
2790         * lib/unictype/categ_Mc.c: New file.
2791         * lib/unictype/categ_Me.c: New file.
2792         * lib/unictype/categ_Mn.c: New file.
2793         * lib/unictype/categ_N.c: New file.
2794         * lib/unictype/categ_Nd.c: New file.
2795         * lib/unictype/categ_Nl.c: New file.
2796         * lib/unictype/categ_No.c: New file.
2797         * lib/unictype/categ_P.c: New file.
2798         * lib/unictype/categ_Pc.c: New file.
2799         * lib/unictype/categ_Pd.c: New file.
2800         * lib/unictype/categ_Pe.c: New file.
2801         * lib/unictype/categ_Pf.c: New file.
2802         * lib/unictype/categ_Pi.c: New file.
2803         * lib/unictype/categ_Po.c: New file.
2804         * lib/unictype/categ_Ps.c: New file.
2805         * lib/unictype/categ_S.c: New file.
2806         * lib/unictype/categ_Sc.c: New file.
2807         * lib/unictype/categ_Sk.c: New file.
2808         * lib/unictype/categ_Sm.c: New file.
2809         * lib/unictype/categ_So.c: New file.
2810         * lib/unictype/categ_Z.c: New file.
2811         * lib/unictype/categ_Zl.c: New file.
2812         * lib/unictype/categ_Zp.c: New file.
2813         * lib/unictype/categ_Zs.c: New file.
2814         * lib/unictype/categ_and.c: New file.
2815         * lib/unictype/categ_and_not.c: New file.
2816         * lib/unictype/categ_byname.c: New file.
2817         * lib/unictype/categ_name.c: New file.
2818         * lib/unictype/categ_none.c: New file.
2819         * lib/unictype/categ_of.c: New file.
2820         * lib/unictype/categ_or.c: New file.
2821         * lib/unictype/categ_test.c: New file.
2822         * lib/unictype/combining.c: New file.
2823         * lib/unictype/ctype_alnum.c: New file.
2824         * lib/unictype/ctype_alpha.c: New file.
2825         * lib/unictype/ctype_blank.c: New file.
2826         * lib/unictype/ctype_cntrl.c: New file.
2827         * lib/unictype/ctype_digit.c: New file.
2828         * lib/unictype/ctype_graph.c: New file.
2829         * lib/unictype/ctype_lower.c: New file.
2830         * lib/unictype/ctype_print.c: New file.
2831         * lib/unictype/ctype_punct.c: New file.
2832         * lib/unictype/ctype_space.c: New file.
2833         * lib/unictype/ctype_upper.c: New file.
2834         * lib/unictype/ctype_xdigit.c: New file.
2835         * lib/unictype/decdigit.c: New file.
2836         * lib/unictype/digit.c: New file.
2837         * lib/unictype/identsyntaxmap.h: New file.
2838         * lib/unictype/mirror.c: New file.
2839         * lib/unictype/numeric.c: New file.
2840         * lib/unictype/pr_alphabetic.c: New file.
2841         * lib/unictype/pr_ascii_hex_digit.c: New file.
2842         * lib/unictype/pr_bidi_arabic_digit.c: New file.
2843         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
2844         * lib/unictype/pr_bidi_block_separator.c: New file.
2845         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
2846         * lib/unictype/pr_bidi_common_separator.c: New file.
2847         * lib/unictype/pr_bidi_control.c: New file.
2848         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
2849         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
2850         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
2851         * lib/unictype/pr_bidi_european_digit.c: New file.
2852         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
2853         * lib/unictype/pr_bidi_left_to_right.c: New file.
2854         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
2855         * lib/unictype/pr_bidi_other_neutral.c: New file.
2856         * lib/unictype/pr_bidi_pdf.c: New file.
2857         * lib/unictype/pr_bidi_segment_separator.c: New file.
2858         * lib/unictype/pr_bidi_whitespace.c: New file.
2859         * lib/unictype/pr_byname.c: New file.
2860         * lib/unictype/pr_byname.gperf: New file.
2861         * lib/unictype/pr_combining.c: New file.
2862         * lib/unictype/pr_composite.c: New file.
2863         * lib/unictype/pr_currency_symbol.c: New file.
2864         * lib/unictype/pr_dash.c: New file.
2865         * lib/unictype/pr_decimal_digit.c: New file.
2866         * lib/unictype/pr_default_ignorable_code_point.c: New file.
2867         * lib/unictype/pr_deprecated.c: New file.
2868         * lib/unictype/pr_diacritic.c: New file.
2869         * lib/unictype/pr_extender.c: New file.
2870         * lib/unictype/pr_format_control.c: New file.
2871         * lib/unictype/pr_grapheme_base.c: New file.
2872         * lib/unictype/pr_grapheme_extend.c: New file.
2873         * lib/unictype/pr_grapheme_link.c: New file.
2874         * lib/unictype/pr_hex_digit.c: New file.
2875         * lib/unictype/pr_hyphen.c: New file.
2876         * lib/unictype/pr_id_continue.c: New file.
2877         * lib/unictype/pr_id_start.c: New file.
2878         * lib/unictype/pr_ideographic.c: New file.
2879         * lib/unictype/pr_ids_binary_operator.c: New file.
2880         * lib/unictype/pr_ids_trinary_operator.c: New file.
2881         * lib/unictype/pr_ignorable_control.c: New file.
2882         * lib/unictype/pr_iso_control.c: New file.
2883         * lib/unictype/pr_join_control.c: New file.
2884         * lib/unictype/pr_left_of_pair.c: New file.
2885         * lib/unictype/pr_line_separator.c: New file.
2886         * lib/unictype/pr_logical_order_exception.c: New file.
2887         * lib/unictype/pr_lowercase.c: New file.
2888         * lib/unictype/pr_math.c: New file.
2889         * lib/unictype/pr_non_break.c: New file.
2890         * lib/unictype/pr_not_a_character.c: New file.
2891         * lib/unictype/pr_numeric.c: New file.
2892         * lib/unictype/pr_other_alphabetic.c: New file.
2893         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
2894         * lib/unictype/pr_other_grapheme_extend.c: New file.
2895         * lib/unictype/pr_other_id_continue.c: New file.
2896         * lib/unictype/pr_other_id_start.c: New file.
2897         * lib/unictype/pr_other_lowercase.c: New file.
2898         * lib/unictype/pr_other_math.c: New file.
2899         * lib/unictype/pr_other_uppercase.c: New file.
2900         * lib/unictype/pr_paired_punctuation.c: New file.
2901         * lib/unictype/pr_paragraph_separator.c: New file.
2902         * lib/unictype/pr_pattern_syntax.c: New file.
2903         * lib/unictype/pr_pattern_white_space.c: New file.
2904         * lib/unictype/pr_private_use.c: New file.
2905         * lib/unictype/pr_punctuation.c: New file.
2906         * lib/unictype/pr_quotation_mark.c: New file.
2907         * lib/unictype/pr_radical.c: New file.
2908         * lib/unictype/pr_sentence_terminal.c: New file.
2909         * lib/unictype/pr_soft_dotted.c: New file.
2910         * lib/unictype/pr_space.c: New file.
2911         * lib/unictype/pr_terminal_punctuation.c: New file.
2912         * lib/unictype/pr_test.c: New file.
2913         * lib/unictype/pr_titlecase.c: New file.
2914         * lib/unictype/pr_unassigned_code_value.c: New file.
2915         * lib/unictype/pr_unified_ideograph.c: New file.
2916         * lib/unictype/pr_uppercase.c: New file.
2917         * lib/unictype/pr_variation_selector.c: New file.
2918         * lib/unictype/pr_white_space.c: New file.
2919         * lib/unictype/pr_xid_continue.c: New file.
2920         * lib/unictype/pr_xid_start.c: New file.
2921         * lib/unictype/pr_zero_width.c: New file.
2922         * lib/unictype/scripts.c: New file.
2923         * lib/unictype/sy_c_ident.c: New file.
2924         * lib/unictype/sy_c_whitespace.c: New file.
2925         * lib/unictype/sy_java_ident.c: New file.
2926         * lib/unictype/sy_java_whitespace.c: New file.
2927
2928         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
2929         Unicode 5.0.0.
2930         * lib/unictype/blocks.h: Likewise.
2931         * lib/unictype/categ_C.h: Likewise.
2932         * lib/unictype/categ_Cc.h: Likewise.
2933         * lib/unictype/categ_Cf.h: Likewise.
2934         * lib/unictype/categ_Cn.h: Likewise.
2935         * lib/unictype/categ_Co.h: Likewise.
2936         * lib/unictype/categ_Cs.h: Likewise.
2937         * lib/unictype/categ_L.h: Likewise.
2938         * lib/unictype/categ_Ll.h: Likewise.
2939         * lib/unictype/categ_Lm.h: Likewise.
2940         * lib/unictype/categ_Lo.h: Likewise.
2941         * lib/unictype/categ_Lt.h: Likewise.
2942         * lib/unictype/categ_Lu.h: Likewise.
2943         * lib/unictype/categ_M.h: Likewise.
2944         * lib/unictype/categ_Mc.h: Likewise.
2945         * lib/unictype/categ_Me.h: Likewise.
2946         * lib/unictype/categ_Mn.h: Likewise.
2947         * lib/unictype/categ_N.h: Likewise.
2948         * lib/unictype/categ_Nd.h: Likewise.
2949         * lib/unictype/categ_Nl.h: Likewise.
2950         * lib/unictype/categ_No.h: Likewise.
2951         * lib/unictype/categ_P.h: Likewise.
2952         * lib/unictype/categ_Pc.h: Likewise.
2953         * lib/unictype/categ_Pd.h: Likewise.
2954         * lib/unictype/categ_Pe.h: Likewise.
2955         * lib/unictype/categ_Pf.h: Likewise.
2956         * lib/unictype/categ_Pi.h: Likewise.
2957         * lib/unictype/categ_Po.h: Likewise.
2958         * lib/unictype/categ_Ps.h: Likewise.
2959         * lib/unictype/categ_S.h: Likewise.
2960         * lib/unictype/categ_Sc.h: Likewise.
2961         * lib/unictype/categ_Sk.h: Likewise.
2962         * lib/unictype/categ_Sm.h: Likewise.
2963         * lib/unictype/categ_So.h: Likewise.
2964         * lib/unictype/categ_Z.h: Likewise.
2965         * lib/unictype/categ_Zl.h: Likewise.
2966         * lib/unictype/categ_Zp.h: Likewise.
2967         * lib/unictype/categ_Zs.h: Likewise.
2968         * lib/unictype/categ_of.h: Likewise.
2969         * lib/unictype/combining.h: Likewise.
2970         * lib/unictype/ctype_alnum.h: Likewise.
2971         * lib/unictype/ctype_alpha.h: Likewise.
2972         * lib/unictype/ctype_blank.h: Likewise.
2973         * lib/unictype/ctype_cntrl.h: Likewise.
2974         * lib/unictype/ctype_digit.h: Likewise.
2975         * lib/unictype/ctype_graph.h: Likewise.
2976         * lib/unictype/ctype_lower.h: Likewise.
2977         * lib/unictype/ctype_print.h: Likewise.
2978         * lib/unictype/ctype_punct.h: Likewise.
2979         * lib/unictype/ctype_space.h: Likewise.
2980         * lib/unictype/ctype_upper.h: Likewise.
2981         * lib/unictype/ctype_xdigit.h: Likewise.
2982         * lib/unictype/decdigit.h: Likewise.
2983         * lib/unictype/digit.h: Likewise.
2984         * lib/unictype/mirror.h: Likewise.
2985         * lib/unictype/numeric.h: Likewise.
2986         * lib/unictype/pr_alphabetic.h: Likewise.
2987         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
2988         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
2989         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
2990         * lib/unictype/pr_bidi_block_separator.h: Likewise.
2991         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
2992         * lib/unictype/pr_bidi_common_separator.h: Likewise.
2993         * lib/unictype/pr_bidi_control.h: Likewise.
2994         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
2995         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
2996         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
2997         * lib/unictype/pr_bidi_european_digit.h: Likewise.
2998         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
2999         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
3000         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
3001         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
3002         * lib/unictype/pr_bidi_pdf.h: Likewise.
3003         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
3004         * lib/unictype/pr_bidi_whitespace.h: Likewise.
3005         * lib/unictype/pr_combining.h: Likewise.
3006         * lib/unictype/pr_composite.h: Likewise.
3007         * lib/unictype/pr_currency_symbol.h: Likewise.
3008         * lib/unictype/pr_dash.h: Likewise.
3009         * lib/unictype/pr_decimal_digit.h: Likewise.
3010         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
3011         * lib/unictype/pr_deprecated.h: Likewise.
3012         * lib/unictype/pr_diacritic.h: Likewise.
3013         * lib/unictype/pr_extender.h: Likewise.
3014         * lib/unictype/pr_format_control.h: Likewise.
3015         * lib/unictype/pr_grapheme_base.h: Likewise.
3016         * lib/unictype/pr_grapheme_extend.h: Likewise.
3017         * lib/unictype/pr_grapheme_link.h: Likewise.
3018         * lib/unictype/pr_hex_digit.h: Likewise.
3019         * lib/unictype/pr_hyphen.h: Likewise.
3020         * lib/unictype/pr_id_continue.h: Likewise.
3021         * lib/unictype/pr_id_start.h: Likewise.
3022         * lib/unictype/pr_ideographic.h: Likewise.
3023         * lib/unictype/pr_ids_binary_operator.h: Likewise.
3024         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
3025         * lib/unictype/pr_ignorable_control.h: Likewise.
3026         * lib/unictype/pr_iso_control.h: Likewise.
3027         * lib/unictype/pr_join_control.h: Likewise.
3028         * lib/unictype/pr_left_of_pair.h: Likewise.
3029         * lib/unictype/pr_line_separator.h: Likewise.
3030         * lib/unictype/pr_logical_order_exception.h: Likewise.
3031         * lib/unictype/pr_lowercase.h: Likewise.
3032         * lib/unictype/pr_math.h: Likewise.
3033         * lib/unictype/pr_non_break.h: Likewise.
3034         * lib/unictype/pr_not_a_character.h: Likewise.
3035         * lib/unictype/pr_numeric.h: Likewise.
3036         * lib/unictype/pr_other_alphabetic.h: Likewise.
3037         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
3038         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
3039         * lib/unictype/pr_other_id_continue.h: Likewise.
3040         * lib/unictype/pr_other_id_start.h: Likewise.
3041         * lib/unictype/pr_other_lowercase.h: Likewise.
3042         * lib/unictype/pr_other_math.h: Likewise.
3043         * lib/unictype/pr_other_uppercase.h: Likewise.
3044         * lib/unictype/pr_paired_punctuation.h: Likewise.
3045         * lib/unictype/pr_paragraph_separator.h: Likewise.
3046         * lib/unictype/pr_pattern_syntax.h: Likewise.
3047         * lib/unictype/pr_pattern_white_space.h: Likewise.
3048         * lib/unictype/pr_private_use.h: Likewise.
3049         * lib/unictype/pr_punctuation.h: Likewise.
3050         * lib/unictype/pr_quotation_mark.h: Likewise.
3051         * lib/unictype/pr_radical.h: Likewise.
3052         * lib/unictype/pr_sentence_terminal.h: Likewise.
3053         * lib/unictype/pr_soft_dotted.h: Likewise.
3054         * lib/unictype/pr_space.h: Likewise.
3055         * lib/unictype/pr_terminal_punctuation.h: Likewise.
3056         * lib/unictype/pr_titlecase.h: Likewise.
3057         * lib/unictype/pr_unassigned_code_value.h: Likewise.
3058         * lib/unictype/pr_unified_ideograph.h: Likewise.
3059         * lib/unictype/pr_uppercase.h: Likewise.
3060         * lib/unictype/pr_variation_selector.h: Likewise.
3061         * lib/unictype/pr_white_space.h: Likewise.
3062         * lib/unictype/pr_xid_continue.h: Likewise.
3063         * lib/unictype/pr_xid_start.h: Likewise.
3064         * lib/unictype/pr_zero_width.h: Likewise.
3065         * lib/unictype/scripts.h: Likewise.
3066         * lib/unictype/scripts_byname.gperf: Likewise.
3067         * lib/unictype/sy_c_ident.h: Likewise.
3068         * lib/unictype/sy_c_whitespace.h: Likewise.
3069         * lib/unictype/sy_java_ident.h: Likewise.
3070         * lib/unictype/sy_java_whitespace.h: Likewise.
3071
3072         * lib/unictype/Makefile: New file.
3073         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
3074         glibc.
3075         * lib/unictype/3level.h: New file, copied from glibc.
3076         * lib/unictype/3levelbit.h: New file.
3077
3078 2007-11-11  Bruno Haible  <bruno@clisp.org>
3079
3080         * modules/gperf: New file.
3081         * modules/iconv_open (Depends-on): Add it.
3082         (Makefile.am): Remove the GPERF definition.
3083
3084 2007-11-11  Bruno Haible  <bruno@clisp.org>
3085
3086         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
3087         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
3088
3089 2007-11-11  Bruno Haible  <bruno@clisp.org>
3090
3091         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
3092         (usage): Remove function.
3093
3094 2007-11-11  Bruno Haible  <bruno@clisp.org>
3095
3096         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
3097         gl_FUNC_CEILF_LIBS.
3098         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
3099         gl_FUNC_CEIL_LIBS.
3100         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
3101         gl_FUNC_CEILL_LIBS.
3102         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
3103         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
3104         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
3105
3106 2007-11-11  Bruno Haible  <bruno@clisp.org>
3107
3108         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
3109         roundf were declared but do not exist on functions.
3110         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
3111         roundl were declared but do not exist on functions.
3112         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
3113         HAVE_FLOORL_AND_CEILL, respectively.
3114         Needed for Sun C on Solaris 10.
3115
3116 2007-11-11  Bruno Haible  <bruno@clisp.org>
3117
3118         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
3119         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
3120         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
3121         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
3122         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
3123         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
3124         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
3125         HAVE_DECL_ROUNDF.
3126         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
3127         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
3128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
3129         of HAVE_DECL_ROUND*.
3130         * modules/math (Makefile.am): Update.
3131
3132 2007-11-10  Bruno Haible  <bruno@clisp.org>
3133
3134         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
3135         ptrdiff_t as m4/intl.m4.
3136
3137 2007-11-10  Jim Meyering  <meyering@redhat.com>
3138
3139         Avoid link failure for the argmatch test.
3140         * tests/test-argmatch.c (usage): Define function to avoid a link
3141         failure: argmatch_die requires a usage function.
3142
3143 2007-11-09  Bruno Haible  <bruno@clisp.org>
3144
3145         * doc/functions/snprintf.texi: Mention BeOS deficiency.
3146         * doc/functions/vsnprintf.texi: Likewise.
3147         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
3148         with a size argument < 2.
3149
3150 2007-11-09  Bruno Haible  <bruno@clisp.org>
3151
3152         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
3153         buffer. Fixes an inefficiency introduced on 2007-11-03.
3154
3155 2007-11-09  Bruno Haible  <bruno@clisp.org>
3156
3157         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
3158         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
3159
3160 2007-11-08  Jim Meyering  <meyering@redhat.com>
3161
3162         Change cache variable name prefix "jm_" to "gl_" everywhere.
3163         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
3164         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
3165         * m4/uptime.m4: s/gl_/jm_/
3166
3167 2007-11-07  Bruno Haible  <bruno@clisp.org>
3168
3169         Update to GNU gettext 0.17.
3170         * m4/intl.m4: Update to GNU gettext 0.17.
3171         * m4/po.m4: Likewise.
3172         * modules/gettext (Files): Remove m4/ulonglong.m4.
3173         (configure.ac): Require gettext infrastructure from version 0.17.
3174
3175 2007-11-06  Bruno Haible  <bruno@clisp.org>
3176
3177         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
3178         symbolic values are not defined in a public header.
3179         * lib/freadable.c (freadable) [QNX]: Likewise.
3180         * lib/freadahead.c (freadahead) [QNX]: Likewise.
3181         * lib/freading.c (freading) [QNX]: Likewise.
3182         * lib/fseterr.c (fseterr) [QNX]: Likewise.
3183         * lib/fwritable.c (fwritable) [QNX]: Likewise.
3184         * lib/fwriting.c (fwriting) [QNX]: Likewise.
3185         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
3186         Reported by Alain Magloire.
3187
3188         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
3189
3190 2007-11-05  Bruno Haible  <bruno@clisp.org>
3191
3192         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
3193         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
3194         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
3195         Reported by Eric Blake.
3196
3197 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3198             Bruno Haible  <bruno@clisp.org>
3199
3200         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
3201         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
3202         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
3203         (malloc): Undefine also before including <stdlib.h>.
3204         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
3205         Needed on OSF/1 4.0.
3206
3207 2007-11-05  Jim Meyering  <meyering@redhat.com>
3208
3209         git-version-gen: sync from coreutils.
3210         * build-aux/git-version-gen: Add comments.
3211         Change the first '-' to '.' in the snapshot version string,
3212         e.g., 6.9-377-08144 -> 6.9.377-08144
3213         Remove first parameter.
3214         Don't declare a version "-dirty" merely because a time
3215         stamp has changed.
3216
3217 2007-11-04  Bruno Haible  <bruno@clisp.org>
3218
3219         * lib/lock.h: Protect all macro definitions containing an 'if'
3220         statement through a "do { ... } while (0)".
3221         * lib/tls.h: Likewise.
3222
3223 2007-11-04  Bruno Haible  <bruno@clisp.org>
3224
3225         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
3226
3227 2007-11-04  Bruno Haible  <bruno@clisp.org>
3228
3229         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
3230         * modules/fprintf-posix (Depends-on): Add nocrash.
3231         * modules/snprintf-posix (Depends-on): Likewise.
3232         * modules/sprintf-posix (Depends-on): Likewise.
3233         * modules/vasnprintf-posix (Depends-on): Likewise.
3234         * modules/vasprintf-posix (Depends-on): Likewise.
3235         * modules/vfprintf-posix (Depends-on): Likewise.
3236         * modules/vsnprintf-posix (Depends-on): Likewise.
3237         * modules/vsprintf-posix (Depends-on): Likewise.
3238         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3239         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3240         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3241         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3242         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3243         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3244         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3245
3246 2007-11-04  Bruno Haible  <bruno@clisp.org>
3247
3248         * modules/nocrash: New file.
3249         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
3250         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
3251
3252 2007-11-04  Bruno Haible  <bruno@clisp.org>
3253
3254         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
3255         precision handling.
3256         * tests/test-vasprintf-posix.c (test_function): Likewise.
3257         * tests/test-snprintf-posix.h (test_function): Likewise.
3258         * tests/test-sprintf-posix.h (test_function): Likewise.
3259
3260         Fix *printf behaviour for large precisions on mingw and BeOS.
3261         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
3262         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
3263         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
3264         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
3265         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3266         gl_PRINTF_PRECISION and test its result. Invoke
3267         gl_PREREQ_VASNPRINTF_PRECISION.
3268         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3269         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3270         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3271         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3272         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3273         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3274         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3275         * doc/functions/fprintf.texi: Update.
3276         * doc/functions/printf.texi: Update.
3277         * doc/functions/snprintf.texi: Update.
3278         * doc/functions/sprintf.texi: Update.
3279         * doc/functions/vfprintf.texi: Update.
3280         * doc/functions/vprintf.texi: Update.
3281         * doc/functions/vsnprintf.texi: Update.
3282         * doc/functions/vsprintf.texi: Update.
3283
3284 2007-11-04  Bruno Haible  <bruno@clisp.org>
3285
3286         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
3287
3288 2007-11-04  Bruno Haible  <bruno@clisp.org>
3289
3290         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
3291         Reported by Sylvain Beucler <beuc@gnu.org>.
3292
3293 2007-11-03  Bruno Haible  <bruno@clisp.org>
3294
3295         * tests/test-fprintf-posix2.sh: New file.
3296         * tests/test-fprintf-posix2.c: New file.
3297         * modules/fprintf-posix-tests (Files): Add them.
3298         (TESTS): Add test-fprintf-posix2.sh.
3299         (configure.ac): Check for getrlimit and setrlimit.
3300         (check_PROGRAMS): Add test-fprintf-posix2.
3301
3302         * tests/test-printf-posix2.sh: New file.
3303         * tests/test-printf-posix2.c: New file.
3304         * modules/printf-posix-tests (Files): Add them.
3305         (TESTS): Add test-printf-posix2.sh.
3306         (configure.ac): Check for getrlimit and setrlimit.
3307         (check_PROGRAMS): Add test-printf-posix2.
3308
3309         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
3310         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
3311         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
3312         (decode_double): New function, copied from decode_long_double.
3313         (scale10_round_decimal_decoded): New function, extracted from
3314         scale10_round_decimal_long_double.
3315         (scale10_round_decimal_long_double): Use it.
3316         (scale10_round_decimal_double): New function.
3317         (floorlog10): New function.
3318         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
3319         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
3320         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
3321         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3322         gl_PRINTF_ENOMEM and test its result. Invoke
3323         gl_PREREQ_VASNPRINTF_ENOMEM.
3324         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3325         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3326         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3327         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3328         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3329         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3330         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3331         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
3332         * modules/snprintf-posix (Depends-on): Likewise.
3333         * modules/sprintf-posix (Depends-on): Likewise.
3334         * modules/vasnprintf-posix (Depends-on): Likewise.
3335         * modules/vasprintf-posix (Depends-on): Likewise.
3336         * modules/vfprintf-posix (Depends-on): Likewise.
3337         * modules/vsnprintf-posix (Depends-on): Likewise.
3338         * modules/vsprintf-posix (Depends-on): Likewise.
3339         * doc/functions/fprintf.texi: Update.
3340         * doc/functions/printf.texi: Update.
3341         * doc/functions/snprintf.texi: Update.
3342         * doc/functions/sprintf.texi: Update.
3343         * doc/functions/vfprintf.texi: Update.
3344         * doc/functions/vprintf.texi: Update.
3345         * doc/functions/vsnprintf.texi: Update.
3346         * doc/functions/vsprintf.texi: Update.
3347
3348 2007-11-03  Bruno Haible  <bruno@clisp.org>
3349
3350         * modules/frexp-nolibm-tests: New file.
3351
3352         * modules/frexp-nolibm: New file.
3353         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
3354
3355 2007-11-03  Bruno Haible  <bruno@clisp.org>
3356
3357         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
3358         value is C99 compliant.
3359         Needed for OSF/1 5.1.
3360
3361 2007-11-03  Bruno Haible  <bruno@clisp.org>
3362
3363         Fix out-of-memory handling of vasnprintf.
3364         * lib/printf-parse.c: Include <errno.h>.
3365         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
3366         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
3367         is already set.
3368
3369 2007-11-02  Eric Blake  <ebb9@byu.net>
3370
3371         Fix tests on cygwin.
3372         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
3373
3374 2007-11-01  Bruno Haible  <bruno@clisp.org>
3375
3376         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
3377         warning.
3378         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
3379         needed for POSIX compatibility.
3380
3381 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3382
3383         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
3384         for compatibility with GNU.
3385
3386 2007-11-01  Bruno Haible  <bruno@clisp.org>
3387
3388         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
3389         (putenv): Renamed from rpl_putenv. Change argument type from
3390         'const char *' to 'char *'.
3391         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
3392         of defining putenv in config.h, just set REPLACE_PUTENV.
3393         * modules/putenv (Depends-on): Add stdlib.
3394         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
3395         (Include): Use <stdlib.h>.
3396         * lib/stdlib.in.h (putenv): New declaration.
3397         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
3398         REPLACE_PUTENV.
3399         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
3400         REPLACE_PUTENV.
3401         Needed for MacOS X 10.5.0.
3402         Reported by Peter O'Gorman <peter@pogma.com>.
3403
3404 2007-11-01  Jim Meyering  <meyering@redhat.com>
3405
3406         Treat an empty date string exactly like "0".
3407         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
3408         if the remaining date string (to be parsed) is empty, use "0".
3409         Reported by Mischa Molhoek and discussed in this thread:
3410         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
3411
3412 2007-10-31  Bruno Haible  <bruno@clisp.org>
3413
3414         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
3415         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
3416         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
3417         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
3418         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
3419         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
3420
3421 2007-10-31  Bruno Haible  <bruno@clisp.org>
3422
3423         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
3424         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
3425         (AC_TYPE_LONG_LONG_INT): Use it.
3426         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
3427         it as well.
3428         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
3429         to m4/longlong.m4.
3430         * modules/stdint (Files): Remove m4/ulonglong.m4.
3431         * modules/strtoull (Files): Use m4/longlong.m4 instead of
3432         m4/ulonglong.m4.
3433         * modules/strtoumax (Files): Likewise.
3434
3435 2007-10-30  Bruno Haible  <bruno@clisp.org>
3436
3437         * modules/xvasprintf-posix: New file.
3438         Suggested by Eric Blake.
3439
3440 2007-10-30  Bruno Haible  <bruno@clisp.org>
3441
3442         * modules/xprintf-posix-tests: New file.
3443         * tests/test-xprintf-posix.sh: New file.
3444         * tests/test-xprintf-posix.c: New file.
3445         * tests/test-xfprintf-posix.c: New file.
3446
3447         * modules/xprintf-posix: New file.
3448
3449 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3450
3451         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
3452         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
3453         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
3454
3455 2007-10-29  Bruno Haible  <bruno@clisp.org>
3456
3457         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
3458         contain the special marker '_cv_'.
3459         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
3460         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
3461         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
3462         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
3463         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
3464         Reported by Ralf Wildenhues.
3465
3466 2007-10-29  Bruno Haible  <bruno@clisp.org>
3467
3468         * gnulib-tool (func_import): When --lgpl is not specified, set
3469         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
3470         GPLv3.
3471         Reported by Simon Josefsson.
3472
3473 2007-10-28  Bruno Haible  <bruno@clisp.org>
3474
3475         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
3476         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
3477         HAVE_DECL_ISFINITE.
3478         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
3479         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
3480         HAVE_DECL_ISFINITE.
3481
3482 2007-10-28  Bruno Haible  <bruno@clisp.org>
3483
3484         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
3485         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
3486
3487 2007-10-28  Bruno Haible  <bruno@clisp.org>
3488
3489         Fix link errors with Sun C 5.0 on Solaris 10.
3490         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
3491         function is declared but not present in the compiler's libm.
3492         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3493         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3494         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
3495         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
3496         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
3497         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
3498         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
3499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
3500         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
3501         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
3502         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
3503         HAVE_DECL_FLOORL.
3504
3505 2007-10-28  Bruno Haible  <bruno@clisp.org>
3506
3507         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
3508         gl_FUNC_FLOORL. Cache the result.
3509         (gl_FUNC_FLOORL): Use it.
3510         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
3511         gl_FUNC_CEILL. Cache the result.
3512         (gl_FUNC_CEILL): Use it.
3513
3514         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
3515         gl_FUNC_FLOOR. Cache the result.
3516         (gl_FUNC_FLOOR): Use it.
3517         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
3518         gl_FUNC_CEIL. Cache the result.
3519         (gl_FUNC_CEIL): Use it.
3520
3521         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
3522         gl_FUNC_FLOORF. Cache the result.
3523         (gl_FUNC_FLOORF): Use it.
3524         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
3525         gl_FUNC_CEILF. Cache the result.
3526         (gl_FUNC_CEILF): Use it.
3527
3528 2007-10-28  Bruno Haible  <bruno@clisp.org>
3529
3530         * gnulib-tool: Allow specifying the LGPL version number through
3531         --lgpl=2 or --lgpl=3.
3532         (func_usage): Document --lgpl with argument.
3533         Handle --lgpl=... arguments.
3534         (func_import): Recognize also gl_LGPL calls with an argument. When
3535         --lgpl=2 is used and the module's license is just LGPL, report an
3536         error. Set sed_transform_lib_file according to the lgpl variable. In
3537         the generated files, use --lgpl or gl_LGPL invocations with argument,
3538         if necessary.
3539         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
3540         an LGPv2+ license.
3541         * doc/gnulib-tool.texi (Modified imports): Update explanation of
3542         gl_LGPL macro.
3543
3544 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3545             Bruno Haible  <bruno@clisp.org>
3546
3547         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
3548         (u16_uctomb_aux): Likewise.
3549         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
3550         !HAVE_INLINE.
3551         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
3552
3553 2007-10-28  Bruno Haible  <bruno@clisp.org>
3554
3555         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
3556         Invoke AM_GETTEXT_OPTION if it exists.
3557         * modules/vasprintf: Likewise.
3558         * modules/verror: Likewise.
3559         * modules/xprintf: Likewise.
3560         * modules/xvasprintf: Likewise.
3561
3562 2007-10-27  Ben Pfaff  <blp@gnu.org>
3563
3564         * lib/math.in.h: Define isfinite macro and prototypes for
3565         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
3566         implementations.
3567         * m4/math_h.m4: New substitutions for isfinite module.
3568         * lib/isfinite.c: New file.
3569         * m4/isfinite.m4: New file.
3570         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
3571         * modules/isfinite: New file.
3572         * modules/isfinite-tests: New file.
3573         * tests/tests-isfinite.c: New file.
3574         * doc/functions/isfinite.texi: Mention isfinite module.
3575         * MODULES.html.sh: Mention new module.
3576
3577 2007-10-27  Ben Pfaff  <blp@gnu.org>
3578
3579         Ralf Wildenhues reported that Tru64 4.0D declares the round
3580         functions but does not have definitions.
3581         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
3582         cannot be found in any library, set the output variable to
3583         "missing" instead of "".
3584         * m4/round.m4: Also use our substitute if we cannot find round in
3585         any library, even if it is declared.
3586         * m4/roundf.m4: Likewise for roundf.
3587         * m4/roundl.m4: Likewise for roundl.
3588         * lib/math.in.h: Undefine roundf, round, roundl before defining
3589         their replacements, to allow for hypothetical systems where these
3590         may be defined as macros but not available in libraries.
3591
3592 2007-10-27  Bruno Haible  <bruno@clisp.org>
3593
3594         * doc/gnulib.texi: Invoke @firstparagraphindent.
3595         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
3596         changes in gnulib.
3597         (Source changes): New section.
3598
3599 2007-10-26  Bruno Haible  <bruno@clisp.org>
3600
3601         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
3602         borrowed from autoconf.
3603
3604 2007-10-26  Bruno Haible  <bruno@clisp.org>
3605
3606         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
3607         strerror returned the empty string. Needed on HP-UX 11.00.
3608
3609 2007-10-24  Micah Cowan  <micah@cowan.name>
3610
3611         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
3612         * build-aux/bootstrap: Remove support for now-unnecessary option,
3613         --cvs-user, and envvars CVS_USER, CVS_RSH.
3614
3615 2007-10-24  Jim Meyering  <meyering@redhat.com>
3616
3617         Avoid diagnostics from sha1sum when there is no cached checksum.
3618         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
3619         if the po.s1 file hasn't been created yet.
3620
3621         * build-aux/bootstrap: Sync from coreutils:
3622         2007-10-24  Jim Meyering  <meyering@redhat.com>
3623         Get gnulib from the git repository, not from an obsolete cvs one.
3624         * build-aux/bootstrap: Suggestion from Micah Cowan.
3625         2007-10-04  Jim Meyering  <jim@meyering.net>
3626         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
3627         (update_po_files): Work also when there are no .po files in po/.
3628
3629 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
3630
3631         * README: Append ".git" to git and cg examples.
3632         Problem reported by Benoit Sigoure.
3633
3634 2007-10-23  Micah Cowan  <micah@cowan.name>
3635
3636         * users.txt: Add wget.
3637
3638 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3639
3640         Fix linking of some unistdio tests on FreeBSD.
3641         * modules/unistdio/u16-vsnprintf-tests
3642         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
3643         * modules/unistdio/u16-vsprintf-tests
3644         (test_u16_vsnprintf1_LDADD): Likewise.
3645         * modules/unistdio/u32-vsnprintf-tests
3646         (test_u32_vsnprintf1_LDADD): Likewise.
3647         * modules/unistdio/u32-vsprintf-tests
3648         (test_u32_vsprintf1_LDADD): Likewise.
3649         * modules/unistdio/u8-vsnprintf-tests
3650         (test_u8_vsnprintf1_LDADD): Likewise.
3651         * modules/unistdio/u8-vsprintf-tests
3652         (test_u8_vsprintf1_LDADD): Likewise.
3653         * modules/unistdio/ulc-vsnprintf-tests
3654         (test_ulc_vsnprintf1_LDADD): Likewise.
3655         * modules/unistdio/ulc-vsprintf-tests
3656         (test_ulc_vsprintf1_LDADD): Likewise.
3657
3658         Fix linking of some uniconv tests on FreeBSD.
3659         * modules/uniconv/u16-conv-from-enc-tests
3660         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
3661         * modules/uniconv/u16-conv-to-enc-tests
3662         (test_u16_conv_to_enc_LDADD): Likewise.
3663         * modules/uniconv/u16-strconv-from-enc-tests
3664         (test_u16_strconv_from_enc_LDADD): Likewise.
3665         * modules/uniconv/u16-strconv-to-enc-tests
3666         (test_u16_strconv_to_enc_LDADD): Likewise.
3667         * modules/uniconv/u32-conv-from-enc-tests
3668         (test_u32_conv_from_enc_LDADD): Likewise.
3669         * modules/uniconv/u32-conv-to-enc-tests
3670         (test_u32_conv_to_enc_LDADD): Likewise.
3671         * modules/uniconv/u32-strconv-from-enc-tests
3672         (test_u32_strconv_from_enc_LDADD): Likewise.
3673         * modules/uniconv/u32-strconv-to-enc-tests
3674         (test_u32_strconv_to_enc_LDADD): Likewise.
3675         * modules/uniconv/u8-conv-from-enc-tests
3676         (test_u8_conv_from_enc_LDADD): Likewise.
3677         * modules/uniconv/u8-conv-to-enc-tests
3678         (test_u8_conv_to_enc_LDADD): Likewise.
3679         * modules/uniconv/u8-strconv-from-enc-tests
3680         (test_u8_strconv_from_enc_LDADD): Likewise.
3681         * modules/uniconv/u8-strconv-to-enc-tests
3682         (test_u8_strconv_to_enc_LDADD): Likewise.
3683
3684 2007-10-22  Bruno Haible  <bruno@clisp.org>
3685
3686         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
3687         size.
3688
3689 2007-10-22  Eric Blake  <ebb9@byu.net>
3690
3691         Tweak x*printf documentation.
3692         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
3693         variable name and comments.
3694         Suggested by Bruno Haible.
3695
3696 2007-10-22  Bruno Haible  <bruno@clisp.org>
3697
3698         * lib/acl.c (copy_acl): Fix file name in comment.
3699
3700 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
3701
3702         Fix Tru64 problem with stdbool.h.
3703         * lib/stdbool.in.h (false, true):
3704         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
3705         Don't declare as an enum in this situation; it runs afoul of Tru64.
3706         Problem reported by Steven M. Schweda in
3707         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
3708
3709 2007-10-22  Eric Blake  <ebb9@byu.net>
3710
3711         Also wrap vf?printf.
3712         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
3713         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
3714         (xvprintf, xvfprintf): New functions.
3715
3716 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3717
3718         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
3719         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
3720
3721         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
3722         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
3723
3724 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
3725
3726         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
3727         by Bruno Haible.
3728
3729 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3730
3731         * lib/getloadavg.c
3732         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
3733         Undef `sys' after including sys/table.h, for Tru64 4.0D.
3734
3735         * tests/test-i-ring.c: Work for C89.
3736
3737 2007-10-22  Bruno Haible  <bruno@clisp.org>
3738
3739         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
3740         -1u, in preprocessor expression, so that we don't test for the bug
3741         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
3742         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
3743
3744 2007-10-22  Eric Blake  <ebb9@byu.net>
3745
3746         * tests/test-yesno.sh: Silence stderr during test.
3747
3748 2007-10-22  Simon Josefsson  <simon@josefsson.org>
3749
3750         * modules/crypto/gc-camellia: New file.
3751
3752         * m4/gc-camellia.m4: New file.
3753
3754         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
3755
3756         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
3757
3758 2007-10-22  Simon Josefsson  <simon@josefsson.org>
3759
3760         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
3761         --help to stdout.  Reported by sms@antinode.org (Steven
3762         M. Schweda).
3763
3764 2007-10-22  Simon Josefsson  <simon@josefsson.org>
3765
3766         * users.txt: Fix link to libksba.
3767
3768 2007-10-21  Ben Pfaff  <blp@gnu.org>
3769
3770         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
3771         round.c roundf implementation that depends on floorf and ceilf to
3772         be tested unconditionally.
3773
3774 2007-10-21  Ben Pfaff  <blp@gnu.org>
3775
3776         * m4/check-libm-func.m4: Removed.
3777         * m4/check-math-lib.m4: New file.
3778         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
3779         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
3780         definition and lack of AC_LIBOBJ([roundf]).
3781         * m4/roundl.m4: Ditto, and similarly for roundl.
3782         * modules/round: Reference new m4 file.
3783         * modules/roundf: Ditto.
3784         * modules/roundl: Ditto.
3785         * tests/test-round2.c (main): Use ROUND instead of round.
3786         Bug report from Bruno Haible.
3787
3788 2007-10-21  Bruno Haible  <bruno@clisp.org>
3789
3790         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
3791         context.
3792
3793 2007-10-21  Bruno Haible  <bruno@clisp.org>
3794
3795         * tests/test-wcwidth.c (main): Allow negative result for some control
3796         characters.
3797
3798         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
3799         Needed on OSF/1 5.1.
3800
3801 2007-10-21  Bruno Haible  <bruno@clisp.org>
3802
3803         * tests/test-floorf1.c: Include isnanf.h.
3804         (main): Use isnanf() instead of isnan().
3805         * tests/test-ceilf1.c: Include isnanf.h.
3806         (main): Use isnanf() instead of isnan().
3807         * tests/test-truncf1.c: Include isnanf.h.
3808         (main): Use isnanf() instead of isnan().
3809         * tests/test-roundf1.c: Include isnanf.h.
3810         (main): Use isnanf() instead of isnan().
3811
3812 2007-10-21  Eric Blake  <ebb9@byu.net>
3813
3814         * users.txt: Update URL for m4.
3815
3816 2007-10-21  Bruno Haible  <bruno@clisp.org>
3817
3818         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
3819
3820 2007-10-21  Bruno Haible  <bruno@clisp.org>
3821
3822         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
3823         Git's management files if the CVS files are not present.
3824
3825 2007-10-20  Bruno Haible  <bruno@clisp.org>
3826
3827         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
3828         gcc-3.4.x.
3829
3830 2007-10-20  Ben Pfaff  <blp@gnu.org>
3831
3832         * lib/math.in.h: Declare round, roundf, roundl if we are providing
3833         implementations.
3834         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
3835         * lib/round.c: New file.
3836         * lib/roundf.c: New file.
3837         * lib/roundl.c: New file.
3838         * m4/round.m4: New file.
3839         * m4/roundf.m4: New file.
3840         * m4/roundl.m4: New file.
3841         * m4/check-libm-func-m4: New file.
3842         * modules/math: Replace round, roundf, roundl related @VARS@ in
3843         math.in.h.
3844         * modules/round: New file.
3845         * modules/round-tests: New file.
3846         * modules/roundf: New file.
3847         * modules/roundf-tests: New file.
3848         * modules/roundl: New file.
3849         * modules/roundl-tests: New file.
3850         * tests/test-round1.c: New file.
3851         * tests/test-round2.c: New file.
3852         * tests/test-roundf1.c: New file.
3853         * tests/test-roundf2.c: New file.
3854         * tests/test-roundl.c: New file.
3855         * doc/functions/round.texi: Mention round module.
3856         * doc/functions/roundf.texi: Mention roundf module.
3857         * doc/functions/roundl.texi: Mention roundl module.
3858         * MODULES.html.sh: Mention new modules.
3859         Thanks to Bruno Haible for suggestions.
3860
3861 2007-10-20  Jim Meyering  <meyering@redhat.com>
3862
3863         * lib/xprintf.c: Include <config.h> unconditionally.
3864
3865         Change xprintf's license to GPL.
3866         * modules/xprintf (License): s/LGPL/GPL/, since this module
3867         depends on modules (exit and exitfail) which are GPL.
3868         Suggestion from Bruno Haible.
3869
3870         xprintf fixes.
3871         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
3872         Use a clearer diagnostic.
3873         Patch from Bruno Haible.
3874
3875 2007-10-20  Bruno Haible  <bruno@clisp.org>
3876
3877         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
3878         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
3879         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3880
3881 2007-10-20  Bruno Haible  <bruno@clisp.org>
3882
3883         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
3884         precision in the comparison result > x - 1 or similar.
3885         * tests/test-ceilf2.c (correct_result_p): Likewise.
3886         * tests/test-truncf2.c (correct_result_p): Likewise.
3887         * tests/test-trunc2.c (correct_result_p): Likewise.
3888         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3889
3890 2007-10-20  Bruno Haible  <bruno@clisp.org>
3891
3892         * modules/ceil: New file.
3893         * m4/ceil.m4: New file.
3894         * doc/functions/ceil.texi: Mention the 'ceil' module.
3895
3896 2007-10-20  Bruno Haible  <bruno@clisp.org>
3897
3898         * modules/floor: New file.
3899         * m4/floor.m4: New file.
3900         * doc/functions/floor.texi: Mention the 'floor' module.
3901
3902 2007-10-20  Bruno Haible  <bruno@clisp.org>
3903
3904         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
3905         of %a.
3906         * modules/floorf-tests (Depends-on): Likewise.
3907         * modules/truncf-tests (Depends-on): Likewise.
3908         * modules/trunc-tests (Depends-on): Likewise.
3909         Reported by Ben Pfaff.
3910
3911 2007-10-19  Jim Meyering  <meyering@redhat.com>
3912
3913         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
3914         Don't bother testing specific errno values.  Just test ferror.
3915
3916         New module: xprintf
3917         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
3918
3919 2007-10-19  Bruno Haible  <bruno@clisp.org>
3920
3921         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
3922         syntax.
3923         * modules/javaexec (Makefile.am): Likewise.
3924         * modules/relocatable-prog (Makefile.am): Likewise.
3925         Suggested by Jim Meyering.
3926
3927 2007-10-18  Bruno Haible  <bruno@clisp.org>
3928
3929         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
3930         Reported by Jim Meyering.
3931
3932 2007-10-18  Eric Blake  <ebb9@byu.net>
3933
3934         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
3935
3936 2007-10-18  Bruno Haible  <bruno@clisp.org>
3937
3938         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
3939         the format string into writable memory. Needed in Fortify conditions.
3940
3941 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
3942             Bruno Haible  <bruno@clisp.org>
3943
3944         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
3945         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
3946         * modules/trim (Depends-on): Add mbchar.
3947         (configure.ac): Add gl_FUNC_MBRTOWC.
3948         (Makefile.am): Augment lib_SOURCES.
3949
3950 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
3951
3952         Modify glob.c to use fstatat and dirfd, to simplify it.
3953         Suggested by Eric Blake.
3954         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
3955         Don't include <stdbool.h>; not used.
3956         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
3957         (link_exists_p): Simplify implementation, since we can now assume
3958         dirfd and fstatat.
3959         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
3960
3961 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3962
3963         * gnulib-tool (func_get_dependencies): Fix sed script to
3964         match only tests.
3965
3966 2007-10-17  Bruno Haible  <bruno@clisp.org>
3967
3968         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
3969         allow locale names without encoding suffix.
3970         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3971         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3972
3973 2007-10-16  Bruno Haible  <bruno@clisp.org>
3974
3975         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
3976         * lib/getgroups.c (getgroups): Likewise.
3977         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
3978
3979 2007-10-16  Bruno Haible  <bruno@clisp.org>
3980
3981         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
3982         * modules/malloc-posix (License): Likewise.
3983         * modules/realloc-posix (License): Likewise.
3984         * modules/calloc-posix (License): Likewise.
3985         * modules/intprops (License): Change from GPL to LGPL, with
3986         Paul Eggert's approval.
3987
3988 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
3989
3990         Merge glibc changes into lib/glob.c.
3991
3992         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
3993         2007-10-15 04:59:03 UTC.  Here are the changes:
3994
3995         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
3996
3997         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
3998
3999         * lib/glob.c: Add some branch prediction throughout.
4000
4001         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
4002
4003         [BZ #5103]
4004         * lib/glob.c (glob): Recognize patterns starting \/.
4005
4006         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
4007
4008         [BZ #3996]
4009         * lib/glob.c (attribute_hidden): Define if not defined.
4010         (glob): Unescape dirname, filename or username when needed and not
4011         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
4012         is NULL.  Handle unescaped [ in pattern without closing ].
4013         Don't pass GLOB_CHECK down to recursive glob for directories.
4014         (__glob_pattern_type): New function.
4015         (__glob_pattern_p): Implement using __glob_pattern_type.
4016         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
4017         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
4018         Remove unreachable code.
4019
4020         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
4021
4022         * lib/glob.c (glob_in_dir): Add some comments and asserts to
4023         explain why there are no leaks.
4024
4025         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
4026
4027         [BZ #3253]
4028         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
4029         time, rather allocate increasingly bigger arrays of pointers, if
4030         possible with alloca, if too large with malloc.
4031
4032 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
4033
4034         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
4035         Problem reported by H.Merijn Brand in
4036         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
4037         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
4038         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
4039
4040 2007-10-15  Bruno Haible  <bruno@clisp.org>
4041
4042         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
4043         with explicit rpl_ prefix.
4044         * lib/fopen.c (fopen): Likewise.
4045         * lib/freopen.c (freopen): Likewise.
4046         * lib/iconv.c (iconv): Likewise.
4047         * lib/iconv_close.c (iconv_close): Likewise.
4048
4049 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4050
4051         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
4052
4053 2007-10-15  Bruno Haible  <bruno@clisp.org>
4054
4055         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
4056         <stddef.h> instead of <stdlib.h> since we only need NULL.
4057         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4058
4059 2007-10-15  Bruno Haible  <bruno@clisp.org>
4060
4061         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
4062         Replace paragraph talking about LIBOBJS.
4063         Reported by Colin Watson <cjwatson@debian.org>.
4064
4065 2007-10-15  Bruno Haible  <bruno@clisp.org>
4066
4067         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
4068         <stdlib.h> before using NULL.
4069
4070 2007-10-15  Simon Josefsson  <simon@josefsson.org>
4071
4072         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
4073         Reported by Albert Chin <china@thewrittenword.com>.
4074
4075 2007-10-14  Bruno Haible  <bruno@clisp.org>
4076
4077         * modules/iconv_open-utf-tests: New file.
4078         * tests/test-iconv-utf.c: New file.
4079
4080         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
4081         * modules/iconv_open-utf: New file.
4082         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
4083         (iconv, iconv_close): New declarations.
4084         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
4085         be defined.
4086         (iconv_open): Add special handling of conversion between UTF-8 and
4087         UTF-{16,32}{BE,LE}.
4088         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
4089         * lib/iconv_close.c: New file.
4090         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
4091         gl_FUNC_ICONV_OPEN.
4092         (gl_FUNC_ICONV_OPEN): Use it.
4093         (gl_FUNC_ICONV_OPEN_UTF): New macro.
4094         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
4095         and REPLACE_ICONV_UTF.
4096         * modules/iconv_open (Depends-on): Add c-strcase.
4097         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
4098         ICONV_CONST.
4099         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
4100
4101 2007-10-13  Albert Chin  <china@thewrittenword.com>
4102             Bruno Haible  <bruno@clisp.org>
4103
4104         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
4105         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
4106
4107 2007-10-13  Bruno Haible  <bruno@clisp.org>
4108
4109         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
4110         defined, use the ISO C99 inline semantics.
4111         * lib/argp.h (ARGP_EI): Likewise.
4112
4113 2007-10-13  Bruno Haible  <bruno@clisp.org>
4114
4115         Handle 'inline' change in gcc 4.3.0.
4116         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
4117         argp_fmtstream_write, argp_fmtstream_set_lmargin,
4118         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
4119         argp_fmtstream_point): Disable 'extern' declaration if the function
4120         definition is going to be provided inline.
4121         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
4122         semantics, not the ISO C99 inline semantics.
4123         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
4124         'extern' declaration if the function definition is going to be provided
4125         inline.
4126         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
4127         the GNU C inline semantics, not the ISO C99 inline semantics. With
4128         GCC 4.2, avoid a warning.
4129
4130 2007-10-13  Bruno Haible  <bruno@clisp.org>
4131
4132         * lib/freading.h (freading): Enable the use of __freading for
4133         glibc >= 2.7.
4134         * lib/freading.c (freading): Likewise.
4135
4136 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
4137
4138         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
4139         "warning: C99 inline functions are not supported; using GNU89".
4140
4141 2007-10-12  Bruno Haible  <bruno@clisp.org>
4142
4143         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
4144         of 2.
4145         * tests/test-ceilf2.c: New file.
4146         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
4147
4148         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
4149         * modules/ceilf-tests: Update.
4150
4151 2007-10-12  Bruno Haible  <bruno@clisp.org>
4152
4153         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
4154         of 2.
4155         * tests/test-floorf2.c: New file.
4156         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
4157
4158         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
4159         * modules/floorf-tests: Update.
4160
4161 2007-10-12  Bruno Haible  <bruno@clisp.org>
4162
4163         * tests/test-trunc2.c: New file.
4164         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
4165
4166         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
4167         * modules/trunc-tests: Update.
4168
4169 2007-10-12  Bruno Haible  <bruno@clisp.org>
4170
4171         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
4172         of 2.
4173         * tests/test-truncf2.c: New file.
4174         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
4175
4176         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
4177         * modules/truncf-tests: Update.
4178
4179 2007-10-11  Eric Blake  <ebb9@byu.net>
4180
4181         Don't claim strerror is broken on Interix.
4182         * doc/functions/strerror.texi (strerror): Known broken systems are
4183         now Solaris 8, and not Interix.
4184         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
4185         Interix on cross-compile.
4186         Reported by Martin Koeppe in
4187         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
4188
4189 2007-10-11  Bruno Haible  <bruno@clisp.org>
4190
4191         * modules/i-ring-tests: New file.
4192         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
4193         instead of assert.
4194
4195 2007-10-11  Bruno Haible  <bruno@clisp.org>
4196
4197         * modules/filenamecat-tests: New file.
4198         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
4199         * lib/filenamecat.c: Remove test code.
4200
4201 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
4202
4203         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
4204
4205         * lib/strerror.c: Include <string.h> always, to test interface,
4206         and to remove the need for the dummy.
4207         Include intprops.h to compute width instead of doing it ourselves
4208         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
4209         (strerror): Define it to return NULL if there's no system strerror.
4210         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
4211         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
4212         ancient pre-strerror Unix systems well any more.  Saying "unknown
4213         system error" is enough.
4214         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
4215         simpler strerror.c implementation.
4216         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
4217         Simplify the tests to reflect the simpler strerror implementation.
4218         * modules/strerror (Depends-on): Add intprops.
4219
4220 2007-10-09  Eric Blake  <ebb9@byu.net>
4221
4222         Silence test-fpending.
4223         * modules/fpending-tests (Files): Add wrapper script.
4224         * tests/test-fpending.sh: New file.
4225
4226 2007-10-09  Bruno Haible  <bruno@clisp.org>
4227
4228         * MODULES.html.sh (func_module): Don't create a hyperlink for
4229         function names like 'printf_frexp'.
4230         (Misc): Add crc, memxor.
4231         (Characteristics of floating types): New section.
4232         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
4233         isnanf-nolibm, signbit, trunc, truncf, truncl.
4234         (Enhancements for ISO C 99 functions): New subsection Input/output.
4235         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
4236         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
4237         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
4238         (Compatibility checks for POSIX:2001 functions): Add clock-time.
4239         (Enhancements for POSIX:2001 functions): Add chdir-long.
4240         (File system functions): Add areadlink, chdir-safer, read-file.
4241         Remove cycle-check.
4242         (File system as inode set): New section.
4243         (Date and time): Add gethrxtime.
4244         (Multithreading): Add openmp.
4245         (Internationalization functions): Add localename.
4246         (Unicode string functions): Add unistr/u*-mbsnlen.
4247         (Support for maintaining and releasing projects): Add git-version-gen.
4248         (Lone files): Remove directories.
4249
4250 2007-10-08  Ben Pfaff  <blp@gnu.org>
4251
4252         * lib/xmalloca.h: Fix typo in comment.
4253
4254 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
4255
4256         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
4257         when avoiding problems with integer overflow.  Use a portable test
4258         instead.
4259
4260 2007-10-08  Simon Josefsson  <simon@josefsson.org>
4261
4262         * modules/dummy (License): Change to LGPLv2+.
4263         * modules/float (License): Likewise
4264         * modules/realloc (License): Likewise
4265         * modules/stdlib (License): Likewise
4266
4267 2007-10-07  Bruno Haible  <bruno@clisp.org>
4268
4269         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
4270         * floor.c (TWO_MANT_DIG): Likewise.
4271         * ceil.c (TWO_MANT_DIG): Likewise.
4272         Reported by Ben Pfaff.
4273
4274 2007-10-07  Bruno Haible  <bruno@clisp.org>
4275
4276         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
4277         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
4278         * lib/frexp.c (FUNC): Likewise.
4279         * lib/printf-frexp.h (printf_frexp): Likewise.
4280         * lib/printf-frexpl.h (printf_frexpl): Likewise.
4281         * lib/printf-frexp.c (FUNC): Likewise.
4282         Suggested by Jim Meyering.
4283
4284 2007-10-07  Jim Meyering  <meyering@redhat.com>
4285
4286         Make xnanosleep's integer overflow test more robust.
4287         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
4288         so that gcc-4.3.0 doesn't optimize away this test for overflow.
4289
4290 2007-10-07  Bruno Haible  <bruno@clisp.org>
4291
4292         * NEWS: Mention the license change.
4293
4294         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
4295         abbreviations in the modules files.
4296
4297         Change copyright notice from GPLv2+ to GPLv3+.
4298         * README: Change copyright notice.
4299         * MODULES.html.sh: Likewise.
4300         * build-aux/bootstrap.conf: Likewise.
4301         * build-aux/config.libpath: Likewise.
4302         * build-aux/csharpcomp.sh.in: Likewise.
4303         * build-aux/csharpexec.sh.in: Likewise.
4304         * build-aux/install-reloc: Likewise.
4305         * build-aux/javacomp.sh.in: Likewise.
4306         * build-aux/javaexec.sh.in: Likewise.
4307         * build-aux/ldd.sh.in: Likewise.
4308         * build-aux/reloc-ldflags: Likewise.
4309         * build-aux/relocatable.sh.in: Likewise.
4310         * build-aux/x-to-1.in: Likewise.
4311         * check-module: Likewise.
4312         * config/srclistvars.sh: Likewise.
4313         * gnulib-tool: Likewise.
4314         * lib/acl-internal.h: Likewise.
4315         * lib/acl.c: Likewise.
4316         * lib/acl.h: Likewise.
4317         * lib/acl_entries.c: Likewise.
4318         * lib/areadlink-with-size.c: Likewise.
4319         * lib/areadlink.c: Likewise.
4320         * lib/areadlink.h: Likewise.
4321         * lib/argmatch.c: Likewise.
4322         * lib/argmatch.h: Likewise.
4323         * lib/argp-ba.c: Likewise.
4324         * lib/argp-eexst.c: Likewise.
4325         * lib/argp-fmtstream.c: Likewise.
4326         * lib/argp-fmtstream.h: Likewise.
4327         * lib/argp-fs-xinl.c: Likewise.
4328         * lib/argp-help.c: Likewise.
4329         * lib/argp-namefrob.h: Likewise.
4330         * lib/argp-parse.c: Likewise.
4331         * lib/argp-pin.c: Likewise.
4332         * lib/argp-pv.c: Likewise.
4333         * lib/argp-pvh.c: Likewise.
4334         * lib/argp-xinl.c: Likewise.
4335         * lib/argp.h: Likewise.
4336         * lib/at-func.c: Likewise.
4337         * lib/atanl.c: Likewise.
4338         * lib/backupfile.c: Likewise.
4339         * lib/backupfile.h: Likewise.
4340         * lib/basename.c: Likewise.
4341         * lib/binary-io.h: Likewise.
4342         * lib/byteswap.in.h: Likewise.
4343         * lib/c-stack.c: Likewise.
4344         * lib/c-stack.h: Likewise.
4345         * lib/c-strcasestr.c: Likewise.
4346         * lib/c-strcasestr.h: Likewise.
4347         * lib/c-strstr.c: Likewise.
4348         * lib/c-strstr.h: Likewise.
4349         * lib/c-strtod.c: Likewise.
4350         * lib/calloc.c: Likewise.
4351         * lib/canon-host.c: Likewise.
4352         * lib/canon-host.h: Likewise.
4353         * lib/canonicalize-lgpl.c: Likewise.
4354         * lib/canonicalize.c: Likewise.
4355         * lib/canonicalize.h: Likewise.
4356         * lib/ceil.c: Likewise.
4357         * lib/ceilf.c: Likewise.
4358         * lib/ceill.c: Likewise.
4359         * lib/chdir-long.c: Likewise.
4360         * lib/chdir-long.h: Likewise.
4361         * lib/chdir-safer.c: Likewise.
4362         * lib/chdir-safer.h: Likewise.
4363         * lib/chown.c: Likewise.
4364         * lib/classpath.c: Likewise.
4365         * lib/classpath.h: Likewise.
4366         * lib/clean-temp.c: Likewise.
4367         * lib/clean-temp.h: Likewise.
4368         * lib/cloexec.c: Likewise.
4369         * lib/close-stream.c: Likewise.
4370         * lib/closein.c: Likewise.
4371         * lib/closein.h: Likewise.
4372         * lib/closeout.c: Likewise.
4373         * lib/closeout.h: Likewise.
4374         * lib/concat-filename.c: Likewise.
4375         * lib/copy-file.c: Likewise.
4376         * lib/copy-file.h: Likewise.
4377         * lib/count-one-bits.h: Likewise.
4378         * lib/crc.c: Likewise.
4379         * lib/crc.h: Likewise.
4380         * lib/creat-safer.c: Likewise.
4381         * lib/csharpcomp.c: Likewise.
4382         * lib/csharpcomp.h: Likewise.
4383         * lib/csharpexec.c: Likewise.
4384         * lib/csharpexec.h: Likewise.
4385         * lib/cycle-check.c: Likewise.
4386         * lib/cycle-check.h: Likewise.
4387         * lib/diacrit.c: Likewise.
4388         * lib/diacrit.h: Likewise.
4389         * lib/diffseq.h: Likewise.
4390         * lib/dirchownmod.c: Likewise.
4391         * lib/dirent.in.h: Likewise.
4392         * lib/dirfd.c: Likewise.
4393         * lib/dirfd.h: Likewise.
4394         * lib/dirname.c: Likewise.
4395         * lib/dirname.h: Likewise.
4396         * lib/dummy.c: Likewise.
4397         * lib/dup-safer.c: Likewise.
4398         * lib/dup2.c: Likewise.
4399         * lib/eealloc.h: Likewise.
4400         * lib/error.c: Likewise.
4401         * lib/error.h: Likewise.
4402         * lib/euidaccess.c: Likewise.
4403         * lib/exclude.c: Likewise.
4404         * lib/exclude.h: Likewise.
4405         * lib/execute.c: Likewise.
4406         * lib/execute.h: Likewise.
4407         * lib/exitfail.c: Likewise.
4408         * lib/exitfail.h: Likewise.
4409         * lib/expl.c: Likewise.
4410         * lib/fatal-signal.c: Likewise.
4411         * lib/fatal-signal.h: Likewise.
4412         * lib/fbufmode.c: Likewise.
4413         * lib/fbufmode.h: Likewise.
4414         * lib/fchdir.c: Likewise.
4415         * lib/fchmodat.c: Likewise.
4416         * lib/fchownat.c: Likewise.
4417         * lib/fcntl--.h: Likewise.
4418         * lib/fcntl-safer.h: Likewise.
4419         * lib/fcntl.in.h: Likewise.
4420         * lib/fd-safer.c: Likewise.
4421         * lib/fflush.c: Likewise.
4422         * lib/file-has-acl.c: Likewise.
4423         * lib/file-set.c: Likewise.
4424         * lib/file-type.c: Likewise.
4425         * lib/file-type.h: Likewise.
4426         * lib/fileblocks.c: Likewise.
4427         * lib/filemode.c: Likewise.
4428         * lib/filemode.h: Likewise.
4429         * lib/filename.h: Likewise.
4430         * lib/filenamecat.c: Likewise.
4431         * lib/filenamecat.h: Likewise.
4432         * lib/findprog.c: Likewise.
4433         * lib/findprog.h: Likewise.
4434         * lib/float.in.h: Likewise.
4435         * lib/floor.c: Likewise.
4436         * lib/floorf.c: Likewise.
4437         * lib/floorl.c: Likewise.
4438         * lib/fopen-safer.c: Likewise.
4439         * lib/fopen.c: Likewise.
4440         * lib/fpending.c: Likewise.
4441         * lib/fpending.h: Likewise.
4442         * lib/fprintf.c: Likewise.
4443         * lib/fprintftime.h: Likewise.
4444         * lib/fpucw.h: Likewise.
4445         * lib/fpurge.c: Likewise.
4446         * lib/fpurge.h: Likewise.
4447         * lib/freadable.c: Likewise.
4448         * lib/freadable.h: Likewise.
4449         * lib/freadahead.c: Likewise.
4450         * lib/freadahead.h: Likewise.
4451         * lib/freading.c: Likewise.
4452         * lib/freading.h: Likewise.
4453         * lib/free.c: Likewise.
4454         * lib/freopen.c: Likewise.
4455         * lib/frexp.c: Likewise.
4456         * lib/frexpl.c: Likewise.
4457         * lib/fseek.c: Likewise.
4458         * lib/fseterr.c: Likewise.
4459         * lib/fseterr.h: Likewise.
4460         * lib/fstatat.c: Likewise.
4461         * lib/fstrcmp.c: Likewise.
4462         * lib/fstrcmp.h: Likewise.
4463         * lib/fsusage.c: Likewise.
4464         * lib/fsusage.h: Likewise.
4465         * lib/ftell.c: Likewise.
4466         * lib/ftello.c: Likewise.
4467         * lib/fts-cycle.c: Likewise.
4468         * lib/fts.c: Likewise.
4469         * lib/fts_.h: Likewise.
4470         * lib/full-read.c: Likewise.
4471         * lib/full-read.h: Likewise.
4472         * lib/full-write.c: Likewise.
4473         * lib/full-write.h: Likewise.
4474         * lib/fwritable.c: Likewise.
4475         * lib/fwritable.h: Likewise.
4476         * lib/fwriteerror.c: Likewise.
4477         * lib/fwriteerror.h: Likewise.
4478         * lib/fwriting.c: Likewise.
4479         * lib/fwriting.h: Likewise.
4480         * lib/gcd.c: Likewise.
4481         * lib/gcd.h: Likewise.
4482         * lib/getcwd.c: Likewise.
4483         * lib/getdate.h: Likewise.
4484         * lib/getdate.y: Likewise.
4485         * lib/getdomainname.c: Likewise.
4486         * lib/getdomainname.h: Likewise.
4487         * lib/getgroups.c: Likewise.
4488         * lib/gethostname.c: Likewise.
4489         * lib/gethrxtime.c: Likewise.
4490         * lib/gethrxtime.h: Likewise.
4491         * lib/getloadavg.c: Likewise.
4492         * lib/getndelim2.c: Likewise.
4493         * lib/getndelim2.h: Likewise.
4494         * lib/getnline.c: Likewise.
4495         * lib/getnline.h: Likewise.
4496         * lib/getopt.c: Likewise.
4497         * lib/getopt.in.h: Likewise.
4498         * lib/getopt1.c: Likewise.
4499         * lib/getopt_int.h: Likewise.
4500         * lib/getpagesize.h: Likewise.
4501         * lib/getsubopt.c: Likewise.
4502         * lib/gettime.c: Likewise.
4503         * lib/getugroups.c: Likewise.
4504         * lib/getugroups.h: Likewise.
4505         * lib/getusershell.c: Likewise.
4506         * lib/gl_anyavltree_list1.h: Likewise.
4507         * lib/gl_anyavltree_list2.h: Likewise.
4508         * lib/gl_anyhash_list1.h: Likewise.
4509         * lib/gl_anyhash_list2.h: Likewise.
4510         * lib/gl_anylinked_list1.h: Likewise.
4511         * lib/gl_anylinked_list2.h: Likewise.
4512         * lib/gl_anyrbtree_list1.h: Likewise.
4513         * lib/gl_anyrbtree_list2.h: Likewise.
4514         * lib/gl_anytree_list1.h: Likewise.
4515         * lib/gl_anytree_list2.h: Likewise.
4516         * lib/gl_anytree_oset.h: Likewise.
4517         * lib/gl_anytreehash_list1.h: Likewise.
4518         * lib/gl_anytreehash_list2.h: Likewise.
4519         * lib/gl_array_list.c: Likewise.
4520         * lib/gl_array_list.h: Likewise.
4521         * lib/gl_array_oset.c: Likewise.
4522         * lib/gl_array_oset.h: Likewise.
4523         * lib/gl_avltree_list.c: Likewise.
4524         * lib/gl_avltree_list.h: Likewise.
4525         * lib/gl_avltree_oset.c: Likewise.
4526         * lib/gl_avltree_oset.h: Likewise.
4527         * lib/gl_avltreehash_list.c: Likewise.
4528         * lib/gl_avltreehash_list.h: Likewise.
4529         * lib/gl_carray_list.c: Likewise.
4530         * lib/gl_carray_list.h: Likewise.
4531         * lib/gl_linked_list.c: Likewise.
4532         * lib/gl_linked_list.h: Likewise.
4533         * lib/gl_linkedhash_list.c: Likewise.
4534         * lib/gl_linkedhash_list.h: Likewise.
4535         * lib/gl_list.c: Likewise.
4536         * lib/gl_list.h: Likewise.
4537         * lib/gl_oset.c: Likewise.
4538         * lib/gl_oset.h: Likewise.
4539         * lib/gl_rbtree_list.c: Likewise.
4540         * lib/gl_rbtree_list.h: Likewise.
4541         * lib/gl_rbtree_oset.c: Likewise.
4542         * lib/gl_rbtree_oset.h: Likewise.
4543         * lib/gl_rbtreehash_list.c: Likewise.
4544         * lib/gl_rbtreehash_list.h: Likewise.
4545         * lib/gl_sublist.c: Likewise.
4546         * lib/gl_sublist.h: Likewise.
4547         * lib/group-member.c: Likewise.
4548         * lib/group-member.h: Likewise.
4549         * lib/hard-locale.c: Likewise.
4550         * lib/hard-locale.h: Likewise.
4551         * lib/hash-pjw.c: Likewise.
4552         * lib/hash-pjw.h: Likewise.
4553         * lib/hash-triple.c: Likewise.
4554         * lib/hash.c: Likewise.
4555         * lib/hash.h: Likewise.
4556         * lib/human.c: Likewise.
4557         * lib/human.h: Likewise.
4558         * lib/i-ring.c: Likewise.
4559         * lib/i-ring.h: Likewise.
4560         * lib/idcache.c: Likewise.
4561         * lib/imaxabs.c: Likewise.
4562         * lib/imaxdiv.c: Likewise.
4563         * lib/inet_pton.c: Likewise.
4564         * lib/inet_pton.h: Likewise.
4565         * lib/intprops.h: Likewise.
4566         * lib/inttostr.c: Likewise.
4567         * lib/inttostr.h: Likewise.
4568         * lib/inttypes.in.h: Likewise.
4569         * lib/isapipe.c: Likewise.
4570         * lib/isdir.c: Likewise.
4571         * lib/isnan.c: Likewise.
4572         * lib/isnan.h: Likewise.
4573         * lib/isnanf.c: Likewise.
4574         * lib/isnanf.h: Likewise.
4575         * lib/isnanl-nolibm.h: Likewise.
4576         * lib/isnanl.c: Likewise.
4577         * lib/isnanl.h: Likewise.
4578         * lib/javacomp.c: Likewise.
4579         * lib/javacomp.h: Likewise.
4580         * lib/javaexec.c: Likewise.
4581         * lib/javaexec.h: Likewise.
4582         * lib/javaversion.c: Likewise.
4583         * lib/javaversion.h: Likewise.
4584         * lib/javaversion.java: Likewise.
4585         * lib/lbrkprop.h: Likewise.
4586         * lib/lchmod.h: Likewise.
4587         * lib/lchown.c: Likewise.
4588         * lib/ldexpl.c: Likewise.
4589         * lib/linebreak.c: Likewise.
4590         * lib/linebreak.h: Likewise.
4591         * lib/linebuffer.c: Likewise.
4592         * lib/linebuffer.h: Likewise.
4593         * lib/locale.in.h: Likewise.
4594         * lib/logl.c: Likewise.
4595         * lib/long-options.c: Likewise.
4596         * lib/long-options.h: Likewise.
4597         * lib/lstat.c: Likewise.
4598         * lib/lstat.h: Likewise.
4599         * lib/math.in.h: Likewise.
4600         * lib/mbchar.c: Likewise.
4601         * lib/mbchar.h: Likewise.
4602         * lib/mbfile.h: Likewise.
4603         * lib/mbiter.h: Likewise.
4604         * lib/mbscasecmp.c: Likewise.
4605         * lib/mbscasestr.c: Likewise.
4606         * lib/mbschr.c: Likewise.
4607         * lib/mbscspn.c: Likewise.
4608         * lib/mbslen.c: Likewise.
4609         * lib/mbsncasecmp.c: Likewise.
4610         * lib/mbsnlen.c: Likewise.
4611         * lib/mbspbrk.c: Likewise.
4612         * lib/mbspcasecmp.c: Likewise.
4613         * lib/mbsrchr.c: Likewise.
4614         * lib/mbssep.c: Likewise.
4615         * lib/mbsspn.c: Likewise.
4616         * lib/mbsstr.c: Likewise.
4617         * lib/mbstok_r.c: Likewise.
4618         * lib/mbswidth.c: Likewise.
4619         * lib/mbswidth.h: Likewise.
4620         * lib/mbuiter.h: Likewise.
4621         * lib/memcasecmp.c: Likewise.
4622         * lib/memcasecmp.h: Likewise.
4623         * lib/memchr.c: Likewise.
4624         * lib/memcmp.c: Likewise.
4625         * lib/memcoll.c: Likewise.
4626         * lib/memcoll.h: Likewise.
4627         * lib/memcpy.c: Likewise.
4628         * lib/memrchr.c: Likewise.
4629         * lib/mkancesdirs.c: Likewise.
4630         * lib/mkdir-p.c: Likewise.
4631         * lib/mkdir-p.h: Likewise.
4632         * lib/mkdir.c: Likewise.
4633         * lib/mkdirat.c: Likewise.
4634         * lib/mkdtemp.c: Likewise.
4635         * lib/mkstemp-safer.c: Likewise.
4636         * lib/mkstemp.c: Likewise.
4637         * lib/modechange.c: Likewise.
4638         * lib/modechange.h: Likewise.
4639         * lib/mountlist.c: Likewise.
4640         * lib/mountlist.h: Likewise.
4641         * lib/mpsort.c: Likewise.
4642         * lib/nanosleep.c: Likewise.
4643         * lib/obstack.c: Likewise.
4644         * lib/obstack.h: Likewise.
4645         * lib/open-safer.c: Likewise.
4646         * lib/open.c: Likewise.
4647         * lib/openat-die.c: Likewise.
4648         * lib/openat-priv.h: Likewise.
4649         * lib/openat-proc.c: Likewise.
4650         * lib/openat.c: Likewise.
4651         * lib/openat.h: Likewise.
4652         * lib/pagealign_alloc.c: Likewise.
4653         * lib/pagealign_alloc.h: Likewise.
4654         * lib/physmem.c: Likewise.
4655         * lib/physmem.h: Likewise.
4656         * lib/pipe-safer.c: Likewise.
4657         * lib/pipe.c: Likewise.
4658         * lib/pipe.h: Likewise.
4659         * lib/posixtm.c: Likewise.
4660         * lib/posixtm.h: Likewise.
4661         * lib/posixver.c: Likewise.
4662         * lib/printf-frexp.c: Likewise.
4663         * lib/printf-frexp.h: Likewise.
4664         * lib/printf-frexpl.c: Likewise.
4665         * lib/printf-frexpl.h: Likewise.
4666         * lib/printf.c: Likewise.
4667         * lib/progname.c: Likewise.
4668         * lib/progname.h: Likewise.
4669         * lib/progreloc.c: Likewise.
4670         * lib/putenv.c: Likewise.
4671         * lib/quote.c: Likewise.
4672         * lib/quote.h: Likewise.
4673         * lib/quotearg.c: Likewise.
4674         * lib/quotearg.h: Likewise.
4675         * lib/raise.c: Likewise.
4676         * lib/readline.c: Likewise.
4677         * lib/readline.h: Likewise.
4678         * lib/readlink.c: Likewise.
4679         * lib/readtokens.c: Likewise.
4680         * lib/readtokens.h: Likewise.
4681         * lib/readtokens0.c: Likewise.
4682         * lib/readtokens0.h: Likewise.
4683         * lib/readutmp.c: Likewise.
4684         * lib/readutmp.h: Likewise.
4685         * lib/realloc.c: Likewise.
4686         * lib/relocwrapper.c: Likewise.
4687         * lib/rename-dest-slash.c: Likewise.
4688         * lib/rename.c: Likewise.
4689         * lib/rmdir.c: Likewise.
4690         * lib/rpmatch.c: Likewise.
4691         * lib/safe-read.c: Likewise.
4692         * lib/safe-read.h: Likewise.
4693         * lib/safe-write.c: Likewise.
4694         * lib/safe-write.h: Likewise.
4695         * lib/same-inode.h: Likewise.
4696         * lib/same.c: Likewise.
4697         * lib/same.h: Likewise.
4698         * lib/save-cwd.c: Likewise.
4699         * lib/save-cwd.h: Likewise.
4700         * lib/savedir.c: Likewise.
4701         * lib/savedir.h: Likewise.
4702         * lib/savewd.c: Likewise.
4703         * lib/savewd.h: Likewise.
4704         * lib/search.in.h: Likewise.
4705         * lib/setenv.c: Likewise.
4706         * lib/setenv.h: Likewise.
4707         * lib/settime.c: Likewise.
4708         * lib/sh-quote.c: Likewise.
4709         * lib/sh-quote.h: Likewise.
4710         * lib/sig2str.c: Likewise.
4711         * lib/sig2str.h: Likewise.
4712         * lib/signal.in.h: Likewise.
4713         * lib/signbitd.c: Likewise.
4714         * lib/signbitf.c: Likewise.
4715         * lib/signbitl.c: Likewise.
4716         * lib/sigprocmask.c: Likewise.
4717         * lib/sincosl.c: Likewise.
4718         * lib/sleep.c: Likewise.
4719         * lib/sprintf.c: Likewise.
4720         * lib/sqrtl.c: Likewise.
4721         * lib/stat-time.h: Likewise.
4722         * lib/stdio--.h: Likewise.
4723         * lib/stdio-safer.h: Likewise.
4724         * lib/stdlib--.h: Likewise.
4725         * lib/stdlib-safer.h: Likewise.
4726         * lib/stdlib.in.h: Likewise.
4727         * lib/stpcpy.c: Likewise.
4728         * lib/stpncpy.c: Likewise.
4729         * lib/strchrnul.c: Likewise.
4730         * lib/strcspn.c: Likewise.
4731         * lib/strerror.c: Likewise.
4732         * lib/strftime.c: Likewise.
4733         * lib/strftime.h: Likewise.
4734         * lib/striconveh.c: Likewise.
4735         * lib/striconveh.h: Likewise.
4736         * lib/striconveha.c: Likewise.
4737         * lib/striconveha.h: Likewise.
4738         * lib/stripslash.c: Likewise.
4739         * lib/strnlen1.c: Likewise.
4740         * lib/strnlen1.h: Likewise.
4741         * lib/strtod.c: Likewise.
4742         * lib/strtoimax.c: Likewise.
4743         * lib/strtok_r.c: Likewise.
4744         * lib/strtol.c: Likewise.
4745         * lib/strtoll.c: Likewise.
4746         * lib/strtoul.c: Likewise.
4747         * lib/strtoull.c: Likewise.
4748         * lib/sysexits.in.h: Likewise.
4749         * lib/tempname.c: Likewise.
4750         * lib/tempname.h: Likewise.
4751         * lib/timespec.h: Likewise.
4752         * lib/tls.c: Likewise.
4753         * lib/tls.h: Likewise.
4754         * lib/tmpdir.c: Likewise.
4755         * lib/tmpdir.h: Likewise.
4756         * lib/tmpfile-safer.c: Likewise.
4757         * lib/tmpfile.c: Likewise.
4758         * lib/trigl.c: Likewise.
4759         * lib/trigl.h: Likewise.
4760         * lib/trim.c: Likewise.
4761         * lib/trim.h: Likewise.
4762         * lib/trunc.c: Likewise.
4763         * lib/truncf.c: Likewise.
4764         * lib/truncl.c: Likewise.
4765         * lib/tsearch.c: Likewise.
4766         * lib/unicodeio.c: Likewise.
4767         * lib/unicodeio.h: Likewise.
4768         * lib/unistd--.h: Likewise.
4769         * lib/unistd-safer.h: Likewise.
4770         * lib/unistdio/ulc-fprintf.c: Likewise.
4771         * lib/unistdio/ulc-vfprintf.c: Likewise.
4772         * lib/unlinkdir.c: Likewise.
4773         * lib/unlinkdir.h: Likewise.
4774         * lib/unlocked-io.h: Likewise.
4775         * lib/unsetenv.c: Likewise.
4776         * lib/userspec.c: Likewise.
4777         * lib/utime.c: Likewise.
4778         * lib/utimecmp.c: Likewise.
4779         * lib/utimecmp.h: Likewise.
4780         * lib/utimens.c: Likewise.
4781         * lib/verify.h: Likewise.
4782         * lib/verror.c: Likewise.
4783         * lib/verror.h: Likewise.
4784         * lib/version-etc-fsf.c: Likewise.
4785         * lib/version-etc.c: Likewise.
4786         * lib/version-etc.h: Likewise.
4787         * lib/vfprintf.c: Likewise.
4788         * lib/vprintf.c: Likewise.
4789         * lib/vsprintf.c: Likewise.
4790         * lib/w32spawn.h: Likewise.
4791         * lib/wait-process.c: Likewise.
4792         * lib/wait-process.h: Likewise.
4793         * lib/wcwidth.c: Likewise.
4794         * lib/write-any-file.c: Likewise.
4795         * lib/xalloc-die.c: Likewise.
4796         * lib/xalloc.h: Likewise.
4797         * lib/xasprintf.c: Likewise.
4798         * lib/xgetcwd.c: Likewise.
4799         * lib/xgetcwd.h: Likewise.
4800         * lib/xgetdomainname.c: Likewise.
4801         * lib/xgetdomainname.h: Likewise.
4802         * lib/xgethostname.c: Likewise.
4803         * lib/xmalloc.c: Likewise.
4804         * lib/xmalloca.c: Likewise.
4805         * lib/xmalloca.h: Likewise.
4806         * lib/xmemcoll.c: Likewise.
4807         * lib/xnanosleep.c: Likewise.
4808         * lib/xreadlink.c: Likewise.
4809         * lib/xreadlink.h: Likewise.
4810         * lib/xsetenv.c: Likewise.
4811         * lib/xsetenv.h: Likewise.
4812         * lib/xstriconv.c: Likewise.
4813         * lib/xstriconv.h: Likewise.
4814         * lib/xstrndup.c: Likewise.
4815         * lib/xstrndup.h: Likewise.
4816         * lib/xstrtod.c: Likewise.
4817         * lib/xstrtod.h: Likewise.
4818         * lib/xstrtol-error.c: Likewise.
4819         * lib/xstrtol.c: Likewise.
4820         * lib/xstrtol.h: Likewise.
4821         * lib/xtime.h: Likewise.
4822         * lib/xvasprintf.c: Likewise.
4823         * lib/xvasprintf.h: Likewise.
4824         * lib/yesno.c: Likewise.
4825         * lib/yesno.h: Likewise.
4826         * posix-modules: Likewise.
4827         * tests/test-alloca-opt.c: Likewise.
4828         * tests/test-arcfour.c: Likewise.
4829         * tests/test-arctwo.c: Likewise.
4830         * tests/test-argmatch.c: Likewise.
4831         * tests/test-argp-2.sh: Likewise.
4832         * tests/test-argp.c: Likewise.
4833         * tests/test-arpa_inet.c: Likewise.
4834         * tests/test-array_list.c: Likewise.
4835         * tests/test-array_oset.c: Likewise.
4836         * tests/test-atexit.c: Likewise.
4837         * tests/test-avltree_list.c: Likewise.
4838         * tests/test-avltree_oset.c: Likewise.
4839         * tests/test-avltreehash_list.c: Likewise.
4840         * tests/test-base64.c: Likewise.
4841         * tests/test-binary-io.c: Likewise.
4842         * tests/test-byteswap.c: Likewise.
4843         * tests/test-c-ctype.c: Likewise.
4844         * tests/test-c-strcasecmp.c: Likewise.
4845         * tests/test-c-strcasestr.c: Likewise.
4846         * tests/test-c-strncasecmp.c: Likewise.
4847         * tests/test-c-strstr.c: Likewise.
4848         * tests/test-canonicalize-lgpl.c: Likewise.
4849         * tests/test-canonicalize.c: Likewise.
4850         * tests/test-carray_list.c: Likewise.
4851         * tests/test-ceilf.c: Likewise.
4852         * tests/test-ceill.c: Likewise.
4853         * tests/test-count-one-bits.c: Likewise.
4854         * tests/test-crc.c: Likewise.
4855         * tests/test-dirname.c: Likewise.
4856         * tests/test-fbufmode.c: Likewise.
4857         * tests/test-fcntl.c: Likewise.
4858         * tests/test-fflush.c: Likewise.
4859         * tests/test-floorf.c: Likewise.
4860         * tests/test-floorl.c: Likewise.
4861         * tests/test-fopen.c: Likewise.
4862         * tests/test-fprintf-posix.c: Likewise.
4863         * tests/test-fprintf-posix.h: Likewise.
4864         * tests/test-fpurge.c: Likewise.
4865         * tests/test-freadable.c: Likewise.
4866         * tests/test-freadahead.c: Likewise.
4867         * tests/test-freading.c: Likewise.
4868         * tests/test-freopen.c: Likewise.
4869         * tests/test-frexp.c: Likewise.
4870         * tests/test-frexpl.c: Likewise.
4871         * tests/test-fseek.c: Likewise.
4872         * tests/test-fseeko.c: Likewise.
4873         * tests/test-fseterr.c: Likewise.
4874         * tests/test-fstrcmp.c: Likewise.
4875         * tests/test-ftell.c: Likewise.
4876         * tests/test-ftello.c: Likewise.
4877         * tests/test-fwritable.c: Likewise.
4878         * tests/test-fwriting.c: Likewise.
4879         * tests/test-getaddrinfo.c: Likewise.
4880         * tests/test-getpass.c: Likewise.
4881         * tests/test-gettimeofday.c: Likewise.
4882         * tests/test-hmac-md5.c: Likewise.
4883         * tests/test-hmac-sha1.c: Likewise.
4884         * tests/test-iconv.c: Likewise.
4885         * tests/test-iconvme.c: Likewise.
4886         * tests/test-inttypes.c: Likewise.
4887         * tests/test-isnan.c: Likewise.
4888         * tests/test-isnanf.c: Likewise.
4889         * tests/test-isnanl-nolibm.c: Likewise.
4890         * tests/test-isnanl.c: Likewise.
4891         * tests/test-isnanl.h: Likewise.
4892         * tests/test-ldexpl.c: Likewise.
4893         * tests/test-linked_list.c: Likewise.
4894         * tests/test-linkedhash_list.c: Likewise.
4895         * tests/test-locale.c: Likewise.
4896         * tests/test-localename.c: Likewise.
4897         * tests/test-lock.c: Likewise.
4898         * tests/test-lseek.c: Likewise.
4899         * tests/test-malloca.c: Likewise.
4900         * tests/test-math.c: Likewise.
4901         * tests/test-mbscasecmp.c: Likewise.
4902         * tests/test-mbscasestr1.c: Likewise.
4903         * tests/test-mbscasestr2.c: Likewise.
4904         * tests/test-mbscasestr3.c: Likewise.
4905         * tests/test-mbscasestr4.c: Likewise.
4906         * tests/test-mbschr.c: Likewise.
4907         * tests/test-mbscspn.c: Likewise.
4908         * tests/test-mbsncasecmp.c: Likewise.
4909         * tests/test-mbspbrk.c: Likewise.
4910         * tests/test-mbspcasecmp.c: Likewise.
4911         * tests/test-mbsrchr.c: Likewise.
4912         * tests/test-mbsspn.c: Likewise.
4913         * tests/test-mbsstr1.c: Likewise.
4914         * tests/test-mbsstr2.c: Likewise.
4915         * tests/test-mbsstr3.c: Likewise.
4916         * tests/test-md5.c: Likewise.
4917         * tests/test-memmem.c: Likewise.
4918         * tests/test-netinet_in.c: Likewise.
4919         * tests/test-open.c: Likewise.
4920         * tests/test-printf-frexp.c: Likewise.
4921         * tests/test-printf-frexpl.c: Likewise.
4922         * tests/test-printf-posix.c: Likewise.
4923         * tests/test-printf-posix.h: Likewise.
4924         * tests/test-rbtree_list.c: Likewise.
4925         * tests/test-rbtree_oset.c: Likewise.
4926         * tests/test-rbtreehash_list.c: Likewise.
4927         * tests/test-read-file.c: Likewise.
4928         * tests/test-rijndael.c: Likewise.
4929         * tests/test-search.c: Likewise.
4930         * tests/test-signbit.c: Likewise.
4931         * tests/test-sleep.c: Likewise.
4932         * tests/test-snprintf-posix.c: Likewise.
4933         * tests/test-snprintf-posix.h: Likewise.
4934         * tests/test-snprintf.c: Likewise.
4935         * tests/test-sprintf-posix.c: Likewise.
4936         * tests/test-sprintf-posix.h: Likewise.
4937         * tests/test-stat-time.c: Likewise.
4938         * tests/test-stdbool.c: Likewise.
4939         * tests/test-stdint.c: Likewise.
4940         * tests/test-stdio.c: Likewise.
4941         * tests/test-stdlib.c: Likewise.
4942         * tests/test-stpncpy.c: Likewise.
4943         * tests/test-strcasestr.c: Likewise.
4944         * tests/test-striconv.c: Likewise.
4945         * tests/test-striconveh.c: Likewise.
4946         * tests/test-striconveha.c: Likewise.
4947         * tests/test-string.c: Likewise.
4948         * tests/test-sys_select.c: Likewise.
4949         * tests/test-sys_socket.c: Likewise.
4950         * tests/test-sys_stat.c: Likewise.
4951         * tests/test-sys_time.c: Likewise.
4952         * tests/test-sysexits.c: Likewise.
4953         * tests/test-time.c: Likewise.
4954         * tests/test-tls.c: Likewise.
4955         * tests/test-trunc.c: Likewise.
4956         * tests/test-truncf.c: Likewise.
4957         * tests/test-truncl.c: Likewise.
4958         * tests/test-unistd.c: Likewise.
4959         * tests/test-vasnprintf-posix.c: Likewise.
4960         * tests/test-vasnprintf-posix2.c: Likewise.
4961         * tests/test-vasnprintf.c: Likewise.
4962         * tests/test-vasprintf-posix.c: Likewise.
4963         * tests/test-vasprintf.c: Likewise.
4964         * tests/test-verify.c: Likewise.
4965         * tests/test-vfprintf-posix.c: Likewise.
4966         * tests/test-vprintf-posix.c: Likewise.
4967         * tests/test-vsnprintf-posix.c: Likewise.
4968         * tests/test-vsnprintf.c: Likewise.
4969         * tests/test-vsprintf-posix.c: Likewise.
4970         * tests/test-wchar.c: Likewise.
4971         * tests/test-wctype.c: Likewise.
4972         * tests/test-wcwidth.c: Likewise.
4973         * tests/test-xstrtol.c: Likewise.
4974         * tests/test-xvasprintf.c: Likewise.
4975         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4976         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4977         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4978         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4979         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4980         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4981         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4982         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4983         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4984         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4985         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4986         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4987         * tests/uniname/test-uninames.c: Likewise.
4988         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4989         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
4990         * tests/unistdio/test-u16-printf1.h: Likewise.
4991         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4992         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4993         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4994         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4995         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4996         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4997         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
4998         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
4999         * tests/unistdio/test-u32-printf1.h: Likewise.
5000         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5001         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5002         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5003         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5004         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5005         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5006         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5007         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
5008         * tests/unistdio/test-u8-printf1.h: Likewise.
5009         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5010         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5011         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5012         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5013         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5014         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5015         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5016         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
5017         * tests/unistdio/test-ulc-printf1.h: Likewise.
5018         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5019         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5020         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5021         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5022         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5023         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5024         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5025         * tests/uniwidth/test-u16-width.c: Likewise.
5026         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5027         * tests/uniwidth/test-u32-width.c: Likewise.
5028         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5029         * tests/uniwidth/test-u8-width.c: Likewise.
5030         * tests/uniwidth/test-uc_width.c: Likewise.
5031         * config/srclist-update: Likewise.
5032         (fixlicense): Update to GPLv3+.
5033
5034         Change copyright notice from LGPLv2.1+ to LGPLv3+.
5035         * tests/test-tsearch.c: Change copyright notice.
5036
5037         Change copyright notice from LGPLv2.0+ to LGPLv3+.
5038         * lib/c-strcaseeq.h: Change copyright notice.
5039         * lib/streq.h: Likewise.
5040         * lib/uniconv.h: Likewise.
5041         * lib/uniconv/u-conv-from-enc.h: Likewise.
5042         * lib/uniconv/u-conv-to-enc.h: Likewise.
5043         * lib/uniconv/u-strconv-from-enc.h: Likewise.
5044         * lib/uniconv/u-strconv-to-enc.h: Likewise.
5045         * lib/uniconv/u16-conv-from-enc.c: Likewise.
5046         * lib/uniconv/u16-conv-to-enc.c: Likewise.
5047         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
5048         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
5049         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
5050         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
5051         * lib/uniconv/u32-conv-from-enc.c: Likewise.
5052         * lib/uniconv/u32-conv-to-enc.c: Likewise.
5053         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
5054         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
5055         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
5056         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
5057         * lib/uniconv/u8-conv-from-enc.c: Likewise.
5058         * lib/uniconv/u8-conv-to-enc.c: Likewise.
5059         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
5060         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
5061         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
5062         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
5063         * lib/uniname.h: Likewise.
5064         * lib/uniname/uniname.c: Likewise.
5065         * lib/unistdio.h: Likewise.
5066         * lib/unistdio/u-asnprintf.h: Likewise.
5067         * lib/unistdio/u-asprintf.h: Likewise.
5068         * lib/unistdio/u-printf-args.c: Likewise.
5069         * lib/unistdio/u-printf-args.h: Likewise.
5070         * lib/unistdio/u-printf-parse.h: Likewise.
5071         * lib/unistdio/u-snprintf.h: Likewise.
5072         * lib/unistdio/u-sprintf.h: Likewise.
5073         * lib/unistdio/u-vasprintf.h: Likewise.
5074         * lib/unistdio/u-vsnprintf.h: Likewise.
5075         * lib/unistdio/u-vsprintf.h: Likewise.
5076         * lib/unistdio/u16-asnprintf.c: Likewise.
5077         * lib/unistdio/u16-asprintf.c: Likewise.
5078         * lib/unistdio/u16-printf-parse.c: Likewise.
5079         * lib/unistdio/u16-snprintf.c: Likewise.
5080         * lib/unistdio/u16-sprintf.c: Likewise.
5081         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
5082         * lib/unistdio/u16-u16-asprintf.c: Likewise.
5083         * lib/unistdio/u16-u16-snprintf.c: Likewise.
5084         * lib/unistdio/u16-u16-sprintf.c: Likewise.
5085         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
5086         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
5087         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
5088         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
5089         * lib/unistdio/u16-vasnprintf.c: Likewise.
5090         * lib/unistdio/u16-vasprintf.c: Likewise.
5091         * lib/unistdio/u16-vsnprintf.c: Likewise.
5092         * lib/unistdio/u16-vsprintf.c: Likewise.
5093         * lib/unistdio/u32-asnprintf.c: Likewise.
5094         * lib/unistdio/u32-asprintf.c: Likewise.
5095         * lib/unistdio/u32-printf-parse.c: Likewise.
5096         * lib/unistdio/u32-snprintf.c: Likewise.
5097         * lib/unistdio/u32-sprintf.c: Likewise.
5098         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
5099         * lib/unistdio/u32-u32-asprintf.c: Likewise.
5100         * lib/unistdio/u32-u32-snprintf.c: Likewise.
5101         * lib/unistdio/u32-u32-sprintf.c: Likewise.
5102         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
5103         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
5104         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
5105         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
5106         * lib/unistdio/u32-vasnprintf.c: Likewise.
5107         * lib/unistdio/u32-vasprintf.c: Likewise.
5108         * lib/unistdio/u32-vsnprintf.c: Likewise.
5109         * lib/unistdio/u32-vsprintf.c: Likewise.
5110         * lib/unistdio/u8-asnprintf.c: Likewise.
5111         * lib/unistdio/u8-asprintf.c: Likewise.
5112         * lib/unistdio/u8-printf-parse.c: Likewise.
5113         * lib/unistdio/u8-snprintf.c: Likewise.
5114         * lib/unistdio/u8-sprintf.c: Likewise.
5115         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
5116         * lib/unistdio/u8-u8-asprintf.c: Likewise.
5117         * lib/unistdio/u8-u8-snprintf.c: Likewise.
5118         * lib/unistdio/u8-u8-sprintf.c: Likewise.
5119         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
5120         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
5121         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
5122         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
5123         * lib/unistdio/u8-vasnprintf.c: Likewise.
5124         * lib/unistdio/u8-vasprintf.c: Likewise.
5125         * lib/unistdio/u8-vsnprintf.c: Likewise.
5126         * lib/unistdio/u8-vsprintf.c: Likewise.
5127         * lib/unistdio/ulc-asnprintf.c: Likewise.
5128         * lib/unistdio/ulc-asprintf.c: Likewise.
5129         * lib/unistdio/ulc-printf-parse.c: Likewise.
5130         * lib/unistdio/ulc-snprintf.c: Likewise.
5131         * lib/unistdio/ulc-sprintf.c: Likewise.
5132         * lib/unistdio/ulc-vasnprintf.c: Likewise.
5133         * lib/unistdio/ulc-vasprintf.c: Likewise.
5134         * lib/unistdio/ulc-vsnprintf.c: Likewise.
5135         * lib/unistdio/ulc-vsprintf.c: Likewise.
5136         * lib/unistr.h: Likewise.
5137         * lib/unistr/u-cpy-alloc.h: Likewise.
5138         * lib/unistr/u-cpy.h: Likewise.
5139         * lib/unistr/u-endswith.h: Likewise.
5140         * lib/unistr/u-move.h: Likewise.
5141         * lib/unistr/u-set.h: Likewise.
5142         * lib/unistr/u-startswith.h: Likewise.
5143         * lib/unistr/u-stpcpy.h: Likewise.
5144         * lib/unistr/u-stpncpy.h: Likewise.
5145         * lib/unistr/u-strcat.h: Likewise.
5146         * lib/unistr/u-strcpy.h: Likewise.
5147         * lib/unistr/u-strcspn.h: Likewise.
5148         * lib/unistr/u-strdup.h: Likewise.
5149         * lib/unistr/u-strlen.h: Likewise.
5150         * lib/unistr/u-strncat.h: Likewise.
5151         * lib/unistr/u-strncpy.h: Likewise.
5152         * lib/unistr/u-strnlen.h: Likewise.
5153         * lib/unistr/u-strpbrk.h: Likewise.
5154         * lib/unistr/u-strspn.h: Likewise.
5155         * lib/unistr/u-strstr.h: Likewise.
5156         * lib/unistr/u-strtok.h: Likewise.
5157         * lib/unistr/u16-check.c: Likewise.
5158         * lib/unistr/u16-chr.c: Likewise.
5159         * lib/unistr/u16-cmp.c: Likewise.
5160         * lib/unistr/u16-cpy-alloc.c: Likewise.
5161         * lib/unistr/u16-cpy.c: Likewise.
5162         * lib/unistr/u16-endswith.c: Likewise.
5163         * lib/unistr/u16-mblen.c: Likewise.
5164         * lib/unistr/u16-mbsnlen.c: Likewise.
5165         * lib/unistr/u16-mbtouc-aux.c: Likewise.
5166         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
5167         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
5168         * lib/unistr/u16-mbtouc.c: Likewise.
5169         * lib/unistr/u16-mbtoucr.c: Likewise.
5170         * lib/unistr/u16-move.c: Likewise.
5171         * lib/unistr/u16-next.c: Likewise.
5172         * lib/unistr/u16-prev.c: Likewise.
5173         * lib/unistr/u16-set.c: Likewise.
5174         * lib/unistr/u16-startswith.c: Likewise.
5175         * lib/unistr/u16-stpcpy.c: Likewise.
5176         * lib/unistr/u16-stpncpy.c: Likewise.
5177         * lib/unistr/u16-strcat.c: Likewise.
5178         * lib/unistr/u16-strchr.c: Likewise.
5179         * lib/unistr/u16-strcmp.c: Likewise.
5180         * lib/unistr/u16-strcpy.c: Likewise.
5181         * lib/unistr/u16-strcspn.c: Likewise.
5182         * lib/unistr/u16-strdup.c: Likewise.
5183         * lib/unistr/u16-strlen.c: Likewise.
5184         * lib/unistr/u16-strmblen.c: Likewise.
5185         * lib/unistr/u16-strmbtouc.c: Likewise.
5186         * lib/unistr/u16-strncat.c: Likewise.
5187         * lib/unistr/u16-strncmp.c: Likewise.
5188         * lib/unistr/u16-strncpy.c: Likewise.
5189         * lib/unistr/u16-strnlen.c: Likewise.
5190         * lib/unistr/u16-strpbrk.c: Likewise.
5191         * lib/unistr/u16-strrchr.c: Likewise.
5192         * lib/unistr/u16-strspn.c: Likewise.
5193         * lib/unistr/u16-strstr.c: Likewise.
5194         * lib/unistr/u16-strtok.c: Likewise.
5195         * lib/unistr/u16-to-u32.c: Likewise.
5196         * lib/unistr/u16-to-u8.c: Likewise.
5197         * lib/unistr/u16-uctomb-aux.c: Likewise.
5198         * lib/unistr/u16-uctomb.c: Likewise.
5199         * lib/unistr/u32-check.c: Likewise.
5200         * lib/unistr/u32-chr.c: Likewise.
5201         * lib/unistr/u32-cmp.c: Likewise.
5202         * lib/unistr/u32-cpy-alloc.c: Likewise.
5203         * lib/unistr/u32-cpy.c: Likewise.
5204         * lib/unistr/u32-endswith.c: Likewise.
5205         * lib/unistr/u32-mblen.c: Likewise.
5206         * lib/unistr/u32-mbsnlen.c: Likewise.
5207         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
5208         * lib/unistr/u32-mbtouc.c: Likewise.
5209         * lib/unistr/u32-mbtoucr.c: Likewise.
5210         * lib/unistr/u32-move.c: Likewise.
5211         * lib/unistr/u32-next.c: Likewise.
5212         * lib/unistr/u32-prev.c: Likewise.
5213         * lib/unistr/u32-set.c: Likewise.
5214         * lib/unistr/u32-startswith.c: Likewise.
5215         * lib/unistr/u32-stpcpy.c: Likewise.
5216         * lib/unistr/u32-stpncpy.c: Likewise.
5217         * lib/unistr/u32-strcat.c: Likewise.
5218         * lib/unistr/u32-strchr.c: Likewise.
5219         * lib/unistr/u32-strcmp.c: Likewise.
5220         * lib/unistr/u32-strcpy.c: Likewise.
5221         * lib/unistr/u32-strcspn.c: Likewise.
5222         * lib/unistr/u32-strdup.c: Likewise.
5223         * lib/unistr/u32-strlen.c: Likewise.
5224         * lib/unistr/u32-strmblen.c: Likewise.
5225         * lib/unistr/u32-strmbtouc.c: Likewise.
5226         * lib/unistr/u32-strncat.c: Likewise.
5227         * lib/unistr/u32-strncmp.c: Likewise.
5228         * lib/unistr/u32-strncpy.c: Likewise.
5229         * lib/unistr/u32-strnlen.c: Likewise.
5230         * lib/unistr/u32-strpbrk.c: Likewise.
5231         * lib/unistr/u32-strrchr.c: Likewise.
5232         * lib/unistr/u32-strspn.c: Likewise.
5233         * lib/unistr/u32-strstr.c: Likewise.
5234         * lib/unistr/u32-strtok.c: Likewise.
5235         * lib/unistr/u32-to-u16.c: Likewise.
5236         * lib/unistr/u32-to-u8.c: Likewise.
5237         * lib/unistr/u32-uctomb.c: Likewise.
5238         * lib/unistr/u8-check.c: Likewise.
5239         * lib/unistr/u8-chr.c: Likewise.
5240         * lib/unistr/u8-cmp.c: Likewise.
5241         * lib/unistr/u8-cpy-alloc.c: Likewise.
5242         * lib/unistr/u8-cpy.c: Likewise.
5243         * lib/unistr/u8-endswith.c: Likewise.
5244         * lib/unistr/u8-mblen.c: Likewise.
5245         * lib/unistr/u8-mbsnlen.c: Likewise.
5246         * lib/unistr/u8-mbtouc-aux.c: Likewise.
5247         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
5248         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
5249         * lib/unistr/u8-mbtouc.c: Likewise.
5250         * lib/unistr/u8-mbtoucr.c: Likewise.
5251         * lib/unistr/u8-move.c: Likewise.
5252         * lib/unistr/u8-next.c: Likewise.
5253         * lib/unistr/u8-prev.c: Likewise.
5254         * lib/unistr/u8-set.c: Likewise.
5255         * lib/unistr/u8-startswith.c: Likewise.
5256         * lib/unistr/u8-stpcpy.c: Likewise.
5257         * lib/unistr/u8-stpncpy.c: Likewise.
5258         * lib/unistr/u8-strcat.c: Likewise.
5259         * lib/unistr/u8-strchr.c: Likewise.
5260         * lib/unistr/u8-strcmp.c: Likewise.
5261         * lib/unistr/u8-strcpy.c: Likewise.
5262         * lib/unistr/u8-strcspn.c: Likewise.
5263         * lib/unistr/u8-strdup.c: Likewise.
5264         * lib/unistr/u8-strlen.c: Likewise.
5265         * lib/unistr/u8-strmblen.c: Likewise.
5266         * lib/unistr/u8-strmbtouc.c: Likewise.
5267         * lib/unistr/u8-strncat.c: Likewise.
5268         * lib/unistr/u8-strncmp.c: Likewise.
5269         * lib/unistr/u8-strncpy.c: Likewise.
5270         * lib/unistr/u8-strnlen.c: Likewise.
5271         * lib/unistr/u8-strpbrk.c: Likewise.
5272         * lib/unistr/u8-strrchr.c: Likewise.
5273         * lib/unistr/u8-strspn.c: Likewise.
5274         * lib/unistr/u8-strstr.c: Likewise.
5275         * lib/unistr/u8-strtok.c: Likewise.
5276         * lib/unistr/u8-to-u16.c: Likewise.
5277         * lib/unistr/u8-to-u32.c: Likewise.
5278         * lib/unistr/u8-uctomb-aux.c: Likewise.
5279         * lib/unistr/u8-uctomb.c: Likewise.
5280         * lib/unitypes.h: Likewise.
5281         * lib/uniwidth.h: Likewise.
5282         * lib/uniwidth/cjk.h: Likewise.
5283         * lib/uniwidth/u16-strwidth.c: Likewise.
5284         * lib/uniwidth/u16-width.c: Likewise.
5285         * lib/uniwidth/u32-strwidth.c: Likewise.
5286         * lib/uniwidth/u32-width.c: Likewise.
5287         * lib/uniwidth/u8-strwidth.c: Likewise.
5288         * lib/uniwidth/u8-width.c: Likewise.
5289         * lib/uniwidth/width.c: Likewise.
5290
5291 2007-10-07  Bruno Haible  <bruno@clisp.org>
5292
5293         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
5294         The file is still under LGPL (see modules/inttypes).
5295
5296 2007-10-06  Bruno Haible  <bruno@clisp.org>
5297
5298         * modules/trunc (Dependencies): Add 'extensions'.
5299         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
5300         Reported by Ben Pfaff <blp@gnu.org>.
5301
5302 2007-10-06  Bruno Haible  <bruno@clisp.org>
5303
5304         * modules/freopen-tests: New file.
5305         * tests/test-freopen.c: New file.
5306
5307         * modules/fopen-tests: New file.
5308         * tests/test-fopen.c: New file.
5309
5310         * modules/fopen: New file.
5311         * lib/fopen.c: New file.
5312         * m4/fopen.m4: New file.
5313         * modules/freopen: New file.
5314         * lib/freopen.c: New file.
5315         * m4/freopen.m4: New file.
5316         * lib/stdio.in.h (fopen, freopen): New declarations.
5317         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
5318         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
5319         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
5320         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
5321         * doc/functions/fopen.texi: Mention the 'fopen' module.
5322         * doc/functions/freopen.texi: Mention the 'freopen' module.
5323
5324 2007-10-06  Bruno Haible  <bruno@clisp.org>
5325
5326         * modules/open-tests: New file.
5327         * tests/test-open.c: New file.
5328
5329         * modules/open: New file.
5330         * lib/open.c: New file.
5331         * m4/open.m4: New file.
5332         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
5333         lib/open.c does.
5334         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
5335         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
5336         macros.
5337         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
5338         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
5339         REPLACE_OPEN.
5340         * doc/functions/open.texi: Mention the 'open' module.
5341
5342 2007-10-04  Bruno Haible  <bruno@clisp.org>
5343
5344         * modules/ceill-tests: New file.
5345         * tests/test-ceill.c: New file.
5346
5347         * modules/ceill: New file.
5348         * lib/ceill.c: Replace entire file.
5349         * m4/ceill.m4: New file.
5350         * lib/math.in.h (ceill): Replace declaration.
5351         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
5352         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
5353         * doc/functions/ceill.texi: Mention the 'ceill' module.
5354         * modules/mathl (Files): Remove lib/ceill.c.
5355         (Depends-on): Add ceill.
5356
5357 2007-10-04  Bruno Haible  <bruno@clisp.org>
5358
5359         * modules/ceilf-tests: New file.
5360         * tests/test-ceilf.c: New file.
5361
5362         * modules/ceilf: New file.
5363         * lib/ceil.c: New file.
5364         * lib/ceilf.c: New file.
5365         * m4/ceilf.m4: New file.
5366         * lib/math.in.h (ceilf): New declaration.
5367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
5368         HAVE_DECL_CEILF.
5369         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
5370         HAVE_DECL_CEILF.
5371         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
5372
5373 2007-10-04  Bruno Haible  <bruno@clisp.org>
5374
5375         * modules/floorl-tests: New file.
5376         * tests/test-floorl.c: New file.
5377
5378         * modules/floorl: New file.
5379         * lib/floorl.c: Replace entire file.
5380         * m4/floorl.m4: New file.
5381         * lib/math.in.h (floorl): Replace declaration.
5382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
5383         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
5384         * doc/functions/floorl.texi: Mention the 'floorl' module.
5385         * modules/mathl (Files): Remove lib/floorl.c.
5386         (Depends-on): Add floorl.
5387
5388 2007-10-04  Bruno Haible  <bruno@clisp.org>
5389
5390         * modules/floorf-tests: New file.
5391         * tests/test-floorf.c: New file.
5392
5393         * modules/floorf: New file.
5394         * lib/floor.c: New file.
5395         * lib/floorf.c: New file.
5396         * m4/floorf.m4: New file.
5397         * lib/math.in.h (floorf): New declaration.
5398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
5399         HAVE_DECL_FLOORF.
5400         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
5401         HAVE_DECL_FLOORF.
5402         * doc/functions/floorf.texi: Mention the 'floorf' module.
5403
5404 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
5405             Bruno Haible  <bruno@clisp.org>
5406
5407         Advertise for the Git server instead of the CVS server.
5408         * doc/gnulib-intro.texi (Steady Development): Mention the Git
5409         repository instead of the CVS one.
5410         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
5411         about all VCS systems generically.
5412         * doc/gnulib.texi (Introduction): Capitalize `Git'.
5413
5414 2007-10-04  Bruno Haible  <bruno@clisp.org>
5415
5416         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
5417         means.
5418         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
5419
5420 2007-10-04  Bruno Haible  <bruno@clisp.org>
5421
5422         * modules/truncl-tests: New file.
5423         * tests/test-truncl.c: New file.
5424
5425         * modules/truncl: New file.
5426         * lib/truncl.c: New file.
5427         * m4/truncl.m4: New file.
5428         * lib/math.in.h (truncl): New declaration.
5429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
5430         HAVE_DECL_TRUNCL.
5431         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
5432         HAVE_DECL_TRUNCL.
5433         * doc/functions/truncl.texi: Mention the 'truncl' module.
5434
5435 2007-10-04  Bruno Haible  <bruno@clisp.org>
5436
5437         * modules/truncf-tests: New file.
5438         * tests/test-truncf.c: New file.
5439
5440         * modules/truncf: New file.
5441         * lib/trunc.c: Make paramerizable through USE_* macros.
5442         * lib/truncf.c: New file.
5443         * m4/truncf.m4: New file.
5444         * lib/math.in.h (truncf): New declaration.
5445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
5446         HAVE_DECL_TRUNCF.
5447         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
5448         HAVE_DECL_TRUNCF.
5449         * doc/functions/truncf.texi: Mention the 'truncf' module.
5450
5451 2007-10-03  Bruno Haible  <bruno@clisp.org>
5452
5453         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
5454         augmentation also for tests modules.
5455         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
5456         * modules/atexit-tests (Makefile.am): Likewise.
5457         * modules/binary-io-tests (Makefile.am): Likewise.
5458         * modules/c-strcase-tests (Makefile.am): Likewise.
5459         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
5460         * modules/canonicalize-tests (Makefile.am): Likewise.
5461         * modules/closein-tests (Makefile.am): Likewise.
5462         * modules/fprintf-posix-tests (Makefile.am): Likewise.
5463         * modules/freadahead-tests (Makefile.am): Likewise.
5464         * modules/fseek-tests (Makefile.am): Likewise.
5465         * modules/fseeko-tests (Makefile.am): Likewise.
5466         * modules/ftell-tests (Makefile.am): Likewise.
5467         * modules/ftello-tests (Makefile.am): Likewise.
5468         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
5469         * modules/isnanl-tests (Makefile.am): Likewise.
5470         * modules/lseek-tests (Makefile.am): Likewise.
5471         * modules/mbscasecmp-tests (Makefile.am): Likewise.
5472         * modules/mbscasestr-tests (Makefile.am): Likewise.
5473         * modules/mbschr-tests (Makefile.am): Likewise.
5474         * modules/mbscspn-tests (Makefile.am): Likewise.
5475         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
5476         * modules/mbspbrk-tests (Makefile.am): Likewise.
5477         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
5478         * modules/mbsrchr-tests (Makefile.am): Likewise.
5479         * modules/mbsspn-tests (Makefile.am): Likewise.
5480         * modules/mbsstr-tests (Makefile.am): Likewise.
5481         * modules/printf-posix-tests (Makefile.am): Likewise.
5482         * modules/snprintf-posix-tests (Makefile.am): Likewise.
5483         * modules/sprintf-posix-tests (Makefile.am): Likewise.
5484         * modules/tsearch-tests (Makefile.am): Likewise.
5485         * modules/uniname/uniname-tests (Makefile.am): Likewise.
5486         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
5487         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
5488         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
5489         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
5490         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
5491         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
5492         * modules/vprintf-posix-tests (Makefile.am): Likewise.
5493         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
5494         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
5495         * modules/xstrtoimax-tests (Makefile.am): Likewise.
5496         * modules/xstrtol-tests (Makefile.am): Likewise.
5497         * modules/xstrtoumax-tests (Makefile.am): Likewise.
5498         * modules/yesno-tests (Makefile.am): Likewise.
5499
5500 2007-10-03  Bruno Haible  <bruno@clisp.org>
5501
5502         * modules/trunc-tests: New file.
5503         * tests/test-trunc.c: New file.
5504
5505         * modules/trunc: New file.
5506         * lib/trunc.c: New file.
5507         * m4/trunc.m4: New file.
5508         * lib/math.in.h (trunc): New declaration.
5509         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
5510         HAVE_DECL_TRUNC.
5511         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
5512         HAVE_DECL_TRUNC.
5513         * doc/functions/trunc.texi: Mention the 'trunc' module.
5514
5515 2007-10-03  Bruno Haible  <bruno@clisp.org>
5516
5517         * tests/test-fpending.c: New file, mostly copied
5518         from coreutils/lib/t-fpending.c.
5519         * modules/fpending-tests: New file.
5520
5521 2007-10-03  Bruno Haible  <bruno@clisp.org>
5522
5523         Port the stdio extensions to QNX (untested).
5524         * lib/fseterr.c (fseterr): Add support for QNX.
5525         * lib/fbufmode.c (fbufmode): Likewise.
5526         * lib/freadable.c (freadable): Likewise.
5527         * lib/fwritable.c (fwritable): Likewise.
5528         * lib/freading.c (freading): Likewise.
5529         * lib/fwriting.c (fwriting): Likewise.
5530         * lib/freadahead.c (freadahed): Likewise.
5531         * lib/fpurge.c (fpurge): Likewise.
5532         * lib/fseeko.c (rpl_fseeko): Likewise.
5533
5534 2007-10-03  Bruno Haible  <bruno@clisp.org>
5535             Jim Meyering  <jim@meyering.net>
5536             Eric Blake  <ebb9@byu.net>
5537
5538         * doc/relocatable.texi: Use @command instead of @program.
5539
5540 2007-10-02  Jim Meyering  <jim@meyering.net>
5541
5542         Perform one more "_.h" -> ".in.h" substitution.
5543         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
5544         instead of unistd_.h here, too.
5545
5546 2007-10-01  Bruno Haible  <bruno@clisp.org>
5547
5548         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
5549         Needed for the alloca-opt module.
5550
5551 2007-09-30  Bruno Haible  <bruno@clisp.org>
5552
5553         * lib/alloca.in.h: Renamed from lib/alloca_.h.
5554         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
5555         alloca_.h.
5556         * lib/argz.in.h: Renamed from lib/argz_.h.
5557         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
5558         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
5559         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
5560         byteswap_.h.
5561         * lib/dirent.in.h: Renamed from lib/dirent_.h.
5562         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
5563         dirent_.h.
5564         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
5565         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
5566         fcntl_.h.
5567         * lib/float.in.h: Renamed from lib/float_.h.
5568         * modules/float (Files, Makefile.am): Use float.in.h instead of
5569         float_.h.
5570         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
5571         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
5572         fnmatch_.h.
5573         * lib/getopt.in.h: Renamed from lib/getopt_.h.
5574         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
5575         getopt_.h.
5576         * lib/glob.in.h: Renamed from lib/glob_.h.
5577         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
5578         * lib/iconv.in.h: Renamed from lib/iconv_.h.
5579         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
5580         iconv_.h.
5581         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
5582         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
5583         inttypes_.h.
5584         * lib/locale.in.h: Renamed from lib/locale_.h.
5585         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
5586         locale_.h.
5587         * lib/math.in.h: Renamed from lib/math_.h.
5588         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
5589         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
5590         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
5591         of netinet_in_.h. Add dependency.
5592         * lib/poll.in.h: Renamed from lib/poll_.h.
5593         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
5594         * lib/search.in.h: Renamed from lib/search_.h.
5595         * modules/search (Files, Makefile.am): Use search.in.h instead of
5596         search_.h.
5597         * lib/signal.in.h: Renamed from lib/signal_.h.
5598         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
5599         _signal.h.
5600         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
5601         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
5602         stdbool_.h.
5603         * lib/stdint.in.h: Renamed from lib/stdint_.h.
5604         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
5605         stdint_.h.
5606         * lib/stdio.in.h: Renamed from lib/stdio_.h.
5607         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
5608         stdio_.h.
5609         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
5610         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
5611         stdlib_.h.
5612         * lib/string.in.h: Renamed from lib/string_.h.
5613         * modules/string (Files, Makefile.am): Use string.in.h instead of
5614         string_.h.
5615         * doc/gnulib-tool.texi (Initial import): Update.
5616         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
5617         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
5618         of sys_select_.h. Add dependency.
5619         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
5620         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
5621         of sys_socket_.h.
5622         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
5623         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
5624         sys_stat_.h.
5625         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
5626         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
5627         sys_time_.h.
5628         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
5629         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
5630         sysexits_.h.
5631         * lib/time.in.h: Renamed from lib/time_.h.
5632         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
5633         * lib/unistd.in.h: Renamed from lib/unistd_.h.
5634         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
5635         unistd_.h.
5636         * lib/wchar.in.h: Renamed from lib/wchar_.h.
5637         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
5638         wchar_.h.
5639         * lib/wctype.in.h: Renamed from lib/wctype_.h.
5640         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
5641         wctype_.h.
5642         * build-aux/bootstrap (slurp): Update.
5643         * lib/.cppi-disable: Update.
5644
5645 2007-09-30  Bruno Haible  <bruno@clisp.org>
5646
5647         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
5648         Needed on BeOS.
5649
5650 2007-09-30  Bruno Haible  <bruno@clisp.org>
5651
5652         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
5653
5654 2007-09-29  Bruno Haible  <bruno@clisp.org>
5655
5656         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
5657
5658 2007-09-29  Bruno Haible  <bruno@clisp.org>
5659
5660         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
5661         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
5662         * build-aux/install-reloc: Compile also areadlink.c.
5663         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
5664
5665 2007-09-29  Bruno Haible  <bruno@clisp.org>
5666
5667         * gnulib-tool (func_emit_initmacro_done): Indentation.
5668
5669 2007-09-29  Bruno Haible  <bruno@clisp.org>
5670
5671         * README: Add CVS checkout update instructions.
5672         Info from Bob Proulx <bob@proulx.com>.
5673
5674 2007-09-28  Eric Blake  <ebb9@byu.net>
5675
5676         Provide move-if-change.
5677         * build-aux/move-if-change: New file, based on best practice
5678         rather than any canonical upstream location.
5679
5680 2007-09-28  Jim Meyering  <jim@meyering.net>
5681
5682         Fix canonicalize loop-detection corner case.
5683         Do not attempt to stat the symlink values stored via seen_triple.
5684         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
5685         on linux-2.6.18, (but not 2.6.22).
5686         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
5687         triple_compare.  The former compares dev,ino,filename, while the latter
5688         would actually stat dirname(filename) when dev and ino were equal.
5689         * lib/hash-triple.c: Install <string.h>.
5690         (STREQ): Define.
5691         (triple_compare_ino_str): New function.
5692         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
5693
5694 2007-09-28  Eric Blake  <ebb9@byu.net>
5695
5696         Enforce that AC_REPLACE_FUNCS files exist.
5697         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
5698         override check for typos.
5699
5700         Fix test-closein on Solaris 10.
5701         * tests/test-closein.c (main): Don't assume stdin can be inherited
5702         closed on all systems.
5703         * tests/test-closein.sh: Likewise.
5704         Reported by Piotr Tarnowski.
5705
5706 2007-09-28  Jim Meyering  <jim@meyering.net>
5707
5708         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
5709
5710 2007-09-27  Jim Meyering  <jim@meyering.net>
5711
5712         canonicalize: Avoid a false-positive cycle failure.
5713         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
5714         Sort.  Remove cycle-check.
5715         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
5716         not cycle-check.h.
5717         (seen_triple): New function.
5718         (canonicalize_filename_mode): Use it instead of cycle-check.
5719         * tests/test-canonicalize.c: Add a test for this bug.
5720         * tests/test-canonicalize.sh: Set up and run the test.
5721
5722         New module, file-set, from coreutils.
5723         * modules/file-set: Define it.
5724         * lib/file-set.c, lib/file-set.h: Implement.
5725
5726         New module, hash-triple, from coreutils.
5727         * modules/hash-triple: Define it.
5728         * lib/hash-triple.c, lib/hash-triple.h: Implement.
5729
5730 2007-09-25  Eric Blake  <ebb9@byu.net>
5731
5732         Fix strerror on Interix.
5733         * lib/string_.h (strerror): Declare replacement.
5734         * doc/functions/strerror.texi (strerror): Document the Interix
5735         shortcoming.
5736         * modules/string (Makefile.am): Support new hooks.
5737         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
5738         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
5739         gl_FUNC_STRERROR_SEPARATE.
5740         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
5741         * lib/strerror.c (rpl_strerror): Provide replacement.
5742         * modules/strerror (Depends-on): Add string.
5743         (configure.ac): Detect use of module.
5744         * tests/test-strerror.c: New file.
5745         * modules/strerror-tests: New test module.
5746         * modules/argp (Depends-on): Add strerror.
5747         * modules/error (Depends-on): Likewise.
5748         Reported by Martin Koeppe.
5749
5750 2007-09-24  Bruno Haible  <bruno@clisp.org>
5751
5752         * README: Update git instructions.
5753
5754 2007-09-24  Eric Blake  <ebb9@byu.net>
5755
5756         Revert fpending breakage from 2007-09-08.
5757         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
5758         __fpending.c.
5759
5760 2007-09-24  Jim Meyering  <jim@meyering.net>
5761
5762         filenamecat.c: Add a test.
5763         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
5764         showing how the function works when DIR is the empty string.
5765
5766 2007-09-21  Simon Josefsson  <simon@josefsson.org>
5767
5768         * tests/test-canonicalize.sh: Turn on executable bit.
5769
5770 2007-09-19  Eric Blake  <ebb9@byu.net>
5771
5772         * README: Update CVS instructions.
5773
5774 2007-09-18  Bruno Haible  <bruno@clisp.org>
5775
5776         * modules/areadlink: New file.
5777         * lib/areadlink.h (areadlink): New declaration.
5778         * lib/areadlink.c: New file, based on lib/xreadlink.c.
5779
5780 2007-09-17  Jim Meyering  <jim@meyering.net>
5781
5782         * lib/savewd.c (ESTALE) [!defined]: Define.
5783         Reported to be required on Interix by Martin Koeppe.
5784
5785 2007-09-17  Bruno Haible  <bruno@clisp.org>
5786
5787         * gnulib-tool (func_version): Use $version.
5788
5789 2007-09-16  Bruno Haible  <bruno@clisp.org>
5790
5791         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
5792         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
5793         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
5794         Reported by Greg Schafer <gschafer@zip.com.au>.
5795
5796 2007-09-15  Bruno Haible  <bruno@clisp.org>
5797
5798         * gnulib-tool (sed): Try a little harder to make bash understand the
5799         alias.
5800         Reported by Bruce Korb <bruce.korb@gmail.com>.
5801
5802 2007-09-13  Eric Blake  <ebb9@byu.net>
5803
5804         * ChangeLog: Remove conflict markers.
5805
5806 2007-09-13  Simon Josefsson  <simon@josefsson.org>
5807
5808         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
5809         Reported by Bruno Haible <bruno@clisp.org>.
5810
5811 2007-09-12  Bruno Haible  <bruno@clisp.org>
5812
5813         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
5814         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
5815         is not defined.
5816
5817 2007-09-12  Eric Blake  <ebb9@byu.net>
5818
5819         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
5820         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
5821         Autoconf definition.
5822         * modules/euidaccess (Depends-on): Add extensions, for
5823         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
5824         * modules/fnmatch (Depends-on): Likewise.
5825         * modules/getaddrinfo (Depends-on): Likewise.
5826         * modules/getdelim (Depends-on): Likewise.
5827         * modules/getline (Depends-on): Likewise.
5828         * modules/getsubopt (Depends-on): Likewise.
5829         * modules/gettext (Depends-on): Likewise.
5830         * modules/group-member (Depends-on): Likewise.
5831         * modules/mbchar (Depends-on): Likewise.
5832         * modules/memmem (Depends-on): Likewise.
5833         * modules/mempcpy (Depends-on): Likewise.
5834         * modules/memrchr (Depends-on): Likewise.
5835         * modules/pagealign_alloc (Depends-on): Likewise.
5836         * modules/readutmp (Depends-on): Likewise.
5837         * modules/stpcpy (Depends-on): Likewise.
5838         * modules/stpncpy (Depends-on): Likewise.
5839         * modules/strchrnul (Depends-on): Likewise.
5840         * modules/strndup (Depends-on): Likewise.
5841         * modules/strsep (Depends-on): Likewise.
5842         * modules/strverscmp (Depends-on): Likewise.
5843         * modules/vasprintf (Depends-on): Likewise.
5844         * modules/wcwidth (Depends-on): Likewise.
5845         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
5846         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
5847         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
5848         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
5849         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
5850         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5851         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
5852         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
5853         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
5854         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
5855         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5856         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
5857         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
5858         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
5859         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
5860         * m4/readutmp.m4 (gl_READUTMP): Likewise.
5861         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5862         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
5863         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5864         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
5865         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
5866         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
5867         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
5868         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
5869         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
5870         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5871         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
5872         so that lock.m4 can be used in gettext without extensions module.
5873
5874 2007-09-11  Bruno Haible  <bruno@clisp.org>
5875
5876         * m4/isc-posix.m4: Remove file.
5877         Suggested by Eric Blake.
5878
5879 2007-09-11  Eric Blake  <ebb9@byu.net>
5880
5881         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
5882
5883 2007-09-10  Bruno Haible  <bruno@clisp.org>
5884
5885         * posix-modules: Fix typo in error message.
5886         Reported by Matt <mkraai@beckman.com>.
5887
5888 2007-09-09  Bruno Haible  <bruno@clisp.org>
5889
5890         * doc/functions/getdelim.texi: Update list of platforms lacking the
5891         function.
5892         * doc/functions/getline.texi: Likewise.
5893
5894 2007-09-09  Jim Meyering  <jim@meyering.net>
5895
5896         * lib/hash.c (hash_initialize): Detect calloc failure.
5897         Reported by Bruno Haible.
5898
5899 2007-09-09  Bruno Haible  <bruno@clisp.org>
5900
5901         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
5902         malloc or realloc fails.
5903
5904 2007-09-09  Bruno Haible  <bruno@clisp.org>
5905
5906         * modules/getcwd (Depends-on): Add malloc-posix.
5907         * modules/glob (Depends-on): Likewise.
5908         * modules/putenv (Depends-on): Likewise.
5909         * modules/strdup (Depends-on): Likewise.
5910         * modules/getdelim (Depends-on): Add realloc-posix.
5911         * modules/read-file (Depends-on): Likewise.
5912
5913 2007-09-09  Bruno Haible  <bruno@clisp.org>
5914
5915         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
5916         (gl_FUNC_MALLOC_POSIX): Require it.
5917         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
5918         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
5919         * modules/realloc (Files): Add m4/malloc.m4.
5920         * modules/calloc (Files): Likewise.
5921
5922 2007-09-09  Bruno Haible  <bruno@clisp.org>
5923
5924         * modules/malloc-posix: New file.
5925         * modules/malloc (Depends-on): Add malloc-posix.
5926         * lib/malloc.c: Include errno.h.
5927         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
5928         and a POSIX-compatible malloc into a single function. Set ENOMEM
5929         when returning NULL.
5930         * m4/malloc.m4: New file.
5931         * doc/functions/malloc.texi: Mention the malloc-posix module.
5932         * lib/stdlib_.h (malloc): New declaration.
5933         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
5934         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
5935         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
5936         and HAVE_MALLOC_POSIX.
5937
5938 2007-09-09  Bruno Haible  <bruno@clisp.org>
5939
5940         * modules/realloc-posix: New file.
5941         * modules/realloc (Depends-on): Add realloc-posix.
5942         * lib/realloc.c: Include errno.h.
5943         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
5944         and a POSIX-compatible realloc into a single function. Set ENOMEM
5945         when returning NULL.
5946         * m4/realloc.m4: New file.
5947         * doc/functions/realloc.texi: Mention the realloc-posix module.
5948         * lib/stdlib_.h (realloc): New declaration.
5949         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
5950         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
5951         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
5952         and HAVE_REALLOC_POSIX.
5953
5954 2007-09-09  Bruno Haible  <bruno@clisp.org>
5955
5956         * modules/calloc-posix: New file.
5957         * modules/calloc (Depends-on): Add calloc-posix.
5958         * lib/calloc.c: Include errno.h.
5959         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
5960         and a POSIX-compatible calloc into a single function. Set ENOMEM
5961         when returning NULL.
5962         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
5963         * doc/functions/calloc.texi: Mention the calloc-posix module.
5964         * lib/stdlib_.h (calloc): New declaration.
5965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
5966         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
5967         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
5968         and HAVE_CALLOC_POSIX.
5969
5970 2007-09-09  Bruno Haible  <bruno@clisp.org>
5971
5972         Allow for modules to show an arbitrary notice.
5973         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
5974         * gnulib-tool: New option --extract-notice.
5975         (func_usage): Document it.
5976         (sed_extract_prog): Update.
5977         (func_get_notice): New function.
5978         (func_modules_notice): New function.
5979         (func_import, func_create_testdir): Invoke it.
5980         Suggested by Jim Meyering.
5981
5982 2007-09-09  Bruno Haible  <bruno@clisp.org>
5983
5984         * gnulib-tool: New options --verbose, --quiet.
5985         (func_usage): Document them.
5986         (verbose): New variable.
5987         (func_execute_command): New function.
5988         (func_import): Don't show the module list and the file list if
5989         $verbose < 0.
5990         (func_create_testdir): Likewise. Use func_execute_command.
5991         (func_create_megatestdir): Use func_execute_command.
5992
5993 2007-09-08  Bruno Haible  <bruno@clisp.org>
5994
5995         * gnulib-tool (func_import): Prefer rsync over wget when available,
5996         for fetching the PO files.
5997
5998 2007-09-08  Bruno Haible  <bruno@clisp.org>
5999
6000         * posix-modules: New file. Portions copied from gnulib-tool.
6001         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
6002
6003 2007-09-08  Jim Meyering  <jim@meyering.net>
6004
6005         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
6006         * lib/fpending.h: Rename from __fpending.h.
6007         * lib/fpending.c: Rename from __fpending.c.
6008         Include "fpending.h", not "__fpending.h".
6009         * lib/__fpending.h, lib/__fpending.c: Remove files.
6010         * modules/fpending (Files): Reflect new file names.
6011         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
6012
6013 2007-09-08  Bruno Haible  <bruno@clisp.org>
6014
6015         * m4/inttypes-h.m4: Remove stub file.
6016
6017 2007-09-07  Simon Josefsson  <simon@josefsson.org>
6018
6019         * doc/headers/stdint.texi: Discuss #include_next issue.
6020
6021 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
6022
6023         * build-aux/bootstrap: Remove obsolete comment about wget --help.
6024
6025 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6026
6027         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
6028         in variable name.
6029
6030 2007-09-03  Jim Meyering  <jim@meyering.net>
6031
6032         New module: git-version-gen.
6033         * modules/git-version-gen: New file.
6034
6035         Import changes from coreutils for bootstrap script.
6036
6037         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
6038
6039         bootstrap: uses rsync to download the .po files
6040         * build-aux/bootstrap (po_download_command_format): New global.
6041         (download_po_files): Use rsync.
6042         (update_po_files): Don't remove .po files after download,
6043         so future rsync runs can take advantage of the copies.
6044
6045         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
6046
6047         Solve the unnecessary-.po-file-regeneration problem once and for all.
6048         * build-aux/bootstrap (download_po_files): New function, renamed from
6049         get_translations.  Now, downloads, but doesn't update LINGUAS.
6050         (update_po_files): New function.
6051
6052         bootstrap: Ignore more.
6053         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
6054         uniwidth to e.g., lib/.gitignore.
6055         (slurp): Handle the sys_stat_.h -> sys mapping, too.
6056
6057         * build-aux/bootstrap: New setting: vc_ignore.
6058         (insert_sorted_if_absent): Create $file if absent.
6059         Adapt to new, possibly empty, list: $vc_ignore.
6060
6061         bootstrap: generate more ignorable names
6062         * build-aux/bootstrap (slurp): When generating ignorable names,
6063         also map .sin to .sed, .gperf to .c, and .y to .c.
6064
6065 2007-09-03  Jim Meyering  <jim@meyering.net>
6066
6067         * build-aux/git-version-gen: New file, from coreutils.  For details, see
6068         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
6069
6070 2007-09-02  Bruno Haible  <bruno@clisp.org>
6071
6072         Fix mis-recognition of 'mcs' on QNX 6.
6073         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
6074         output contains the string "Mono".
6075         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
6076         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
6077
6078 2007-09-01  Bruno Haible  <bruno@clisp.org>
6079
6080         Fix collision between uniwidth/* and linebreak modules.
6081         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
6082         u32_width): Remove declarations.
6083         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
6084         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
6085         streq3, streq2, streq1, streq0): Remove functions.
6086         (STREQ): Remove macro.
6087         (is_cjk_encoding): Remove function.
6088         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
6089         (uc_width, u8_width, u16_width, u32_width): Remove functions.
6090         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
6091         * NEWS: Document the change.
6092
6093 2007-09-01  Bruno Haible  <bruno@clisp.org>
6094
6095         * lib/streq.h: Add double-inclusion guard.
6096
6097 2007-09-01  Karl Berry  <karl@gnu.org>
6098
6099         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
6100
6101 2007-08-28  Jim Meyering  <jim@meyering.net>
6102
6103         Rename mreadlink_with_size to areadlink_with_size.
6104         * NEWS: Document the change.
6105         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
6106         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
6107         * lib/mreadlink.h: Rename this to...
6108         * lib/areadlink.h: ...this.
6109         * modules/mreadlink-with-size: Rename this to...
6110         * modules/areadlink-with-size: ...this.
6111         * lib/canonicalize.c: Reflect the renaming.
6112         * modules/canonicalize: Likewise.
6113
6114 2007-08-26  Bruno Haible  <bruno@clisp.org>
6115
6116         * gnulib-tool (func_import): When deciding which files to remove,
6117         consider also dangling symbolic links.
6118         Reported by Eric Blake.
6119
6120 2007-08-26  Bruno Haible  <bruno@clisp.org>
6121
6122         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
6123
6124 2007-08-23  Simon Josefsson  <simon@josefsson.org>
6125
6126         * lib/readline.c: Don't include getline.h, the prototype is now
6127         found in stdio.h.
6128
6129 2007-08-23  Jim Meyering  <jim@meyering.net>
6130
6131         Getdelim touchup.
6132         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
6133         around the funlockfile call, since funlockfile never sets errno.
6134         Don't set errno upon failed realloc.
6135
6136 2007-08-22  Eric Blake  <ebb9@byu.net>
6137
6138         Getline touchups.
6139         * lib/getdelim.c (getdelim): Revert regression that required *n to
6140         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
6141         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
6142         getdelim, rather than whether implementation is missing.
6143         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
6144         * lib/stdio_.h (getline): Also declare if replacement is
6145         required.
6146         * doc/functions/getdelim.texi: New file.
6147         * doc/functions/getline.texi: Likewise.
6148         * doc/gnulib.texi (Function Substitutes): Add new files.
6149         Reported by Bruno Haible.
6150
6151 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
6152
6153         * users.txt: Add Guile.
6154
6155 2007-08-22  Eric Blake  <ebb9@byu.net>
6156
6157         * tests/test-getdelim.c (main): Use remove, not unlink.
6158         * tests/test-getline.c (main): Likewise.
6159
6160         Move getline and getdelim into stdio.h, per POSIX 200x.
6161         * modules/getline (Files): Remove getline.h.
6162         (Depends-on): Add stdio.
6163         (configure.ac): Add module indicator.
6164         * modules/getdelim (Files): Remove getdelim.h.
6165         (Depends-on): Add stdio.
6166         (configure.ac): Add module indicator.
6167         * modules/stdio (Makefile.am): Work with new indicators.
6168         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
6169         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
6170         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6171         * lib/getdelim.h: Delete.
6172         * lib/getline.h: Delete.
6173         * lib/stdio_.h (getdelim, getline): Declare.
6174         * modules/getdelim-tests: New module.
6175         * modules/getline-tests: Likewise.
6176         * tests/test-getdelim.c: New file.
6177         * tests/test-getline.c: Likewise.
6178         * NEWS: Document the change.
6179         * lib/getline.c: Update choice of header.
6180         * lib/csharpcomp.c: Likewise.
6181         * lib/getpass.c: Likewise.
6182         * lib/javacomp.c: Likewise.
6183         * lib/javaversion.c: Likewise.
6184         * lib/yesno.c: Likewise.
6185         * lib/getdelim.c: Likewise.
6186         (getdelim): Set errno on failure, and avoid memory leak.
6187
6188 2007-08-19  Bruno Haible  <bruno@clisp.org>
6189
6190         * modules/closein (Depends-on): Add freadahead.
6191         * lib/closein.c: Include freadahead.h.
6192         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
6193         is zero.
6194
6195 2007-08-19  Bruno Haible  <bruno@clisp.org>
6196
6197         * modules/freadahead-tests: New file.
6198         * tests/test-freadahead.sh: New file.
6199         * tests/test-freadahead.c: New file.
6200
6201         * modules/freadahead: New file.
6202         * lib/freadahead.h: New file.
6203         * lib/freadahead.c: New file.
6204         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
6205         fbufmode, fpurge, freadable, fwritable.
6206
6207 2007-08-19  Eric Blake  <ebb9@byu.net>
6208
6209         Test yesno in combination with closein.
6210         * lib/yesno.c (yesno): Document use of stdin.
6211         * modules/yesno-tests (Files): New module.
6212         * tests/test-yesno.c (main): New file.
6213         * tests/test-yesno.sh: Likewise.
6214
6215 2007-08-19  Bruno Haible  <bruno@clisp.org>
6216
6217         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
6218         * lib/fseeko.c (rpl_fseeko): Likewise.
6219         * lib/fseterr.c (fseterr): Likewise.
6220
6221 2007-08-19  Bruno Haible  <bruno@clisp.org>
6222
6223         * tests/test-lseek.c (main): Disable a test for BeOS.
6224         * doc/functions/lseek.texi: Document the BeOS bug.
6225
6226 2007-08-19  Bruno Haible  <bruno@clisp.org>
6227             Eric Blake  <ebb9@byu.net>
6228
6229         * lib/lseek.c: Include <sys/stat.h>.
6230         (rpl_lseek): Add workaround code also for Unix platforms.
6231         Needed for BeOS.
6232         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
6233         * doc/functions/lseek.texi: Document BeOS definiency.
6234
6235 2007-08-18  Bruno Haible  <bruno@clisp.org>
6236
6237         * modules/fstrcmp-tests: New file.
6238         * tests/test-fstrcmp.c: New file.
6239
6240 2007-08-18  Bruno Haible  <bruno@clisp.org>
6241
6242         * modules/fstrcmp: New file, from GNU gettext with modifications.
6243         * lib/fstrcmp.h: New file, from GNU gettext.
6244         * lib/fstrcmp.c: New file, from GNU gettext.
6245         * MODULES.html.sh (String handling): Add fstrcmp.
6246
6247 2007-08-18  Bruno Haible  <bruno@clisp.org>
6248
6249         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
6250         'bool'.
6251         (diag, compareseq): Remove const from the ctxt argument.
6252         (USE_HEURISTIC): Undefine at the end.
6253
6254 2007-08-18  Jim Meyering  <jim@meyering.net>
6255
6256         New file: lib/idcache.h
6257         * NEWS: Mention the addition.
6258         * modules/idcache (Files): Add lib/idcache.h
6259         * lib/idcache.c: Include "idcache.h".
6260         Don't include <sys/types.h>.
6261         Add a FIXME comment.
6262         Move file-scoped "static" declarations to the top.
6263         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
6264
6265 2007-08-17  Bruno Haible  <bruno@clisp.org>
6266         and Paul Eggert  <eggert@cs.ucla.edu>
6267
6268         * MODULES.html.sh: Add diffseq.
6269         * modules/diffseq: New file.
6270         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
6271         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
6272
6273 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6274
6275         Import changes from coreutils for bootstrap script.
6276
6277         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
6278
6279         * build-aux/bootstrap (slurp): Work even in environments where
6280         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
6281         current code does not slurp files whose names start with ".", and
6282         this looks like it might be a troublesome area.
6283
6284         2007-07-11  Jim Meyering  <jim@meyering.net>
6285
6286         If there's a GPL vN copyright comment, require that N == 3.
6287
6288         2007-07-08  Jim Meyering  <jim@meyering.net>
6289
6290         Run the coreutils-specific code only if tests/Makefile.am.in exists.
6291         * build-aux/bootstrap (mam_template): Move definition out of loop.
6292
6293         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
6294
6295         * build-aux/bootstrap (symlink_to_dir): Rename function from
6296         symlink_to_gnulib.  Add a directory parameter.  Update all
6297         callers.
6298         (cp_mark_as_generated): Also check for -- and link to -- files in
6299         gl/.
6300
6301         2007-07-08  Jim Meyering  <jim@meyering.net>
6302
6303         Adapt to deeper hierarchy in gnulib.
6304         * build-aux/bootstrap (symlink_to_dir): If the destination
6305         directory doesn't exist, create it. This is required at least for
6306         "lib/uniwidth/cjk.h".
6307
6308         2007-05-15  Jim Meyering  <jim@meyering.net>
6309
6310         * build-aux/bootstrap: Now that generated Makefile.am files
6311         are no longer under version control, they must be created at
6312         bootstrap time.
6313
6314 2007-08-14  Ben Pfaff  <blp@gnu.org>
6315
6316         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
6317
6318 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6319
6320         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
6321         given the changes below.
6322         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
6323         even on hosts that have padding bits beyond the supported 64.
6324
6325 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6326
6327         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
6328         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
6329         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
6330         depends on it.
6331         (xstrtol_error): Remove.
6332         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
6333         but with a different signature.
6334         (ATTRIBUTE_NORETURN, __attribute__): New macros.
6335         * lib/xstrtol-error.c: Include exitfail.h.
6336         (xstrtol_fatal): New function, with a different signature from the
6337         old xstrtol_error, so that the caller need not worry about passing
6338         in an exit status, or about storage management of the option argument.
6339         (xstrtol_error): Now a static function.  Redo signature to
6340         implement xstrtol_fatal.  Output the correct number of hyphens in
6341         front of the option so that the caller need not worry about
6342         storage management.
6343         (N_): New macro.
6344         (_): Remove; not used now.
6345         * modules/xstrtol: Depend on getopt.
6346         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
6347         of old STRTOL_FATAL_ERROR macro.
6348         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
6349         of test program.
6350         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
6351         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
6352
6353 2007-08-08  Eric Blake  <ebb9@byu.net>
6354
6355         * lib/xstrtol-error.c: Add missing include.
6356
6357         Move xstrtol messages into gnulib domain, when --pobase is used.
6358         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
6359         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
6360         * modules/xstrtol (Files): Distribute new file.
6361         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
6362         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
6363         * tests/test-xstrtol.c: ...into new file.
6364         * tests/test-xstrtoul.c: Also test xstrtoul.
6365         * tests/test-xstrtoimax.c: Also test xstrtoimax.
6366         * tests/test-xstrtoumax.c: Also test xstrtoumax.
6367         * tests/test-xstrtol.sh: Drive the tests.
6368         * tests/test-xstrtoimax.sh: Likewise.
6369         * tests/test-xstrtoumax.sh: Likewise.
6370         * modules/xstrtol-tests: New module.
6371         * modules/xstrtoimax-tests: Likewise.
6372         * modules/xstrtoumax-tests: Likewise.
6373
6374 2007-08-08  Jim Meyering  <jim@meyering.net>
6375
6376         New function: mfile_name_concat.
6377         * lib/filenamecat.c (mfile_name_concat): New function, just like
6378         file_name_concat, but return NULL upon failure rather than exiting
6379         with a diagnostic.
6380         * lib/filenamecat.h: Declare it.
6381
6382 2007-08-07  Bruno Haible  <bruno@clisp.org>
6383
6384         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
6385         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
6386         warning from gcc.
6387         Reported by Eric Blake.
6388
6389 2007-08-07  Simon Josefsson  <simon@josefsson.org>
6390
6391         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
6392         * modules/crypto/arcfour (License): Likewise.
6393         * modules/crypto/des-tests (License): Likewise.
6394         * modules/crypto/gc-arctwo-tests (License): Likewise.
6395         * modules/crypto/gc-des-tests (License): Likewise.
6396         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
6397         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
6398         * modules/crypto/gc-md2-tests (License): Likewise.
6399         * modules/crypto/gc-md4-tests (License): Likewise.
6400         * modules/crypto/gc-md5-tests (License): Likewise.
6401         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
6402         * modules/crypto/gc-rijndael-tests (License): Likewise.
6403         * modules/crypto/gc-sha1-tests (License): Likewise.
6404         * modules/crypto/gc-tests (License): Likewise.
6405         * modules/crypto/hmac-md5 (License): Likewise.
6406         * modules/crypto/hmac-sha1 (License): Likewise.
6407         * modules/crypto/md2-tests (License): Likewise.
6408         * modules/crypto/md4-tests (License): Likewise.
6409         * modules/crypto/md5 (License): Likewise.
6410         * modules/crypto/rijndael (License): Likewise.
6411         * modules/crypto/sha1 (License): Likewise.
6412         * modules/memxor (License): Likewise.
6413
6414 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
6415         and Bruno Haible  <bruno@clisp.org>
6416
6417         * NEWS: Describe interface changes to human, xstrtol.
6418         * lib/human.h: Include <xstrtol.h>.
6419         (human_options): Return enum strtol_error, not int.  Remove
6420         bool arg; take int * instead.
6421         * lib/human.c: Don't include "gettext.h".
6422         (_): Remove; no longer used.
6423         Don't include <xstrtol.h>, since human.h does it.
6424         (human_options): Adjust to abovementioned interface changes.
6425         Do not report error to stderr; that's now the caller's
6426         responsibility.
6427         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
6428         interface change.
6429         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
6430         Str, Argument_type_string.  All uses changed.  Put " argument"
6431         in diagnostics to make them clearer.  Change wording of suffix
6432         message for clarity.
6433         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
6434         Argument_type_string.
6435         (STRTOL_FATAL_WARN): Remove; no longer used.
6436         * modules/human (Depends-on): Remove gettext-h.
6437
6438 2007-08-06  Simon Josefsson  <simon@josefsson.org>
6439
6440         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
6441
6442 2007-07-31  Bruno Haible  <bruno@clisp.org>
6443
6444         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
6445         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
6446         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
6447
6448 2007-07-31  Bruno Haible  <bruno@clisp.org>
6449
6450         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
6451         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
6452
6453 2007-07-30  Bruno Haible  <bruno@clisp.org>
6454
6455         * modules/base64 (License): Use the synonymous term "LGPLv2+".
6456         * modules/c-ctype (License): Likewise.
6457         * modules/c-strcase (License): Likewise.
6458         * modules/check-version (License): Likewise.
6459         * modules/iconv (License): Likewise.
6460         * modules/iconv_open (License): Likewise.
6461         * modules/read-file (License): Likewise.
6462         * modules/striconv (License): Likewise.
6463         * modules/strverscmp (License): Likewise.
6464         * modules/vasprintf (License): Likewise.
6465         * modules/crypto/des (License): Likewise.
6466         * modules/crypto/gc (License): Likewise.
6467         * modules/crypto/gc-arcfour (License): Likewise.
6468         * modules/crypto/gc-arctwo (License): Likewise.
6469         * modules/crypto/gc-des (License): Likewise.
6470         * modules/crypto/gc-hmac-md5 (License): Likewise.
6471         * modules/crypto/gc-hmac-sha1 (License): Likewise.
6472         * modules/crypto/gc-md2 (License): Likewise.
6473         * modules/crypto/gc-md4 (License): Likewise.
6474         * modules/crypto/gc-md5 (License): Likewise.
6475         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
6476         * modules/crypto/gc-random (License): Likewise.
6477         * modules/crypto/gc-rijndael (License): Likewise.
6478         * modules/crypto/gc-sha1 (License): Likewise.
6479         * modules/crypto/md2 (License): Likewise.
6480         * modules/crypto/md4 (License): Likewise.
6481
6482 2007-07-30  Jim Meyering  <jim@meyering.net>
6483
6484         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
6485         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
6486         it has valid stat data.  This bug would cause du not to count the
6487         sizes of inaccessible directories.
6488         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
6489         in <http://bugzilla.redhat.com/250077>.
6490
6491 2007-07-25  Peter O'Gorman  <peter@pogma.com>
6492             Bruno Haible  <bruno@clisp.org>
6493
6494         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
6495         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
6496         #include_next, gives a diagnostic about it, but reports no error in
6497         the exit code.
6498         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
6499
6500 2007-07-24  Ben Pfaff  <blp@gnu.org>
6501
6502         Improve name: "count-one-bits" is better than "popcount".
6503         * MODULES.html.sh: Update name.
6504         * lib/popcount.h: Renamed lib/count-one-bits.h.
6505         (popcount): Renamed count_one_bits.
6506         (popcountl): Renamed count_one_bits_l.
6507         (popcountll): Renamed count_one_bits_ll.
6508         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
6509         * modules/popcount: Renamed module/count-one-bits.
6510         * modules/popcount-tests: Renamed module/count-one-bits-tests.
6511         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
6512
6513 2007-07-23  Ben Pfaff  <blp@gnu.org>
6514
6515         * lib/popcount.h (popcount32): Reduce size of constants, to allow
6516         better code generation, and add U to large constants to avoid
6517         warnings, in non-GCC case.
6518         Suggested by Bruno Haible.
6519
6520 2007-07-23  Ben Pfaff  <blp@gnu.org>
6521
6522         * lib/popcount.h: Use verify_true instead of if...abort.
6523         * modules/popcount: Depend on verify module.
6524         Suggested by Jim Meyering.
6525
6526 2007-07-23  Bruno Haible  <bruno@clisp.org>
6527
6528         * gnulib-tool (func_import): Create a .cvsignore file also when the
6529         directory is not yet in CVS but the toplevel directory is. When
6530         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
6531         Reported by Karl Berry.
6532
6533 2007-07-22  Ben Pfaff  <blp@gnu.org>
6534
6535         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
6536         case.
6537         Suggested by Eric Blake.
6538
6539 2007-07-22  Ben Pfaff  <blp@gnu.org>
6540
6541         New module: popcount.
6542         * MODULES.html.sh: Add popcount.
6543         * modules/popcount: New file.
6544         * modules/popcount-tests: New file.
6545         * tests/test-popcount.c: New file.
6546         * lib/popcount.h: New file.
6547         * m4/popcount.m4: New file.
6548
6549 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6550
6551         * build-aux/announce-gen: Update to GPLv3.
6552
6553         * build-aux/config.guess: Update from config.
6554
6555 2007-07-21  Bruno Haible  <bruno@clisp.org>
6556
6557         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
6558         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
6559
6560 2007-07-20  Jim Meyering  <jim@meyering.net>
6561
6562         * check-module: Diagnose a self-dependency.
6563
6564 2007-07-19  Bruno Haible  <bruno@clisp.org>
6565
6566         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
6567         empty.
6568         Reported by Eric Blake.
6569
6570 2007-07-18  Bruno Haible  <bruno@clisp.org>
6571
6572         * gnulib-tool: New options --po-base, --po-domain.
6573         (func_usage): Document them.
6574         (pobase, po_domain): New variables.
6575         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
6576         DEFAULT_TEXT_DOMAIN.
6577         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
6578         (func_import): Consider pobase and po_domain. Create a po/ directory.
6579         (func_create_testdir): Set pobase and po_domain to empty.
6580         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
6581         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
6582
6583 2007-07-18  Bruno Haible  <bruno@clisp.org>
6584
6585         * gnulib-tool (func_get_automake_snippet): Synthesize also an
6586         EXTRA_DIST augmentation for files in build-aux/.
6587
6588 2007-07-16  Bruno Haible  <bruno@clisp.org>
6589
6590         * modules/lseek (License): Use the synonymous term "LGPLv2+".
6591         * modules/getdelim (License): Likewise.
6592
6593 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6594
6595         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
6596         * modules/d-type (License): Likewise.
6597         * modules/extensions (License): Likewise.
6598         * modules/fnmatch (License): Likewise.
6599         * modules/fseeko (License): Likewise.
6600         * modules/getaddrinfo (License): Likewise.
6601         * modules/getline (License): Likewise.
6602         * modules/getlogin_r (License): Likewise.
6603         * modules/getpass (License): Likewise.
6604         * modules/gettimeofday (License): Likewise.
6605         * modules/glob (License): Likewise.
6606         * modules/inet_ntop (License): Likewise.
6607         * modules/malloc (License): Likewise.
6608         * modules/malloca (License): Likewise.
6609         * modules/memmem (License): Likewise.
6610         * modules/mempcpy (License): Likewise.
6611         * modules/memset (License): Likewise.
6612         * modules/minmax (License): Likewise.
6613         * modules/mktime (License): Likewise.
6614         * modules/netinet_in (License): Likewise.
6615         * modules/pathmax (License): Likewise.
6616         * modules/poll (License): Likewise.
6617         * modules/regex (License): Likewise.
6618         * modules/snprintf (License): Likewise.
6619         * modules/stdbool (License): Likewise.
6620         * modules/stdint (License): Likewise.
6621         * modules/stdio (License): Likewise.
6622         * modules/strcase (License): Likewise.
6623         * modules/strcasestr (License): Likewise.
6624         * modules/strdup (License): Likewise.
6625         * modules/string (License): Likewise.
6626         * modules/strndup (License): Likewise.
6627         * modules/strnlen (License): Likewise.
6628         * modules/strpbrk (License): Likewise.
6629         * modules/strptime (License): Likewise.
6630         * modules/strsep (License): Likewise.
6631         * modules/sys_select (License): Likewise.
6632         * modules/sys_socket (License): Likewise.
6633         * modules/sys_stat (License): Likewise.
6634         * modules/sys_time (License): Likewise.
6635         * modules/time (License): Likewise.
6636         * modules/time_r (License): Likewise.
6637         * modules/timegm (License): Likewise.
6638         * modules/unistd (License): Likewise.
6639         * modules/vsnprintf (License): Likewise.
6640         * modules/wctype (License): Likewise.
6641
6642 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6643
6644         * modules/argz (License): LGPLv2+.
6645
6646 2007-07-15  Karl Berry  <karl@gnu.org>
6647
6648         * doc/gnulib.texi: revise node structure per new fdl.texi.
6649
6650 2007-07-14  Bruno Haible  <bruno@clisp.org>
6651
6652         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
6653         the output file.
6654         * lib/uniname/uninames.h: Regenerated.
6655
6656 2007-07-14  Karl Berry  <karl@gnu.org>
6657
6658         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
6659         omitting sectioning and index commands.
6660
6661 2007-07-13  Bruno Haible  <bruno@clisp.org>
6662
6663         New gnulib-tool option --more-symlinks.
6664         * gnulib-tool (func_usage): Document --more-symlinks.
6665         (do_copyrights): New variable.
6666         Recognize option --more-symlinks.
6667         (func_import): Don't add a copyright notice transform to
6668         sed_transform_lib_file if do_copyrights is empty.
6669
6670 2007-07-13  Bruno Haible  <bruno@clisp.org>
6671
6672         * lib/vasnprintf.c (decimal_point_char): Define also if
6673         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
6674         && !NEED_PRINTF_DIRECTIVE_A.
6675         Reported by Clemens Koller <clemens.koller@anagramm.de> via
6676         Gary V. Vaughan <gary@gnu.org>.
6677
6678 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
6679
6680         * lib/inttypes_.h: Undo previous change, since it was fixed
6681         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
6682
6683 2007-07-13  Bruno Haible  <bruno@clisp.org>
6684
6685         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
6686         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
6687
6688 2007-07-13  Jim Meyering  <jim@meyering.net>
6689
6690         df: Don't fail for Tru64's "file-on-file mount".
6691         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
6692         so we fall through and use statfs instead.  Details here:
6693         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
6694         Reported by Albert Chin.
6695
6696 2007-07-13  Bruno Haible  <bruno@clisp.org>
6697
6698         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
6699         * modules/configmake (License): Likewise.
6700         * modules/gettext (License): Likewise.
6701         * modules/gettext-h (License): Likewise.
6702         * modules/include_next (License): Likewise.
6703         * modules/link-warning (License): Likewise.
6704         * modules/localcharset (License): Likewise.
6705         * modules/localename (License): Likewise.
6706         * modules/lock (License): Likewise.
6707         * modules/relocatable-lib-lgpl (License): Likewise.
6708         * modules/size_max (License): Likewise.
6709         * modules/vasnprintf (License): Likewise.
6710         * modules/wchar (License): Likewise.
6711         * modules/xsize (License): Likewise.
6712
6713 2007-07-13  Bruno Haible  <bruno@clisp.org>
6714
6715         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
6716         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
6717
6718 2007-07-12  Bruno Haible  <bruno@clisp.org>
6719
6720         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
6721         in the modules files.
6722
6723 2007-07-11  Karl Berry  <karl@gnu.org>
6724
6725         * MODULES.html.sh (func_module): use
6726          sed -e '\|^'"${includefile}"'$|d'
6727          instead of /.../d, to avoid errors on $includefile's containing /.
6728
6729 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
6730
6731         * gnulib-tool (func_import): Avoid duplication of --avoid
6732         statements
6733         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
6734         names to `_' in variable names.
6735
6736 2007-07-10  Eric Blake  <ebb9@byu.net>
6737
6738         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
6739         * NEWS: Document this change.
6740
6741 2007-07-08  Bruno Haible  <bruno@clisp.org>
6742
6743         Update to Unicode 5.0.
6744         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
6745         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
6746         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
6747         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
6748         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
6749         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
6750         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
6751         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
6752         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
6753         U+10A3F, U+1D242..U+1D244.
6754         (nonspacing_table_ind): Update.
6755         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
6756         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
6757
6758 2007-07-08  Bruno Haible  <bruno@clisp.org>
6759
6760         Update to Unicode 5.0.
6761         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
6762         code transform. Extend the name index field of unicode_name_to_code and
6763         unicode_code_to_name from 16 to 24 bits.
6764         * lib/uniname/uniname.c (unicode_character_name,
6765         unicode_name_character): Add the range 0x12xxx to the code transform.
6766         * lib/uniname/uninames.h: Regenerated.
6767         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
6768
6769 2007-07-07  Bruno Haible  <bruno@clisp.org>
6770
6771         * modules/wcwidth-tests: New file.
6772         * tests/test-wcwidth.c: New file.
6773
6774         Work around MacOS X wcwidth() bug.
6775         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
6776         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
6777         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
6778         original wcwidth in non-UTF-8 locales.
6779         * modules/wcwidth (Depends-on): Add localcharset, streq,
6780         uniwidth/width.
6781         * doc/functions/wcwidth.texi: Update.
6782
6783 2007-07-07  Bruno Haible  <bruno@clisp.org>
6784
6785         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
6786         (wcwidth): New declaration.
6787         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
6788         macros.
6789         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
6790         here. Prepare for creating <wchar.h> unconditionally.
6791         * modules/wchar (Depends-on): Add link-warning.
6792         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
6793         REPLACE_WCWIDTH, and GL_LINK_WARNING.
6794         * lib/wcwidth.h: Remove file.
6795         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
6796         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
6797         * modules/wcwidth (Files): Remove lib/wcwidth.h.
6798         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
6799         (Include): Replace wcwidth.h with <wchar.h>.
6800         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
6801         * lib/mbchar.h: Don't include wcwidth.h.
6802         * lib/mbswidth.c: Likewise.
6803         * NEWS: Mention the change.
6804
6805 2007-07-07  Bruno Haible  <bruno@clisp.org>
6806
6807         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
6808         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
6809         definition with an external declaration.
6810         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
6811         defined as a function. Remove AC_C_INLINE requirement.
6812         * modules/wcwidth (Files): Add lib/wcwidth.c.
6813         (Makefile.am): Remove redundant statement.
6814
6815 2007-07-07  Bruno Haible  <bruno@clisp.org>
6816
6817         * MODULES.html.sh (Unicode string functions): Add the new modules.
6818
6819         * tests/uniwidth/test-u32-strwidth.c: New file.
6820         * modules/uniwidth/u32-strwidth-tests: New file.
6821
6822         * lib/uniwidth/u32-strwidth.c: New file.
6823         * modules/uniwidth/u32-strwidth: New file.
6824
6825         * tests/uniwidth/test-u16-strwidth.c: New file.
6826         * modules/uniwidth/u16-strwidth-tests: New file.
6827
6828         * lib/uniwidth/u16-strwidth.c: New file.
6829         * modules/uniwidth/u16-strwidth: New file.
6830
6831         * tests/uniwidth/test-u8-strwidth.c: New file.
6832         * modules/uniwidth/u8-strwidth-tests: New file.
6833
6834         * lib/uniwidth/u8-strwidth.c: New file.
6835         * modules/uniwidth/u8-strwidth: New file.
6836
6837         * tests/uniwidth/test-u32-width.c: New file.
6838         * modules/uniwidth/u32-width-tests: New file.
6839
6840         * lib/uniwidth/u32-width.c: New file.
6841         * modules/uniwidth/u32-width: New file.
6842
6843         * tests/uniwidth/test-u16-width.c: New file.
6844         * modules/uniwidth/u16-width-tests: New file.
6845
6846         * lib/uniwidth/u16-width.c: New file.
6847         * modules/uniwidth/u16-width: New file.
6848
6849         * tests/uniwidth/test-u8-width.c: New file.
6850         * modules/uniwidth/u8-width-tests: New file.
6851
6852         * lib/uniwidth/u8-width.c: New file.
6853         * modules/uniwidth/u8-width: New file.
6854
6855         * tests/uniwidth/test-uc_width.c: New file.
6856         * modules/uniwidth/width-tests: New file.
6857
6858         * lib/uniwidth/width.c: New file, from GNU libiconv.
6859         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
6860         * modules/uniwidth/width: New file.
6861
6862         * lib/uniwidth.h: New file, from GNU libiconv.
6863         * modules/uniwidth/base: New file.
6864
6865 2007-07-07  Bruno Haible  <bruno@clisp.org>
6866
6867         * lib/uniname.h: New file, from GNU gettext.
6868         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
6869         * lib/uniname/uninames.h: New file, from GNU gettext.
6870         * lib/uniname/uniname.c: New file, from GNU gettext.
6871         * tests/uniname/test-uninames.sh: New file.
6872         * tests/uniname/test-uninames.c: New file, from GNU gettext.
6873         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
6874         * modules/uniname/base: New file.
6875         * modules/uniname/uniname: New file.
6876         * modules/uniname/uniname-tests: New file.
6877         * MODULES.html.sh (Unicode string functions): Add the new modules.
6878
6879 2007-07-06  Bruno Haible  <bruno@clisp.org>
6880
6881         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
6882
6883 2007-07-06  Bruno Haible  <bruno@clisp.org>
6884
6885         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
6886         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
6887         includes <cygwin/sys_time.h> which includes <sys/select.h> which
6888         include <sys/time.h>.
6889         Reported by Eric Blake.
6890
6891 2007-07-06  Eric Blake  <ebb9@byu.net>
6892
6893         Fix testing canonicalize on cygwin.
6894         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
6895         Revert patch from 2007-06-19.
6896         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
6897         canonicalize module is also in use.
6898         * tests/test-canonicalize.c: New file.
6899         * tests/test-canonicalize.sh: Likewise.
6900         * modules/canonicalize-tests: Likewise.
6901
6902 2007-07-06  Jim Meyering  <jim@meyering.net>
6903
6904         * lib/getugroups.c (getugroups): Detect getgrent failure.
6905         Adjust comment to reflect reality: this function may return -1.
6906
6907 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
6908
6909         * build-aux/bootstrap (TP_URL,get_translations): Update to use
6910         the new TP address.
6911         (usage): Fix typo
6912         (gnulib_mk): New variable.
6913
6914 2007-07-05  Jim Meyering  <jim@meyering.net>
6915
6916         Don't let endgrent clobber errno, no matter how improbable.
6917         * lib/getugroups.c (getugroups): Save and restore errno around
6918         endgrent call.
6919
6920         Close the group DB even when failing with 2^31 or more members.
6921         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
6922
6923 2007-07-04  Jim Meyering  <jim@meyering.net>
6924
6925         * lib/getugroups.h: New file.
6926         * lib/getugroups.c: Include "getugroups.h".
6927         Remove uses of "register" keyword.
6928         Move local variable, "cp", down into scope where used.
6929         Give "username" parameter the "const" attribute.
6930         * modules/getugroups (Files): Add lib/getugroups.h
6931
6932 2007-07-04  Karl Berry  <karl@gnu.org>
6933
6934         * MODULES.html.sh (func_all_modules): Complete rename of
6935         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
6936
6937 2007-07-02  Bruno Haible  <bruno@clisp.org>
6938
6939         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
6940         mode, when inttypes.h comes from gnulib.
6941         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
6942
6943 2007-07-02  Simon Josefsson  <simon@josefsson.org>
6944
6945         * NEWS: Mention lgpl module name change.
6946
6947         * modules/lgpl-2.1: Renamed from lgpl.
6948
6949         * NEWS: Mention gpl module name change.
6950
6951         * modules/gpl-3.0: New file, based on gpl-2.0.
6952
6953         * modules/gpl-2.0: Renamed from gpl.
6954
6955         * modules/gpl: Fix filename, doc/gpl.texi is now found at
6956         doc/gpl-2.0.texi.
6957
6958 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
6959
6960         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
6961         #define __STDC_LIMIT_MACROS temporarily while including
6962         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
6963         Problem reported by Joel E. Denny in
6964         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
6965
6966 2007-07-01  Bruno Haible  <bruno@clisp.org>
6967
6968         * lib/unistdio.h: New file.
6969         * lib/unistdio/u-asnprintf.h: New file.
6970         * lib/unistdio/u-asprintf.h: New file.
6971         * lib/unistdio/u-printf-args.c: New file.
6972         * lib/unistdio/u-printf-args.h: New file.
6973         * lib/unistdio/u-printf-parse.h: New file.
6974         * lib/unistdio/u-snprintf.h: New file.
6975         * lib/unistdio/u-sprintf.h: New file.
6976         * lib/unistdio/u-vasprintf.h: New file.
6977         * lib/unistdio/u-vsnprintf.h: New file.
6978         * lib/unistdio/u-vsprintf.h: New file.
6979         * lib/unistdio/ulc-asnprintf.c: New file.
6980         * lib/unistdio/ulc-asprintf.c: New file.
6981         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
6982         * lib/unistdio/ulc-printf-parse.c: New file.
6983         * lib/unistdio/ulc-snprintf.c: New file.
6984         * lib/unistdio/ulc-sprintf.c: New file.
6985         * lib/unistdio/ulc-vasnprintf.c: New file.
6986         * lib/unistdio/ulc-vasprintf.c: New file.
6987         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
6988         * lib/unistdio/ulc-vsnprintf.c: New file.
6989         * lib/unistdio/ulc-vsprintf.c: New file.
6990         * lib/unistdio/u8-asnprintf.c: New file.
6991         * lib/unistdio/u8-asprintf.c: New file.
6992         * lib/unistdio/u8-printf-parse.c: New file.
6993         * lib/unistdio/u8-snprintf.c: New file.
6994         * lib/unistdio/u8-sprintf.c: New file.
6995         * lib/unistdio/u8-vasnprintf.c: New file.
6996         * lib/unistdio/u8-vasprintf.c: New file.
6997         * lib/unistdio/u8-vsnprintf.c: New file.
6998         * lib/unistdio/u8-vsprintf.c: New file.
6999         * lib/unistdio/u8-u8-asnprintf.c: New file.
7000         * lib/unistdio/u8-u8-asprintf.c: New file.
7001         * lib/unistdio/u8-u8-snprintf.c: New file.
7002         * lib/unistdio/u8-u8-sprintf.c: New file.
7003         * lib/unistdio/u8-u8-vasnprintf.c: New file.
7004         * lib/unistdio/u8-u8-vasprintf.c: New file.
7005         * lib/unistdio/u8-u8-vsnprintf.c: New file.
7006         * lib/unistdio/u8-u8-vsprintf.c: New file.
7007         * lib/unistdio/u16-asnprintf.c: New file.
7008         * lib/unistdio/u16-asprintf.c: New file.
7009         * lib/unistdio/u16-printf-parse.c: New file.
7010         * lib/unistdio/u16-snprintf.c: New file.
7011         * lib/unistdio/u16-sprintf.c: New file.
7012         * lib/unistdio/u16-vasnprintf.c: New file.
7013         * lib/unistdio/u16-vasprintf.c: New file.
7014         * lib/unistdio/u16-vsnprintf.c: New file.
7015         * lib/unistdio/u16-vsprintf.c: New file.
7016         * lib/unistdio/u16-u16-asnprintf.c: New file.
7017         * lib/unistdio/u16-u16-asprintf.c: New file.
7018         * lib/unistdio/u16-u16-snprintf.c: New file.
7019         * lib/unistdio/u16-u16-sprintf.c: New file.
7020         * lib/unistdio/u16-u16-vasnprintf.c: New file.
7021         * lib/unistdio/u16-u16-vasprintf.c: New file.
7022         * lib/unistdio/u16-u16-vsnprintf.c: New file.
7023         * lib/unistdio/u16-u16-vsprintf.c: New file.
7024         * lib/unistdio/u32-asnprintf.c: New file.
7025         * lib/unistdio/u32-asprintf.c: New file.
7026         * lib/unistdio/u32-printf-parse.c: New file.
7027         * lib/unistdio/u32-snprintf.c: New file.
7028         * lib/unistdio/u32-sprintf.c: New file.
7029         * lib/unistdio/u32-vasnprintf.c: New file.
7030         * lib/unistdio/u32-vasprintf.c: New file.
7031         * lib/unistdio/u32-vsnprintf.c: New file.
7032         * lib/unistdio/u32-vsprintf.c: New file.
7033         * lib/unistdio/u32-u32-asnprintf.c: New file.
7034         * lib/unistdio/u32-u32-asprintf.c: New file.
7035         * lib/unistdio/u32-u32-snprintf.c: New file.
7036         * lib/unistdio/u32-u32-sprintf.c: New file.
7037         * lib/unistdio/u32-u32-vasnprintf.c: New file.
7038         * lib/unistdio/u32-u32-vasprintf.c: New file.
7039         * lib/unistdio/u32-u32-vsnprintf.c: New file.
7040         * lib/unistdio/u32-u32-vsprintf.c: New file.
7041         * tests/unistdio/test-ulc-asnprintf1.c: New file.
7042         * tests/unistdio/test-ulc-asnprintf1.h: New file.
7043         * tests/unistdio/test-ulc-printf1.h: New file.
7044         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
7045         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
7046         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
7047         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
7048         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
7049         * tests/unistdio/test-ulc-vasprintf1.c: New file.
7050         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
7051         * tests/unistdio/test-ulc-vsprintf1.c: New file.
7052         * tests/unistdio/test-u8-asnprintf1.c: New file.
7053         * tests/unistdio/test-u8-asnprintf1.h: New file.
7054         * tests/unistdio/test-u8-printf1.h: New file.
7055         * tests/unistdio/test-u8-vasnprintf1.c: New file.
7056         * tests/unistdio/test-u8-vasnprintf2.c: New file.
7057         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
7058         * tests/unistdio/test-u8-vasnprintf3.c: New file.
7059         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
7060         * tests/unistdio/test-u8-vasprintf1.c: New file.
7061         * tests/unistdio/test-u8-vsnprintf1.c: New file.
7062         * tests/unistdio/test-u8-vsprintf1.c: New file.
7063         * tests/unistdio/test-u16-asnprintf1.c: New file.
7064         * tests/unistdio/test-u16-asnprintf1.h: New file.
7065         * tests/unistdio/test-u16-printf1.h: New file.
7066         * tests/unistdio/test-u16-vasnprintf1.c: New file.
7067         * tests/unistdio/test-u16-vasnprintf2.c: New file.
7068         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
7069         * tests/unistdio/test-u16-vasnprintf3.c: New file.
7070         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
7071         * tests/unistdio/test-u16-vasprintf1.c: New file.
7072         * tests/unistdio/test-u16-vsnprintf1.c: New file.
7073         * tests/unistdio/test-u16-vsprintf1.c: New file.
7074         * tests/unistdio/test-u32-asnprintf1.c: New file.
7075         * tests/unistdio/test-u32-asnprintf1.h: New file.
7076         * tests/unistdio/test-u32-printf1.h: New file.
7077         * tests/unistdio/test-u32-vasnprintf1.c: New file.
7078         * tests/unistdio/test-u32-vasnprintf2.c: New file.
7079         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
7080         * tests/unistdio/test-u32-vasnprintf3.c: New file.
7081         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
7082         * tests/unistdio/test-u32-vasprintf1.c: New file.
7083         * tests/unistdio/test-u32-vsnprintf1.c: New file.
7084         * tests/unistdio/test-u32-vsprintf1.c: New file.
7085         * modules/unistdio/base: New file.
7086         * modules/unistdio/u-printf-args: New file.
7087         * modules/unistdio/ulc-asnprintf: New file.
7088         * modules/unistdio/ulc-asprintf: New file.
7089         * modules/unistdio/ulc-fprintf: New file.
7090         * modules/unistdio/ulc-printf-parse: New file.
7091         * modules/unistdio/ulc-snprintf: New file.
7092         * modules/unistdio/ulc-sprintf: New file.
7093         * modules/unistdio/ulc-vasnprintf: New file.
7094         * modules/unistdio/ulc-vasprintf: New file.
7095         * modules/unistdio/ulc-vfprintf: New file.
7096         * modules/unistdio/ulc-vsnprintf: New file.
7097         * modules/unistdio/ulc-vsprintf: New file.
7098         * modules/unistdio/u8-asnprintf: New file.
7099         * modules/unistdio/u8-asprintf: New file.
7100         * modules/unistdio/u8-printf-parse: New file.
7101         * modules/unistdio/u8-snprintf: New file.
7102         * modules/unistdio/u8-sprintf: New file.
7103         * modules/unistdio/u8-vasnprintf: New file.
7104         * modules/unistdio/u8-vasprintf: New file.
7105         * modules/unistdio/u8-vsnprintf: New file.
7106         * modules/unistdio/u8-vsprintf: New file.
7107         * modules/unistdio/u8-u8-asnprintf: New file.
7108         * modules/unistdio/u8-u8-asprintf: New file.
7109         * modules/unistdio/u8-u8-snprintf: New file.
7110         * modules/unistdio/u8-u8-sprintf: New file.
7111         * modules/unistdio/u8-u8-vasnprintf: New file.
7112         * modules/unistdio/u8-u8-vasprintf: New file.
7113         * modules/unistdio/u8-u8-vsnprintf: New file.
7114         * modules/unistdio/u8-u8-vsprintf: New file.
7115         * modules/unistdio/u16-asnprintf: New file.
7116         * modules/unistdio/u16-asprintf: New file.
7117         * modules/unistdio/u16-printf-parse: New file.
7118         * modules/unistdio/u16-snprintf: New file.
7119         * modules/unistdio/u16-sprintf: New file.
7120         * modules/unistdio/u16-vasnprintf: New file.
7121         * modules/unistdio/u16-vasprintf: New file.
7122         * modules/unistdio/u16-vsnprintf: New file.
7123         * modules/unistdio/u16-vsprintf: New file.
7124         * modules/unistdio/u16-u16-asnprintf: New file.
7125         * modules/unistdio/u16-u16-asprintf: New file.
7126         * modules/unistdio/u16-u16-snprintf: New file.
7127         * modules/unistdio/u16-u16-sprintf: New file.
7128         * modules/unistdio/u16-u16-vasnprintf: New file.
7129         * modules/unistdio/u16-u16-vasprintf: New file.
7130         * modules/unistdio/u16-u16-vsnprintf: New file.
7131         * modules/unistdio/u16-u16-vsprintf: New file.
7132         * modules/unistdio/u32-asnprintf: New file.
7133         * modules/unistdio/u32-asprintf: New file.
7134         * modules/unistdio/u32-printf-parse: New file.
7135         * modules/unistdio/u32-snprintf: New file.
7136         * modules/unistdio/u32-sprintf: New file.
7137         * modules/unistdio/u32-vasnprintf: New file.
7138         * modules/unistdio/u32-vasprintf: New file.
7139         * modules/unistdio/u32-vsnprintf: New file.
7140         * modules/unistdio/u32-vsprintf: New file.
7141         * modules/unistdio/u32-u32-asnprintf: New file.
7142         * modules/unistdio/u32-u32-asprintf: New file.
7143         * modules/unistdio/u32-u32-snprintf: New file.
7144         * modules/unistdio/u32-u32-sprintf: New file.
7145         * modules/unistdio/u32-u32-vasnprintf: New file.
7146         * modules/unistdio/u32-u32-vasprintf: New file.
7147         * modules/unistdio/u32-u32-vsnprintf: New file.
7148         * modules/unistdio/u32-u32-vsprintf: New file.
7149         * modules/unistdio/ulc-asnprintf-tests: New file.
7150         * modules/unistdio/ulc-vasnprintf-tests: New file.
7151         * modules/unistdio/ulc-vasprintf-tests: New file.
7152         * modules/unistdio/ulc-vsnprintf-tests: New file.
7153         * modules/unistdio/ulc-vsprintf-tests: New file.
7154         * modules/unistdio/u8-asnprintf-tests: New file.
7155         * modules/unistdio/u8-vasnprintf-tests: New file.
7156         * modules/unistdio/u8-vasprintf-tests: New file.
7157         * modules/unistdio/u8-vsnprintf-tests: New file.
7158         * modules/unistdio/u8-vsprintf-tests: New file.
7159         * modules/unistdio/u16-asnprintf-tests: New file.
7160         * modules/unistdio/u16-vasnprintf-tests: New file.
7161         * modules/unistdio/u16-vasprintf-tests: New file.
7162         * modules/unistdio/u16-vsnprintf-tests: New file.
7163         * modules/unistdio/u16-vsprintf-tests: New file.
7164         * modules/unistdio/u32-asnprintf-tests: New file.
7165         * modules/unistdio/u32-vasnprintf-tests: New file.
7166         * modules/unistdio/u32-vasprintf-tests: New file.
7167         * modules/unistdio/u32-vsnprintf-tests: New file.
7168         * modules/unistdio/u32-vsprintf-tests: New file.
7169         * MODULES.html.sh (Unicode string functions): Add the new modules.
7170
7171 2007-07-01  Bruno Haible  <bruno@clisp.org>
7172
7173         * lib/sprintf.c (sprintf): Limit the available length estimation,
7174         to avoid address wraparound.
7175         * lib/vsprintf.c (vsprintf): Likewise.
7176         * modules/sprintf-posix (Dependencies): Add stdint.
7177         * modules/vsprintf-posix (Dependencies): Likewise.
7178
7179 2007-07-01  Bruno Haible  <bruno@clisp.org>
7180
7181         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
7182         Windows PATH as well. Conservative double-quoting. Comments.
7183
7184 2007-07-01  Bruno Haible  <bruno@clisp.org>
7185             Eric Blake  <ebb9@byu.net>
7186             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7187
7188         * gnulib-tool (self_abspathname): Fix algorithm to cope with
7189         empty components in $PATH, denoting '.'.
7190
7191 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7192
7193         * gnulib-tool: Fix indentation.
7194         (func_create_megatestdir): Likewise.
7195         Report by Bruno Haible.
7196
7197 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7198
7199         Sync from Automake.
7200         * build-aux/gnupload: Fix shell portability issues with for loops.
7201         Report by Karl Berry.
7202
7203 2007-06-29  Simon Josefsson  <simon@josefsson.org>
7204
7205         * build-aux/maint.mk (POURL): Use translationproject.org.
7206
7207 2007-06-27  Simon Josefsson  <simon@josefsson.org>
7208             Bruno Haible  <bruno@clisp.org>
7209
7210         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
7211         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
7212         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
7213         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
7214         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
7215
7216 2007-06-27  Bruno Haible  <bruno@clisp.org>
7217
7218         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
7219         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
7220
7221 2007-06-26  Karl Berry  <karl@gnu.org>
7222
7223         * MODULES.html.sh: remove xreadlink-with-size.
7224
7225 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
7226
7227         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
7228         method that I hope also handles the double-include problem noted
7229         by Bruno Haible in
7230         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
7231
7232 2007-06-23  Bruno Haible  <bruno@clisp.org>
7233
7234         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7235         Don't let the 'mostlyclean' target fail if the last subdirectory could
7236         not be removed.
7237         Reported by Karl Berry.
7238
7239 2007-06-23  Bruno Haible  <bruno@clisp.org>
7240
7241         * gnulib-tool (echo): Add a speedier workaround for ksh.
7242         * tests/test-echo.sh: Likewise.
7243
7244 2007-06-23  Bruno Haible  <bruno@clisp.org>
7245
7246         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
7247         * tests/test-echo.sh: Likewise.
7248
7249 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7250
7251         * gnulib-tool (IFS): Initialize early, so we don't set it to
7252         empty later.
7253         (self_abspathname): Rewrite algorithm to set it, reindent.
7254         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
7255         (func_create_megatestdir): Merge some sed scripts.
7256
7257 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
7258
7259         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
7260         exposed by Sun Studio 11 cc on Solaris 8.
7261
7262 2007-06-22  Bruno Haible  <bruno@clisp.org>
7263
7264         * gnulib-tool (echo): Ensure the echo primitive does not interpret
7265         backslashes.
7266         * tests/test-echo.sh: New file.
7267
7268 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7269
7270         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
7271         simplify `sed_replace_build_aux' scripts, they are portable but
7272         echoing them with `echo' is not.
7273         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
7274
7275 2007-06-21  Karl Berry  <karl@gnu.org>
7276
7277         * config/srclist.txt: guess we can't handle the licenses via
7278         srclist at the moment.
7279
7280 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
7281
7282         * MODULES.html.sh: Add include_next.
7283         * modules/include_next: New file.
7284
7285 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7286
7287         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
7288         INCLUDE_NEXT.
7289         (gl_CHECK_NEXT_HEADERS): New macro.
7290         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
7291         the obsolescent gl_ABSOLUTE_HEADER.
7292         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
7293         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
7294         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7295         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
7296         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
7297         * m4/math_h.m4 (gl_MATH_H): Likewise.
7298         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
7299         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7300         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7301         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7302         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
7303         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
7304         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
7305         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7306         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7307         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7308         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
7309         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
7310         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
7311         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7312         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7313         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
7314         * m4/inttypes.m4 (gl_INTTYPES_H): Define
7315         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
7316         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
7317         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
7318         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
7319         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
7320         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
7321         * lib/float_.h: Likewise.
7322         * lib/inttypes_.h: Likewise.
7323         * lib/math_.h: Likewise.
7324         * lib/search_.h: Likewise.
7325         * lib/signal_.h: Likewise.
7326         * lib/stdint_.h: Likewise.
7327         * lib/stdio_.h: Likewise.
7328         * lib/stdlib_.h: Likewise.
7329         * lib/string_.h: Likewise.
7330         * lib/sys_stat_.h: Likewise.
7331         * lib/sys_time_.h: Likewise.
7332         * lib/time_.h: Likewise.
7333         * lib/unistd_.h: Likewise.
7334         * lib/wchar_.h: Likewise.
7335         * lib/wctype_.h: Likewise.
7336         * lib/dirent_.h: Likewise.
7337         * lib/iconv_.h: Likewise.
7338         * lib/locale_.h: Likewise.
7339         * lib/netinet_in_.h: Likewise.
7340         * lib/sys_select_.h: Likewise.
7341         * lib/sys_socket_.h: Likewise.
7342         * lib/sysexits_.h: Likewise.
7343         * modules/fcntl (Depends-on): Depend on include_next, not
7344         absolute_header.
7345         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
7346         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
7347         * modules/fchdir: Likewise.
7348         * modules/float: Likewise.
7349         * modules/iconv_open: Likewise.
7350         * modules/inttypes: Likewise.
7351         * modules/locale: Likewise.
7352         * modules/math: Likewise.
7353         * modules/netinet_in: Likewise.
7354         * modules/search: Likewise.
7355         * modules/signal: Likewise.
7356         * modules/stdint: Likewise.
7357         * modules/stdio: Likewise.
7358         * modules/stdlib: Likewise.
7359         * modules/string: Likewise.
7360         * modules/sys_select: Likewise.
7361         * modules/sys_socket: Likewise.
7362         * modules/sys_stat: Likewise.
7363         * modules/sys_time: Likewise.
7364         * modules/sysexits: Likewise.
7365         * modules/time: Likewise.
7366         * modules/unistd: Likewise.
7367         * modules/wchar: Likewise.
7368         * modules/wctype: Likewise.
7369         * modules/sys_stat: Change maintainer to "all".
7370         * modules/unistd: Likewise.
7371
7372 2007-06-20  Karl Berry  <karl@gnu.org>
7373
7374         * config/srclist.txt: track www changes in license files.
7375
7376 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
7377
7378         * build-aux/bootstrap: Remove stray dot.
7379         Make sure build_aux settings are honored when linking
7380         gnulib_extra_files.
7381
7382 2007-06-19  Eric Blake  <ebb9@byu.net>
7383
7384         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
7385         Allow compilation on cygwin.
7386
7387 2007-06-19  Jim Meyering  <jim@meyering.net>
7388
7389         xreadlink-with-size: Remove module.  No longer used.
7390         Ex-callers now use xreadlink or mreadlink-with-size.
7391         * modules/xreadlink-with-size: Remove module.
7392         * lib/xreadlink-with-size.c: Remove file.
7393         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
7394         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
7395         just before the function definition *is* accurate.
7396
7397         Eliminate one way canonicalize_filename_mode could exit.
7398         * lib/canonicalize.c (canonicalize_filename_mode):
7399         Use mreadlink_with_size, not xreadlink_with_size.
7400
7401 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
7402
7403         Detect porting problems to FreeBSD/arm, which has time_t wider than
7404         long int.  Original problem reported for GNU diff by Xin Li in
7405         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
7406         * modules/getdate (Depends-on): Add intprops, verify.
7407         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
7408         is an integer type no wider than long int.
7409
7410 2007-06-18  Jim Meyering  <jim@meyering.net>
7411
7412         New module: mreadlink-with-size.
7413         * MODULES.html.sh: Add mreadlink-with-size.
7414         * modules/mreadlink-with-size: New module
7415         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
7416         not xreadlink-with-size.
7417         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
7418
7419 2007-06-16  Bruno Haible  <bruno@clisp.org>
7420
7421         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
7422         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
7423         Reported by Gary V. Vaughan <gary@gnu.org>.
7424
7425 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
7426
7427         Revamp lchown so that it lives in unistd.h where it belongs.
7428         * lib/lchown.h: Remove.
7429         * lib/dirchownmod.c: Don't include lib/lchown.h.
7430         * lib/fchownat.c: Likewise.
7431         * lib/openat.c: Likewise.
7432         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
7433         does not follow symlinks.
7434         (EOPNOTSUPP): Define if not defined.
7435         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
7436         is defined to 0.
7437         (lchown): New decl.
7438         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
7439         Do not check for lchown decl.
7440         Set REPLACE_LCHOWN.
7441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
7442         REPLACE_LCHOWN.
7443         * modules/chown: Make it clear it follows symlinks.
7444         * modules/lchown: Make it clear it doesn't follow symlinks.
7445         (Files): Remove lib/lchown.h
7446         (Depends-on): Add unistd.
7447         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
7448         (Include): Include <unistd.h>, not "lchown.h".
7449         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
7450         REPLACE_LCHOWN.
7451
7452 2007-06-15  Jim Meyering  <jim@meyering.net>
7453
7454         Change license (GPL to LGPL) of fsusage and dependents.
7455         * modules/fsusage (License): Change to LGPL.
7456         * modules/full-read (License): Likewise.
7457         * modules/full-write (License): Likewise.
7458         * modules/safe-read (License): Likewise.
7459         * modules/safe-write (License): Likewise.
7460
7461 2007-06-14  Ben Pfaff  <blp@gnu.org>
7462
7463         Missing part of allocsa -> malloca transition.
7464         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
7465         gl_MALLOCA.
7466
7467 2007-06-12  Bruno Haible  <bruno@clisp.org>
7468
7469         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
7470         to ia64, x86_64, i386.
7471         Reported by Eric Blake.
7472
7473 2007-06-12  Bruno Haible  <bruno@clisp.org>
7474
7475         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
7476         cross-compiling to x86_64.
7477
7478 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
7479
7480         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
7481         glitch reported by Ralf Wildenhues in
7482         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
7483
7484         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
7485         Vin Shelton.
7486
7487 2007-06-11  Bruno Haible  <bruno@clisp.org>
7488
7489         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
7490         replacement string.
7491         Reported by Eric Blake.
7492
7493 2007-06-10  Bruno Haible  <bruno@clisp.org>
7494
7495         Prepare vasnprintf code for use with Unicode strings.
7496         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
7497         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
7498         TYPE_U32_STRING.
7499         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
7500         a_u32_string variants.
7501         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
7502         * lib/printf-args.c: Don't include config.h and the specification
7503         header if PRINTF_FETCHARGS is already defined.
7504         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
7505         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
7506         TYPE_U16_STRING, TYPE_U32_STRING.
7507         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
7508         u16_directive, u16_directives, u32_directive, u32_directives): New
7509         types.
7510         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
7511         New declarations.
7512         * lib/printf-parse.c: Don't include config.h and the specification
7513         header if PRINTF_PARSE is already defined. Eliminate the set of
7514         parameters for WIDE_CHAR_VERSION; the user of this file must provide
7515         them now. Include c-ctype.h.
7516         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
7517         directive and CHAR_T_ONLY_ASCII.
7518         * lib/vasnprintf.c: Don't include config.h and the specification header
7519         if VASNPRINTF is already defined.
7520         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
7521         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
7522         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
7523         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
7524         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
7525         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
7526         code accordingly.
7527         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
7528         pad_ourselves also in this case, with the 'c' and 's' directives, and
7529         with a different notion of "width".
7530         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
7531
7532 2007-06-10  Bruno Haible  <bruno@clisp.org>
7533
7534         * modules/unistr/u32-mbsnlen: New file.
7535         * lib/unistr/u32-mbsnlen.c: New file.
7536
7537         * modules/unistr/u16-mbsnlen: New file.
7538         * lib/unistr/u16-mbsnlen.c: New file.
7539
7540         * modules/unistr/u8-mbsnlen: New file.
7541         * lib/unistr/u8-mbsnlen.c: New file.
7542
7543         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
7544         declarations.
7545
7546 2007-06-10  Bruno Haible  <bruno@clisp.org>
7547
7548         * lib/string_.h (mbsnlen): New declaration.
7549         * lib/mbsnlen.c: New file.
7550         * m4/mbsnlen.m4: New file.
7551         * modules/mbsnlen: New file.
7552         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
7553         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
7554         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
7555
7556 2007-06-10  Bruno Haible  <bruno@clisp.org>
7557
7558         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
7559
7560 2007-06-10  Bruno Haible  <bruno@clisp.org>
7561
7562         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
7563         * lib/mbuiter.h: Likewise.
7564
7565 2007-06-10  Bruno Haible  <bruno@clisp.org>
7566
7567         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
7568         declaration.
7569
7570 2007-06-10  Karl Berry  <karl@gnu.org>
7571
7572         * config/srclist.txt: remove gettext entries, Bruno prefers
7573         to update individually.
7574
7575 2007-06-10  Bruno Haible  <bruno@clisp.org>
7576
7577         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
7578         'maxlen'. Ensure only length + width bytes are allocated, not
7579         length + 1 + width.
7580
7581 2007-06-09  Bruno Haible  <bruno@clisp.org>
7582
7583         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
7584         (CHAR_T): Remove macro.
7585         (VASNPRINTF): Update.
7586
7587 2007-06-09  Bruno Haible  <bruno@clisp.org>
7588
7589         * MODULES.html.sh (Unicode string functions): Add the new modules.
7590
7591         * modules/uniconv/u32-conv-to-enc: New file.
7592         * lib/uniconv/u32-conv-to-enc.c: New file.
7593         * modules/uniconv/u32-conv-to-enc-tests: New file.
7594         * tests/uniconv/test-u32-conv-to-enc.c: New file.
7595
7596         * modules/uniconv/u16-conv-to-enc: New file.
7597         * lib/uniconv/u16-conv-to-enc.c: New file.
7598         * lib/uniconv/u-conv-to-enc.h: New file.
7599         * modules/uniconv/u16-conv-to-enc-tests: New file.
7600         * tests/uniconv/test-u16-conv-to-enc.c: New file.
7601
7602         * modules/uniconv/u8-conv-to-enc: New file.
7603         * lib/uniconv/u8-conv-to-enc.c: New file.
7604         * modules/uniconv/u8-conv-to-enc-tests: New file.
7605         * tests/uniconv/test-u8-conv-to-enc.c: New file.
7606
7607         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
7608         u32_conv_to_encoding): New declarations.
7609
7610 2007-06-09  Bruno Haible  <bruno@clisp.org>
7611
7612         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
7613
7614 2007-06-09  Bruno Haible  <bruno@clisp.org>
7615
7616         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
7617         * modules/malloca: Renamed from modules/allocsa, updated.
7618         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
7619         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
7620         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
7621         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
7622         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
7623         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
7624         * modules/xmalloca: Renamed from modules/xallocsa, updated.
7625         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
7626         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
7627         * modules/c-strcasestr (Depends-on): Update.
7628         * lib/c-strcasestr.c: Update.
7629         * modules/c-strstr (Depends-on): Update.
7630         * lib/c-strstr.c: Update.
7631         * modules/canonicalize-lgpl (Depends-on): Update.
7632         * lib/canonicalize-lgpl.c: Update.
7633         * modules/clean-temp (Depends-on): Update.
7634         * lib/clean-temp.c: Update.
7635         * modules/csharpcomp (Depends-on): Update.
7636         * lib/csharpcomp.c: Update.
7637         * modules/csharpexec (Depends-on): Update.
7638         * lib/csharpexec.c: Update.
7639         * modules/javacomp (Depends-on): Update.
7640         * lib/javacomp.c: Update.
7641         * modules/javaexec (Depends-on): Update.
7642         * lib/javaexec.c: Update.
7643         * modules/mbscasestr (Depends-on): Update.
7644         * lib/mbscasestr.c: Update.
7645         * modules/mbsstr (Depends-on): Update.
7646         * lib/mbsstr.c: Update.
7647         * modules/setenv (Depends-on): Update.
7648         * lib/setenv.c: Update.
7649         * modules/strcasestr (Depends-on): Update.
7650         * lib/strcasestr.c: Update.
7651         * modules/striconveha (Depends-on): Update.
7652         * lib/striconveha.c: Update.
7653         * modules/relocatable-prog-wrapper (Files): Update.
7654         * lib/relocwrapper.c: Update.
7655         * build-aux/install-reloc: Update.
7656         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
7657
7658 2007-06-08  Bruno Haible  <bruno@clisp.org>
7659
7660         Port to uClibc.
7661         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
7662         * lib/fpurge.c (fpurge): Likewise.
7663         * lib/freading.c (freading): Likewise.
7664         * lib/fseeko.c (rpl_fseeko): Likewise.
7665         * lib/fseterr.c (fseterr): Likewise.
7666         * lib/fwriting.c (fwriting): Likewise.
7667         * tests/test-fflush.c (main): Avoid a failure on uClibc.
7668
7669 2007-06-08  Bruno Haible  <bruno@clisp.org>
7670
7671         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
7672         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
7673         * modules/gettext (Files): Add m4/intlmacosx.m4.
7674
7675 2007-06-07  Bruno Haible  <bruno@clisp.org>
7676
7677         * modules/localename-tests: New file.
7678         * tests/test-localename.c: New file.
7679
7680         New module 'localename'.
7681         * lib/localename.h: New file.
7682         * lib/localename.c: New file, from GNU gettext.
7683         * m4/localename.m4: New file.
7684         * modules/localename: New file.
7685
7686 2007-06-07  Bruno Haible  <bruno@clisp.org>
7687
7688         Work around the lack of <wchar.h> on some builds of uClibc.
7689         * doc/headers/wchar.texi: Update.
7690         * lib/wchar_.h: Include <wchar.h> only if it exists.
7691         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
7692         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
7693         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
7694         doesn't exist.
7695         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
7696         * modules/mbfile (Depends-on): Add wchar.
7697         * modules/mbiter (Depends-on): Likewise.
7698         * modules/mbuiter (Depends-on): Likewise.
7699         Reported by Simon Josefsson.
7700
7701 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
7702
7703         Work around problem reported by Steven M. Schweda in
7704         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
7705         Tru64 5.1B with the Compaq compiler environment installed declares
7706         an 'isblank' function but does not define it in the C library.
7707         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
7708         * lib/regex_internal.h (isblank): Likewise.
7709         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
7710         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7711
7712 2007-06-05  Bruno Haible  <bruno@clisp.org>
7713
7714         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
7715         ia64.
7716         * modules/printf-safe: New file.
7717         * modules/fprintf-posix (Depends-on): Add printf-safe.
7718         * modules/printf-posix (Depends-on): Likewise.
7719         * modules/snprintf-posix (Depends-on): Likewise.
7720         * modules/sprintf-posix (Depends-on): Likewise.
7721         * modules/vasnprintf-posix (Depends-on): Likewise.
7722         * modules/vasprintf-posix (Depends-on): Likewise.
7723         * modules/vfprintf-posix (Depends-on): Likewise.
7724         * modules/vprintf-posix (Depends-on): Likewise.
7725         * modules/vsnprintf-posix (Depends-on): Likewise.
7726         * modules/vsprintf-posix (Depends-on): Likewise.
7727         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7728         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
7729         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
7730         "no" on i386, x86_64, ia64.
7731         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
7732         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
7733         on i386, x86_64, ia64.
7734         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
7735         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
7736         on i386, x86_64, ia64.
7737         * tests/test-vasnprintf-posix.c: Include float.h.
7738         (LDBL80_WORDS): New macro.
7739         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
7740         on i386, x86_64, ia64.
7741         * tests/test-vasprintf-posix.c: Include float.h.
7742         (LDBL80_WORDS): New macro.
7743         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
7744         on i386, x86_64, ia64.
7745         * tests/test-snprintf-posix.c: Include float.h.
7746         * tests/test-sprintf-posix.c: Likewise.
7747         * tests/test-vsnprintf-posix.c: Likewise.
7748         * tests/test-vsprintf-posix.c: Likewise.
7749
7750 2007-06-05  Bruno Haible  <bruno@clisp.org>
7751
7752         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
7753         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
7754         non-IEEE numbers on i386, x86_64, ia64.
7755         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
7756         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
7757         * tests/test-isnanl.h: Include float.h.
7758         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
7759
7760 2007-06-05  Bruno Haible  <bruno@clisp.org>
7761
7762         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
7763         also the %a / %A. Handle the %a / %A code before this extra handling.
7764
7765 2007-06-05  Bruno Haible  <bruno@clisp.org>
7766
7767         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
7768         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
7769
7770 2007-06-05  Bruno Haible  <bruno@clisp.org>
7771
7772         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
7773         typo in variable name.
7774
7775 2007-06-05  Eric Blake  <ebb9@byu.net>
7776
7777         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
7778         Reported by Simon Josefsson.
7779
7780 2007-06-04  Bruno Haible  <bruno@clisp.org>
7781
7782         Avoid test failures on some PowerPC platforms.
7783         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
7784         Define differently for PowerPC.
7785         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
7786         Reported by Gary V. Vaughan <gary@gnu.org>.
7787
7788 2007-06-02  Bruno Haible  <bruno@clisp.org>
7789
7790         Fix test-stdint failure on FreeBSD/ia64.
7791         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
7792         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
7793         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
7794         * doc/headers/stdint.texi: Update.
7795
7796 2007-06-01  Bruno Haible  <bruno@clisp.org>
7797
7798         * tests/test-binary-io.c (main): Pass a third argument to open().
7799         Reported by Gary V. Vaughan <gary@gnu.org>.
7800
7801 2007-06-01  Bruno Haible  <bruno@clisp.org>
7802
7803         * doc/functions/frexpl.texi: Update for mingw.
7804
7805 2007-06-01  Bruno Haible  <bruno@clisp.org>
7806
7807         * tests/test-lseek.c (main): Disable test of errno for invalid third
7808         argument.
7809         * doc/functions/lseek.texi: Update.
7810         Reported by Gary V. Vaughan <gary@gnu.org>.
7811
7812 2007-05-28  Bruno Haible  <bruno@clisp.org>
7813
7814         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
7815
7816 2007-05-31  Eric Blake  <ebb9@byu.net>
7817
7818         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
7819         cross compiling.
7820
7821 2007-05-30  Eric Blake  <ebb9@byu.net>
7822         and Bruno Haible  <bruno@clisp.org>
7823
7824         Work around mingw test failures exposed by m4-1.4.9b.
7825         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
7826         * tests/test-unistd.c: Disable uid_t and git_t tests for the
7827         moment.
7828
7829 2007-05-30  Bruno Haible  <bruno@clisp.org>
7830
7831         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
7832         assuming that they are closed. Needed on HP-UX 11.
7833
7834 2007-05-29  Bruno Haible  <bruno@clisp.org>
7835
7836         Fix a problem with #include_next.
7837         * lib/dirent_.h: Split the double-inclusion guard.
7838         * lib/fcntl_.h: Likewise.
7839         * lib/float_.h: Likewise.
7840         * lib/iconv_.h: Likewise.
7841         * lib/inttypes_.h: Likewise.
7842         * lib/locale_.h: Likewise.
7843         * lib/math_.h: Likewise.
7844         * lib/netinet_in_.h: Likewise.
7845         * lib/search_.h: Likewise.
7846         * lib/signal_.h: Likewise.
7847         * lib/stdint_.h: Likewise.
7848         * lib/stdio_.h: Likewise.
7849         * lib/stdlib_.h: Likewise.
7850         * lib/string_.h: Likewise.
7851         * lib/sys_select_.h: Likewise.
7852         * lib/sys_socket_.h: Likewise.
7853         * lib/sys_stat_.h: Likewise.
7854         * lib/sys_time_.h: Likewise.
7855         * lib/sysexits_.h: Likewise.
7856         * lib/time_.h: Likewise.
7857         * lib/unistd_.h: Likewise.
7858         * lib/wchar_.h: Likewise.
7859         * lib/wctype_.h: Likewise.
7860
7861 2007-05-29  Bruno Haible  <bruno@clisp.org>
7862
7863         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
7864         for the moment.
7865
7866 2007-05-29  Bruno Haible  <bruno@clisp.org>
7867
7868         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
7869         invocation.
7870         Reported by Eric Blake.
7871
7872 2007-05-29  Bruno Haible  <bruno@clisp.org>
7873
7874         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
7875         compiling case.
7876
7877 2007-05-29  Eric Blake  <ebb9@byu.net>
7878             Bruno Haible  <bruno@clisp.org>
7879
7880         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
7881         cross compiles.
7882
7883 2007-05-28  Eric Blake  <ebb9@byu.net>
7884
7885         * modules/closein-tests (test_closein_LDADD): Support test on
7886         cygwin with libtool.
7887
7888 2007-05-28  Bruno Haible  <bruno@clisp.org>
7889
7890         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
7891         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
7892         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
7893         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
7894         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
7895         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
7896         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
7897         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
7898         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
7899
7900 2007-05-28  Eric Blake  <ebb9@byu.net>
7901
7902         Unconditionally include <config.h> in unit tests.
7903         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
7904         * tests/test-allocsa.c, tests/test-arcfour.c,
7905         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
7906         tests/test-array_list.c, tests/test-array_oset.c,
7907         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
7908         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
7909         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
7910         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
7911         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
7912         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
7913         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
7914         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
7915         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
7916         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
7917         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
7918         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
7919         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
7920         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
7921         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
7922         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
7923         test-md5.c, test-memmem.c, test-printf-posix.c,
7924         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
7925         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
7926         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
7927         test-strcasestr.c, test-striconv.c, test-striconveh.c,
7928         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
7929         test-vasnprintf-posix2.c, test-vasnprintf.c,
7930         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
7931         test-vfprintf-posix.c, test-vprintf-posix.c,
7932         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
7933         test-xvasprintf.c: Likewise.
7934
7935 2007-05-28  Bruno Haible  <bruno@clisp.org>
7936
7937         * gnulib-tool (func_import): Remember the --with-tests command-line
7938         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
7939         Reported by Eric Blake.
7940
7941 2007-05-28  Bruno Haible  <bruno@clisp.org>
7942
7943         * modules/ftell-tests: New file.
7944         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
7945         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
7946
7947         * lib/ftell.c: New file.
7948         * modules/ftell: New file.
7949         * m4/ftell.m4: New file.
7950         * doc/functions/ftell.texi: Update.
7951         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
7952         REPLACE_FTELL.
7953         * lib/stdio_.h (rpl_ftell): New declaration.
7954         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
7955         REPLACE_FTELL.
7956
7957 2007-05-28  Eric Blake  <ebb9@byu.net>
7958
7959         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
7960
7961 2007-05-28  Bruno Haible  <bruno@clisp.org>
7962
7963         * modules/fseek-tests: New file.
7964         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
7965         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
7966
7967         * lib/fseek.c: New file.
7968         * modules/fseek: New file.
7969         * m4/fseek.m4: New file.
7970         * doc/functions/fseek.texi: Update.
7971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
7972         REPLACE_FSEEK.
7973         * lib/stdio_.h (rpl_fseek): New declaration.
7974         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
7975         REPLACE_FSEEK.
7976
7977 2007-05-28  Bruno Haible  <bruno@clisp.org>
7978
7979         * lib/stdio_.h (fflush): More comments.
7980
7981 2007-05-28  Bruno Haible  <bruno@clisp.org>
7982
7983         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
7984         runtime test.
7985
7986 2007-05-28  Eric Blake  <ebb9@byu.net>
7987
7988         Improve lseek module.
7989         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
7990         * lib/unistd_.h (lseek): Scale back link warning message.
7991         * tests/test-lseek.c: Beef up test.
7992         * tests/test-lseek.sh: Exercise more facets of lseek.
7993         Reported by Bruno Haible.
7994
7995 2007-05-28  Bruno Haible  <bruno@clisp.org>
7996
7997         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
7998         to define.
7999
8000 2007-05-27  Bruno Haible  <bruno@clisp.org>
8001
8002         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
8003
8004 2007-05-27  Bruno Haible  <bruno@clisp.org>
8005
8006         * modules/openmp: New file.
8007         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
8008         Noah Misch.
8009
8010 2007-05-26  Bruno Haible  <bruno@clisp.org>
8011
8012         * modules/chdir-long (Depends-on): Add fchdir.
8013         * modules/chdir-safer (Depends-on): Likewise.
8014         * modules/fts (Depends-on): Likewise.
8015         * modules/fts-lgpl (Depends-on): Likewise.
8016         * modules/openat (Depends-on): Likewise.
8017         * modules/savewd (Depends-on): Likewise.
8018
8019 2007-05-24  Eric Blake  <ebb9@byu.net>
8020
8021         Fix lseek on mingw.
8022         * modules/lseek: New module.
8023         * m4/lseek.m4: New file.
8024         * lib/lseek.c: New file.
8025         * modules/lseek-tests: New file.
8026         * tests/test-lseek.c: New file.
8027         * tests/test-lseek.sh: New file.
8028         * MODULES.html.sh: Document lseek module.
8029         * modules/fflush (Depends-on): Add lseek, fseeko.
8030         * modules/fseeko (Depends-on): Likewise.
8031         * modules/ftello (Depends-on): Likewise.
8032         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
8033         broken.
8034         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
8035         broken.
8036         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
8037         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
8038         * lib/ftello.c (rpl_ftello): Likewise.
8039         * tests/test-fseeko.c (main): Test this.
8040         * tests/test-fseeko.sh: Likewise.
8041         * tests/test-ftello.c (main): Likewise.
8042         * tests/test-ftello.sh: Likewise.
8043         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
8044         implies replacing fseek.
8045         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
8046         HAVE_FTELLO.
8047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
8048         * modules/unistd (Makefile.am): Likewise.
8049         * lib/unistd_.h (lseek): Declare a replacement.
8050         * doc/functions/lseek.texi (lseek): Document this fix.
8051         * doc/functions/fseek.texi (fseek): Likewise.
8052         * doc/functions/ftell.texi (ftell): Likewise.
8053
8054 2007-05-24  Bruno Haible  <bruno@clisp.org>
8055
8056         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
8057         in the printed representation of a NaN.
8058         * tests/test-vasprintf-posix.c (test_function): Likewise.
8059         * tests/test-snprintf-posix.h (test_function): Likewise.
8060         * tests/test-sprintf-posix.h (test_function): Likewise.
8061         Reported by Eric Blake.
8062
8063 2007-05-23  Eric Blake  <ebb9@byu.net>
8064
8065         Fix fseeko/ftello on cygwin 1.5.24.
8066         * doc/functions/fseeko.texi (fseeko): Document the fix.
8067         * doc/functions/ftello.texi (ftello): Document the fix.
8068         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
8069         * doc/functions/stdout.text (stdout): New file.
8070         * doc/functions/stderr.text (stderr): New file.
8071         * doc/gnulib.texi (Function Substitutes): Use new files.
8072         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
8073         prior to 1.7.0.
8074         * tests/test-ftello.c (main): Likewise for ftello.
8075         * tests/test-fseeko.sh: New file.
8076         * tests/test-ftello.sh: New file.
8077         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
8078         with seekable stdin.
8079         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
8080         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
8081         (gl_REPLACE_FSEEKO): New macro.
8082         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
8083         * modules/fseeko (Files): Distribute fseeko.c.
8084         * modules/ftello (Files): Distribute ftello.c.
8085         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
8086         mode.
8087         * lib/ftello.c (rpl_ftello): New file.
8088         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
8089         fseeko, ftello.
8090         (gl_STDIN_LARGE_OFFSET): New macro.
8091         * modules/stdio (Makefile.am): Perform the replacement.
8092         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
8093
8094 2007-05-23  Bruno Haible  <bruno@clisp.org>
8095
8096         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
8097         GNULIB_POSIXCHECK is defined.
8098
8099 2007-05-21  Bruno Haible  <bruno@clisp.org>
8100
8101         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
8102         Check also the output for NaN arguments. When cross-compiling, guess
8103         no on IRIX.
8104         * lib/vasnprintf.c: Update comments.
8105         * tests/test-vasnprintf-posix.c (strisnan): New function.
8106         (test_function): Use it.
8107         * tests/test-vasprintf-posix.c (strisnan): New function.
8108         (test_function): Use it.
8109         * tests/test-snprintf-posix.h (strisnan): New function.
8110         (test_function): Use it.
8111         * tests/test-sprintf-posix.h (strisnan): New function.
8112         (test_function): Use it.
8113         Reported by Eric Blake.
8114
8115 2007-05-20  Bruno Haible  <bruno@clisp.org>
8116
8117         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
8118         numbers that fails on BeOS.
8119         * doc/functions/frexpl.texi: Update.
8120
8121 2007-05-20  Jim Meyering  <jim@meyering.net>
8122
8123         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
8124         forced upon us by glibc-2.6.
8125
8126 2007-05-20  Bruno Haible  <bruno@clisp.org>
8127
8128         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
8129         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
8130         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
8131         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
8132         NEED_PRINTF_INFINITE.
8133         (is_infinitel): New function.
8134         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
8135         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
8136         gl_PREREQ_VASNPRINTF_INFINITE.
8137         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
8138         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8139         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
8140         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
8141         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
8142         gl_PREREQ_VASNPRINTF_INFINITE.
8143         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8144         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8145         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8146         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8147         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8148         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8149         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8150         * doc/functions/fprintf.texi: Update.
8151         * doc/functions/printf.texi: Update.
8152         * doc/functions/snprintf.texi: Update.
8153         * doc/functions/sprintf.texi: Update.
8154         * doc/functions/vfprintf.texi: Update.
8155         * doc/functions/vprintf.texi: Update.
8156         * doc/functions/vsnprintf.texi: Update.
8157         * doc/functions/vsprintf.texi: Update.
8158
8159 2007-05-20  Bruno Haible  <bruno@clisp.org>
8160
8161         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
8162         was not found in libc.
8163         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8164
8165 2007-05-20  Bruno Haible  <bruno@clisp.org>
8166
8167         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
8168         printed as "-nan" instead of "nan".
8169         * tests/test-vasprintf-posix.c (test_function): Likewise.
8170         * tests/test-snprintf-posix.h (test_function): Likewise.
8171         * tests/test-sprintf-posix.h (test_function): Likewise.
8172         Needed for HP-UX 11.
8173
8174 2007-05-20  Jim Meyering  <jim@meyering.net>
8175
8176         Fix buggy test for the fchownat-deref bug.
8177         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
8178         symlink required for the run-test.  Without it, this test would
8179         always declare that fchownat doesn't work, and client code would
8180         unnecessarily use the replacement function with fixed libc.
8181         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
8182         Reported by Greg Schafer.
8183
8184 2007-05-19  Bruno Haible  <bruno@clisp.org>
8185
8186         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
8187         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
8188         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
8189         Needed for IRIX 6.5 and Solaris 2.5.1.
8190
8191 2007-05-19  Bruno Haible  <bruno@clisp.org>
8192
8193         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
8194         (test_function): Skip tests involving -0.0 on platforms where
8195         -0.0 = 0.0.
8196         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
8197         (test_function): Skip tests involving -0.0 on platforms where
8198         -0.0 = 0.0.
8199         * tests/test-snprintf-posix.h (have_minus_zero): New function.
8200         (test_function): Skip tests involving -0.0 on platforms where
8201         -0.0 = 0.0.
8202         * tests/test-sprintf-posix.h (have_minus_zero): New function.
8203         (test_function): Skip tests involving -0.0 on platforms where
8204         -0.0 = 0.0.
8205         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
8206         tests.
8207         * tests/test-printf-posix.h (test_function): Likewise.
8208         * tests/test-printf-posix.output: Remove all -0.0 related results.
8209         Needed for IRIX 6.5.
8210
8211 2007-05-19  Bruno Haible  <bruno@clisp.org>
8212
8213         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
8214         printed as "nan0x7fffffff" instead of "nan".
8215         * tests/test-vasprintf-posix.c (test_function): Likewise.
8216         * tests/test-snprintf-posix.h (test_function): Likewise.
8217         * tests/test-sprintf-posix.h (test_function): Likewise.
8218         * tests/test-fprintf-posix.h (NaN): Remove macro.
8219         (test_function): Remove all NaN related tests.
8220         * tests/test-printf-posix.h (NaN): Remove macro.
8221         (test_function): Remove all NaN related tests.
8222         * tests/test-printf-posix.output: Remove all NaN related results.
8223         Needed for IRIX 6.5.
8224
8225 2007-05-19  Bruno Haible  <bruno@clisp.org>
8226
8227         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
8228         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8229
8230 2007-05-19  Bruno Haible  <bruno@clisp.org>
8231
8232         * lib/float_.h: New file.
8233         * m4/float_h.m4: New file.
8234         * modules/float: New file.
8235         * modules/isnanl (Dependencies): Add float.
8236         * modules/isnanl-nolibm (Dependencies): Likewise.
8237         * modules/mathl (Dependencies): Likewise.
8238         * modules/printf-frexpl (Dependencies): Likewise.
8239         * modules/signbit (Dependencies): Likewise.
8240         * modules/vasnprintf (Dependencies): Likewise.
8241         * doc/headers/float.texi: Update.
8242
8243 2007-05-19  Jim Meyering  <jim@meyering.net>
8244
8245         * lib/utimens.c (gl_futimens): Rename from futimens,
8246         now that glibc-2.6 declares futimens.
8247         * lib/utimens.h: Likewise.
8248
8249 2007-05-19  Bruno Haible  <bruno@clisp.org>
8250
8251         Avoid test failures on mingw.
8252         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
8253         * tests/test-printf-posix.sh: Likewise.
8254         * tests/test-vfprintf-posix.sh: Likewise.
8255         * tests/test-vprintf-posix.sh: Likewise.
8256
8257 2007-05-19  Bruno Haible  <bruno@clisp.org>
8258
8259         Fix *printf result for NaN, Inf, -0.0 on mingw.
8260         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
8261         * lib/vasnprintf.c: Include math.h and isnan.h.
8262         (is_infinite_or_zero): New function.
8263         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
8264         values in the %f, %F, %e, %E, %g, %G directives.
8265         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
8266         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8267         gl_PRINTF_INFINITE and test its result. Invoke
8268         gl_PREREQ_VASNPRINTF_INFINITE.
8269         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8270         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8271         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8272         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8273         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8274         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8275         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8276         * doc/functions/fprintf.texi: Update.
8277         * doc/functions/printf.texi: Update.
8278         * doc/functions/snprintf.texi: Update.
8279         * doc/functions/sprintf.texi: Update.
8280         * doc/functions/vfprintf.texi: Update.
8281         * doc/functions/vprintf.texi: Update.
8282         * doc/functions/vsnprintf.texi: Update.
8283         * doc/functions/vsprintf.texi: Update.
8284
8285 2007-05-19  Bruno Haible  <bruno@clisp.org>
8286
8287         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
8288         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
8289         Instead of multiplying with 10^k, set extra_zeroes to k.
8290         (scale10_round_long_double): Remove function.
8291
8292 2007-05-18  Bruno Haible  <bruno@clisp.org>
8293
8294         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
8295         introduced on 2007-05-06.
8296
8297 2007-05-18  Bruno Haible  <bruno@clisp.org>
8298
8299         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
8300         %g directives.
8301         * tests/test-vasprintf-posix.c (test_function): Likewise.
8302         * tests/test-snprintf-posix.h (test_function): Likewise.
8303         * tests/test-sprintf-posix.h (test_function): Likewise.
8304
8305 2007-05-18  Bruno Haible  <bruno@clisp.org>
8306
8307         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
8308         (strmatch): New function.
8309         (test_function): Test the %f directive on numbers of various exponents.
8310         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
8311         (strmatch): New function.
8312         (test_function): Test the %f directive on numbers of various exponents.
8313         * tests/test-snprintf-posix.h (strmatch): New function.
8314         (test_function): Test the %f directive on numbers of various exponents.
8315         * tests/test-sprintf-posix.h (strmatch): New function.
8316         (test_function): Test the %f directive on numbers of various exponents.
8317         * tests/test-snprintf-posix.c (SIZEOF): New macro.
8318         * tests/test-sprintf-posix.c (SIZEOF): New macro.
8319         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
8320         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
8321
8322 2007-05-18  Bruno Haible  <bruno@clisp.org>
8323
8324         Add support for 'long double' number output.
8325         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
8326         * lib/vasnprintf.c: Include math.h and float+.h.
8327         (mp_limb_t): New type.
8328         (GMP_LIMB_BITS): New macro.
8329         (mp_twolimb_t): New type.
8330         (GMP_TWOLIMB_BITS): New macro.
8331         (mpn_t): New type.
8332         (multiply, divide, convert_to_decimal, decode_long_double,
8333         scale10_round_long_double, scale10_round_decimal_long_double,
8334         floorlog10l): New functions.
8335         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
8336         for the %f, %F, %e, %E, %g, %G directives.
8337         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
8338         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8339         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
8340         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
8341         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8342         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8343         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8344         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8345         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8346         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8347         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8348         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
8349         * modules/snprintf-posix (Depends-on): Likewise.
8350         * modules/sprintf-posix (Depends-on): Likewise.
8351         * modules/vasnprintf-posix (Depends-on): Likewise.
8352         * modules/vasprintf-posix (Depends-on): Likewise.
8353         * modules/vfprintf-posix (Depends-on): Likewise.
8354         * modules/vsnprintf-posix (Depends-on): Likewise.
8355         * modules/vsprintf-posix (Depends-on): Likewise.
8356         * modules/vasnprintf (Files): Add lib/float+.h.
8357         * doc/functions/fprintf.texi: Update.
8358         * doc/functions/printf.texi: Update.
8359         * doc/functions/snprintf.texi: Update.
8360         * doc/functions/sprintf.texi: Update.
8361         * doc/functions/vfprintf.texi: Update.
8362         * doc/functions/vprintf.texi: Update.
8363         * doc/functions/vsnprintf.texi: Update.
8364         * doc/functions/vsprintf.texi: Update.
8365
8366 2007-05-18  Bruno Haible  <bruno@clisp.org>
8367
8368         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
8369
8370 2007-05-18  Bruno Haible  <bruno@clisp.org>
8371
8372         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
8373         for printing 64-bit integers. Needed for mingw.
8374
8375 2007-05-18  Bruno Haible  <bruno@clisp.org>
8376
8377         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
8378         gl_FUNC_FREXPL_WORKS.
8379         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
8380
8381 2007-05-18  Bruno Haible  <bruno@clisp.org>
8382
8383         * modules/frexpl-nolibm-tests: New file.
8384
8385         * modules/frexpl-nolibm: New file.
8386         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
8387
8388 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
8389
8390         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
8391         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
8392         GCC 4.2, which otherwise issues a lot of warnings.
8393         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
8394         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
8395         Likewise.
8396         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
8397         * modules/iconv_open (iconv.h): Likewise.
8398         * modules/locale (locale.h): Likewise.
8399         * modules/netinet_in (netinet/in.h): Likewise.
8400         * modules/sys_select (sys_select.h): Likewise.
8401         * modules/sys_socket (sys/socket.h): Likewise.
8402         * modules/sys_stat (sys/stat.h): Likewise.
8403         * modules/sysexits (sysexits.h): Likewise.
8404         * modules/unistd (unistd.h): Likewise.
8405
8406 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8407
8408         * modules/closein-tests (Makefile.am): Distribute
8409         `test-closein.sh'.
8410
8411 2007-05-17  Bruno Haible  <bruno@clisp.org>
8412
8413         * tests/test-printf-posix.output: Renamed from
8414         tests/test-fprintf-posix.out.
8415         * modules/fprintf-posix-tests: Update.
8416         * modules/printf-posix-tests: Update.
8417         * modules/vfprintf-posix-tests: Update.
8418         * modules/vprintf-posix-tests: Update.
8419         * tests/test-fprintf-posix.sh: Update.
8420         * tests/test-printf-posix.sh: Update.
8421         * tests/test-vfprintf-posix.sh: Update.
8422         * tests/test-vprintf-posix.sh: Update.
8423         Reported by Ralf Wildenhues.
8424
8425 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
8426
8427         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
8428         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
8429         GCC 4.2, which otherwise issues a lot of warnings.
8430         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
8431         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
8432         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
8433         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
8434         it should no longer be needed.
8435         * lib/string_.h: Likewise.
8436         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
8437         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
8438         * modules/inttypes (inttypes.h): Likewise.
8439         * modules/math (math.h): Likewise.
8440         * modules/search (search.h): Likewise.
8441         * modules/signal (signal.h): Likewise.
8442         * modules/stdint (stdint.h): Likewise.
8443         * modules/stdio (stdio.h): Likewise.
8444         * modules/stdlib (stdlib.h): Likewise.
8445         * modules/string (string.h): Likewise.
8446         * modules/sys_time (sys/time.h): Likewise.
8447         * modules/time (time.h): Likewise.
8448         * modules/wchar (wchar.h): Likewise.
8449         * modules/wctype (wtype.h): Likewise.
8450
8451 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
8452
8453         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
8454
8455 2007-05-13  Bruno Haible  <bruno@clisp.org>
8456
8457         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
8458         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8459         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
8460         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
8461         (gl_PREREQ_STRTOK_R): Don't require it here.
8462
8463 2007-05-13  Bruno Haible  <bruno@clisp.org>
8464
8465         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
8466         when used in C++ mode.
8467
8468 2007-05-12  Bruno Haible  <bruno@clisp.org>
8469
8470         * lib/linebuffer.h: Tweak doc.
8471         * lib/linebuffer.c: Likewise.
8472
8473 2007-05-12  James Youngman  <jay@gnu.org>
8474
8475         * lib/linebuffer.c (readlinebuffer_delim): New function,
8476         like readlinebuffer, but use a caller-specified delimiter.
8477         (readlinebuffer): Just call readlinebuffer_delim with '\n'
8478         as the delimiter.
8479         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
8480
8481 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
8482
8483         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
8484         * modules/openat (Files): Remove openat-die.c.
8485         (Depends-on): Add openat-die.
8486         * modules/openat-die: New module.
8487
8488 2007-05-06  Bruno Haible  <bruno@clisp.org>
8489
8490         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
8491         Update with info about Cygwin.
8492         * doc/functions/fprintf.texi: Update.
8493         * doc/functions/printf.texi: Update.
8494         * doc/functions/snprintf.texi: Update.
8495         * doc/functions/sprintf.texi: Update.
8496         * doc/functions/vfprintf.texi: Update.
8497         * doc/functions/vprintf.texi: Update.
8498         * doc/functions/vsnprintf.texi: Update.
8499         * doc/functions/vsprintf.texi: Update.
8500         Reported by Eric Blake.
8501
8502 2007-05-06  Bruno Haible  <bruno@clisp.org>
8503
8504         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
8505         padding ourselves for the floating-point directives.
8506         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
8507         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
8508         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
8509         gl_PRINTF_FLAG_ZERO and test its result. Invoke
8510         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
8511         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8512         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
8513         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8514         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8515         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8516         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8517         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8518         * tests/test-snprintf-posix.h (test_function): Also check the width
8519         and some flags in the %f directive.
8520         * tests/test-sprintf-posix.h (test_function): Likewise.
8521         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8522         * tests/test-vasprintf-posix.c (test_function): Likewise.
8523         * doc/functions/fprintf.texi: Update.
8524         * doc/functions/printf.texi: Update.
8525         * doc/functions/snprintf.texi: Update.
8526         * doc/functions/sprintf.texi: Update.
8527         * doc/functions/vfprintf.texi: Update.
8528         * doc/functions/vprintf.texi: Update.
8529         * doc/functions/vsnprintf.texi: Update.
8530         * doc/functions/vsprintf.texi: Update.
8531
8532 2007-05-06  Bruno Haible  <bruno@clisp.org>
8533
8534         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
8535         pass the ' flag character to sprintf or snprintf.
8536         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
8537         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
8538         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
8539         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
8540         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
8541         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8542         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
8543         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8544         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8545         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8546         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8547         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8548         * tests/test-snprintf-posix.h (test_function): Also check the grouping
8549         flag.
8550         * tests/test-sprintf-posix.h (test_function): Likewise.
8551         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8552         * tests/test-vasprintf-posix.c (test_function): Likewise.
8553         * doc/functions/fprintf.texi: Update.
8554         * doc/functions/printf.texi: Update.
8555         * doc/functions/snprintf.texi: Update.
8556         * doc/functions/sprintf.texi: Update.
8557         * doc/functions/vfprintf.texi: Update.
8558         * doc/functions/vprintf.texi: Update.
8559         * doc/functions/vsnprintf.texi: Update.
8560         * doc/functions/vsprintf.texi: Update.
8561
8562 2007-05-01  Bruno Haible  <bruno@clisp.org>
8563
8564         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
8565
8566 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
8567
8568         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
8569         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
8570
8571 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8572
8573         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
8574         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
8575         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
8576
8577 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
8578
8579         * lib/argp-help.c (struct hol_entry): New member `ord'.
8580         (HOL_ENTRY_PTRCMP): Use ord for comparison
8581         (hol_sort): Initialize ord.
8582
8583 2007-05-01  Bruno Haible  <bruno@clisp.org>
8584
8585         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
8586         Reported by Eric Blake.
8587         * doc/gnulib.texi (Function Substitutes): Update.
8588
8589 2007-05-01  Bruno Haible  <bruno@clisp.org>
8590
8591         * doc/functions.texi: Remove file, now redundant through
8592         doc/functions/*.texi.
8593
8594 2007-05-01  Bruno Haible  <bruno@clisp.org>
8595
8596         * modules/argp (Depends-on): Add sleep.
8597
8598 2007-05-01  Bruno Haible  <bruno@clisp.org>
8599
8600         * modules/sleep-tests: New file.
8601         * tests/test-sleep.c: New file.
8602
8603         * modules/sleep: New file.
8604         * lib/sleep.c: New file.
8605         * m4/sleep.m4: New file.
8606         * lib/unistd_.h (sleep): New declaration.
8607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
8608         HAVE_SLEEP.
8609         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
8610         * doc/functions/sleep.texi: Document the sleep module.
8611
8612 2007-05-01  Bruno Haible  <bruno@clisp.org>
8613
8614         * lib/sigprocmask.h: Remove file.
8615         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
8616         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
8617         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
8618         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
8619         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
8620         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
8621         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
8622         HAVE_SIGSET_T as a shell variable.
8623         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
8624         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
8625         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
8626         (Depends-on): Add signal. Remove verify.
8627         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
8628         (Include): Mention <signal.h> instead of sigprocmask.h.
8629         * NEWS: Mention the change.
8630         * lib/fatal-signal.c: Don't include sigprocmask.h.
8631
8632 2007-05-01  Bruno Haible  <bruno@clisp.org>
8633
8634         * modules/signal: New file.
8635         * lib/signal_.h: New file.
8636         * m4/signal_h.m4: New file.
8637
8638 2007-05-01  Bruno Haible  <bruno@clisp.org>
8639
8640         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
8641         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
8642         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
8643         HAVE_WCTYPE_CTMP_BUG into wctype.h.
8644
8645 2007-05-01  Bruno Haible  <bruno@clisp.org>
8646
8647         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
8648         configure time.
8649         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
8650         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
8651         * modules/sys_stat (Makefile.am): Substitute their values into
8652         sys/stat.h.
8653
8654 2007-05-01  Bruno Haible  <bruno@clisp.org>
8655
8656         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
8657         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
8658         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
8659
8660 2007-05-01  Bruno Haible  <bruno@clisp.org>
8661
8662         * doc/header/assert.texi: Undo last change: don't mention the gnulib
8663         'assert' module here.
8664
8665 2007-05-01  Bruno Haible  <bruno@clisp.org>
8666
8667         * doc/functions/*.texi: New files.
8668         * doc/functions/google-ranking.txt: New file.
8669         * doc/gnulib.texi (Function Substitutes): New chapter.
8670         (ctime, inet_ntoa): Remove sections.
8671         * doc/ctime.texi: Remove file.
8672         * doc/inet_ntoa.texi: Remove file.
8673         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
8674         dependencies.
8675         (%.info): New rule, specifying a --reference-limit.
8676
8677 2007-05-01  Bruno Haible  <bruno@clisp.org>
8678
8679         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
8680
8681 2007-05-01  Bruno Haible  <bruno@clisp.org>
8682
8683         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
8684         the portability of 'mkdir' to mingw systems.
8685
8686 2007-05-01  Bruno Haible  <bruno@clisp.org>
8687
8688         * doc/headers/google-ranking.txt: New file.
8689
8690 2007-04-30  Eric Blake  <ebb9@byu.net>
8691
8692         Prefer fseeko to fseek.
8693         * modules/getpass (Depends-on): Add fseeko.
8694         * lib/getpass.c (getpass): Use fseeko, not fseek.
8695
8696 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
8697
8698         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
8699         assumes the sorting is stable, while most qsort implementations
8700         are not.  Use argument addresses to ensure they never compare as
8701         equal.
8702
8703         * tests/test-argp-2.sh (usage-indent test): Fix output
8704         (func_compare): Restore diff options
8705         * tests/test-argp.c: Restore #include "progname.h"
8706
8707 2007-04-29  Bruno Haible  <bruno@clisp.org>
8708
8709         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
8710         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
8711         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
8712         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8713         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
8714         (configure.ac): Define CHECK_SNPRINTF_POSIX.
8715         (TESTS, check_PROGRAMS): Add test-snprintf.
8716         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
8717         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
8718         (TESTS, check_PROGRAMS): Add test-vsnprintf.
8719         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
8720         assertions that fail on HP-UX, OSF/1, or IRIX.
8721         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
8722
8723 2007-04-29  Bruno Haible  <bruno@clisp.org>
8724
8725         * MODULES.html.sh (posix_functions): Remove 'contents'.
8726
8727 2007-04-29  Karl Berry  <karl@gnu.org>
8728
8729         * config/srclist.txt (gendocs_template_min): new entry.
8730
8731 2007-04-29  Bruno Haible  <bruno@clisp.org>
8732
8733         Work around fpurge bug on BSD systems.
8734         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
8735         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
8736         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
8737         fpurge to rpl_fpurge if the system already has this function.
8738         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
8739         the case where the system already has this function. Correct invariants
8740         on BSD systems.
8741         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
8742         BSD systems.
8743
8744 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
8745
8746         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
8747         proposed by Sven Verdoolaege.
8748
8749         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
8750         options.
8751         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
8752         (usage and help tests): Update
8753
8754 2007-04-29  Bruno Haible  <bruno@clisp.org>
8755
8756         * tests/test-fflush.c (main): Use a file of size 17, not 10.
8757         Print more information in case of failure. Disable a test on BeOS.
8758
8759 2007-04-29  Bruno Haible  <bruno@clisp.org>
8760
8761         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
8762         This helps debugging on systems on which no gdb is available.
8763
8764 2007-04-29  Bruno Haible  <bruno@clisp.org>
8765
8766         * lib/freading.h: Improve comments.
8767         * lib/fwriting.h: Likewise.
8768         * tests/test-freading.c (main): Don't check freading immediately after
8769         repositioning. Needed for glibc.
8770
8771 2007-04-29  Bruno Haible  <bruno@clisp.org>
8772
8773         * lib/freading.c (freading): Trivial simplification.
8774
8775 2007-04-28  Bruno Haible  <bruno@clisp.org>
8776
8777         * tests/test-fwriting.c (main): Also test the interaction between
8778         fflush and fwriting.
8779         * modules/fwriting-tests (Depends-on): Add fflush.
8780
8781         * tests/test-freading.c (main): Also test the interaction between
8782         fflush and freading.
8783         * modules/freading-tests (Depends-on): Add fflush.
8784
8785 2007-04-28  Bruno Haible  <bruno@clisp.org>
8786
8787         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
8788         fseeko and ftello.
8789         Suggested by Eric Blake.
8790
8791 2007-04-28  Jim Meyering  <jim@meyering.net>
8792
8793         Avoid false-negative in gl_STDINT_H's C99 conformance test.
8794         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
8795         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
8796
8797 2007-04-27  Eric Blake  <ebb9@byu.net>
8798
8799         * doc/headers/assert.texi (assert.h): Document assert module use.
8800
8801 2007-04-27  Bruno Haible  <bruno@clisp.org>
8802
8803         * doc/headers/*.texi: New files.
8804         * doc/gnulib.texi (Header File Substitutes): New chapter.
8805         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
8806         dependencies.
8807         (standards.info ,standards.html, standards.dvi): Update dependencies.
8808         (mostlyclean, clean): New targets.
8809
8810 2007-04-27  Bruno Haible  <bruno@clisp.org>
8811
8812         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
8813         * modules/sysexits (Files, Makefile.am): Update.
8814
8815         * lib/sys_socket_.h: Renamed from lib/socket_.h.
8816         * modules/sys_socket (Files, Makefile.am): Update.
8817
8818         * lib/sys_stat_.h: Renamed from lib/stat_.h.
8819         * modules/sys_stat (Files, Makefile.am): Update.
8820
8821 2007-04-27  Eric Blake  <ebb9@byu.net>
8822
8823         * lib/freading.h: Improve comments.
8824         * lib/fwriting.h: Likewise.
8825         * lib/fflush.c: Likewise.
8826
8827         Fix closein for mingw.
8828         * modules/closein-tests: Add tests for closein.
8829         * tests/test-closein.c: New file.
8830         * tests/test-closein.sh: Likewise.
8831         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
8832         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
8833
8834 2007-04-27  Bruno Haible  <bruno@clisp.org>
8835
8836         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
8837         version is < 6.
8838         * lib/math_.h [__DECC]: Likewise.
8839         * lib/stdio_.h [__DECC]: Likewise.
8840         * lib/stdlib_.h [__DECC]: Likewise.
8841         * lib/string_.h [__DECC]: Likewise.
8842         * lib/time_.h [__DECC]: Likewise.
8843         * lib/wchar_.h [__DECC]: Likewise.
8844         * lib/wctype_.h [__DECC]: Likewise.
8845
8846 2007-04-27  Bruno Haible  <bruno@clisp.org>
8847
8848         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
8849
8850 2007-04-27  Bruno Haible  <bruno@clisp.org>
8851
8852         * lib/fflush.c: Add comments.
8853         * modules/fpurge-tests (Depends-on): Add fflush.
8854         * modules/freadable-tests (Depends-on): Likewise.
8855         * modules/fwritable-tests (Depends-on): Likewise.
8856
8857 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
8858
8859         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
8860         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
8861         Report by Bruno Haible <bruno@clisp.org>.
8862
8863 2007-04-26  Eric Blake  <ebb9@byu.net>
8864
8865         Fix fflush on mingw.
8866         * modules/fflush (Depends-on): Add freading.
8867         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
8868         but unread data.
8869
8870 2007-04-26  Eric Blake  <ebb9@byu.net>
8871         and Bruno Haible  <bruno@clisp.org>
8872
8873         Implement freading and fwriting.
8874         * lib/freading.c: New file.
8875         * lib/freading.h: Likewise.
8876         * m4/freading.m4: Likewise.
8877         * modules/freading: Likewise.
8878         * modules/freading-tests: Likewise.
8879         * tests/test-freading.c: Likewise.
8880         * lib/fwriting.c: New file.
8881         * lib/fwriting.h: Likewise.
8882         * m4/fwriting.m4: Likewise.
8883         * modules/fwriting: Likewise.
8884         * modules/fwriting-tests: Likewise.
8885         * tests/test-fwriting.c: Likewise.
8886         * MODULES.html.sh (File stream based Input/Output): Mention them.
8887
8888 2007-04-26  Bruno Haible  <bruno@clisp.org>
8889
8890         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
8891         'long' when we assume it.
8892         Suggested by Eric Blake.
8893
8894 2007-04-26  Bruno Haible  <bruno@clisp.org>
8895
8896         Ensure fseeko, ftello are declared on glibc systems.
8897         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
8898         * modules/fseeko (configure.ac-early): Likewise.
8899         * modules/ftello (configure.ac-early): Likewise.
8900         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
8901         AC_FUNC_FSEEKO for this.
8902         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
8903         (gl_CHECK_FSEEKO): Remove macro.
8904
8905 2007-04-26  Bruno Haible  <bruno@clisp.org>
8906
8907         * tests/test-fflush.c (main): Also check the ftell result after
8908         fflush and fseek/fseeko.
8909         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
8910         file descriptor position cache in the stream.
8911         * lib/fseeko.c (rpl_fseeko): Likewise.
8912
8913 2007-04-26  Bruno Haible  <bruno@clisp.org>
8914
8915         * modules/fflush-tests (Depends-on): Add fseeko.
8916
8917 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
8918             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8919
8920         * lib/argz_.h: ensure error_t definition is obtained in same
8921         mechanism system argz.h would have.
8922         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
8923         argz facilities are known bad.  Err on the side of caution if
8924         cross-compiling.
8925
8926 2007-04-25  Eric Blake  <ebb9@byu.net>
8927
8928         * lib/fpurge.c (includes): Use stdlib.h for free.
8929         * tests/test-fflush.c (main): Also test fflush-fseeko.
8930
8931 2007-04-25  Bruno Haible  <bruno@clisp.org>
8932
8933         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
8934         * lib/fseeko.c: New file.
8935         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
8936         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
8937         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
8938         gl_FUNC_FSEEKO.
8939         (gl_FUNC_FSEEKO): Invoke it.
8940         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
8941         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
8942         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
8943
8944 2007-04-25  Bruno Haible  <bruno@clisp.org>
8945
8946         * modules/fflush (Depends-on): Add ftello.
8947
8948 2007-04-25  Bruno Haible  <bruno@clisp.org>
8949
8950         * modules/ftello-tests: New file.
8951         * tests/test-ftello.c: New file.
8952
8953         * modules/ftello: New file.
8954         * m4/ftello.m4: New file.
8955         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
8956         HAVE_FTELLO.
8957         * lib/stdio_.h (ftello): New declaration.
8958         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
8959         HAVE_FTELLO.
8960
8961 2007-04-25  Bruno Haible  <bruno@clisp.org>
8962
8963         * modules/fseeko-tests: New file.
8964         * tests/test-fseeko.c: New file.
8965
8966         * modules/fseeko: New file.
8967         * m4/fseeko.m4: New file.
8968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
8969         HAVE_FSEEKO.
8970         * lib/stdio_.h (fseeko): New declaration.
8971         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
8972         HAVE_FSEEKO.
8973
8974 2007-04-25  Bruno Haible  <bruno@clisp.org>
8975
8976         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
8977
8978 2007-04-25  Bruno Haible  <bruno@clisp.org>
8979
8980         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
8981         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
8982         * tests/test-unistd.c: Likewise.
8983         * tests/test-fcntl.c: Likewise.
8984
8985 2007-04-23  Eric Blake  <ebb9@byu.net>
8986
8987         * lib/fflush.c: Fix missing include.
8988         Reported by Bruno Haible.
8989
8990 2007-04-23  Bruno Haible  <bruno@clisp.org>
8991
8992         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
8993         Reported by Eric Blake.
8994
8995 2007-04-23  Bruno Haible  <bruno@clisp.org>
8996
8997         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
8998
8999 2007-04-23  Bruno Haible  <bruno@clisp.org>
9000
9001         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
9002
9003 2007-04-23  Bruno Haible  <bruno@clisp.org>
9004
9005         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
9006         Needed on HP-UX 11.
9007
9008 2007-04-16  Eric Blake  <ebb9@byu.net>
9009
9010         Make fflush rely on fpurge.
9011         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
9012         open coding all variants.
9013         * modules/fflush (Depends-on): Add fpurge and unistd.
9014         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
9015         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
9016
9017         Fix --with-tests compilation on cygwin.
9018         * modules/argmatch-tests (Makefile.am): List gnulib library first
9019         in LDADD.
9020         * modules/argp-tests (Makefile.am): Likewise.
9021         * modules/array-list-tests (Makefile.am): Likewise.
9022         * modules/array-oset-tests (Makefile.am): Likewise.
9023         * modules/avltree-list-tests (Makefile.am): Likewise.
9024         * modules/avltree-oset-tests (Makefile.am): Likewise.
9025         * modules/avltreehash-list-tests (Makefile.am): Likewise.
9026         * modules/carray-list-tests (Makefile.am): Likewise.
9027         * modules/dirname-tests (Makefile.am): Likewise.
9028         * modules/frexp-tests (Makefile.am): Likewise.
9029         * modules/isnanl-tests (Makefile.am): Likewise.
9030         * modules/linked-list-tests (Makefile.am): Likewise.
9031         * modules/linkedhash-list-tests (Makefile.am): Likewise.
9032         * modules/lock-tests (Makefile.am): Likewise.
9033         * modules/rbtree-list-tests (Makefile.am): Likewise.
9034         * modules/rbtree-oset-tests (Makefile.am): Likewise.
9035         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
9036         * modules/tls-tests (Makefile.am): Likewise.
9037         * modules/tsearch-tests (Makefile.am): Likewise.
9038         * modules/xvasprintf-tests (Makefile.am): Likewise.
9039
9040         Fix fpurge for cygwin.
9041         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
9042         value.
9043         * modules/fpurge-tests (Depends-on): Clean up trash.
9044
9045 2007-04-16  Simon Josefsson  <simon@josefsson.org>
9046
9047         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
9048
9049         * m4/autobuild.m4: Re-indent.
9050
9051 2007-04-13  Bruno Haible  <bruno@clisp.org>
9052
9053         * modules/fpurge-tests: New file.
9054         * tests/test-fpurge.c: New file.
9055
9056         * modules/fpurge: New file.
9057         * lib/fpurge.h: New file.
9058         * lib/fpurge.c: New file.
9059         * m4/fpurge.m4: New file.
9060
9061 2007-04-13  Bruno Haible  <bruno@clisp.org>
9062
9063         * modules/fbufmode-tests: New file.
9064         * tests/test-fbufmode.c: New file.
9065
9066         * modules/fbufmode: New file.
9067         * lib/fbufmode.h: New file.
9068         * lib/fbufmode.c: New file.
9069         * m4/fbufmode.m4: New file.
9070
9071 2007-04-13  Bruno Haible  <bruno@clisp.org>
9072
9073         * modules/fwritable-tests: New file.
9074         * tests/test-fwritable.c: New file.
9075
9076         * modules/fwritable: New file.
9077         * lib/fwritable.h: New file.
9078         * lib/fwritable.c: New file.
9079         * m4/fwritable.m4: New file.
9080
9081 2007-04-13  Bruno Haible  <bruno@clisp.org>
9082
9083         * modules/freadable-tests: New file.
9084         * tests/test-freadable.c: New file.
9085
9086         * modules/freadable: New file.
9087         * lib/freadable.h: New file.
9088         * lib/freadable.c: New file.
9089         * m4/freadable.m4: New file.
9090
9091 2007-04-13  Bruno Haible  <bruno@clisp.org>
9092
9093         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
9094         MOSTLYCLEANFILES.
9095
9096 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
9097
9098         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
9099         gzip bootstrap.conf to avoid dragging in i18n machinery.
9100         (gnulib_tool_option): Use it.
9101
9102 2007-04-13  Bruno Haible  <bruno@clisp.org>
9103
9104         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
9105         %F directives.
9106         * tests/test-vasprintf-posix.c (test_function): Likewise.
9107         * tests/test-snprintf-posix.h (test_function): Likewise.
9108         * tests/test-sprintf-posix.h (test_function): Likewise.
9109         * tests/test-fprintf-posix.h (test_function): Likewise.
9110         * tests/test-printf-posix.h (test_function): Likewise.
9111         * tests/test-fprintf-posix.out: Likewise.
9112
9113 2007-04-13  Bruno Haible  <bruno@clisp.org>
9114
9115         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
9116         * modules/tls-tests (configure.ac): Likewise.
9117         Reported by Arto C. Nirkko <anirkko@insel.ch>.
9118
9119 2007-04-13  Bruno Haible  <bruno@clisp.org>
9120
9121         * lib/tls.c (glthread_tls_get): Fix return type.
9122         Patch by Arto C. Nirkko <anirkko@insel.ch>.
9123
9124 2007-04-12  Eric Blake  <ebb9@byu.net>
9125
9126         * modules/gettime (Depends-on): Remove gettime.
9127         Reported by Dmitry V. Levin.
9128
9129 2007-04-12  Bruno Haible  <bruno@clisp.org>
9130
9131         * modules/fflush (Include): Mention <stdio.h>.
9132         * modules/strtoimax (Include): Mention <inttypes.h>.
9133         * modules/strtoumax (Include): Likewise.
9134
9135 2007-04-12  Eric Blake  <ebb9@byu.net>
9136
9137         * .cvsignore: New file.
9138         * .gitignore: Likewise.
9139
9140 2007-04-12  Bruno Haible  <bruno@clisp.org>
9141
9142         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
9143         not before, since $(LDADD) often contains libgnu.a.
9144         * modules/striconv-tests (test_striconv_LDADD): Likewise.
9145         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
9146         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
9147         Needed on Cygwin.
9148
9149 2007-04-12  Eric Blake  <ebb9@byu.net>
9150
9151         Work around glibc's failure to flush stdin on fclose.
9152         * lib/closein.c (close_stdin): Flush stdin before closing.
9153
9154         Work around glibc's failure to reset seekable stdin on exit.
9155         * modules/closein: New module.
9156         * lib/closein.c: New file.
9157         * lib/closein.h: Likewise.
9158         * m4/closein.m4: Likewise.
9159         * MODULES.html.sh (File stream based Input/Output): Document it.
9160
9161 2007-04-12  Simon Josefsson  <simon@josefsson.org>
9162
9163         * gnulib-tool: Rename generated 'autobuild' script to
9164         'do-autobuild' in --create-megatestdir output.
9165
9166         * doc/gnulib.texi (Build robot for gnulib): Fix.
9167
9168 2007-04-12  Simon Josefsson  <simon@josefsson.org>
9169
9170         * modules/sysexits (Depends-on): Add absolute-header.
9171
9172 2007-04-12  Eric Blake  <ebb9@byu.net>
9173
9174         No need to preserve errno on success.
9175         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
9176         Reported by Bruno Haible.
9177
9178 2007-04-12  Simon Josefsson  <simon@josefsson.org>
9179
9180         * MODULES.html.sh (Support for maintaining and releasing
9181         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
9182
9183 2007-04-12  Simon Josefsson  <simon@josefsson.org>
9184
9185         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
9186
9187 2007-04-12  Simon Josefsson  <simon@josefsson.org>
9188
9189         * modules/autobuild: New module.
9190
9191         * m4/autobuild.m4: New file.
9192
9193 2007-04-11  Bruno Haible  <bruno@clisp.org>
9194
9195         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
9196         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
9197         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
9198         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
9199         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9200         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9201         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9202         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
9203         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9204         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9205         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
9206         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9207         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9208         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
9209         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9210         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9211         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
9212         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9213         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9214         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
9215         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9216         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9217         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
9218         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9219         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9220         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
9221         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9222         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9223         Reported by Eric Blake.
9224
9225 2007-04-11  Bruno Haible  <bruno@clisp.org>
9226
9227         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
9228
9229 2007-04-10  Bruno Haible  <bruno@clisp.org>
9230
9231         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
9232         for NaN and Infinity. Needed on FreeBSD 6.1.
9233         * tests/test-vasnprintf-posix.c (test_function): Undo last change
9234         regarding results for "%010a" of Infinity and NaN.
9235         * tests/test-vasprintf-posix.c (test_function): Likewise.
9236         * tests/test-snprintf-posix.h (test_function): Likewise.
9237         * tests/test-sprintf-posix.h (test_function): Likewise.
9238         * tests/test-fprintf-posix.h (test_function): Likewise.
9239         * tests/test-printf-posix.h (test_function): Likewise.
9240         * tests/test-fprintf-posix.out: Likewise.
9241
9242 2007-04-10  Bruno Haible  <bruno@clisp.org>
9243
9244         * modules/locale-tests: New file.
9245         * tests/test-locale.c: New file.
9246
9247         * modules/locale: New file.
9248         * lib/locale_.h: New file.
9249         * m4/locale_h.m4: New file.
9250
9251 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
9252             Bruno Haible  <bruno@clisp.org>
9253
9254         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
9255         be determined, test for availability of the copysignf, copysign,
9256         copysignl functions.
9257         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
9258         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
9259         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
9260
9261 2007-04-09  Eric Blake  <ebb9@byu.net>
9262
9263         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
9264         * modules/stdio (Makefile.am): Support fflush.
9265         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9266         * modules/fflush: New file.
9267         * lib/fflush.c: Likewise.
9268         * m4/fflush.m4: Likewise.
9269         * modules/fflush-tests: New test.
9270         * tests/test-fflush.c: Likewise.
9271         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
9272
9273 2007-04-06  Bruno Haible  <bruno@clisp.org>
9274
9275         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
9276         (VASNPRINTF): Use signbit for faster determination whether to print a
9277         minus sign.
9278         * modules/vasnprintf (Files): Remove lib/float+.h.
9279         * modules/fprintf-posix (Depends-on): Add signbit.
9280         * modules/snprintf-posix (Depends-on): Likewise.
9281         * modules/sprintf-posix (Depends-on): Likewise.
9282         * modules/vasnprintf-posix (Depends-on): Likewise.
9283         * modules/vasprintf-posix (Depends-on): Likewise.
9284         * modules/vfprintf-posix (Depends-on): Likewise.
9285         * modules/vsnprintf-posix (Depends-on): Likewise.
9286         * modules/vsprintf-posix (Depends-on): Likewise.
9287
9288 2007-04-06  Bruno Haible  <bruno@clisp.org>
9289
9290         * tests/test-frexp.c (main): Test also the sign bit of zero results.
9291         * tests/test-frexpl.c (main): Likewise.
9292         * tests/test-ldexpl.c (main): Likewise.
9293         * modules/frexp-tests (Depends-on): Add signbit.
9294         * modules/frexpl-tests (Depdends-on): Likewise.
9295         * modules/ldexpl-tests (Depdends-on): Likewise.
9296
9297 2007-04-06  Bruno Haible  <bruno@clisp.org>
9298
9299         * modules/signbit-tests: New file.
9300         * tests/test-signbit.c: New file.
9301
9302         * modules/signbit: New file.
9303         * lib/signbitf.c: New file.
9304         * lib/signbitd.c: New file.
9305         * lib/signbitl.c: New file.
9306         * m4/signbit.m4: New file.
9307         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
9308         (signbit): New macro.
9309         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
9310         REPLACE_SIGNBIT.
9311         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
9312         REPLACE_FREXPL into math.h.
9313
9314 2007-04-06  Bruno Haible  <bruno@clisp.org>
9315
9316         * modules/isnanf-nolibm-tests: New file.
9317         * tests/test-isnanf.c: New file.
9318
9319         * modules/isnanf-nolibm: New file.
9320         * lib/isnanf.h: New file.
9321         * lib/isnanf.c: New file.
9322         * lib/isnan.c: Consider the USE_FLOAT macro.
9323         * m4/isnanf.m4: New file.
9324
9325 2007-04-06  Bruno Haible  <bruno@clisp.org>
9326
9327         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
9328         (Link): New section.
9329
9330         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
9331
9332 2007-04-06  Bruno Haible  <bruno@clisp.org>
9333
9334         Assume the 'long double' type.
9335         * m4/longdouble.m4: Remove file.
9336         * config/srclist.txt: Don't mention longdouble.m4.
9337         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
9338         * lib/float+.h: Likewise.
9339         * lib/frexp.c: Likewise.
9340         * lib/printf-args.h: Likewise.
9341         * lib/printf-args.c: Likewise.
9342         * lib/printf-frexp.c: Likewise.
9343         * lib/printf-parse.c: Likewise.
9344         * lib/vasnprintf.c: Likewise.
9345         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
9346         * m4/intl.m4: Likewise.
9347         * m4/isnanl.m4: Likewise.
9348         * m4/printf.m4: Likewise.
9349         * m4/printf-frexpl.m4: Likewise.
9350         * m4/vasnprintf.m4: Likewise.
9351         * modules/allocsa (Files): Remove m4/longdouble.m4.
9352         * modules/gettext (Files): Likewise.
9353         * modules/relocatable-prog-wrapper (Files): Likewise.
9354         * modules/vasnprintf (Files): Likewise.
9355         * modules/isnanl (Files): Likewise.
9356         (Include): Simplify.
9357         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
9358         (Include): Simplify.
9359         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
9360         (Include): Simplify.
9361         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
9362         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9363         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
9364         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9365         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
9366         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9367         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
9368         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9369         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
9370         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9371         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
9372         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9373         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
9374         * tests/test-isnanl.c: Likewise.
9375         * tests/test-snprintf-posix.h: Likewise.
9376         * tests/test-sprintf-posix.h: Likewise.
9377         * tests/test-vasnprintf-posix.c: Likewise.
9378         * tests/test-vasnprintf-posix2.c: Likewise.
9379         * tests/test-vasprintf-posix.c: Likewise.
9380
9381 2007-04-06  Bruno Haible  <bruno@clisp.org>
9382
9383         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
9384         * lib/math_.h [__DECC]: Include the overridden include file through
9385         #include_next, outside the double-inclusion guard.
9386         * lib/stdio_.h [__DECC]: Likewise.
9387         * lib/stdlib_.h [__DECC]: Likewise.
9388         * lib/string_.h [__DECC]: Likewise.
9389         * lib/time_.h [__DECC]: Likewise.
9390         * lib/wchar_.h [__DECC]: Likewise.
9391         * lib/wctype_.h [__DECC]: Likewise.
9392         * lib/inttypes_.h [__DECC]: Likewise.
9393         Reported by Albert Chin <china@thewrittenword.com> in
9394         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
9395
9396 2007-04-04  Eric Blake  <ebb9@byu.net>
9397
9398         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
9399         1.5.x.
9400
9401 2007-04-04  Bruno Haible  <bruno@clisp.org>
9402
9403         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
9404         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
9405
9406 2007-04-04  Bruno Haible  <bruno@clisp.org>
9407
9408         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
9409         results for "%010a" of Infinity and NaN.
9410         * tests/test-vasprintf-posix.c (test_function): Likewise.
9411         * tests/test-snprintf-posix.h (test_function): Likewise.
9412         * tests/test-sprintf-posix.h (test_function): Likewise.
9413         * tests/test-fprintf-posix.h (test_function): Remove these tests.
9414         * tests/test-printf-posix.h (test_function): Likewise.
9415         * tests/test-fprintf-posix.out: Update.
9416         Needed for FreeBSD 6.1.
9417
9418 2007-04-04  Bruno Haible  <bruno@clisp.org>
9419
9420         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
9421         directly used by the gnulib modules nor by gnulib-tool.
9422
9423 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
9424
9425         * DEPENDENCIES: Give overall description of version dependency
9426         desirability.  Use more-typical names for apps.
9427         Add shell, coreutils, diffutils, grep, tar, gzip.
9428
9429 2007-04-04  Simon Josefsson  <simon@josefsson.org>
9430
9431         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
9432
9433 2007-04-04  Karl Berry  <karl@gnu.org>
9434
9435         * MODULES.html.sh (func_module): missing '.
9436
9437 2007-04-03  Bruno Haible  <bruno@clisp.org>
9438
9439         * modules/argmatch-tests (Makefile.am): New variable
9440         test_argmatch_LDADD.
9441         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
9442         * modules/array-list-tests (Makefile.am): New variable
9443         test_array_list_LDADD.
9444         * modules/array-oset-tests (Makefile.am): New variable
9445         test_array_oset_LDADD.
9446         * modules/avltree-list-tests (Makefile.am): New variable
9447         test_avltree_list_LDADD.
9448         * modules/avltree-oset-tests (Makefile.am): New variable
9449         test_avltree_oset_LDADD.
9450         * modules/avltreehash-list-tests (Makefile.am): New variable
9451         test_avltreehash_list_LDADD.
9452         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
9453         test_canonicalize_lgpl_LDADD.
9454         * modules/carray-list-tests (Makefile.am): New variable
9455         test_carray_list_LDADD.
9456         * modules/dirname-tests (Makefile.am): New variable
9457         test_dirname_LDADD.
9458         * modules/linked-list-tests (Makefile.am): New variable
9459         test_linked_list_LDADD.
9460         * modules/linkedhash-list-tests (Makefile.am): New variable
9461         test_linkedhash_list_LDADD.
9462         * modules/rbtree-list-tests (Makefile.am): New variable
9463         test_rbtree_list_LDADD.
9464         * modules/rbtree-oset-tests (Makefile.am): New variable
9465         test_rbtree_oset_LDADD.
9466         * modules/rbtreehash-list-tests (Makefile.am): New variable
9467         test_rbtreehash_list_LDADD.
9468         * modules/xvasprintf-tests (Makefile.am): New variable
9469         test_xvasprintf_LDADD.
9470         Reported by Eric Blake.
9471
9472 2007-04-03  Eric Blake  <ebb9@byu.net>
9473
9474         * DEPENDENCIES: Weaken m4 requirements.
9475
9476 2007-04-03  Bruno Haible  <bruno@clisp.org>
9477
9478         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
9479         * modules/isnanl-tests (configure.ac): Likewise.
9480
9481 2007-04-03  Ben Pfaff  <blp@gnu.org>
9482
9483         * modules/iconv_open: Add $(srcdir)/ to source directory
9484         references in Makefile fragments that call gperf, to fix VPATH
9485         builds.
9486
9487 2007-04-03  Bruno Haible  <bruno@clisp.org>
9488
9489         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
9490         * lib/ldexpl.c: Undo last change.
9491
9492 2007-04-03  Bruno Haible  <bruno@clisp.org>
9493
9494         * modules/printf-frexpl (Depends-on): Undo last change.
9495         (Files): Add m4/ldexpl.m4.
9496
9497 2007-04-03  Bruno Haible  <bruno@clisp.org>
9498
9499         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
9500         * modules/isnanl (Link): New section.
9501
9502         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
9503         * modules/frexp (Link): New section.
9504
9505         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
9506         * modules/frexpl (Link): New section.
9507
9508         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
9509         * modules/ldexpl (Link): New section.
9510
9511 2007-04-03  Bruno Haible  <bruno@clisp.org>
9512
9513         * modules/TEMPLATE-EXTENDED: New file.
9514         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
9515
9516 2007-04-03  Bruno Haible  <bruno@clisp.org>
9517
9518         * DEPENDENCIES: New file.
9519         Suggested by Simon Josefsson.
9520
9521 2007-04-03  Bruno Haible  <bruno@clisp.org>
9522
9523         * doc/gnulib.texi: Escape @.
9524
9525 2007-04-03  James Youngman  <jay@gnu.org>
9526         and Paul Eggert  <eggert@cs.ucla.edu>
9527
9528         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
9529         birthtime on all systems that have birthtime, not just those which
9530         use st_birthtimensec rather than st_birthtim.  Putting zero in
9531         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
9532         that the birth time is not available for files on an NFS mount.
9533
9534 2007-04-03  Simon Josefsson  <simon@josefsson.org>
9535
9536         * modules/memxor: Move back from crypto/, suggested by Bruno.
9537         * modules/crypto/hmac-sha1: Fix memxor dependency.
9538
9539         * modules/crypto/gc: Moved from ../.
9540
9541 2007-04-02  Eric Blake  <ebb9@byu.net>
9542
9543         * lib/ldexpl.c (includes): Avoid libm.
9544
9545         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
9546
9547 2007-04-02  Bruno Haible  <bruno@clisp.org>
9548
9549         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
9550         on IRIX.
9551
9552 2007-04-02  Bruno Haible  <bruno@clisp.org>
9553
9554         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
9555         x86 or x86_64 platforms running MacOS X.
9556         Reported by Ryan Schmidt <@ryandesign.com>.
9557
9558 2007-04-02  Bruno Haible  <bruno@clisp.org>
9559
9560         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
9561         i386.
9562
9563 2007-04-01  Simon Josefsson  <simon@josefsson.org>
9564
9565         * modules/crypto/arcfour: Moved from ../.
9566         * modules/crypto/arcfour-tests: Moved from ../.
9567         * modules/crypto/arctwo: Moved from ../.
9568         * modules/crypto/arctwo-tests: Moved from ../.
9569         * modules/crypto/des: Moved from ../.
9570         * modules/crypto/des-tests: Moved from ../.
9571         * modules/crypto/gc-arcfour: Moved from ../.
9572         * modules/crypto/gc-arcfour-tests: Moved from ../.
9573         * modules/crypto/gc-arctwo: Moved from ../.
9574         * modules/crypto/gc-arctwo-tests: Moved from ../.
9575         * modules/crypto/gc-des: Moved from ../.
9576         * modules/crypto/gc-des-tests: Moved from ../.
9577         * modules/crypto/gc-hmac-md5: Moved from ../.
9578         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
9579         * modules/crypto/gc-hmac-sha1: Moved from ../.
9580         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
9581         * modules/crypto/gc-md2: Moved from ../.
9582         * modules/crypto/gc-md2-tests: Moved from ../.
9583         * modules/crypto/gc-md4: Moved from ../.
9584         * modules/crypto/gc-md4-tests: Moved from ../.
9585         * modules/crypto/gc-md5: Moved from ../.
9586         * modules/crypto/gc-md5-tests: Moved from ../.
9587         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
9588         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
9589         * modules/crypto/gc-random: Moved from ../.
9590         * modules/crypto/gc-rijndael: Moved from ../.
9591         * modules/crypto/gc-rijndael-tests: Moved from ../.
9592         * modules/crypto/gc-sha1: Moved from ../.
9593         * modules/crypto/gc-sha1-tests: Moved from ../.
9594         * modules/crypto/gc-tests: Moved from ../.
9595         * modules/crypto/hmac-md5: Moved from ../.
9596         * modules/crypto/hmac-md5-tests: Moved from ../.
9597         * modules/crypto/hmac-sha1: Moved from ../.
9598         * modules/crypto/hmac-sha1-tests: Moved from ../.
9599         * modules/crypto/md2: Moved from ../.
9600         * modules/crypto/md2-tests: Moved from ../.
9601         * modules/crypto/md4: Moved from ../.
9602         * modules/crypto/md4-tests: Moved from ../.
9603         * modules/crypto/md5: Moved from ../.
9604         * modules/crypto/md5-tests: Moved from ../.
9605         * modules/crypto/memxor: Moved from ../.
9606         * modules/crypto/rijndael: Moved from ../.
9607         * modules/crypto/rijndael-tests: Moved from ../.
9608         * modules/crypto/sha1: Moved from ../.
9609
9610 2007-03-30  James Youngman  <jay@gnu.org>
9611
9612         * tests/test-stat-time.c (prepare_test): use chmod() rather than
9613         rename() to change the ctime of a file (because ctime is unaffected
9614         by rename on jfs2 on AIX 5.1).
9615         (main): Start by doing cleanup, in case a previous run failed leaving
9616         test files behind.
9617
9618 2007-03-31  Bruno Haible  <bruno@clisp.org>
9619
9620         Support old proprietary implementations of iconv.
9621         * modules/iconv_open: New file.
9622         * lib/iconv_.h: New file.
9623         * m4/iconv_h.m4: New file.
9624         * lib/iconv_open.c: New file.
9625         * lib/iconv_open-aix.gperf: New file.
9626         * lib/iconv_open-hpux.gperf: New file.
9627         * lib/iconv_open-irix.gperf: New file.
9628         * lib/iconv_open-osf.gperf: New file.
9629         * m4/iconv_open.m4: New file.
9630         * modules/linebreak (Depends-on): Add iconv_open.
9631         * modules/striconv (Depends-on): Likewise.
9632         * modules/striconveh (Depends-on): Likewise.
9633         * modules/unicodeio (Depends-on): Likewise.
9634         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
9635         (iconv_t)(-1).
9636         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
9637         conversion if cd is (iconv_t)(-1).
9638         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
9639         is not possible.
9640
9641 2007-03-31  Bruno Haible  <bruno@clisp.org>
9642
9643         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
9644         work on Solaris either. Protect also second use of "autodetect_jp".
9645
9646 2007-03-31  Bruno Haible  <bruno@clisp.org>
9647
9648         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
9649         the function is not present.
9650
9651 2007-03-31  Bruno Haible  <bruno@clisp.org>
9652
9653         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
9654         the function is not present.
9655
9656 2007-03-31  Bruno Haible  <bruno@clisp.org>
9657
9658         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
9659         a bug in HP-UX iconv_open().
9660
9661 2007-03-31  Bruno Haible  <bruno@clisp.org>
9662
9663         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
9664         (Mathematics <math.h>): New section, add fpieee.
9665         (Input/output <stdio.h>): Add fseterr.
9666         (Mathematics <math.h>): New section, add printf-frexp.
9667         (Container data structures): Add sublist.
9668         (Core language properties): Add fpucw, inline.
9669         (Functions for greatest-width integer types <inttypes.h>): Add
9670         imaxabs, imaxdiv, inttypes.
9671         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
9672         isnanl-nolibm, ldexp.
9673         (Mathematics <math.h>): New section, add printf-frexpl.
9674         (Support for systems lacking POSIX:2001): Add fprintf-posix,
9675         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
9676         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
9677         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
9678         (Unicode string functions): Add unistr/u*-mbtoucr.
9679         (Java): Add javacomp-script, javaexec-script.
9680         (C#): Add csharpcomp-script, csharpexec-script.
9681         (Support for building libraries and executables): Add havelib,
9682         relocatable-*.
9683         (Support for maintaining and releasing projects): Renamed from
9684         'Support for maintaining and release projects'. Add announce-gen.
9685
9686 2007-03-31  Bruno Haible  <bruno@clisp.org>
9687
9688         * README: Talk primarily about git.
9689         (git and CVS): Renamed from CVS.
9690         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
9691         gnulib is available through git.
9692         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
9693
9694 2007-03-30  Bruno Haible  <bruno@clisp.org>
9695
9696         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
9697         * lib/poll_.h: Likewise.
9698         * lib/stat_.h: Likewise.
9699         * lib/sys_time_.h: Likewise.
9700         * lib/sysexit_.h: Likewise.
9701         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
9702         * lib/stdbool_.h: Likewise.
9703         * lib/byteswap_.h: Add double-inclusion guard.
9704
9705 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
9706
9707         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
9708
9709 2007-03-30  Karl Berry  <karl@gnu.org>
9710
9711         * config/srclist-update: double space after USA in the license
9712         substitution, since that's how it's usually (?) written.
9713
9714 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
9715
9716         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
9717         reported by Bruno Haible.
9718
9719 2007-03-29  Bruno Haible  <bruno@clisp.org>
9720
9721         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
9722         a bug in AIX iconv().
9723
9724 2007-03-29  Bruno Haible  <bruno@clisp.org>
9725
9726         * modules/ldexpl-tests: New file.
9727         * tests/test-ldexpl.c: New file.
9728
9729 2007-03-29  Bruno Haible  <bruno@clisp.org>
9730
9731         * lib/ldexpl.c: Include fpucw.h.
9732         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
9733         multiplication.
9734         * modules/ldexpl (Depends-on): Add fpucw.
9735
9736 2007-03-29  Bruno Haible  <bruno@clisp.org>
9737
9738         * modules/ldexpl: New file.
9739         * m4/ldexpl.m4: New file.
9740         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
9741         set.
9742         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
9743         REPLACE_LDEXPL.
9744         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
9745         REPLACE_LDEXPL.
9746         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
9747         gl_FUNC_LDEXPL_WORKS.
9748         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
9749         * modules/mathl (Files): Remove lib/ldexpl.c.
9750         (Depends-on): Add ldexpl.
9751
9752 2007-03-29  Bruno Haible  <bruno@clisp.org>
9753
9754         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
9755
9756 2007-03-29  Bruno Haible  <bruno@clisp.org>
9757
9758         * tests/test-striconveh.c (main): Don't assume that a direct conversion
9759         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
9760         and possibly also HP-UX.
9761         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
9762         work on AIX, IRIX, HP-UX, OSF/1.
9763         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
9764         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
9765         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
9766         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
9767         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
9768         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
9769
9770 2007-03-29  Bruno Haible  <bruno@clisp.org>
9771
9772         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
9773
9774 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
9775
9776         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
9777         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
9778
9779 2007-03-29  Eric Blake  <ebb9@byu.net>
9780
9781         * lib/acl-internal.h: Remove redundant include.
9782         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
9783         Cygwin when a file is locked.
9784
9785 2007-03-29  Bruno Haible  <bruno@clisp.org>
9786
9787         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
9788         file.
9789         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
9790
9791 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
9792
9793         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
9794         try to remove a parent directory if the child couldn't be removed
9795         (except for the first rmdir, which could fail because the child
9796         doesn't exist).  Problem reported by Jeff Blaine in
9797         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
9798
9799 2007-03-28  Bruno Haible  <bruno@clisp.org>
9800
9801         * lib/striconveh.c (utf8conv_carefully): New function.
9802         (mem_cd_iconveh_internal): Invoke it.
9803
9804 2007-03-28  Bruno Haible  <bruno@clisp.org>
9805
9806         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
9807         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
9808         input.
9809         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
9810         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
9811         unistr/u8-uctomb.
9812
9813 2007-03-28  Bruno Haible  <bruno@clisp.org>
9814
9815         * modules/unistr/u8-mbtoucr: New file.
9816         * lib/unistr/u8-mbtoucr.c: New file.
9817         * modules/unistr/u16-mbtoucr: New file.
9818         * lib/unistr/u16-mbtoucr.c: New file.
9819         * modules/unistr/u16-mbtoucr: New file.
9820         * lib/unistr/u16-mbtoucr.c: New file.
9821         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
9822
9823 2007-03-27  Simon Josefsson  <simon@josefsson.org>
9824             Bruno Haible  <bruno@clisp.org>
9825
9826         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
9827         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
9828         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
9829
9830         * m4/stdio_h.m4: Add stubs for vasprintf too.
9831
9832         * modules/stdio: Support vasprintf in sed command.
9833
9834         * modules/vasprintf: Depend on stdio for prototypes.  Remove
9835         vasprintf.h.  Add stdio module indicator.
9836
9837         * lib/stdio_.h: Declare asprintf and vasprintf, based on
9838         vasprintf.h.
9839
9840         * lib/vasprintf.h: File removed.
9841
9842         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
9843         * lib/vasprintf.c: Ditto.
9844         * lib/xvasprintf.c: Ditto.
9845         * tests/test-vasprintf-posix.c: Ditto.
9846         * tests/test-vasprintf.c: Ditto.
9847
9848 2007-03-27  Bruno Haible  <bruno@clisp.org>
9849
9850         Make vasnprintf multithread-safe.
9851         * lib/vasnprintf.c (decimal_point_char): New function.
9852         (VASNPRINTF): Use it.
9853         Suggested by Simon Josefsson.
9854
9855 2007-03-27  Eric Blake  <ebb9@byu.net>
9856
9857         Support sub-second birthtime on cygwin.
9858         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
9859         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
9860         (get_stat_birthtime): Also work with st_birthtim.
9861
9862 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
9863
9864         * lib/stat-time.h (USE_BIRTHTIME): Remove.
9865         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
9866         (get_stat_birthtime_ns): Do not try to use "spare" fields.
9867         (get_stat_birthtime_ns): Simplify compile-time tests.
9868         (get_stat_birthtime): Change the API to look like
9869         get_stat_mtime etc., except return a negative tv_nsec on error.
9870         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
9871         Don't check for "spare" fields.
9872         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
9873         or for struct stat.st_birthtime, as these tests aren't used.
9874         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
9875
9876 2007-03-27  Bruno Haible  <bruno@clisp.org>
9877
9878         * lib/stat-time.h: Include <sys/stat.h>.
9879
9880 2007-03-27  James Youngman  <jay@gnu.org>
9881
9882         * lib/stat-time.h (get_stat_birthtime): New function for
9883           retrieving st_birthtime as provided by UFS2 (hence *BSD).
9884         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
9885           and its variants.
9886         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
9887         * modules/stat-time-test: New file.
9888         * tests/test-stat-time.c: New test, devised by Bruno Haible.
9889
9890 2007-03-26  Bruno Haible  <bruno@clisp.org>
9891
9892         Better support of signalling NaNs.
9893         * lib/atanl.c: Include isnanl.h.
9894         (atanl): Perform test for NaN at the beginning of the function and
9895         through a call to isnanl.
9896         * lib/cosl.c: Include isnanl.h.
9897         (cosl): Perform test for NaN at the beginning of the function and
9898         through a call to isnanl.
9899         * lib/ldexpl.c: Include isnanl.h.
9900         (ldexpl): Perform test for NaN through a call to isnanl.
9901         * lib/logl.c: Include isnanl.h.
9902         (logl): Perform test for NaN at the beginning of the function and
9903         through a call to isnanl.
9904         * lib/sinl.c: Include isnanl.h.
9905         (sinl): Perform test for NaN at the beginning of the function and
9906         through a call to isnanl.
9907         * lib/sqrtl.c: Include isnanl.h.
9908         (sqrtl): Perform test for NaN at the beginning of the function and
9909         through a call to isnanl.
9910         * lib/tanl.c: Include isnanl.h.
9911         (tanl): Perform test for NaN at the beginning of the function and
9912         through a call to isnanl.
9913         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
9914         * modules/mathl (Depends-on): Add isnanl.
9915
9916 2007-03-26  Eric Blake  <ebb9@byu.net>
9917
9918         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
9919         regression in logic sense of previous patch.
9920
9921 2007-03-26  Bruno Haible  <bruno@clisp.org>
9922
9923         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
9924         unportable shell command "if ! ...".
9925         Reported by Ralf Wildenhues.
9926
9927 2007-03-25  Bruno Haible  <bruno@clisp.org>
9928
9929         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
9930         <sysexits.h> file, and only add EX_CONFIG.
9931         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
9932         absolute file name and whether it is sufficient. Substitute also
9933         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
9934         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
9935         ABSOLUTE_SYSEXITS_H into sysexits.h.
9936
9937 2007-03-25  Bruno Haible  <bruno@clisp.org>
9938
9939         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
9940         hints is NULL.
9941
9942 2007-03-25  Bruno Haible  <bruno@clisp.org>
9943
9944         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
9945         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
9946
9947 2007-03-25  Bruno Haible  <bruno@clisp.org>
9948
9949         * lib/vasnprintf.c: Include langinfo.h.
9950         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
9951         multithread-safe.
9952         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
9953         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
9954         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9955         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9956         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9957         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9958         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9959         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
9960         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9961         Reported by Simon Josefsson.
9962
9963 2007-03-25  Bruno Haible  <bruno@clisp.org>
9964
9965         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
9966         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
9967         * modules/vasnprintf (Depends-on): Add stdint.
9968
9969 2007-03-25  Bruno Haible  <bruno@clisp.org>
9970
9971         * modules/fpieee: New file.
9972         * m4/fpieee.m4: New file.
9973         * modules/isnan-nolibm (Depends-on): Add fpieee.
9974         * modules/isnanl-nolibm (Depends-on): Add fpieee.
9975         * modules/isnanl (Depends-on): Add fpieee.
9976
9977 2007-03-25  Bruno Haible  <bruno@clisp.org>
9978
9979         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
9980
9981 2007-03-25  Bruno Haible  <bruno@clisp.org>
9982
9983         Avoid test failures on IRIX 6.5.
9984         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
9985         (main): Use it.
9986         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
9987         macros.
9988         (main): Use them.
9989
9990 2007-03-25  Bruno Haible  <bruno@clisp.org>
9991
9992         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
9993         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
9994         exists but doesn't work.
9995         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
9996         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
9997         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
9998         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
9999
10000 2007-03-25  Bruno Haible  <bruno@clisp.org>
10001
10002         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
10003         returns inf. Needed on IRIX 6.5.
10004
10005 2007-03-25  Bruno Haible  <bruno@clisp.org>
10006
10007         * tests/test-frexpl.c: Include isnanl-nolibm.h.
10008         (main): Use isnanl instead of x != x idiom.
10009         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
10010
10011         * tests/test-frexp.c: Include isnan.h.
10012         (main): Use isnan instead of x != x idiom.
10013         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
10014
10015 2007-03-25  Bruno Haible  <bruno@clisp.org>
10016
10017         * tests/test-frexp.c (NaN): New function/macro.
10018         (main): Use it instead of 0.0 / 0.0.
10019         * tests/test-isnan.c (NaN): New function/macro.
10020         (main): Use it instead of 0.0 / 0.0.
10021         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
10022         (test_function): Use it instead of 0.0 / 0.0.
10023         * tests/test-vasprintf-posix.c (NaN): New function/macro.
10024         (test_function): Use it instead of 0.0 / 0.0.
10025         * tests/test-snprintf-posix.h (NaN): New function/macro.
10026         (test_function): Use it instead of 0.0 / 0.0.
10027         * tests/test-sprintf-posix.h (NaN): New function/macro.
10028         (test_function): Use it instead of 0.0 / 0.0.
10029         * tests/test-fprintf-posix.h (NaN): New function/macro.
10030         (test_function): Use it instead of 0.0 / 0.0.
10031         * tests/test-printf-posix.h (NaN): New function/macro.
10032         (test_function): Use it instead of 0.0 / 0.0.
10033
10034         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
10035
10036 2007-03-25  Bruno Haible  <bruno@clisp.org>
10037
10038         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
10039
10040 2007-03-25  Bruno Haible  <bruno@clisp.org>
10041
10042         * lib/regexec.c (merge_state_with_log): Make static.
10043
10044 2007-03-25  Bruno Haible  <bruno@clisp.org>
10045
10046         * lib/trigl.c (kernel_rem_pio2): Make static.
10047
10048 2007-03-25  Bruno Haible  <bruno@clisp.org>
10049
10050         * lib/sincosl.c (sincosl_table): Make static.
10051
10052 2007-03-25  Bruno Haible  <bruno@clisp.org>
10053
10054         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
10055         if the compiler does not support C99.
10056
10057 2007-03-25  Bruno Haible  <bruno@clisp.org>
10058
10059         * modules/time (Makefile.am): Ensure all rule action lines start with a
10060         tab.
10061
10062 2007-03-24  Bruno Haible  <bruno@clisp.org>
10063
10064         * modules/tsearch-tests: New file.
10065         * tests/test-tsearch.sh: New file.
10066         * tests/test-tsearch.c: New file, mostly copied from glibc.
10067
10068         * modules/search-tests: New file.
10069         * tests/test-search.c: New file.
10070
10071         * modules/search: New file.
10072         * lib/search_.h: New file, incorporating lib/tsearch.h.
10073         * m4/search_h.m4: New file.
10074         * lib/tsearch.h: Remove file.
10075         * lib/tsearch.c: Include search.h instead of tsearch.h.
10076         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
10077         HAVE_TSEARCH.
10078         * modules/tsearch (Files): Remove lib/tsearch.h.
10079         (Depends-on): Add search.
10080         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
10081         (Include): Change tsearch.h into search.h.
10082
10083 2007-03-24  Bruno Haible  <bruno@clisp.org>
10084
10085         * modules/fpucw: New file.
10086         * lib/fpucw.h: New file.
10087         * lib/frexp.c: Include fpucw.h.
10088         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
10089         (FUNC): Use them.
10090         * lib/printf-frexp.c: Include fpucw.h.
10091         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
10092         (FUNC): Use them.
10093         * lib/vasnprintf.c: Include fpucw.h.
10094         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
10095         'long double' calculations.
10096         * tests/test-frexpl.c: Include fpucw.h.
10097         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
10098         * tests/test-printf-frexpl.c: Include fpucw.h.
10099         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
10100         * modules/frexpl (Depends-on): Add fpucw.
10101         * modules/printf-frexpl (Depends-on): Likewise.
10102         * modules/fprintf-posix (Depends-on): Likewise.
10103         * modules/snprintf-posix (Depends-on): Likewise.
10104         * modules/sprintf-posix (Depends-on): Likewise.
10105         * modules/vasnprintf-posix (Depends-on): Likewise.
10106         * modules/vasprintf-posix (Depends-on): Likewise.
10107         * modules/vfprintf-posix (Depends-on): Likewise.
10108         * modules/vsnprintf-posix (Depends-on): Likewise.
10109         * modules/vsprintf-posix (Depends-on): Likewise.
10110         * modules/frexpl-tests (Depends-on): Likewise.
10111         * modules/printf-frexpl-tests (Depends-on): Likewise.
10112
10113 2007-03-24  Bruno Haible  <bruno@clisp.org>
10114
10115         * lib/float+.h: New file.
10116         * lib/isnan.c: Include float+.h.
10117         (SIZE): New macro.
10118         (FUNC): Compare only SIZE bytes of the value.
10119         * lib/vasnprintf.c: Include float+.h.
10120         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
10121         SIZEOF_LDBL or SIZEOF_DBL bytes.
10122         * modules/isnan-nolibm (Files): Add lib/float+.h.
10123         * modules/isnanl-nolibm (Files): Add lib/float+.h.
10124         * modules/isnanl (Files): Add lib/float+.h.
10125         * modules/vasnprintf (Files): Add lib/float+.h.
10126
10127 2007-03-24  Bruno Haible  <bruno@clisp.org>
10128
10129         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
10130         include isnanl-nolibm.h.
10131
10132 2007-03-24  Bruno Haible  <bruno@clisp.org>
10133
10134         * tests/test-read-file.c (main): Don't produce spurious output for
10135         expected situations. Make the test fail if it encountered unexpected
10136         results.
10137
10138 2007-03-24  Bruno Haible  <bruno@clisp.org>
10139
10140         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
10141         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
10142
10143 2007-03-24  Bruno Haible  <bruno@clisp.org>
10144
10145         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
10146
10147 2007-03-24  Bruno Haible  <bruno@clisp.org>
10148
10149         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
10150         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
10151
10152         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
10153         * modules/utf8-ucs4: Turn into a symbolic link to module
10154         unistr/u8-mbtouc.
10155
10156         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
10157         utf8-ucs4-unsafe.
10158         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
10159         unistr/u8-mbtouc-unsafe.
10160
10161         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
10162         * modules/utf16-ucs4: Turn into a symbolic link to module
10163         unistr/u16-mbtouc.
10164
10165         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
10166         utf16-ucs4-unsafe.
10167         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
10168         unistr/u16-mbtouc-unsafe.
10169
10170         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
10171         * modules/ucs4-utf8: Turn into a symbolic link to module
10172         unistr/u8-ubtomb.
10173
10174         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
10175         * modules/ucs4-utf16: Turn into a symbolic link to module
10176         unistr/u16-ubtomb.
10177
10178 2007-03-24  Bruno Haible  <bruno@clisp.org>
10179
10180         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
10181         Enable the function only if HAVE_INLINE.
10182         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
10183         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
10184         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
10185         Enable the function only if HAVE_INLINE.
10186         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
10187         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
10188         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
10189         Enable the function only if HAVE_INLINE.
10190         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
10191         Enable the function only if HAVE_INLINE.
10192         * modules/utf8-ucs4: Update.
10193         * modules/utf8-ucs4-unsafe: Update.
10194         * modules/utf16-ucs4: Update.
10195         * modules/utf16-ucs4-unsafe: Update.
10196         * modules/ucs4-utf8: Update.
10197         * modules/ucs4-utf16: Update.
10198
10199 2007-03-24  Bruno Haible  <bruno@clisp.org>
10200
10201         * lib/utf8-ucs4.h: Remove file.
10202         * lib/utf8-ucs4-unsafe.h: Remove file.
10203         * lib/utf16-ucs4.h: Remove file.
10204         * lib/utf16-ucs4-unsafe.h: Remove file.
10205         * lib/ucs4-utf8.h: Remove file.
10206         * lib/ucs4-utf16.h: Remove file.
10207         * lib/unistr.h: Include their previous contents.
10208         * m4/utf-ucs4.m4: Remove file.
10209         * m4/ucs4-utf.m4: Remove file.
10210         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
10211         (Depends-on): Add unistr/base.
10212         (configure.ac): Remove gl_UTF_UCS4.
10213         (Makefile.am): Update.
10214         (Include): Change to unistr.h.
10215         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
10216         (Depends-on): Add unistr/base.
10217         (configure.ac): Remove gl_UTF_UCS4.
10218         (Makefile.am): Update.
10219         (Include): Change to unistr.h.
10220         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
10221         (Depends-on): Add unistr/base.
10222         (configure.ac): Remove gl_UTF_UCS4.
10223         (Makefile.am): Update.
10224         (Include): Change to unistr.h.
10225         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
10226         (Depends-on): Add unistr/base.
10227         (configure.ac): Remove gl_UTF_UCS4.
10228         (Makefile.am): Update.
10229         (Include): Change to unistr.h.
10230         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
10231         (Depends-on): Add unistr/base.
10232         (configure.ac): Remove gl_UCS4_UTF.
10233         (Makefile.am): Update.
10234         (Include): Change to unistr.h.
10235         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
10236         (Depends-on): Add unistr/base.
10237         (configure.ac): Remove gl_UCS4_UTF.
10238         (Makefile.am): Update.
10239         (Include): Change to unistr.h.
10240         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
10241         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
10242         utf8-ucs4-unsafe.h.
10243         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
10244         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
10245         utf16-ucs4-unsafe.h.
10246         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
10247         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
10248         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
10249         * lib/unistr/u8-strchr.c: Likewise.
10250         * lib/unistr/u8-strrchr.c: Likewise.
10251         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
10252         * lib/unistr/u16-strchr.c: Likewise.
10253         * lib/unistr/u16-strrchr.c: Likewise.
10254         * lib/striconveh.c: Update.
10255         * lib/linebreak.c: Update.
10256
10257 2007-03-24  Bruno Haible  <bruno@clisp.org>
10258
10259         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
10260         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
10261
10262 2007-03-22  Bruno Haible  <bruno@clisp.org>
10263
10264         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
10265
10266 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
10267
10268         * MODULES.html.sh (File system functions): New module write-any-file.
10269         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
10270         * m4/write-any-file.m4: New files.
10271
10272 2007-03-23  Eric Blake  <ebb9@byu.net>
10273
10274         * gnulib-tool: Rearrange space-tab sequences, since some editors
10275         like to eat them.
10276
10277 2007-03-23  Eric Blake  <ebb9@byu.net>
10278
10279         * lib/version-etc.c (version_etc_va): Update license wording to
10280         be more concise.  Recommended by Richard Stallman.
10281
10282 2007-03-22  Bruno Haible  <bruno@clisp.org>
10283
10284         * lib/poll.c (MSG_PEEK): New fallback definition.
10285
10286 2007-03-22  Bruno Haible  <bruno@clisp.org>
10287
10288         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
10289         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
10290         (main): Update.
10291         Fixes a compilation error on BeOS.
10292
10293 2007-03-22  Bruno Haible  <bruno@clisp.org>
10294
10295         * modules/frexpl-tests: New file.
10296         * tests/test-frexpl.c: New file.
10297
10298         * modules/frexpl: New file.
10299         * m4/frexpl.m4: New file.
10300         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
10301         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
10302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
10303         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
10304         (Depends-on): Add frexpl. Remove isnanl-nolibm.
10305         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
10306
10307 2007-03-22  Bruno Haible  <bruno@clisp.org>
10308
10309         * lib/frexpl.c: Share code with lib/frexp.c.
10310         * modules/mathl (Files): Add lib/frexp.c.
10311         (Depends-on): Add isnanl-nolibm.
10312
10313 2007-03-22  Bruno Haible  <bruno@clisp.org>
10314
10315         * modules/printf-frexp (Files): Add m4/frexp.m4.
10316         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
10317         only if the found frexp function actually works.
10318
10319 2007-03-22  Bruno Haible  <bruno@clisp.org>
10320
10321         * lib/frexp.c: Remove older implementation that uses divisions.
10322
10323 2007-03-21  Bruno Haible  <bruno@clisp.org>
10324
10325         * modules/frexp-tests: New file.
10326         * tests/test-frexp.c: New file.
10327
10328         * modules/frexp: New file.
10329         * lib/frexp.c: New file.
10330         * m4/frexp.m4: New file.
10331         * lib/math_.h (frexp): New declaration.
10332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
10333         REPLACE_FREXP.
10334         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
10335
10336 2007-03-21  Bruno Haible  <bruno@clisp.org>
10337
10338         * modules/isnanl-tests: New file.
10339         * tests/test-isnanl.c: New file.
10340
10341         * modules/isnanl: New file.
10342         * lib/isnanl.h: New file.
10343         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
10344         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
10345         gl_FUNC_ISNANL_WORKS.
10346         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
10347         New macros.
10348
10349 2007-03-21  Bruno Haible  <bruno@clisp.org>
10350
10351         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
10352         lib/isnanl.h.
10353         (Include): Update.
10354         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
10355         * lib/vasnprintf.c: Update.
10356         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
10357         tests/test-isnanl.h, remove tests/test-isnanl.c.
10358         (Makefile.am): Update.
10359         * tests/test-isnanl-nolibm.c: New file.
10360         * tests/test-isnanl.h: New file.
10361         * tests/test-isnanl.c: Remove file.
10362
10363 2007-03-21  Jim Meyering  <jim@meyering.net>
10364
10365         When trying to open ".", treat ESTALE like EACCES.
10366         * lib/savewd.c (savewd_save): Resort to forking not just upon
10367         failure with EACCES, but also when errno is ESTALE.
10368
10369 2007-03-20  Bruno Haible  <bruno@clisp.org>
10370
10371         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
10372         Needed on AIX 5.1. Reported by Matthew Woehlke.
10373
10374 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10375
10376         Suggestions by Bruno Haible:
10377         * lib/acl-internal.h: Include "gettext.h" rather than rolling
10378         our own.
10379         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
10380         * modules/acl (Depends-on): Add gettext.
10381
10382 2007-03-19  Bruno Haible  <bruno@clisp.org>
10383
10384         * modules/iconvme: Remove file.
10385         * lib/iconvme.h: Remove file.
10386         * lib/iconvme.c: Remove file.
10387         * m4/iconvme.m4: Remove file.
10388
10389 2007-03-19  Bruno Haible  <bruno@clisp.org>
10390
10391         * doc/relocatable-maint.texi: Break long shell script line.
10392         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
10393
10394 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10395
10396         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
10397         handle file_has_acl.
10398         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
10399         * lib/acl.c: Move header inclusions and related macro defns into
10400         lib/acl-internal.h.
10401         (S_ISLNK): Remove defn, since that's now done for us.
10402         (file_has_acl): Move to lib/file-has-acl.c.
10403         Call acl_trivial if available.  This is the crucial part of the fix.
10404         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
10405         shared within the library.  Rewrite a bit, partly to make it compatible
10406         with the GNU coding style.
10407         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
10408         Remove unnecessary double-quotes.
10409         Don't test for acl_to_text; the build will catch that.
10410         Replace acl_entries if it doesn't exist and it is needed.
10411         Check for -lsec and acl_trivial (as used on Solaris 10).
10412         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
10413         lib/file-has-acl.c.
10414         (Depends-on): Add sys_stat, for S_ISLNK.
10415
10416 2007-03-19  Ben Pfaff  <blp@gnu.org>
10417
10418         * doc/gnulib.texi: Fix typos.
10419         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
10420
10421 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10422
10423         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
10424         If size is zero here, buf must be zero.
10425
10426 2007-03-19  Simon Josefsson  <simon@josefsson.org>
10427
10428         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
10429         <bruno@clisp.org>.
10430
10431 2007-03-18  Bruno Haible  <bruno@clisp.org>
10432
10433         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
10434         Suggested by Eric Blake.
10435
10436 2007-03-18  Ben Pfaff  <blp@gnu.org>
10437
10438         * doc/relocatable.texi: Recommend using as prefix a directory
10439         that does not exist and will never be created.  Based on
10440         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
10441         and others.
10442
10443 2007-03-17  Bruno Haible  <bruno@clisp.org>
10444
10445         * lib/fchownat.c: Include lchown.h.
10446
10447 2007-03-17  Bruno Haible  <bruno@clisp.org>
10448
10449         Fix endless loop when the given allocated size was > INT_MAX.
10450         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
10451         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
10452         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
10453         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
10454         * lib/sprintf.c (sprintf): Likewise.
10455
10456 2007-03-17  Bruno Haible  <bruno@clisp.org>
10457
10458         * tests/test-argp-2.sh (func_compare): Output a context diff.
10459
10460 2007-03-17  Bruno Haible  <bruno@clisp.org>
10461
10462         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
10463         locale's decimal-point character.
10464
10465 2007-03-17  Bruno Haible  <bruno@clisp.org>
10466
10467         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
10468         before comparing it. Needed because on some platforms (e.g. x86) a
10469         'long double' occupies less bytes than sizeof (long double).
10470
10471 2007-03-17  Bruno Haible  <bruno@clisp.org>
10472
10473         * tests/test-crc.c (main): Make printf statements 64-bit clean.
10474         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
10475         * tests/test-getaddrinfo.c (simple): Likewise.
10476         * tests/test-read-file.c (main): Likewise.
10477
10478 2007-03-17  Bruno Haible  <bruno@clisp.org>
10479
10480         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
10481
10482 2007-03-17  Bruno Haible  <bruno@clisp.org>
10483
10484         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
10485         unused variable.
10486
10487 2007-03-17  Bruno Haible  <bruno@clisp.org>
10488
10489         * tests/test-c-strcasecmp.c: Include c-strcase.h.
10490         * tests/test-c-strncasecmp.c: Likewise.
10491
10492 2007-03-17  Bruno Haible  <bruno@clisp.org>
10493
10494         * modules/stdlib (Depends-on): Add unistd.
10495         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
10496         Needed for MacOS X 10.3.
10497
10498 2007-03-17  Bruno Haible  <bruno@clisp.org>
10499
10500         * lib/unistr/u-strdup.h: Include <stdlib.h>.
10501
10502 2007-03-17  Bruno Haible  <bruno@clisp.org>
10503
10504         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
10505
10506 2007-03-17  Bruno Haible  <bruno@clisp.org>
10507
10508         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
10509         to reflect files copied from gnulib (with or without modifications).
10510         Suggested by Jim Meyering.
10511
10512 2007-03-17  Eric Blake  <ebb9@byu.net>
10513
10514         * NEWS: Document stdlib change from 2007-02-18.
10515
10516 2007-03-17  Jim Meyering  <jim@meyering.net>
10517
10518         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
10519         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
10520         someone uses a name containing shell meta-characters.
10521         Reported by Alfred M. Szmidt.
10522
10523         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
10524
10525 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
10526
10527         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
10528         and copy gettext configuration files only if configure.ac contains
10529         a use of AM_GNU_GETTEXT_VERSION.
10530
10531 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
10532
10533         * build-aux/bootstrap (gnulib_name): New variable.
10534         (gnulib_tool_options): Use it.
10535
10536 2007-03-13  Simon Josefsson  <simon@josefsson.org>
10537
10538         * tests/test-des.c: Use new namespace.
10539
10540 2007-03-15  Bruno Haible  <bruno@clisp.org>
10541
10542         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
10543         Reported by James Youngman <jay@gnu.org>.
10544
10545 2007-03-15  Bruno Haible  <bruno@clisp.org>
10546
10547         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
10548         declared prototype. Needed with cc on OSF/1 5.1.
10549
10550 2007-03-15  Bruno Haible  <bruno@clisp.org>
10551
10552         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
10553         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
10554         (struct gl_list_implementation): Add dispose_fn argument to the
10555         'create_empty', 'create' methods.
10556         (struct gl_list_impl_base): Add field 'dispose_fn'.
10557         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
10558         argument.
10559         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
10560         dispose_fn argument.
10561         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
10562         dispose_fn on the dropped values.
10563         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
10564         dispose_fn argument.
10565         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
10566         dropped values.
10567         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
10568         (gl_tree_remove_node): Call dispose_fn on the dropped value.
10569         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
10570         (gl_tree_remove_node): Call dispose_fn on the dropped value.
10571         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
10572         argument.
10573         (gl_tree_list_free): Call dispose_fn on the dropped values.
10574         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
10575         the dropped values.
10576         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
10577         Add dispose_fn argument.
10578         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
10579         Call dispose_fn on the dropped values.
10580         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
10581         Add dispose_fn argument.
10582         (gl_sublist_create): Initialize the 'dispose_fn' field.
10583         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
10584         * tests/test-array_list.c (main): Update.
10585         * tests/test-carray_list.c (main): Update.
10586         * tests/test-avltree_list.c (main): Update.
10587         * tests/test-rbtree_list.c (main): Update.
10588         * tests/test-avltreehash_list.c (main): Update.
10589         * tests/test-rbtreehash_list.c (main): Update.
10590         * tests/test-linked_list.c (main): Update.
10591         * tests/test-linkedhash_list.c (main): Update.
10592         * tests/test-array_oset.c (main): Update.
10593
10594 2007-03-15  Bruno Haible  <bruno@clisp.org>
10595
10596         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
10597         (gl_oset_create_empty): Add dispose_fn argument.
10598         (struct gl_oset_implementation): Add dispose_fn argument to
10599         'create_empty' method.
10600         (struct gl_oset_impl_base): Add dispose_fn field.
10601         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
10602         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
10603         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
10604         values.
10605         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
10606         (gl_tree_oset_free): Call dispose_fn on the dropped values.
10607         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
10608         dropped value.
10609         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
10610         dropped value.
10611         * tests/test-array_oset.c (main): Update.
10612         * tests/test-avltree_oset.c (main): Update.
10613         * tests/test-rbtree_oset.c (main): Update.
10614         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
10615
10616 2007-03-13  Bruno Haible  <bruno@clisp.org>
10617
10618         * tests/test-stdbool.c (i): Update after last patch.
10619
10620 2007-03-12  Bruno Haible  <bruno@clisp.org>
10621
10622         * lib/quotearg.c: Include <wctype.h> early, before the definition of
10623         the iswprint macro. Needed on Solaris 2.5.1.
10624
10625 2007-03-12  Bruno Haible  <bruno@clisp.org>
10626
10627         * tests/test-printf-frexp.c (main): Declare x as volatile.
10628
10629 2007-03-12  Simon Josefsson  <simon@josefsson.org>
10630
10631         * doc/gnulib.texi (Build robot for gnulib): New section.
10632
10633 2007-03-12  Jim Meyering  <jim@meyering.net>
10634
10635         * build-aux/bootstrap: New file.
10636         * build-aux/bootstrap.conf: New file, from coreutils.
10637
10638 2007-03-11  Bruno Haible  <bruno@clisp.org>
10639
10640         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
10641
10642 2007-03-12  Simon Josefsson  <simon@josefsson.org>
10643
10644         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
10645         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
10646         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
10647
10648 2007-03-11  Bruno Haible  <bruno@clisp.org>
10649
10650         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
10651         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
10652
10653 2007-03-11  Bruno Haible  <bruno@clisp.org>
10654
10655         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
10656         formula. Needed for SunPRO C 5.0.
10657
10658 2007-03-11  Bruno Haible  <bruno@clisp.org>
10659
10660         * modules/long-options (Depends-on): Add getopt.
10661
10662 2007-03-11  Bruno Haible  <bruno@clisp.org>
10663
10664         * modules/modechange (Depends-on): Add stdbool.
10665
10666 2007-03-11  Bruno Haible  <bruno@clisp.org>
10667
10668         * modules/i-ring (Depends-on): Add stdbool.
10669
10670 2007-03-11  Bruno Haible  <bruno@clisp.org>
10671
10672         * modules/gc-des (Depends-on): Add stdbool.
10673
10674 2007-03-11  Bruno Haible  <bruno@clisp.org>
10675
10676         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
10677
10678 2007-03-11  Bruno Haible  <bruno@clisp.org>
10679
10680         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
10681
10682 2007-03-11  Bruno Haible  <bruno@clisp.org>
10683
10684         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
10685
10686 2007-03-11  Bruno Haible  <bruno@clisp.org>
10687
10688         * lib/vasnprintf.c (sprintf): Undefine.
10689
10690 2007-03-11  Bruno Haible  <bruno@clisp.org>
10691
10692         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
10693         initializers in SunPRO C and Compaq C compilers.
10694
10695 2007-03-11  Bruno Haible  <bruno@clisp.org>
10696
10697         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
10698         decrementing code ANSI C compliant.
10699
10700 2007-03-11  Bruno Haible  <bruno@clisp.org>
10701
10702         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
10703         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
10704
10705 2007-03-11  Bruno Haible  <bruno@clisp.org>
10706
10707         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
10708         <stdbool.h> substitute doesn't pass.
10709
10710 2007-03-11  Bruno Haible  <bruno@clisp.org>
10711
10712         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
10713
10714 2007-03-11  Bruno Haible  <bruno@clisp.org>
10715
10716         * gnulib-tool (func_create_megatestdir): Create also an autobuild
10717         script, for submission to autobuild.josefsson.org.
10718
10719 2007-03-10  Bruno Haible  <bruno@clisp.org>
10720
10721         * modules/canonicalize-lgpl-tests: New file.
10722         * tests/test-canonicalize-lgpl.sh: New file.
10723         * tests/test-canonicalize-lgpl.c: New file.
10724
10725         * modules/c-strcase-tests: New file.
10726         * tests/test-c-strcase.sh: New file.
10727         * tests/test-c-strcasecmp.c: New file.
10728         * tests/test-c-strncasecmp.c: New file.
10729
10730         * modules/atexit-tests: New file.
10731         * tests/test-atexit.sh: New file.
10732         * tests/test-atexit.c: New file.
10733
10734 2007-03-10  Bruno Haible  <bruno@clisp.org>
10735
10736         * tests/test-binary-io.sh: Use temporary filenames that are not so
10737         likely to clash with those of other tests (in a parallel make).
10738         * tests/test-binary-io.c: Likewise.
10739
10740 2007-03-10  Bruno Haible  <bruno@clisp.org>
10741
10742         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
10743         fallback; use #error instead.
10744         Suggested by Simon Josefsson.
10745
10746 2007-03-10  Bruno Haible  <bruno@clisp.org>
10747
10748         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
10749         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
10750         first and the last.
10751
10752 2007-03-10  Bruno Haible  <bruno@clisp.org>
10753
10754         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
10755
10756 2007-03-10  Bruno Haible  <bruno@clisp.org>
10757
10758         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
10759         "make distcheck".
10760         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
10761         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
10762         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
10763
10764 2007-03-10  Bruno Haible  <bruno@clisp.org>
10765
10766         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
10767         variable.
10768         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
10769         variable.
10770
10771 2007-03-09  Eric Blake  <ebb9@byu.net>
10772         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
10773
10774         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
10775         types are not being provided by gnulib.
10776         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
10777         types are supported.
10778
10779 2007-03-10  Bruno Haible  <bruno@clisp.org>
10780
10781         * lib/stdio_.h (__attribute__): New macro.
10782         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
10783         vsprintf): Specify __attribute__ __format__ for GCC.
10784         Suggested by Eric Blake.
10785
10786 2007-03-09  Bruno Haible  <bruno@clisp.org>
10787
10788         * modules/printf-posix-tests: New file.
10789         * tests/test-printf-posix.sh: New file.
10790         * tests/test-printf-posix.c: New file.
10791
10792         * modules/printf-posix: New file.
10793         * lib/printf.c: New file.
10794         * m4/printf-posix-rpl.m4: New file.
10795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
10796         REPLACE_PRINTF.
10797         * lib/stdio_.h (printf): New declaration.
10798         (format, __format__, ____printf____, ____scanf____, ____strftime____,
10799         ____strfmon____): New macros.
10800         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
10801         REPLACE_PRINTF.
10802
10803 2007-03-09  Bruno Haible  <bruno@clisp.org>
10804
10805         * tests/test-vasnprintf-posix2.sh: New file.
10806         * tests/test-vasnprintf-posix2.c: New file.
10807         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
10808         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
10809         (Makefile.am): Activate test-vasnprintf-posix2.sh.
10810
10811         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
10812         a locale dependent decimal point, rather than always '.'.
10813
10814 2007-03-09  Eric Blake  <ebb9@byu.net>
10815
10816         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
10817         spite of platforms like Tandem/NSK that define it to -1.
10818
10819 2007-03-08  Bruno Haible  <bruno@clisp.org>
10820
10821         * modules/vprintf-posix-tests: New file.
10822         * tests/test-vprintf-posix.sh: New file.
10823         * tests/test-vprintf-posix.c: New file.
10824         * tests/test-printf-posix.h: New file.
10825
10826         * modules/vprintf-posix: New file.
10827         * lib/vprintf.c: New file.
10828         * m4/vprintf-posix.m4: New file.
10829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
10830         REPLACE_VPRINTF.
10831         * lib/stdio_.h (vprintf): New declaration.
10832         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
10833         REPLACE_VPRINTF.
10834
10835 2007-03-08  Bruno Haible  <bruno@clisp.org>
10836
10837         * modules/fprintf-posix-tests: New file.
10838         * tests/test-fprintf-posix.sh: New file.
10839         * tests/test-fprintf-posix.c: New file.
10840
10841         * modules/fprintf-posix: New file.
10842         * lib/fprintf.c: New file.
10843         * m4/fprintf-posix.m4: New file.
10844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
10845         REPLACE_FPRINTF.
10846         * lib/stdio_.h (fprintf): New declaration.
10847         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
10848         REPLACE_FPRINTF.
10849
10850 2007-03-08  Bruno Haible  <bruno@clisp.org>
10851
10852         * modules/vfprintf-posix-tests: New file.
10853         * tests/test-vfprintf-posix.sh: New file.
10854         * tests/test-vfprintf-posix.c: New file.
10855         * tests/test-fprintf-posix.h: New file.
10856         * tests/test-fprintf-posix.out: New file.
10857
10858         * modules/vfprintf-posix: New file.
10859         * lib/vfprintf.c: New file.
10860         * m4/vfprintf-posix.m4: New file.
10861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
10862         REPLACE_VFPRINTF.
10863         * lib/stdio_.h (vfprintf): New declaration.
10864         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
10865         REPLACE_VFPRINTF.
10866
10867 2007-03-08  Bruno Haible  <bruno@clisp.org>
10868
10869         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
10870
10871 2007-03-08  Bruno Haible  <bruno@clisp.org>
10872
10873         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
10874         instead of 'expr' invocations.
10875         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10876         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10877         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10878         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10879         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10880         Suggested by Paul Eggert.
10881
10882 2007-03-08  Bruno Haible  <bruno@clisp.org>
10883
10884         * modules/fseterr-tests: New file.
10885         * tests/test-fseterr.c: New file.
10886
10887         * modules/fseterr: New file.
10888         * lib/fseterr.h: New file.
10889         * lib/fseterr.c: New file.
10890
10891 2007-03-08  Bruno Haible  <bruno@clisp.org>
10892
10893         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
10894         * lib/getopt_.h: Likewise.
10895         * lib/mbswidth.h: Likewise.
10896         * lib/setenv.h: Likewise.
10897         * lib/vasnprintf.h: Likewise.
10898         * lib/vasprintf.h: Likewise.
10899         * lib/verror.h: Likewise.
10900         * lib/xsetenv.h: Likewise.
10901         * lib/xvasprintf.h: Likewise.
10902
10903 2007-03-08  Jim Meyering  <jim@meyering.net>
10904
10905         * users.txt: Add parted.
10906
10907         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
10908
10909 2007-03-07  Bruno Haible  <bruno@clisp.org>
10910
10911         * m4/printf.m4: Make the shell script snippets copy&pastable.
10912
10913 2007-03-02  Bruno Haible  <bruno@clisp.org>
10914
10915         * lib/netinet_in_.h: New file.
10916         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
10917         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
10918         * modules/netinet_in (Files): Add lib/netinet_in_.h.
10919         (Depends-on): Add absolute-header.
10920         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
10921         into netinet/in.h.
10922
10923 2007-03-03  Bruno Haible  <bruno@clisp.org>
10924
10925         * lib/sys_select_.h: New file.
10926         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
10927         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
10928         * modules/sys_select (Files): Add lib/sys_select_.h.
10929         (Depends-on): Add absolute-header.
10930         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
10931         into sys/select.h.
10932
10933 2007-03-02  Bruno Haible  <bruno@clisp.org>
10934
10935         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
10936         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
10937         values.
10938         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
10939         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
10940         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
10941         * modules/sys_socket (Depends-on): Add absolute-header.
10942         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
10943         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
10944         (Include): Remove requirement of inclusion of <sys/types.h>.
10945
10946 2007-03-02  Bruno Haible  <bruno@clisp.org>
10947
10948         * lib/byteswap_.h (bswap_32): Fix formula.
10949
10950 2007-03-06  Bruno Haible  <bruno@clisp.org>
10951
10952         * modules/sprintf-posix-tests: New file.
10953         * tests/test-sprintf-posix.c: New file.
10954
10955         * modules/sprintf-posix: New file.
10956         * lib/sprintf.c: New file.
10957         * m4/sprintf-posix.m4: New file.
10958         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
10959         REPLACE_SPRINTF.
10960         * lib/stdio_.h (sprintf): New declaration.
10961         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
10962         REPLACE_SPRINTF.
10963
10964 2007-03-06  Bruno Haible  <bruno@clisp.org>
10965
10966         * modules/vsprintf-posix-tests: New file.
10967         * tests/test-vsprintf-posix.c: New file.
10968         * tests/test-sprintf-posix.h: New file.
10969
10970         * modules/vsprintf-posix: New file.
10971         * lib/vsprintf.c: New file.
10972         * m4/vsprintf-posix.m4: New file.
10973         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
10974         REPLACE_VSPRINTF.
10975         * lib/stdio_.h (vsprintf): New declaration.
10976         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
10977         REPLACE_VSPRINTF.
10978
10979 2007-03-06  Bruno Haible  <bruno@clisp.org>
10980
10981         * modules/vsnprintf (Depend-on): Remove minmax.
10982
10983 2007-03-06  Bruno Haible  <bruno@clisp.org>
10984
10985         * modules/snprintf-posix-tests: New file.
10986         * tests/test-snprintf-posix.c: New file.
10987
10988         * modules/snprintf-posix: New file.
10989         * m4/snprintf-posix.m4: New file.
10990         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
10991         gl_FUNC_SNPRINTF.
10992         (gl_FUNC_SNPRINTF): Invoke it.
10993         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
10994         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
10995         is set.
10996         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
10997
10998 2007-03-06  Bruno Haible  <bruno@clisp.org>
10999
11000         * modules/vsnprintf-posix-tests: New file.
11001         * tests/test-vsnprintf-posix.c: New file.
11002         * tests/test-snprintf-posix.h: New file.
11003
11004         * modules/vsnprintf-posix: New file.
11005         * m4/vsnprintf-posix.m4: New file.
11006         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
11007         gl_FUNC_VSNPRINTF.
11008         (gl_FUNC_VSNPRINTF): Invoke it.
11009         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
11010         * lib/stdio_.h (vsnprintf): Define as a replacement if
11011         REPLACE_VSNPRINTF is set.
11012         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
11013
11014 2007-03-06  Bruno Haible  <bruno@clisp.org>
11015
11016         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
11017         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
11018
11019 2007-03-06  Bruno Haible  <bruno@clisp.org>
11020
11021         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
11022         (asinl): Declare also if HAVE_DECL_ASINL is set.
11023         (atanl): Declare also if HAVE_DECL_ATANL is set.
11024         (ceill): Declare also if HAVE_DECL_CEILL is set.
11025         (cosl): Declare also if HAVE_DECL_COSL is set.
11026         (expl): Declare also if HAVE_DECL_EXPL is set.
11027         (floorl): Declare also if HAVE_DECL_FLOORL is set.
11028         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
11029         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
11030         (logl): Declare also if HAVE_DECL_LOGL is set.
11031         (sinl): Declare also if HAVE_DECL_SINL is set.
11032         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
11033         (tanl): Declare also if HAVE_DECL_TANL is set.
11034         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
11035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
11036         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
11037         declaration of frexpl, ldexpl.
11038         * modules/printf-frexpl (Depends-on): Add math.
11039         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
11040
11041 2007-03-05  Bruno Haible  <bruno@clisp.org>
11042
11043         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
11044         frexpl and ldexpl are declared.
11045         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
11046
11047 2007-03-05  Bruno Haible  <bruno@clisp.org>
11048
11049         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
11050         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
11051
11052 2007-03-05  Bruno Haible  <bruno@clisp.org>
11053
11054         * lib/stdio_.h: Include <stddef.h>.
11055
11056 2007-03-05  Bruno Haible  <bruno@clisp.org>
11057
11058         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
11059
11060 2007-03-05  Bruno Haible  <bruno@clisp.org>
11061
11062         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
11063         NetBSD 4, from Ralf Wildenhues.
11064
11065 2007-03-04  Bruno Haible  <bruno@clisp.org>
11066
11067         * lib/vasprintf.h: Update #if logic for the case when the functions
11068         exist but are overridden.
11069
11070 2007-03-04  Bruno Haible  <bruno@clisp.org>
11071
11072         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
11073         implementations: glibc-2.4 and MacOS X 10.3.
11074         * tests/test-vasnprintf-posix.c (test_function): Test also the case
11075         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
11076         * tests/test-vasprintf-posix.c (test_function): Likewise.
11077
11078 2007-03-04  Bruno Haible  <bruno@clisp.org>
11079
11080         * modules/vasprintf-posix-tests: New file.
11081         * tests/test-vasprintf-posix.c: New file.
11082
11083         * modules/vasprintf-posix: New file.
11084         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
11085         defined.
11086         * m4/vasprintf-posix.m4: New file.
11087         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
11088         gl_FUNC_VASPRINTF.
11089         (gl_FUNC_VASPRINTF): Invoke it.
11090         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
11091         here.
11092         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
11093
11094 2007-03-04  Bruno Haible  <bruno@clisp.org>
11095
11096         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
11097         REPLACE_GETTIMEOFDAY.
11098         * modules/sys_time (Makefile.am): Likewise.
11099         * m4/sys_time_h.m4: Likewise.
11100         * m4/gettimeofday.m4: Likewise.
11101
11102 2007-03-04  Bruno Haible  <bruno@clisp.org>
11103
11104         * modules/vasnprintf-posix-tests: New file.
11105         * tests/test-vasnprintf-posix.c: New file.
11106
11107         * modules/vasnprintf-posix: New file.
11108         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
11109         printf-frexpl.h.
11110         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
11111         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
11112         REPLACE_VASNPRINTF is defined.
11113         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
11114         gl_FUNC_VASNPRINTF.
11115         (gl_FUNC_VASNPRINTF): Invoke it.
11116         * m4/vasnprintf-posix.m4: New file.
11117         * m4/printf.m4: New file.
11118
11119 2007-03-04  Bruno Haible  <bruno@clisp.org>
11120
11121         Compile progreloc.c only if --enable-relocatable is specified.
11122         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
11123         if --enable-relocatable was specified.
11124         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
11125         lib_SOURCES.
11126
11127 2007-03-04  Jim Meyering  <jim@meyering.net>
11128
11129         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
11130         Use it consistently, rather than enumerating errno constants.
11131
11132 2007-03-04  Bruno Haible  <bruno@clisp.org>
11133
11134         * modules/xvasprintf-tests: New file.
11135         * tests/test-xvasprintf.c: New file.
11136
11137         * modules/vasprintf-tests: New file.
11138         * tests/test-vasprintf.c: New file.
11139
11140         * modules/vasnprintf-tests: New file.
11141         * tests/test-vasnprintf.c: New file.
11142
11143         * modules/vsnprintf-tests: New file.
11144         * tests/test-vsnprintf.c: New file.
11145
11146         * modules/snprintf-tests: New file.
11147         * tests/test-snprintf.c: New file.
11148
11149 2007-03-04  Bruno Haible  <bruno@clisp.org>
11150
11151         Compile relocatable.c only if --enable-relocatable is specified.
11152         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
11153         gl_RELOCATABLE_LIBRARY.
11154         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
11155         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
11156         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
11157         gl_RELOCATABLE_LIBRARY.
11158         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
11159         (Makefile.am): Remove lib_SOURCES.
11160         * modules/relocatable-lib-lgpl (configure.ac): Invoke
11161         gl_RELOCATABLE_LIBRARY.
11162         (Makefile.am): Remove lib_SOURCES.
11163         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
11164         always.
11165         * modules/relocatable-prog-wrapper (configure.ac): Invoke
11166         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
11167
11168 2007-03-04  Bruno Haible  <bruno@clisp.org>
11169
11170         * modules/argmatch-tests: New file.
11171         * tests/test-argmatch.c: New file.
11172
11173         * tests/test-allocsa.c (main): Halve the number of loop runs.
11174
11175         * modules/alloca-opt-tests: New file.
11176         * tests/test-alloca-opt.c: New file.
11177
11178 2007-03-04  Jim Meyering  <jim@meyering.net>
11179
11180         Work around difference between Linux ACLs and Solaris 10 ZFS.
11181         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
11182         for EINVAL.
11183
11184 2007-03-03  Bruno Haible  <bruno@clisp.org>
11185
11186         * modules/relocatable-prog (Depends-on): Add back progreloc's
11187         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
11188
11189 2007-03-03  Bruno Haible  <bruno@clisp.org>
11190
11191         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
11192         * modules/relocatable-lib: New file.
11193
11194 2007-03-03  Bruno Haible  <bruno@clisp.org>
11195
11196         * modules/relocatable-prog: Renamed from modules/relocatable.
11197         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
11198
11199 2007-03-03  Bruno Haible  <bruno@clisp.org>
11200
11201         * modules/relocatable-script (Files): Add doc/relocatable.texi,
11202         m4/relocatable-lib.m4.
11203         (Depends-on): Remove 'relocatable'.
11204         (configure.ac): Add gl_RELOCATABLE_NOP.
11205
11206 2007-03-03  Bruno Haible  <bruno@clisp.org>
11207
11208         * modules/relocatable-prog-wrapper: New file.
11209         * modules/relocatable (Depends-on): Add it. Remove all other
11210         dependencies except progname.
11211         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
11212
11213         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
11214         (gl_FUNC_STRERROR): Nop.
11215         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
11216
11217         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
11218         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
11219
11220         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
11221         (gl_FUNC_READLINK): Update.
11222
11223         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
11224
11225 2007-03-03  Bruno Haible  <bruno@clisp.org>
11226
11227         * lib/xreadlink.c: Include <unistd.h> unconditionally.
11228         * modules/xreadlink (Depends-on): Add unistd.
11229         * modules/xreadlink-with-size (Depends-on): Likewise.
11230
11231 2007-03-03  Bruno Haible  <bruno@clisp.org>
11232
11233         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
11234         extracted from gt_FUNC_SETENV.
11235         (gt_FUNC_SETENV): Remove macro.
11236         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
11237         remove gt_FUNC_SETENV.
11238
11239 2007-03-03  Bruno Haible  <bruno@clisp.org>
11240
11241         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
11242         ENABLE_RELOCATABLE here.
11243         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
11244
11245 2007-03-03  Bruno Haible  <bruno@clisp.org>
11246
11247         * modules/rbtreehash-list-tests (Depends-on): Add progname.
11248         * tests/test-rbtreehash_list.c: Include progname.h.
11249         (main): Call set_program_name.
11250
11251         * modules/rbtree-oset-tests (Depends-on): Add progname.
11252         * tests/test-rbtree_oset.c: Include progname.h.
11253         (main): Call set_program_name.
11254
11255         * modules/rbtree-list-tests (Depends-on): Add progname.
11256         * tests/test-rbtree_list.c: Include progname.h.
11257         (main): Call set_program_name.
11258
11259         * modules/linked-list-tests (Depends-on): Add progname.
11260         * tests/test-linked_list.c: Include progname.h.
11261         (main): Call set_program_name.
11262
11263 2007-03-03  Bruno Haible  <bruno@clisp.org>
11264
11265         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
11266         All uses of __restrict changed to _Restrict_.
11267         * lib/glob_.h (__restrict): Remove macro.
11268
11269 2007-03-02  Bruno Haible  <bruno@clisp.org>
11270
11271         * modules/gettext (configure.ac): Require gettext infrastructure
11272         from version 0.16.1.
11273
11274 2007-03-02  Bruno Haible  <bruno@clisp.org>
11275
11276         * modules/linkedhash-list-tests (Depends-on): Add progname.
11277         * tests/test-linkedhash_list.c: Include progname.h.
11278         (main): Call set_program_name.
11279
11280         * modules/carray-list-tests (Depends-on): Add progname.
11281         * tests/test-carray_list.c: Include progname.h.
11282         (main): Call set_program_name.
11283
11284         * modules/avltreehash-list-tests (Depends-on): Add progname.
11285         * tests/test-avltreehash_list.c: Include progname.h.
11286         (main): Call set_program_name.
11287
11288         * modules/avltree-oset-tests (Depends-on): Add progname.
11289         * tests/test-avltree_oset.c: Include progname.h.
11290         (main): Call set_program_name.
11291
11292         * modules/avltree-list-tests (Depends-on): Add progname.
11293         * tests/test-avltree_list.c: Include progname.h.
11294         (main): Call set_program_name.
11295
11296         * modules/array-oset-tests (Depends-on): Add progname.
11297         * tests/test-array_oset.c: Include progname.h.
11298         (main): Call set_program_name.
11299
11300         * modules/array-list-tests (Depends-on): Add progname.
11301         * tests/test-array_list.c: Include progname.h.
11302         (main): Call set_program_name.
11303
11304         * modules/argp-tests (Depends-on): Add progname.
11305         * tests/test-argp.c: Include argp.h first. Include progname.h.
11306         (main): Call set_program_name.
11307
11308 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
11309
11310         * doc/gnulib-tool.texi (Initial import): Reword description of
11311         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
11312         limited effect even if defined after the first system include.
11313
11314 2007-03-01  Bruno Haible  <bruno@clisp.org>
11315
11316         * build-aux/config.libpath: Update to libtool-1.5.22.
11317         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11318
11319 2007-03-01  Bruno Haible  <bruno@clisp.org>
11320
11321         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
11322         foo_CFLAGS.
11323         Reported by Ralf Wildenhues.
11324
11325 2007-03-01  Bruno Haible  <bruno@clisp.org>
11326
11327         * build-aux/install-reloc: Remove object files left over by some
11328         compilers.
11329         Reported by Ralf Wildenhues.
11330
11331 2007-03-01  Bruno Haible  <bruno@clisp.org>
11332
11333         * build-aux/install-reloc: Break long lines.
11334
11335 2007-03-01  Bruno Haible  <bruno@clisp.org>
11336
11337         * doc/relocatable.texi: Document that it may not work on OpenBSD.
11338         Reported by Ralf Wildenhues.
11339
11340 2007-03-01  Bruno Haible  <bruno@clisp.org>
11341
11342         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
11343         include ordering constraints.
11344
11345 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
11346
11347         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
11348         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
11349         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
11350         as another example.
11351         * lib/time_.h: Fix misspelling.
11352         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
11353         Require gl_HEADER_TIME_H_DEFAULTS.
11354         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
11355         * m4/time_r.m4 (gl_TIME_R): Likewise.
11356         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
11357
11358 2007-03-01  Bruno Haible  <bruno@clisp.org>
11359
11360         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
11361         * m4/utimens.m4 (gl_UTIMENS): Likewise.
11362
11363 2007-03-01  Jim Meyering  <jim@meyering.net>
11364
11365         * modules/xreadlink (Maintainer): Add my name.
11366         * modules/xreadlink-with-size (Depends-on): Alphabetize.
11367
11368 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
11369             Bruno Haible  <bruno@clisp.org>
11370
11371         * build-aux/install-reloc: Compile also c-ctype.c.
11372         * build-aux/relocatable.sh.in: New file.
11373         * doc/relocatable.texi: New file.
11374         * doc/relocatable-maint.texi: New file.
11375         * doc/gnulib.texi: Include relocatable-maint.texi.
11376         * lib/progreloc.c: Include unistd.h unconditionally.
11377         * lib/relocwrapper.c: Include unistd.h unconditionally.
11378         Include c-ctype.h.
11379         (add_dotbin): Use c_tolower.
11380         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
11381         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
11382         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
11383         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
11384         to m4/relocatable-lib.m4.
11385         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
11386         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
11387         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
11388         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
11389         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
11390         * modules/relocatable: New file.
11391         * modules/relocatable-lib: New file.
11392         * modules/relocatable-script: New file.
11393
11394 2007-02-28  Bruno Haible  <bruno@clisp.org>
11395
11396         Import --enable-relocatable infrastructure.
11397         * build-aux/config.libpath: New file, from GNU gettext.
11398         * build-aux/install-reloc: New file, from GNU gettext.
11399         * build-aux/reloc-ldflags: New file, from GNU gettext.
11400         * lib/relocatable.h: New file, from GNU gettext.
11401         * lib/relocatable.c: New file, from GNU gettext.
11402         * lib/relocwrapper.c: New file, from GNU gettext.
11403         * m4/relocatable.m4: New file, from GNU gettext.
11404
11405 2007-02-28  Bruno Haible  <bruno@clisp.org>
11406
11407         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
11408
11409         * modules/xreadlink: New file, from GNU gettext with modifications.
11410         * lib/xreadlink.c: New file, from GNU gettext.
11411         * lib/xreadlink.h: Add comments.
11412         (xreadlink): New declaration.
11413
11414         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
11415         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
11416         lib/xreadlink-with-size.c.
11417         (configure.ac): Remove gl_XREADLINK invocation.
11418         (Makefile.am): Augment lib_SOURCES.
11419         * m4/xreadlink.m4: Remove file.
11420         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
11421         (xreadlink_with_size): Renamed from xreadink.
11422         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
11423         * modules/canonicalize (Depends-on): Replace xreadlink with
11424         xreadlink-with-size.
11425         * lib/canonicalize.c (canonicalize_filename_mode): Update.
11426
11427 2007-02-25  Jim Meyering  <jim@meyering.net>
11428
11429         * build-aux/announce-gen: When complaining about excess arguments,
11430         list them.
11431
11432 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
11433
11434         * README: Document signed integer overflow situation more
11435         accurately.
11436
11437 2007-02-25  Bruno Haible  <bruno@clisp.org>
11438
11439         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
11440         'a' or 'A' conversion.
11441
11442 2007-02-25  Bruno Haible  <bruno@clisp.org>
11443
11444         * modules/filename: Renamed from modules/pathname.
11445         (Files): Replace lib/pathname.h with lib/filename.h. Replace
11446         lib/concatpath.c with lib/concat-filename.c.
11447         (Makefile.am): Update.
11448         (Include): Replace pathname.h with filename.h.
11449         * lib/filename.h: Renamed from lib/pathname.h.
11450         (concatenated_filename): Renamed from concatenated_pathname.
11451         * lib/concat-filename.c: Renamed from lib/concatpath.c.
11452         (concatenated_filename): Renamed from concatenated_pathname.
11453         * lib/findprog.c: Include filename.h instead of pathname.h.
11454         (find_in_path): Update.
11455         * lib/javacomp.c: Include filename.h instead of pathname.h.
11456         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
11457         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
11458         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
11459         is_oldgcj_14_13_usable, is_javac_usable): Update.
11460         * lib/javaexec.c: Include filename.h instead of pathname.h.
11461         (execute_java_class): Update.
11462         * modules/findprog: Update.
11463         * modules/javacomp: Update.
11464         * modules/javaexec: Update.
11465         * MODULES.html.sh (File system functions): Add 'filename', remove
11466         'pathname'.
11467
11468 2007-02-25  Bruno Haible  <bruno@clisp.org>
11469
11470         * modules/printf-frexpl-tests: New file.
11471         * tests/test-printf-frexpl.c: New file.
11472
11473         * modules/printf-frexpl: New file.
11474         * lib/printf-frexpl.h: New file.
11475         * lib/printf-frexpl.c: New file.
11476         * m4/printf-frexpl.m4: New file.
11477
11478 2007-02-25  Bruno Haible  <bruno@clisp.org>
11479
11480         * modules/printf-frexp-tests: New file.
11481         * tests/test-printf-frexp.c: New file.
11482
11483         * modules/printf-frexp: New file.
11484         * lib/printf-frexp.h: New file.
11485         * lib/printf-frexp.c: New file.
11486         * m4/printf-frexp.m4: New file.
11487
11488 2007-02-25  Bruno Haible  <bruno@clisp.org>
11489
11490         Assume automake >= 1.10 for the tests.
11491         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
11492         * modules/arctwo-tests: Likewise.
11493         * modules/argp-tests: Likewise.
11494         * modules/avltree-list-tests: Likewise.
11495         * modules/avltree-oset-tests: Likewise.
11496         * modules/avltreehash-list-tests: Likewise.
11497         * modules/carray-list-tests: Likewise.
11498         * modules/crc-tests: Likewise.
11499         * modules/des-tests: Likewise.
11500         * modules/gc-arcfour-tests: Likewise.
11501         * modules/gc-arctwo-tests: Likewise.
11502         * modules/gc-des-tests: Likewise.
11503         * modules/gc-hmac-md5-tests: Likewise.
11504         * modules/gc-hmac-sha1-tests: Likewise.
11505         * modules/gc-md2-tests: Likewise.
11506         * modules/gc-md4-tests: Likewise.
11507         * modules/gc-md5-tests: Likewise.
11508         * modules/gc-pbkdf2-sha1-tests: Likewise.
11509         * modules/gc-rijndael-tests: Likewise.
11510         * modules/gc-sha1-tests: Likewise.
11511         * modules/gc-tests: Likewise.
11512         * modules/getaddrinfo-tests: Likewise.
11513         * modules/hmac-md5-tests: Likewise.
11514         * modules/hmac-sha1-tests: Likewise.
11515         * modules/linked-list-tests: Likewise.
11516         * modules/linkedhash-list-tests: Likewise.
11517         * modules/lock-tests: Likewise.
11518         * modules/md2-tests: Likewise.
11519         * modules/md4-tests: Likewise.
11520         * modules/md5-tests: Likewise.
11521         * modules/rbtree-list-tests: Likewise.
11522         * modules/rbtree-oset-tests: Likewise.
11523         * modules/rbtreehash-list-tests: Likewise.
11524         * modules/read-file-tests: Likewise.
11525         * modules/rijndael-tests: Likewise.
11526         * modules/stdint-tests: Likewise.
11527         * modules/tls-tests: Likewise.
11528
11529 2007-02-24  Bruno Haible  <bruno@clisp.org>
11530
11531         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
11532         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
11533         function; instead check whether isnan with a double argument links.
11534         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
11535         function; instead check whether isnan with a 'long double' argument
11536         links.
11537         Reported by Eric Blake <ebb9@byu.net>.
11538
11539 2007-02-24  Bruno Haible  <bruno@clisp.org>
11540
11541         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
11542         defined.
11543         * lib/isnanl.c: Remove all code. Just include isnan.c.
11544         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
11545
11546 2007-02-25  Jim Meyering  <jim@meyering.net>
11547
11548         Avoid conflicting types for 'unsetenv' on FreeBSD.
11549         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
11550         conflicting with FreeBSD's (5.0 and 6.1) function declaration
11551         in stdlib.h.
11552
11553 2007-02-24  Bruno Haible  <bruno@clisp.org>
11554
11555         * modules/isnanl-nolibm-tests: New file.
11556         * tests/test-isnanl.c: New file.
11557
11558         * modules/isnanl-nolibm: New file.
11559         * lib/isnanl.h: New file.
11560         * lib/isnanl.c: New file.
11561         * m4/isnanl.m4: New file.
11562
11563 2007-02-24  Bruno Haible  <bruno@clisp.org>
11564
11565         * modules/isnan-nolibm-tests: New file.
11566         * tests/test-isnan.c: New file.
11567
11568         * modules/isnan-nolibm: New file.
11569         * lib/isnan.h: New file.
11570         * lib/isnan.c: New file.
11571         * m4/isnan.m4: New file.
11572
11573 2007-02-24  Bruno Haible  <bruno@clisp.org>
11574
11575         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
11576         assume that an exponent fits in 20 bits.
11577
11578 2007-02-24  Jim Meyering  <jim@meyering.net>
11579
11580         * m4/regex.m4: Update the description of the configure-time option,
11581         --without-included-regex, to state accurately what the defaults are,
11582         and perhaps to give people an idea why using this option is risky.
11583
11584 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
11585
11586         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
11587         loops on small arguments.  This attempts to avoid the problem
11588         Bruno Haible reported for AIX 4.3.2 in
11589         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
11590
11591 2007-02-23  Bruno Haible  <bruno@clisp.org>
11592
11593         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
11594         Needed for help2man.
11595
11596 2007-02-23  Karl Berry  <karl@gnu.org>
11597
11598         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
11599         exists, foo.h should be cvs-ignored, not committed.
11600
11601 2007-02-23  Eric Blake  <ebb9@byu.net>
11602
11603         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
11604         * lib/stat-time.h (includes): Likewise.
11605         * lib/utimecmp.c (includes): Likewise.
11606         * lib/utimens.h (includes): Likewise.
11607         * lib/getdate.y (includes): Also include "timespec.h" for use
11608         internal to the module.
11609         * modules/utimens (Depends-on): Revert yesterday's patch.
11610         * modules/nanosleep (Depends-on): Add missing dependency.
11611
11612 2007-02-22  Bruno Haible  <bruno@clisp.org>
11613
11614         * lib/glob.c: Don't include getlogin_r.h.
11615
11616 2007-02-22  Jim Meyering  <jim@meyering.net>
11617
11618         * modules/utimens (Depends-on): Add timespec, required for
11619         utimens.h's inclusion of timespec.h.
11620
11621 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
11622
11623         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
11624         long unreadable paths in GNU/Linux.  Problem reported by Andreas
11625         Schwab in
11626         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
11627         I'll try to think of a better way to fix the Solaris problem.
11628
11629         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
11630         like glibc; on Solaris 10, it fails with errno == EINVAL.
11631         POSIX says the behavior is unspecified if the first argument is NULL,
11632         so play it safe and never pass NULL to the system getcwd.
11633
11634 2007-02-21  Jim Meyering  <jim@meyering.net>
11635
11636         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
11637         of gettimeofday.  It would conflict with the one now always
11638         provided via sys_time_.h.  Reported by Matthew Woehlke, as
11639         an IRIX 6.5 build failure.
11640
11641 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
11642
11643         Minor fixups to port to Solaris 10 with Sun C 5.8.
11644         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
11645         * modules/getcwd (Depends-on): Add dirfd.
11646         * lib/putenv.c (putenv): #undef it.
11647         (rpl_putenv): New decl.
11648         (malloc, free): Include <stdlib.h> rather than prototyping separately.
11649
11650 2007-02-20  Bruno Haible  <bruno@clisp.org>
11651
11652         * modules/stdio-tests: New file.
11653         * tests/test-stdio.c: New file.
11654
11655         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
11656         (Depends-on): Add stdio.
11657         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
11658         (Include): Use <stdio.h> instead of vsnprintf.h.
11659         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
11660         HAVE_DECL_VSNPRINTF.
11661         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
11662
11663         * modules/snprintf (Files): Remove lib/snprintf.h.
11664         (Depends-on): Add stdio.
11665         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
11666         (Include): Use <stdio.h> instead of snprintf.h.
11667         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
11668         HAVE_DECL_SNPRINTF.
11669         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
11670         * lib/getaddrinfo.c: Likewise.
11671
11672         * modules/stdio: New file.
11673         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
11674         * lib/snprintf.h: Remove file.
11675         * lib/vsnprintf.h: Remove file.
11676         * lib/.cppi-disable: Remove snprintf.h.
11677         * m4/stdio_h.m4: New file.
11678         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
11679
11680 2007-02-20  Jim Meyering  <jim@meyering.net>
11681
11682         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
11683         used by e.g., mingw.  From Bruno Haible.
11684
11685 2007-02-19  Bruno Haible  <bruno@clisp.org>
11686
11687         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
11688         warnings.
11689         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11690
11691 2007-02-19  Bruno Haible  <bruno@clisp.org>
11692
11693         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
11694         from mingw users.
11695
11696 2007-02-19  Bruno Haible  <bruno@clisp.org>
11697
11698         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
11699         warnings.
11700         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
11701
11702 2007-02-19  Jim Meyering  <jim@meyering.net>
11703
11704         Don't use FD after a successful "fdopendir (fd)".
11705         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
11706         Reset it by calling dirfd on the just-obtained DIR*.
11707
11708         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
11709         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
11710
11711 2007-02-18  Bruno Haible  <bruno@clisp.org>
11712
11713         * lib/readlink.c: Include <unistd.h>.
11714         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
11715         HAVE_READLINK.
11716         * modules/readlink (Depends-on): Add unistd.
11717         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11718         (Include): Add <unistd.h>.
11719
11720         * lib/getlogin_r.h: Remove file.
11721         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
11722         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
11723         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
11724         HAVE_DECL_GETLOGIN_R.
11725         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
11726         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11727         (Include): Use <unistd.h> instead of getlogin_r.h.
11728
11729         * lib/getcwd.h: Remove file.
11730         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
11731         * lib/xgetcwd.c: Likewise.
11732         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
11733         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
11734         * modules/getcwd (Files): Remove lib/getcwd.h.
11735         (Depends-on): Add unistd.
11736         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11737         (Include): Use <unistd.h> instad of getcwd.h.
11738
11739         * lib/ftruncate.c: Include <unistd.h> first.
11740         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
11741         Set HAVE_FTRUNCATE.
11742         * modules/ftruncate (Depends-on): Add unistd.
11743         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11744
11745         * lib/fchdir.c: Include <unistd.h> first.
11746         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
11747         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
11748         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
11749         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11750         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
11751
11752         * lib/dup2.c: Include <unistd.h> first.
11753         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
11754         HAVE_DUP2.
11755         * modules/dup2 (Depends-on): Add unistd.
11756         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11757
11758         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
11759         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
11760         REPLACE_CHOWN. Don't define chown as a macro here.
11761         * modules/chown (Depends-on): Add unistd.
11762         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11763
11764         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
11765         Add definition for GL_LINK_WARNING.
11766         (chown, dup2): New declarations.
11767         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
11768         link warning.
11769         (ftruncate): New declaration.
11770         (getcwd): New declaration, taken from old getcwd.h.
11771         (getlogin_r): New declaration, taken from old getlogin_r.h.
11772         (readlink): New declaration.
11773         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
11774         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
11775         (gl_PREREQ_UNISTD): Remove macro.
11776         (gl_UNISTD_MODULE_INDICATOR): New macro.
11777         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
11778         many new variables. Don't set UNISTD_H.
11779         * modules/unistd (Description): Change.
11780         (Depends-on): Add link-warning.
11781         (configure.ac): Update.
11782         (Makefile.am): Create unistd.h always. Substitute many new variables
11783         into it.
11784
11785 2007-02-18  Bruno Haible  <bruno@clisp.org>
11786
11787         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
11788         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
11789         HAVE_GETSUBOPT.
11790         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
11791         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
11792         * lib/getsubopt.h: Remove file.
11793         * modules/getsubopt (Files): Remove lib/getsubopt.h.
11794         (Depends-on): Add stdlib.
11795         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11796         (Includes): Use <stdlib.h> instead of getsubopt.h.
11797         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
11798         Set HAVE_GETSUBOPT.
11799         * lib/getsubopt.c: Don't include getsubopt.h.
11800
11801 2007-02-18  Bruno Haible  <bruno@clisp.org>
11802
11803         * modules/fchdir (Depends-on): Add dup2.
11804
11805 2007-02-18  Bruno Haible  <bruno@clisp.org>
11806
11807         * lib/stdlib_.h: Handle glibc's special invocation convention
11808         specially.
11809
11810 2007-02-18  Bruno Haible  <bruno@clisp.org>
11811
11812         * modules/stdlib-tests: New file.
11813         * tests/test-stdlib.c: New file.
11814
11815         * modules/mkstemp (Files): Remove lib/mkstemp.h.
11816         (Depends-on): Add stdlib.
11817         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11818         (Includes): Use <stdlib.h> instead of mkstemp.h.
11819         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
11820         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
11821         * lib/mkstemp.c: Don't include mkstemp.h.
11822         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
11823         * lib/stdlib--.h: Don't include mkstemp.h.
11824
11825         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
11826         (Depends-on): Add stdlib.
11827         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11828         (Includes): Use <stdlib.h> instead of mkdtemp.h.
11829         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
11830         HAVE_MKDTEMP.
11831         * lib/mkdtemp.c: Don't include mkdtemp.h.
11832         * lib/clean-temp.c: Don't include mkdtemp.h.
11833
11834         * modules/exit (Files): Remove lib/exit.h.
11835         (Depends-on): Add stdlib.
11836         (Makefile.am): Remove lib_SOURCES.
11837         (Include): Use <stdlib.h> instead of exit.h.
11838         * lib/argmatch.c: Don't include exit.h.
11839         * lib/execute.c: Likewise.
11840         * lib/pagealign_alloc.c: Likewise.
11841         * lib/pipe.c: Likewise.
11842         * lib/wait-process.c: Likewise.
11843         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
11844         * lib/exitfail.c: Likewise.
11845         * lib/savewd.c: Likewise.
11846         * lib/xsetenv.c: Likewise.
11847
11848         * modules/stdlib: New file.
11849         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
11850         and extra comments about mkstemp().
11851         * lib/exit.h: Remove file.
11852         * lib/mkdtemp.h: Remove file.
11853         * lib/mkstemp.h: Remove file.
11854         * m4/stdlib_h.m4: New file.
11855         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
11856
11857 2007-02-18  Bruno Haible  <bruno@clisp.org>
11858
11859         * modules/math-tests: New file.
11860         * tests/test-math.c: New file.
11861
11862         * modules/math: New file.
11863         * modules/mathl (Files): Remove lib/mathl.h.
11864         (Depends-on): Add math.
11865         (Makefile.am): Don't mention mathl.h.
11866         (Include): Use <math.h> instead of mathl.h.
11867         * lib/math_.h: New file.
11868         * lib/mathl.h: Remove file.
11869         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
11870         mathl.h.
11871         * lib/asinl.c: Likewise.
11872         * lib/atanl.c: Likewise.
11873         * lib/ceill.c: Likewise.
11874         * lib/cosl.c: Likewise.
11875         * lib/expl.c: Likewise.
11876         * lib/floorl.c: Likewise.
11877         * lib/frexpl.c: Likewise.
11878         * lib/ldexpl.c: Likewise.
11879         * lib/logl.c: Likewise.
11880         * lib/sincosl.c: Likewise.
11881         * lib/sinl.c: Likewise.
11882         * lib/sqrtl.c: Likewise.
11883         * lib/tanl.c: Likewise.
11884         * lib/trigl.c: Likewise.
11885         * m4/math_h.m4: New file.
11886         * MODULES.html.sh (Mathematics): Add math.
11887
11888 2007-02-17  Bruno Haible  <bruno@clisp.org>
11889
11890         * modules/wctype-tests: New file.
11891         * tests/test-wctype.c: New file.
11892
11893         * modules/wchar-tests: New file.
11894         * tests/test-wchar.c: New file.
11895
11896         * modules/unistd-tests: New file.
11897         * tests/test-unistd.c: New file.
11898
11899         * modules/time-tests: New file.
11900         * tests/test-time.c: New file.
11901
11902         * modules/sysexits-tests: New file.
11903         * tests/test-sysexits.c: New file.
11904
11905         * modules/sys_time-tests: New file.
11906         * tests/test-sys_time.c: New file.
11907
11908         * modules/sys_stat-tests: New file.
11909         * tests/test-sys_stat.c: New file.
11910
11911         * modules/sys_socket-tests: New file.
11912         * tests/test-sys_socket.c: New file.
11913
11914         * modules/sys_select-tests: New file.
11915         * tests/test-sys_select.c: New file.
11916
11917         * modules/string-tests: New file.
11918         * tests/test-string.c: New file.
11919
11920         * modules/stdbool-tests: New file.
11921         * tests/test-stdbool.c: New file.
11922
11923         * modules/netinet_in-tests: New file.
11924         * tests/test-netinet_in.c: New file.
11925
11926         * modules/inttypes-tests: New file.
11927         * tests/test-inttypes.c: New file.
11928
11929         * modules/fcntl-tests: New file.
11930         * tests/test-fcntl.c: New file.
11931
11932         * modules/byteswap-tests: New file.
11933         * tests/test-byteswap.c: New file.
11934
11935         * modules/arpa_inet-tests: New file.
11936         * tests/test-arpa_inet.c: New file.
11937
11938 2007-02-17  Bruno Haible  <bruno@clisp.org>
11939
11940         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
11941         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
11942         if the corresponding module is not enabled. Emit link warnings if
11943         the function is used nevertheless.
11944         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
11945         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
11946         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
11947         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
11948         * modules/inttypes (Depends-on): Add link-warning.
11949         (Makefile.am): Copy the contents of build-aux/link-warning.h into
11950         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
11951         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
11952         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
11953         * modules/imaxdiv (configure.ac): Likewise.
11954         * modules/strtoimax (configure.ac): Likewise.
11955         * modules/strtoumax (configure.ac): Likewise.
11956
11957 2007-02-17  Bruno Haible  <bruno@clisp.org>
11958
11959         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
11960         gl_STRING_MODULE_INDICATOR_DEFAULTS.
11961         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
11962         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
11963
11964 2007-02-17  Bruno Haible  <bruno@clisp.org>
11965
11966         * modules/link-warning: New file.
11967         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
11968         * lib/string_.h (GL_LINK_WARNING): Remove definition.
11969         * modules/string (Depends-on): Add link-warning.
11970         (Makefile.am): Copy the contents of build-aux/link-warning.h into
11971         string.h.
11972         * MODULES.html.sh (Support for building libraries and executables): Add
11973         link-warning.
11974
11975 2007-02-17  Bruno Haible  <bruno@clisp.org>
11976
11977         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
11978         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
11979         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
11980         long lines.
11981
11982 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
11983             Bruno Haible  <bruno@clisp.org>
11984
11985         * modules/tmpfile: New file.
11986         * lib/tmpfile.c: New file.
11987         * m4/tmpfile.m4: New file.
11988         * MODULES.html.sh (func_all_modules): New section "Input/output".
11989
11990 2007-02-15  Bruno Haible  <bruno@clisp.org>
11991
11992         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
11993         (supports_delete_on_close): New function.
11994         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
11995
11996 2007-02-14  Bruno Haible  <bruno@clisp.org>
11997
11998         * modules/mbspcasecmp-tests: New file.
11999         * tests/test-mbspcasecmp.sh: New file.
12000         * tests/test-mbspcasecmp.c: New file.
12001
12002         New module mbspcasecmp.
12003         * modules/mbspcasecmp: New file.
12004         * lib/mbspcasecmp.c: New file.
12005         * lib/string_.h (strncasecmp): Change warning message.
12006         (mbspcasecmp): New declaration.
12007         * m4/mbspcasecmp.m4: New file.
12008         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12009         GNULIB_MBSPCASECMP.
12010         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
12011         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
12012
12013 2007-02-14  Bruno Haible  <bruno@clisp.org>
12014
12015         * modules/mbsncasecmp-tests: New file.
12016         * tests/test-mbsncasecmp.sh: New file.
12017         * tests/test-mbsncasecmp.c: New file.
12018
12019         New module mbsncasecmp.
12020         * modules/mbsncasecmp: New file.
12021         * lib/mbsncasecmp.c: New file.
12022         * lib/string_.h (mbsncasecmp): New declaration.
12023         * m4/mbsncasecmp.m4: New file.
12024         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12025         GNULIB_MBSNCASECMP.
12026         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
12027         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
12028
12029 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
12030
12031         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
12032         Verify that it doesn't overlap with our flags.
12033         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
12034         do not have the desired effect in multibyte locales; instead, use
12035         mbscasecmp.
12036         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
12037         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
12038         we don't require GNU fnmatch ourselves (if our users require it, they
12039         should do so explicitly).
12040
12041         Fix regex code so it doesn't rely on strcasecmp.
12042         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
12043         Otherwise, include gnulib's langinfo.h.
12044         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
12045         undesirable behavior in non-C locales.  Instead, rely on localecharset.
12046         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
12047         * modules/regex (FILES): Remove m4/codeset.m4.
12048         (Depends-on): Add localcharset.  Remove strcase.
12049
12050 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12051
12052         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
12053         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12054
12055 2007-02-13  Bruno Haible  <bruno@clisp.org>
12056
12057         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
12058         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12059
12060 2007-02-12  Bruno Haible  <bruno@clisp.org>
12061
12062         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
12063         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
12064         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
12065         time warning rather than a link error.
12066
12067 2007-02-12  Bruno Haible  <bruno@clisp.org>
12068
12069         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
12070         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12071         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12072
12073 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12074
12075         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
12076         args, not 2.
12077
12078 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12079
12080         New module 'time', so that apps can include <time.h> as per
12081         POSIX and GNU instead of separate include files like time_r.h
12082         and timegm.h.  This implementation tries out a simpler approach
12083         for replacing decls in standard include files (as compared to
12084         the string module), somewhat as an experiment.
12085
12086         * config/srclist.txt: Comment out mktime.c for now.
12087         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
12088         since it doesn't apply any more.  Use generic wording instead.
12089         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
12090         'time'.
12091         * lib/time_.h, m4/time_h.m4, modules/time: New files.
12092         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
12093         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
12094         Don't include <sys/types.h>; no longer needed since we assume C89.
12095         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
12096         * lib/strftime.c: Likewise.
12097         * lib/time_r.c: Likewise.
12098         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
12099         * lib/nanosleep.c: Include <time.h> first, to check interface.
12100         * lib/strptime.c: Likewise.
12101         * lib/time_r.c: Likewise.
12102         * lib/timegm.c: Likewise.
12103         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
12104         needed.
12105         * lib/timegm.c: Don't include timegm.h; no longer needed.
12106         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
12107         time.h now handles any problems in that area.
12108         (struct timespec, nanosleep): Remove; time.h now arranges for these.
12109         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
12110         that time.h defines struct timespec.
12111         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
12112         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
12113         handles that.
12114         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
12115         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
12116         needed.  Set REPLACE_LOCALTIME.
12117         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
12118         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
12119         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
12120         nanosleep; time_h.m4 now does that.  Don't require
12121         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
12122         module handles this now.
12123         * modules/getdate (Depends-on): Remove timespec.  Add time.
12124         * modules/nanosleep (Depends-on): Likewise.
12125         * modules/stat-time (Depends-on): Likewise.
12126         * modules/nanosleep (Include): Include time.h, not timespec.h.
12127         * modules/strptime (Files): Remove lib/strptime.h.
12128         (Depends-on): Add extensions, time.
12129         (Include): Include time.h, not strptime.h.
12130         * modules/time_r (Files): Remove lib/time_r.h.
12131         (Depends-on): Add time.
12132         (Include): Include time.h, not time_r.h.
12133         * modules/timegm: Likewise.
12134         * modules/timespec (Description): Now does timespec-related decls
12135         of our own, instead of struct timespec itself.
12136         (Depends-on): Add time; remove extensions.
12137         (Maintainer): Add self.
12138         * modules/utimecmp (Depends-on): Add time; remove timespec.
12139         * modules/utimens (Depends-on): Likewise.
12140         * modules/xnanosleep (Depends-on): Likewise.
12141
12142 2007-02-11  Bruno Haible  <bruno@clisp.org>
12143
12144         * lib/c-strstr.c: Include allocsa.h.
12145         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
12146         * lib/c-strcasestr.c: Include allocsa.h.
12147         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
12148         * lib/strcasestr.c: Include allocsa.h.
12149         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
12150         * lib/mbsstr.c: Include allocsa.h.
12151         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
12152         allocsa/freesa instead of malloc/free.
12153         * lib/mbscasestr.c: Include allocsa.h.
12154         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
12155         allocsa/freesa instead of malloc/free.
12156         * modules/c-strstr (Depends-on): Add allocsa.
12157         * modules/c-strcasestr (Depends-on): Likewise.
12158         * modules/strcasestr (Depends-on): Likewise.
12159         * modules/mbsstr (Depends-on): Likewise.
12160         * modules/mbscasestr (Depends-on): Likewise.
12161
12162 2007-02-11  Bruno Haible  <bruno@clisp.org>
12163
12164         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
12165
12166         * modules/mbsspn-tests: New file.
12167         * tests/test-mbsspn.sh: New file.
12168         * tests/test-mbsspn.c: New file.
12169
12170 2007-02-11  Bruno Haible  <bruno@clisp.org>
12171
12172         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
12173
12174         * modules/mbspbrk-tests: New file.
12175         * tests/test-mbspbrk.sh: New file.
12176         * tests/test-mbspbrk.c: New file.
12177
12178 2007-02-11  Bruno Haible  <bruno@clisp.org>
12179
12180         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
12181         unneeded cast.
12182
12183         * modules/mbscspn-tests: New file.
12184         * tests/test-mbscspn.sh: New file.
12185         * tests/test-mbscspn.c: New file.
12186
12187 2007-02-11  Bruno Haible  <bruno@clisp.org>
12188
12189         * modules/mbscasecmp-tests: New file.
12190         * tests/test-mbscasecmp.sh: New file.
12191         * tests/test-mbscasecmp.c: New file.
12192
12193 2007-02-11  Bruno Haible  <bruno@clisp.org>
12194
12195         Ensure O(n) worst-case complexity of mbscasestr.
12196         * lib/mbscasestr.c: Include stdbool.h.
12197         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
12198         functions.
12199         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
12200         the bookkeeping indicates that it's worth it.
12201         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
12202
12203         * modules/mbscasestr-tests: New file.
12204         * tests/test-mbscasestr1.c: New file.
12205         * tests/test-mbscasestr2.sh: New file.
12206         * tests/test-mbscasestr2.c: New file.
12207         * tests/test-mbscasestr3.sh: New file.
12208         * tests/test-mbscasestr3.c: New file.
12209         * tests/test-mbscasestr4.sh: New file.
12210         * tests/test-mbscasestr4.c: New file.
12211         * m4/locale-tr.m4: New file.
12212
12213 2007-02-11  Bruno Haible  <bruno@clisp.org>
12214
12215         Ensure O(n) worst-case complexity of mbsstr.
12216         * lib/mbsstr.c: Include stdbool.h.
12217         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
12218         functions.
12219         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
12220         bookkeeping indicates that it's worth it.
12221         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
12222
12223         * modules/mbsstr-tests: New file.
12224         * tests/test-mbsstr1.c: New file.
12225         * tests/test-mbsstr2.sh: New file.
12226         * tests/test-mbsstr2.c: New file.
12227         * tests/test-mbsstr3.sh: New file.
12228         * tests/test-mbsstr3.c: New file.
12229         * m4/locale-fr.m4: New file.
12230
12231 2007-02-11  Bruno Haible  <bruno@clisp.org>
12232
12233         * lib/mbsrchr.c (mbsrchr): Fix bug.
12234
12235         * modules/mbsrchr-tests: New file.
12236         * tests/test-mbsrchr.sh: New file.
12237         * tests/test-mbsrchr.c: New file.
12238
12239 2007-02-11  Bruno Haible  <bruno@clisp.org>
12240
12241         * lib/mbschr.c (mbschr): Fix bug.
12242
12243         * modules/mbschr-tests: New file.
12244         * tests/test-mbschr.sh: New file.
12245         * tests/test-mbschr.c: New file.
12246         * m4/locale-zh.m4: New file.
12247
12248 2007-02-11  Bruno Haible  <bruno@clisp.org>
12249
12250         Support for copying multibyte string iterators.
12251         * lib/mbiter.h: Include <string.h>.
12252         (mbiter_multi_copy): New function.
12253         (mbi_copy): New macro.
12254         * lib/mbuiter.h: Include <string.h>.
12255         (mbuiter_multi_copy): New function.
12256         (mbui_copy): New macro.
12257
12258 2007-02-11  Bruno Haible  <bruno@clisp.org>
12259
12260         New module mbslen.
12261         * modules/mbslen: New file.
12262         * lib/mbslen.c: New file.
12263         * lib/string_.h (mbslen): New declaration.
12264         * m4/mbslen.m4: New file.
12265         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12266         GNULIB_MBSLEN.
12267         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
12268         * MODULES.html.sh (Internationalization functions): Add mbslen.
12269
12270 2007-02-11  Bruno Haible  <bruno@clisp.org>
12271
12272         Ensure O(n) worst-case complexity of strcasestr substitute.
12273         * lib/strcasestr.c: Include stdbool.h.
12274         (knuth_morris_pratt): New function.
12275         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
12276         bookkeeping indicates that it's worth it.
12277         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
12278
12279         * modules/strcasestr-tests: New file.
12280         * tests/test-strcasestr.c: New file.
12281
12282 2007-02-11  Bruno Haible  <bruno@clisp.org>
12283
12284         Ensure O(n) worst-case complexity of c_strcasestr.
12285         * lib/c-strcasestr.c: Include stdbool.h, string.h.
12286         (knuth_morris_pratt): New function.
12287         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
12288         the bookkeeping indicates that it's worth it.
12289         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
12290
12291         * modules/c-strcasestr-tests: New file.
12292         * tests/test-c-strcasestr.c: New file.
12293
12294 2007-02-11  Bruno Haible  <bruno@clisp.org>
12295
12296         Ensure O(n) worst-case complexity of c_strstr.
12297         * lib/c-strstr.c: Include stdbool.h, string.h.
12298         (knuth_morris_pratt): New function.
12299         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
12300         bookkeeping indicates that it's worth it.
12301         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
12302
12303         * lib/c-strstr.c: Complete rewrite for maintainability.
12304
12305         * modules/c-strstr-tests: New file.
12306         * tests/test-c-strstr.c: New file.
12307
12308 2007-02-11  Bruno Haible  <bruno@clisp.org>
12309
12310         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
12311         5.2.1 and earlier, whereby \055 was treated just like the range
12312         delimiter '-'.
12313         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
12314
12315 2007-02-08  Bruno Haible  <bruno@clisp.org>
12316
12317         * modules/regex (Depends-on): Add stdbool.
12318         Reported by Dalibor Topic <robilad@kaffe.org>.
12319
12320 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
12321
12322         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
12323         Prefer returning from main to exiting from it.
12324         Remove unnecessary parens after sizeof.
12325
12326 2007-02-05  Bruno Haible  <bruno@clisp.org>
12327
12328         New module mbssep.
12329         * modules/mbssep: New file.
12330         * lib/mbssep.c: New file.
12331         * lib/string_.h (strsep): Add a conditional link warning.
12332         (mbssep): New declaration.
12333         * m4/mbssep.m4: New file.
12334         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12335         GNULIB_MBSSEP.
12336         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
12337         * MODULES.html.sh (Internationalization functions): Add mbssep.
12338
12339 2007-02-05  Bruno Haible  <bruno@clisp.org>
12340
12341         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
12342         Optimize search in case of 1 delimiter.
12343
12344 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
12345
12346         * lib/acl.h: Include sys/types.h before sys/acl.h.
12347
12348 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
12349
12350         Merge upstream fix for glibc bugzilla #3957:
12351
12352         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
12353
12354         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
12355         bit for RE_HAT_LISTS_NOT_NEWLINE.
12356         (build_charclass_op): Remove bogus comment.
12357
12358 2007-02-05  Simon Josefsson  <simon@josefsson.org>
12359
12360         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
12361
12362 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
12363
12364         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
12365         * lib/memmem.c [!defined _LIBC]: Include config.h.
12366
12367 2007-02-04  Bruno Haible  <bruno@clisp.org>
12368
12369         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
12370         warning message.
12371
12372 2007-02-04  Bruno Haible  <bruno@clisp.org>
12373
12374         New module mbstok_r.
12375         * modules/mbstok_r: New file.
12376         * lib/mbstok_r.c: New file.
12377         * lib/string_.h (strtok_r): Change argument names to match the
12378         comments. Add a conditional link warning.
12379         (mbstok_r): New declaration.
12380         * m4/mbstok_r.m4: New file.
12381         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12382         GNULIB_MBSTOK_R.
12383         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
12384         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
12385
12386 2007-02-04  Bruno Haible  <bruno@clisp.org>
12387
12388         New module mbsspn.
12389         * modules/mbsspn: New file.
12390         * lib/mbsspn.c: New file.
12391         * lib/string_.h (strspn): Add a conditional link warning.
12392         (mbsspn): New declaration.
12393         * m4/mbsspn.m4: New file.
12394         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12395         GNULIB_MBSSPN.
12396         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
12397         * MODULES.html.sh (Internationalization functions): Add mbsspn.
12398
12399 2007-02-04  Bruno Haible  <bruno@clisp.org>
12400
12401         New module mbspbrk.
12402         * modules/mbspbrk: New file.
12403         * lib/mbspbrk.c: New file.
12404         * lib/string_.h (strpbrk): Add a conditional link warning.
12405         (mbspbrk): New declaration.
12406         * m4/mbspbrk.m4: New file.
12407         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12408         GNULIB_MBSPBRK.
12409         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
12410         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
12411
12412 2007-02-04  Bruno Haible  <bruno@clisp.org>
12413
12414         New module mbscspn.
12415         * modules/mbscspn: New file.
12416         * lib/mbscspn.c: New file.
12417         * lib/string_.h (strcspn): Add a conditional link warning.
12418         (mbscspn): New declaration.
12419         * m4/mbscspn.m4: New file.
12420         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12421         GNULIB_MBSCSPN.
12422         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
12423         * MODULES.html.sh (Internationalization functions): Add mbscspn.
12424
12425 2007-02-04  Bruno Haible  <bruno@clisp.org>
12426
12427         New module mbscasestr, reduced goal of strcasestr.
12428         * modules/mbscasestr: New file.
12429         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
12430         (mbscasestr): Renamed from strcasestr.
12431         * lib/strcasestr.c: Don't include mbuiter.h.
12432         (strcasestr): Remove support for multibyte locales.
12433         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
12434         Change the conditional link warning.
12435         (mbscasestr): New declaration.
12436         * m4/mbscasestr.m4: New file.
12437         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
12438         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
12439         REPLACE_STRCASESTR.
12440         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
12441         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12442         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
12443         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
12444         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
12445         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
12446         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
12447         (Depends-on): Remove mbuiter.
12448         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
12449
12450 2007-02-04  Bruno Haible  <bruno@clisp.org>
12451
12452         Simplify handling of strncasecmp.
12453         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
12454         the conditional link warning.
12455         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12456         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
12457         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
12458         * modules/strcase (configure.ac): Don't invoke
12459         gl_STRING_MODULE_INDICATOR.
12460         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
12461
12462 2007-02-04  Bruno Haible  <bruno@clisp.org>
12463
12464         New module mbscasecmp, reduced goal of strcasecmp.
12465         * modules/mbscasecmp: New file.
12466         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
12467         (mbscasecmp): Renamed from strcasecmp.
12468         * lib/strcasecmp.c: Don't include mbuiter.h.
12469         (strcasecmp): Remove support for multibyte locales.
12470         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
12471         Change the conditional link warning.
12472         (mbscasecmp): New declaration.
12473         * m4/mbscasecmp.m4: New file.
12474         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
12475         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
12476         REPLACE_STRCASECMP.
12477         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
12478         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12479         GNULIB_MBSCASECMP.
12480         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
12481         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
12482         * modules/strcase (Files): Remove m4/mbrtowc.m4.
12483         (Depends-on): Remove mbuiter.
12484         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
12485
12486 2007-02-04  Bruno Haible  <bruno@clisp.org>
12487
12488         New module mbsstr. Remove module strstr.
12489         * modules/mbsstr: New file.
12490         * modules/strstr: Remove file.
12491         * lib/mbsstr.c: Renamed from lib/strstr.c.
12492         (mbsstr): Renamed from strstr.
12493         * lib/string_.h (strstr): Remove declaration. Change the conditional
12494         link warning.
12495         (mbsstr): New declaration.
12496         * m4/mbsstr.m4: New file.
12497         * m4/strstr.m4: Remove file.
12498         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
12499         REPLACE_STRSTR.
12500         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
12501         Don't initialize GNULIB_STRSTR.
12502         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
12503         substitute GNULIB_STRSTR and REPLACE_STRSTR.
12504         * MODULES.html.sh (Internationalization functions): Add mbsstr.
12505         (Support for systems lacking ANSI C 89): Remove strstr.
12506
12507 2007-02-04  Bruno Haible  <bruno@clisp.org>
12508
12509         New module mbsrchr.
12510         * modules/mbsrchr: New file.
12511         * lib/mbsrchr.c: New file.
12512         * lib/string_.h (strrchr): Add a conditional link warning.
12513         (mbsrchr): New declaration.
12514         * m4/mbsrchr.m4: New file.
12515         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12516         GNULIB_MBSRCHR.
12517         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
12518         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
12519
12520 2007-02-04  Bruno Haible  <bruno@clisp.org>
12521
12522         New module mbschr.
12523         * modules/mbschr: New file.
12524         * lib/mbschr.c: New file.
12525         * lib/string_.h (strchr): Add a conditional link warning.
12526         (mbschr): New declaration.
12527         * m4/mbschr.m4: New file.
12528         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12529         GNULIB_MBSCHR.
12530         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
12531         * MODULES.html.sh (Internationalization functions): Add mbschr.
12532
12533 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
12534
12535         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
12536
12537         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
12538
12539 2007-02-04  Bruno Haible  <bruno@clisp.org>
12540
12541         New module description section 'configure.ac-early'.
12542         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
12543         (func_get_autoconf_early_snippet): New function.
12544         (func_import, func_create_testdir): Use it. Remove special cases for
12545         modules 'extensions' and 'lock'.
12546         * modules/extensions (configure.ac-early): Require
12547         gl_USE_SYSTEM_EXTENSIONS.
12548         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
12549
12550 2007-02-04  Bruno Haible  <bruno@clisp.org>
12551
12552         Make use of gcj-4.3's -fsource and -ftarget option.
12553         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
12554         and if so try the options -fsource and -ftarget.
12555         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
12556         source_version, ftarget_option, target_version arguments.
12557         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
12558         (is_envjavac_oldgcj_14_14_usable): Renamed from
12559         is_envjavac_gcj_14_14_usable.
12560         (is_envjavac_oldgcj_14_13_usable): Renamed from
12561         is_envjavac_gcj_14_13_usable.
12562         (is_gcj_present): Update.
12563         (is_gcj_43, is_gcj43_usable): New functions.
12564         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
12565         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
12566         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
12567         try the options -fsource and -ftarget.
12568
12569 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
12570
12571         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
12572         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
12573         larger value.
12574
12575 2007-02-03  Jim Meyering  <jim@meyering.net>
12576
12577         Give tools a better chance to allocate space for very large buffers.
12578         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
12579
12580         Make pwd and readlink work also when run with an unreadable parent dir
12581         on systems with openat support.
12582         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
12583         provided getcwd function, even when we have openat support.
12584         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
12585
12586 2007-02-02  Bruno Haible  <bruno@clisp.org>
12587
12588         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
12589         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
12590         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
12591         portability problems if one of these functions is only used on specific
12592         platforms.
12593         Reported by Paul Eggert.
12594
12595 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
12596
12597         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
12598         is causing more trouble than it's curing.
12599         * lib/regex_internal.h (__mempcpy): Remove.
12600         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
12601         (and make the code a tad smaller to boot).
12602         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
12603
12604 2007-02-02  Jim Meyering  <jim@meyering.net>
12605
12606         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
12607         section, not in the Makefile.am: one.
12608
12609 2007-02-02  Eric Blake  <ebb9@byu.net>
12610
12611         * lib/strchrnul.c: Always include config.h first.
12612
12613         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
12614         gnulib strstr is not necessary here.
12615
12616 2007-02-02  Simon Josefsson  <simon@josefsson.org>
12617
12618         * m4/socklen.m4: Fix typo.
12619
12620 2007-02-02  Eric Blake  <ebb9@byu.net>
12621
12622         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
12623         * modules/netinet_in (Makefile.am): Likewise.
12624
12625 2007-02-01  Bruno Haible  <bruno@clisp.org>
12626
12627         * lib/string_.h (GL_LINK_WARNING): New macro.
12628         (strcasecmp, strstr, strcasestr): If provided by the system,
12629         conditionally define as a macro that leads to a warning instead of to
12630         an error.
12631         (strncasecmp): Conditionally define as a macro that leads to a warning.
12632
12633 2007-02-01  Karl Berry  <karl@gnu.org>
12634
12635         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
12636
12637 2007-02-01  Bruno Haible  <bruno@clisp.org>
12638
12639         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
12640         renamings.
12641
12642 2007-02-01  Eric Blake  <ebb9@byu.net>
12643
12644         * modules/regex (Depends-on): Revert dependence on mempcpy.
12645         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
12646         module's definition of mempcpy.
12647         Reported by Paul Eggert.
12648
12649 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
12650
12651         * lib/string_.h: If the gnulib module XYZ is not present, undefine
12652         the symbol XYZ before redefining it.  This fixes a problem with
12653         programs that don't use XYZ, when compiled on systems that define
12654         XYZ to something else.
12655
12656 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
12657
12658         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
12659         occurs when "mkdir -m foo" creates a setgid directory that is (1)
12660         writeable to group or other and (2) is intended to have a special
12661         mode bit that is set or cleared.  In such a case, the directory
12662         should be neither group- nor other-writeable until the special
12663         mode bits are right.
12664
12665 2007-01-31  Eric Blake  <ebb9@byu.net>
12666
12667         * modules/mountlist (Depends-on): Add strstr.
12668
12669         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
12670         bug.
12671         * modules/string (Makefile.am): Remove redundant replacement.
12672         * modules/regex (Depends-on): Add mempcpy.
12673
12674 2007-01-31  Bruno Haible  <bruno@clisp.org>
12675
12676         New module description field 'Link'.
12677         * gnulib-tool (func_usage): Document --extract-link-directive.
12678         (sed_extract_prog): Recognize 'Link' directive.
12679         (func_get_link_directive): New function.
12680         (func_import): Show summary of link directives.
12681         Handle --extract-link-directive option.
12682         * modules/acl (Link): New section.
12683         * modules/clock-time (Link): New section.
12684         * modules/euidaccess (Link): New section.
12685         * modules/gettext (Link): New section.
12686         * modules/iconv (Link): New section.
12687         * modules/lock (Link): New section.
12688         * modules/nanosleep (Link): New section.
12689         * modules/readline (Link): New section.
12690
12691 2007-01-27  Bruno Haible  <bruno@clisp.org>
12692
12693         Enforce the use of gnulib modules for unportable <string.h> functions.
12694         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
12695         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
12696         (gl_HEADER_STRING_H_BODY): Require it.
12697         * lib/string_.h: If the gnulib module XYZ is not present, redefine
12698         the symbol XYZ to one that gives a link error.
12699         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
12700         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
12701         * modules/mempcpy (configure.ac): Likewise.
12702         * modules/memrchr (configure.ac): Likewise.
12703         * modules/stpcpy (configure.ac): Likewise.
12704         * modules/stpncpy (configure.ac): Likewise.
12705         * modules/strcase (configure.ac): Likewise.
12706         * modules/strcasestr (configure.ac): Likewise.
12707         * modules/strchrnul (configure.ac): Likewise.
12708         * modules/strdup (configure.ac): Likewise.
12709         * modules/strndup (configure.ac): Likewise.
12710         * modules/strnlen (configure.ac): Likewise.
12711         * modules/strpbrk (configure.ac): Likewise.
12712         * modules/strsep (configure.ac): Likewise.
12713         * modules/strstr (configure.ac): Likewise.
12714         * modules/strtok_r (configure.ac): Likewise.
12715
12716 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
12717
12718         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
12719
12720 2007-01-30  Jim Meyering  <jim@meyering.net>
12721
12722         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
12723
12724 2007-01-29  Bruno Haible  <bruno@clisp.org>
12725
12726         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
12727         * lib/execute.c: Likewise.
12728         * lib/pipe.c: Likewise.
12729         * lib/printf-args.h: Likewise.
12730         * lib/printf-args.c: Likewise.
12731         * lib/printf-parse.c: Likewise.
12732         * lib/vasnprintf.c: Likewise.
12733
12734 2007-01-29  Eric Blake  <ebb9@byu.net>
12735
12736         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
12737         declaration.
12738
12739 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
12740
12741         * lib/strptime.h (strptime): Use 'restrict' for args where
12742         POSIX requires this.
12743         * lib/strptime.c (strptime): Likewise.
12744         Change license notice from LGPL to GPL, since gnulib-tool will
12745         change this as needed.
12746         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
12747         defined.
12748         Include "strptime.h" first, to check interface.
12749         Do not #undef _LIBC and _NL_CURRENT.
12750         Do not include <stdlib.h>; no longer needed.
12751         Include "time_r.h" and declare ptime_locale_status
12752         only if _LIBC is not defined.
12753         (__P): Remove unused macro.
12754         (match_string): Bring back glibc version, but use it only if _LIBC
12755         is defined.
12756         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
12757         Remove unnecessary assertion and abort() call.
12758         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
12759         * m4/strptime.m4: Fix serial number comment.
12760         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
12761         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
12762         (Depends-on): Add time_r.
12763
12764 2007-01-29  Bruno Haible  <bruno@clisp.org>
12765
12766         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12767         strptime.
12768         * modules/strptime (Depends-on): Add stdbool.
12769         * lib/strptime.h: Include <time.h> always. Add comments.
12770
12771 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
12772
12773         * modules/strptime: New file.
12774         * lib/strptime.h: New file.
12775         * lib/strptime.c: New file.
12776         * m4/strptime.m4: New file.
12777
12778 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
12779
12780         * MODULES.html.sh: New module mpsort.
12781         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
12782
12783         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
12784         a circularity problem with HP-UX ia64 reported by Bob Proulx in
12785         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
12786         All uses changed.
12787         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
12788         All uses changed.
12789         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
12790         to _Restrict_.
12791         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
12792         the parameter matches the prototype.
12793
12794 2007-01-28  Jim Meyering  <jim@meyering.net>
12795
12796         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
12797         sys/time.h here, reverting that part of the previous patch:
12798         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
12799
12800 2007-01-28  Bruno Haible  <bruno@clisp.org>
12801
12802         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
12803         value of $(SYS_TIME_H).
12804         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
12805         remove it conditionally, too. [added by Jim Meyering]
12806         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
12807         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
12808         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
12809         GETTIMEOFDAY_REPLACEMENT to 1.
12810
12811 2007-01-28  Bruno Haible  <bruno@clisp.org>
12812
12813         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
12814         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
12815         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
12816         Set UNISTD_H instead of UNISTD_H2.
12817         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
12818
12819 2007-01-28  Bruno Haible  <bruno@clisp.org>
12820
12821         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
12822         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
12823
12824 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12825
12826         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
12827         (func_create_testdir): Ensure C locale for `grep' and `tr'
12828         character ranges.
12829         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
12830         ACLOCAL_AMFLAGS parsing state machine.
12831
12832 2007-01-27  Bruno Haible  <bruno@clisp.org>
12833
12834         * modules/unistr/base: Update.
12835
12836 2007-01-27  Bruno Haible  <bruno@clisp.org>
12837
12838         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
12839         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
12840         * modules/unistr/u32-mbtouc-unsafe: Renamed from
12841         modules/unistr/u32-mbtouc.
12842         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
12843         * lib/unistr.h: Update.
12844         * lib/linebreak.c: Update.
12845         * modules/unistr/u32-mbtouc: Renamed from
12846         modules/unistr/u32-mbtouc-safe.
12847         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
12848         * lib/unistr.h: Update.
12849         * lib/unistr/u32-to-u8.c: Update.
12850         * lib/unistr/u32-to-u16.c: Update.
12851
12852 2007-01-27  Bruno Haible  <bruno@clisp.org>
12853
12854         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
12855         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
12856         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
12857         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
12858         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
12859         * modules/unistr/u16-mbtouc-unsafe: Renamed from
12860         modules/unistr/u16-mbtouc.
12861         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
12862         * lib/unistr.h: Update.
12863         * lib/linebreak.c: Update.
12864         * modules/linebreak: Update.
12865         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
12866         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
12867         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
12868         * modules/unistr/u16-mbtouc: Renamed from
12869         modules/unistr/u16-mbtouc-safe.
12870         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
12871         * lib/unistr.h: Update.
12872         * lib/unistr/u16-to-u8.c: Update.
12873         * modules/unistr/u16-to-u8: Update.
12874         * lib/unistr/u16-to-u32.c: Update.
12875         * modules/unistr/u16-to-u32: Update.
12876
12877 2007-01-27  Bruno Haible  <bruno@clisp.org>
12878
12879         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
12880         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
12881         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
12882         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
12883         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
12884         * modules/unistr/u8-mbtouc-unsafe: Renamed from
12885         modules/unistr/u8-mbtouc.
12886         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
12887         * lib/unistr.h: Update.
12888         * lib/striconveh.c: Update.
12889         * modules/striconveh: Update.
12890         * lib/linebreak.c: Update.
12891         * modules/linebreak: Update.
12892         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
12893         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
12894         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
12895         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
12896         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
12897         * lib/unistr.h: Update.
12898         * lib/striconveh.c: Update.
12899         * modules/striconveh: Update.
12900         * lib/unistr/u8-to-u16.c: Update.
12901         * modules/unistr/u8-to-u16: Update.
12902         * lib/unistr/u8-to-u32.c: Update.
12903         * modules/unistr/u8-to-u32: Update.
12904
12905 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12906
12907         Sync from Libtool.
12908         * lib/argz.c: Do not include strings.h nor memory.h, include
12909         string.h unconditionally.  Patch by Simon Josefsson.
12910
12911 2007-01-27  Bruno Haible  <bruno@clisp.org>
12912
12913         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
12914         from gl_HEADER_STRING_H_BODY.
12915         (gl_HEADER_STRING_H_BODY): Require it.
12916         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
12917         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
12918         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
12919         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
12920         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12921         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
12922         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12923         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
12924         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
12925         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
12926         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
12927         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
12928         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
12929         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12930         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
12931
12932 2007-01-27  Bruno Haible  <bruno@clisp.org>
12933
12934         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
12935         check_PROGRAMS into noinst_PROGRAMS.
12936         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
12937         check_PROGRAMS in this case.
12938         (func_import): Set for_test to false.
12939         (func_create_testdir): Set for_test to true.
12940
12941 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12942             Bruno Haible  <bruno@clisp.org>
12943
12944         * modules/strcasestr (Files): Remove lib/strcasestr.h.
12945         (Depends-on): Add string.
12946         (Includes): Use <string.h> instead of strcasestr.h.
12947         * modules/string (Makefile.am): Also substitute the value of
12948         REPLACE_STRCASESTR.
12949         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
12950         assume strcasestr is declared in <string.h> not <strings.h>. Also
12951         set REPLACE_STRCASESTR.
12952         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
12953         REPLACE_STRCASESTR.
12954         * lib/strcasestr.h: Remove file.
12955         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
12956         * lib/string_.h (strcasestr): New declaration.
12957
12958 2007-01-27  Bruno Haible  <bruno@clisp.org>
12959
12960         * lib/string_.h: Use 'extern'.
12961
12962 2007-01-27  Jim Meyering  <jim@meyering.net>
12963
12964         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
12965         of set-but-not-used local, "q".
12966
12967         * lib/mempcpy.c: Include <config.h> before <string.h>.
12968         This fixes a compilation error on HP-UX, due to the system's
12969         "restrict"-using mempcpy prototype.
12970
12971 2007-01-26  Bruno Haible  <bruno@clisp.org>
12972
12973         Small optimization.
12974         * lib/javacomp.c: Include c-strstr.h.
12975          (is_envjavac_gcj): Use c_strstr instead of strstr.
12976         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
12977
12978 2007-01-26  Bruno Haible  <bruno@clisp.org>
12979
12980         * MODULES.html.sh (Unicode string functions): Add the new modules.
12981
12982         * modules/uniconv/u32-strconv-to-locale: New file.
12983         * lib/uniconv/u32-strconv-to-locale.c: New file.
12984
12985         * modules/uniconv/u16-strconv-to-locale: New file.
12986         * lib/uniconv/u16-strconv-to-locale.c: New file.
12987
12988         * modules/uniconv/u8-strconv-to-locale: New file.
12989         * lib/uniconv/u8-strconv-to-locale.c: New file.
12990
12991         * modules/uniconv/u32-strconv-from-locale: New file.
12992         * lib/uniconv/u32-strconv-from-locale.c: New file.
12993
12994         * modules/uniconv/u16-strconv-from-locale: New file.
12995         * lib/uniconv/u16-strconv-from-locale.c: New file.
12996
12997         * modules/uniconv/u8-strconv-from-locale: New file.
12998         * lib/uniconv/u8-strconv-from-locale.c: New file.
12999
13000         * modules/uniconv/u32-strconv-to-enc: New file.
13001         * lib/uniconv/u32-strconv-to-enc.c: New file.
13002         * modules/uniconv/u32-strconv-to-enc-tests: New file.
13003         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
13004
13005         * modules/uniconv/u16-strconv-to-enc: New file.
13006         * lib/uniconv/u16-strconv-to-enc.c: New file.
13007         * lib/uniconv/u-strconv-to-enc.h: New file.
13008         * modules/uniconv/u16-strconv-to-enc-tests: New file.
13009         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
13010
13011         * modules/uniconv/u8-strconv-to-enc: New file.
13012         * lib/uniconv/u8-strconv-to-enc.c: New file.
13013         * modules/uniconv/u8-strconv-to-enc-tests: New file.
13014         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
13015
13016         * modules/uniconv/u32-strconv-from-enc: New file.
13017         * lib/uniconv/u32-strconv-from-enc.c: New file.
13018         * modules/uniconv/u32-strconv-from-enc-tests: New file.
13019         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
13020
13021         * modules/uniconv/u16-strconv-from-enc: New file.
13022         * lib/uniconv/u16-strconv-from-enc.c: New file.
13023         * modules/uniconv/u16-strconv-from-enc-tests: New file.
13024         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
13025
13026         * modules/uniconv/u8-strconv-from-enc: New file.
13027         * lib/uniconv/u8-strconv-from-enc.c: New file.
13028         * lib/uniconv/u-strconv-from-enc.h: New file.
13029         * modules/uniconv/u8-strconv-from-enc-tests: New file.
13030         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
13031
13032         * modules/uniconv/u32-conv-from-enc: New file.
13033         * lib/uniconv/u32-conv-from-enc.c: New file.
13034         * modules/uniconv/u32-conv-from-enc-tests: New file.
13035         * tests/uniconv/test-u32-conv-from-enc.c: New file.
13036
13037         * modules/uniconv/u16-conv-from-enc: New file.
13038         * lib/uniconv/u16-conv-from-enc.c: New file.
13039         * lib/uniconv/u-conv-from-enc.h: New file.
13040         * modules/uniconv/u16-conv-from-enc-tests: New file.
13041         * tests/uniconv/test-u16-conv-from-enc.c: New file.
13042
13043         * modules/uniconv/u8-conv-from-enc: New file.
13044         * lib/uniconv/u8-conv-from-enc.c: New file.
13045         * modules/uniconv/u8-conv-from-enc-tests: New file.
13046         * tests/uniconv/test-u8-conv-from-enc.c: New file.
13047
13048         * modules/uniconv/base: New file.
13049         * lib/uniconv.h: New file.
13050
13051 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
13052
13053         * doc/gnulib-tool.texi (Initial import): Update to match current
13054         behavior with strdup module.
13055         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
13056         * lib/memmem.h: Remove; all uses removed.  This is now done
13057         by <string.h>.
13058         * lib/mempcpy.h: Likewise.
13059         * lib/memrchr.h: Likewise.
13060         * lib/stpcpy.h: Likewise.
13061         * lib/stpncpy.h: Likewise.
13062         * lib/strcase.h: Likewise.
13063         * lib/strchrnul.h: Likewise.
13064         * lib/strdup.h: Likewise.
13065         * lib/strndup.h: Likewise.
13066         * lib/strnlen.h: Likewise.
13067         * lib/strpbrk.h: Likewise.
13068         * lib/strsep.h: Likewise.
13069         * lib/strstr.h: Likewise.
13070         * lib/strtok_r.h: Likewise.
13071         * lib/string_.h: New file.
13072         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
13073         Rely on <string.h> instead.
13074         * lib/canon-host.c: Likewise.
13075         * lib/chdir-long.c: Likewise.
13076         * lib/concatpath.c: Likewise.
13077         * lib/exclude.c: Likewise.
13078         * lib/fchdir.c: Likewise.
13079         * lib/getaddrinfo.c: Likewise.
13080         * lib/getcwd.c: Likewise.
13081         * lib/getsubopt.c: Likewise.
13082         * lib/glob.c: Likewise.
13083         * lib/hard-locale.c: Likewise.
13084         * lib/iconvme.c: Likewise.
13085         * lib/javacomp.c: Likewise.
13086         * lib/mempcpy.c: Likewise.
13087         * lib/memrchr.c: Likewise.
13088         * lib/regex_internal.h: Likewise.
13089         * lib/stpncpy.c: Likewise.
13090         * lib/strcasecmp.c: Likewise.
13091         * lib/strchrnul.c: Likewise.
13092         * lib/strdup.c: Likewise.
13093         * lib/striconv.c: Likewise.
13094         * lib/striconveh.c: Likewise.
13095         * lib/striconveha.c: Likewise.
13096         * lib/strncasecmp.c: Likewise.
13097         * lib/strndup.c: Likewise.
13098         * lib/strnlen.c: Likewise.
13099         * lib/strsep.c: Likewise.
13100         * lib/strstr.c: Likewise.
13101         * lib/strtok_r.c: Likewise.
13102         * lib/userspec.c: Likewise.
13103         * lib/w32spawn.h: Likewise.
13104         * lib/xstrndup.c: Likewise.
13105         * lib/mountlist.c (strstr): Remove decl.
13106         * m4/string_h.m4: New file.
13107         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
13108         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
13109         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
13110         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
13111         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
13112         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
13113         Set REPLACE_STRCASECMP if necessary.
13114         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
13115         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
13116         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
13117         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
13118         HAVE_DECL_STRDUP if necessary.
13119         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
13120         since gl_FUNC_STRNDUP does that now.
13121         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
13122         Check for decl here...
13123         (gl_PREREQ_STRNLEN): ... not here.
13124         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
13125         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
13126         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
13127         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
13128         necessary.
13129         * modules/string: New file.
13130         * modules/memmem (Files): Remove special-purpose include file.
13131         (Depends-on): Add string.
13132         (Include): Include <string.h>, not the removed file.
13133         * modules/mempcpy: Likewise.
13134         * modules/memrchr: Likewise.
13135         * modules/stpcpy: Likewise.
13136         * modules/stpncpy: Likewise.
13137         * modules/strcase: Likewise.
13138         * modules/strchrnul: Likewise.
13139         * modules/strdup: Likewise.
13140         * modules/strndup: Likewise.
13141         * modules/strnlen: Likewise.
13142         * modules/strpbrk: Likewise.
13143         * modules/strsep: Likewise.
13144         * modules/strstr: Likewise.
13145         * modules/strtok_r: Likewise.
13146         * tests/test-dirname.c: Don't include "strdup.h", since
13147         <string.h> now suffices.
13148         * tests/test-memmem.c: Don't include "memmem.h", since
13149         <string.h> now suffices.
13150
13151 2007-01-25  Bruno Haible  <bruno@clisp.org>
13152
13153         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
13154         *resultp is 0.
13155
13156         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
13157         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
13158         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
13159         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
13160
13161         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
13162         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
13163         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
13164         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
13165         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
13166         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
13167
13168 2007-01-24  Bruno Haible  <bruno@clisp.org>
13169
13170         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
13171         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
13172         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
13173         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
13174         gl_FUNC_FTS_CORE.
13175         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
13176         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
13177         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13178         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
13179         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
13180         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
13181         gl_FUNC_FCHOWNAT.
13182         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
13183         gl_FUNC_STRFTIME.
13184         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
13185         Reported by Ralf Wildenhues.
13186
13187 2007-01-24  Bruno Haible  <bruno@clisp.org>
13188
13189         Drop AC_REQUIRE calls that are redundant with the module dependencies.
13190         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
13191         gl_GETADDRINFO.
13192         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
13193         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
13194         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
13195
13196 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
13197
13198         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
13199         Don't use 'exit'; just return from 'main'.
13200         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
13201
13202         * lib/fnmatch_.h: Readjust white space and comments to match
13203         glibc, to avoid spurious diffs.
13204
13205 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13206
13207         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
13208         2004-12-01 change by Jakub Jelinek, since this code won't compile
13209         if !LIBC.  Problem reported by Bob Proulx.
13210
13211 2007-01-23  Bruno Haible  <bruno@clisp.org>
13212
13213         * lib/striconveh.c: Include c-strcaseeq.h.
13214         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
13215         * modules/striconveh (Depends-on): Add c-strcaseeq.
13216
13217 2007-01-23  Bruno Haible  <bruno@clisp.org>
13218
13219         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
13220
13221         * modules/c-strcaseeq: New file.
13222         * lib/c-strcaseeq.h: New file.
13223
13224         * modules/streq: New file.
13225         * lib/streq.h: New file.
13226
13227 2007-01-23  Bruno Haible  <bruno@clisp.org>
13228
13229         * modules/striconveha-tests: New file.
13230         * tests/test-striconveha.c: New file.
13231
13232         * lib/striconveha.h: Include <stdbool.h>.
13233         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
13234         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
13235         (mem_iconveha_notranslit): Renamed from mem_iconveha.
13236         (mem_iconveha): New function.
13237         (str_iconveha_notranslit): Renamed from str_iconveha.
13238         (str_iconveha): New function.
13239         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
13240         c-strcase.
13241
13242 2007-01-23  Bruno Haible  <bruno@clisp.org>
13243
13244         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
13245         encodings without forgiving before trying any encoding with handler.
13246         (str_iconveha): Try all encodings without forgiving before trying any
13247         encoding with handler.
13248
13249 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13250
13251         Import the following changes from libc.
13252
13253         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
13254
13255         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
13256
13257         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
13258
13259         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
13260         normal_bracket label.
13261
13262         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
13263
13264         [BZ #361]
13265         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
13266         to normal_bracket after fetching the next character.
13267
13268 2007-01-22  Bruno Haible  <bruno@clisp.org>
13269
13270         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
13271         argument.
13272         * lib/striconveh.c (iconv_carefully_1): New function.
13273         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
13274         argument.
13275         (str_cd_iconveh): Update.
13276         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
13277         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
13278         * tests/test-striconveh.c (MAGIC): New macro.
13279         (new_offsets): New function.
13280         (main): Test call with and without offsets.
13281
13282 2007-01-22  Bruno Haible  <bruno@clisp.org>
13283
13284         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
13285         * modules/sys_select (Makefile.am): Likewise.
13286         * modules/sys_socket (Makefile.am): Likewise.
13287         * modules/sys_time (Makefile.am): Likewise.
13288
13289 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
13290
13291         * modules/gettimeofday (License): Change from GPL to LGPL, since
13292         gettimeofday is a library function.
13293
13294 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13295
13296         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
13297
13298 2007-01-21  Bruno Haible  <bruno@clisp.org>
13299
13300         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
13301
13302 2007-01-21  Bruno Haible  <bruno@clisp.org>
13303
13304         * modules/striconveha: New file.
13305         * lib/striconveha.h: New file.
13306         * lib/striconveha.c: New file.
13307         * MODULES.html.sh (Internationalization functions): Add striconveha.
13308         * lib/striconv.c (str_iconv): Optimize the case of an empty input
13309         string.
13310         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
13311
13312 2007-01-21  Bruno Haible  <bruno@clisp.org>
13313
13314         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
13315         * lib/striconveh.c (str_iconveh): Likewise.
13316
13317 2007-01-21  Bruno Haible  <bruno@clisp.org>
13318
13319         * lib/striconveh.h (mem_iconveh): New declaration.
13320         * lib/striconveh.c (mem_iconveh): New function.
13321         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
13322
13323 2007-01-21  Bruno Haible  <bruno@clisp.org>
13324
13325         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
13326
13327         * lib/striconveh.h (mem_cd_iconveh): Change specification.
13328         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
13329         original result buffer.
13330         (str_cd_iconveh): Update.
13331         * tests/test-striconveh.c (main): Update.
13332
13333         * lib/striconv.h (mem_cd_iconv): Change specification.
13334         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
13335         result buffer.
13336         (str_cd_iconv): Update.
13337         * tests/test-striconv.c (main): Update.
13338
13339 2007-01-21  Bruno Haible  <bruno@clisp.org>
13340
13341         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
13342
13343 2007-01-20  Jim Meyering  <jim@meyering.net>
13344
13345         * lib/userspec.c (parse_with_separator): If a user or group string
13346         starts with "+", skip the corresponding name-to-ID look-up, since
13347         such a look-up must fail: user and group names may not include "+".
13348
13349 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
13350
13351         * lib/poll.c: Include sys/time.h and time.h unconditionally,
13352         since we now assume the sys_time module.
13353         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
13354         check for sys/time.h; no longer needed.
13355         * modules/poll (Depends-on): Depend on sys_time.
13356
13357 2007-01-18  Bruno Haible  <bruno@clisp.org>
13358
13359         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
13360         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
13361
13362         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
13363         gettimeofday.
13364
13365         * tests/test-gettimeofday.c: Include <time.h>.
13366         (dummy): Remove variable.
13367
13368         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
13369         gl_HEADER_SYS_TIME_H.
13370         (gl_HEADER_SYS_TIME_H): New macro.
13371
13372         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
13373         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
13374         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
13375         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
13376         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
13377         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
13378         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
13379         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
13380         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
13381         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
13382         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
13383
13384         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
13385         last change; it caused a compilation error when cross-compiling to
13386         Cygwin.
13387
13388 2007-01-18  Jim Meyering  <jim@meyering.net>
13389
13390         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
13391         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
13392         than the race-prone "test -d sys || mkdir sys".
13393         (configure.ac): Use AC_PROG_MKDIR_P.
13394         * modules/sys_select: Likewise.
13395         * modules/sys_socket: Likewise.
13396         * modules/sys_time: Likewise.
13397
13398 2007-01-18  Eric Blake  <ebb9@byu.net>
13399
13400         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
13401         replace gettimeofday.
13402         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
13403         name, to avoid infinite recursion.
13404
13405 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
13406
13407         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
13408         module sys_time.
13409         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
13410         assume timespec.h defines struct timeval.
13411         * lib/settime.c: Likewise.
13412         * lib/utimens.c: Likewise.
13413         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
13414         since we now assume the gettimeofday module.
13415         * lib/tempname.c (__gen_tempname): Likewise.
13416         * lib/gettimeofday.h: Remove.
13417         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
13418         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
13419         Include <time.h>, for 'time()'.
13420         (localtime_buffer_addr): Also use this workaround if
13421         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
13422         to simplify the uses.  All uses changed.
13423         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
13424         that #undef is inside {}, and 'const' follows type name consistently.
13425         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
13426         (gettimeofday): Do not use the maximum possible value for
13427         tv->tv_usec, since that might break usages other than ls.c.
13428         Instead, we'll leave ls.c alone.  This undoes today's patch
13429         by Bruno.  Add a compile-time warning for 1s-clock resolution;
13430         we've never observed the problem but might as well keep the
13431         canary.
13432         * lib/nanosleep.c: Include timespec.h first, for interface check.
13433         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
13434         now assume the sys_time module.
13435         * lib/tempname.c: Likewise.
13436         * lib/timespec.h: Likewise.
13437         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
13438         needed.
13439         * lib/strftime.c: Likewise.
13440         * lib/timespec.h: Likewise.
13441         * lib/posixtm.c: Include posixtm.h first, for interface check.
13442         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
13443         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
13444         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
13445         * lib/sys_time_.h: New file.
13446         * lib/timespec.h (struct timespec): Use long int, not long.
13447         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
13448         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
13449         Remove obsolescent call to AC_HEADER_TIME.
13450         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13451         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13452         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
13453         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
13454         Likewise.
13455         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
13456         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
13457         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
13458         into the sys_time module.  Check for gettimeofday just once.
13459         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
13460         for gettimeofday signature to just check the signature.  Merely
13461         compile it, since linking doesn't test signature.  Improve test for
13462         whether gettimeofday.o is actually needed.
13463         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
13464         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
13465         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
13466         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
13467         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
13468         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
13469         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
13470         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
13471         than worrying about sys/time.h.
13472         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
13473         Don't bother worrying about TIME_WITH_SYS_TIME.
13474         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
13475         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
13476         * m4/sys_time_h.m4: New file.
13477         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
13478         Don't include sys/time.h.  Return from main rather than exiting.
13479         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
13480         all uses changed.
13481         * modules/gethrxtime (Depends-on): Add sys_time.
13482         * modules/gettime (Depends-on): Likewise.
13483         * modules/gettimeofday (Depends-on): Likewise.
13484         * modules/nanosleep (Depends-on): Likewise.
13485         * modules/settime (Depends-on): Likewise.
13486         * modules/tempname (Depends-on): Likewise.
13487         * modules/utimens (Depends-on): Likewise.
13488         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
13489         (Include:) Change back to <sys/time.h>.
13490         (Maintainer:) Add self.
13491         * modules/sys_time: New file.
13492         * modules/tempname (Depends-on): Add gettimeofday.
13493         * tests/test-gettimeofday.c: Include <sys/time.h>
13494         rather than gettimeofday.h.
13495
13496 2007-01-17  Bruno Haible  <bruno@clisp.org>
13497
13498         * gnulib-tool (func_get_license): Revert last patch. Instead, let
13499         the license default to GPL.
13500         (func_create_testdir): Don't complain if a module is LGPL and its
13501         tests module depends on GPLed modules.
13502
13503 2007-01-17  Bruno Haible  <bruno@clisp.org>
13504
13505         * lib/gettimeofday.c (gettimeofday): Add code for the case
13506         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
13507         maximum possible value for tv->tv_usec, rather than the minimum one.
13508
13509 2005-10-08  Martin Lambers  <marlam@marlam.de>
13510 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13511 2007-01-16  Bruno Haible  <bruno@clisp.org>
13512
13513         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
13514         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
13515         gl_FUNC_GETTIMEOFDAY.
13516         (Include): Add gettimeofday.h.
13517         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
13518         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
13519         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
13520         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
13521         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
13522         * lib/gettimeofday.h: New file.
13523         * lib/gettimeofday.c: Include <sys/timeb.h>.
13524         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
13525         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
13526         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
13527         fall back on time().
13528
13529         * tests/test-gettimeofday.c: New file.
13530         * modules/gettimeofday-tests: New file.
13531
13532 2007-01-16  Eric Blake  <ebb9@byu.net>
13533
13534         * modules/fnmatch (Depends-on): Depend on wchar.
13535         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
13536         * m4/fnmatch.m4: Likewise.
13537         * modules/mbchar (Makefile.am): Assume <wchar.h>.
13538         * m4/mbchar.m4: Likewise.
13539         * modules/mbswidth (Depends-on): Depend on wchar.
13540         * lib/mbswidth.c: Assume <wchar.h>.
13541         * m4/mbswidth.m4: Likewise.
13542         * modules/quotearg (Depends-on): Depend on wchar.
13543         * lib/quotearg.c: Assume <wchar.h>.
13544         * m4/quotearg.m4: Likewise.
13545         * modules/regex (Depends-on): Depend on wchar.
13546         * lib/regex_internal.h: Assume <wchar.h>.
13547         * m4/regex.m4: Likewise.
13548         * modules/stdint (Depends-on): Depend on wchar.
13549         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
13550         * m4/stdint.m4: Likewise.
13551         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
13552         * modules/strftime (Depends-on): Depend on wchar.
13553         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
13554         * modules/strtol (Depends-on): Depend on wchar.
13555         * lib/strtol.c: Assume <wchar.h>.
13556         * modules/wcwidth (Depends-on): Depend on wchar.
13557         * lib/wcwidth.h: Assume <wchar.h>.
13558         * m4/wcwidth.m4: Likewise.
13559
13560 2007-01-16  Bruno Haible  <bruno@clisp.org>
13561
13562         * modules/csharpexec-script: New, created from...
13563         * modules/csharpexec: ... this.
13564
13565 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
13566
13567         * modules/javaexec-script: New, created from...
13568         * modules/javaexec: ... this.
13569
13570 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13571
13572         * modules/poll (Dependencies): Add sys_select.
13573
13574 2007-01-15  Jim Meyering  <jim@meyering.net>
13575
13576         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
13577         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
13578         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
13579         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
13580
13581 2007-01-15  Bruno Haible  <bruno@clisp.org>
13582
13583         * modules/striconveh: New file.
13584         * lib/striconveh.h: New file.
13585         * lib/striconveh.c: New file.
13586         * MODULES.html.sh (Internationalization functions): Add striconveh.
13587
13588         * modules/striconveh-tests: New file.
13589         * tests/test-striconveh.c: New file.
13590
13591 2007-01-15  Bruno Haible  <bruno@clisp.org>
13592
13593         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
13594         not from GNU libiconv or GNU libc.
13595
13596 2007-01-15  Bruno Haible  <bruno@clisp.org>
13597
13598         * doc/gnulib-intro.texi (Copyright): Explain the different license
13599         terms for module descriptions, autoconf macros, tests, documentation.
13600
13601 2007-01-14  Bruno Haible  <bruno@clisp.org>
13602
13603         * modules/striconv-tests: New file.
13604         * tests/test-striconv.c: New file.
13605
13606 2007-01-14  Bruno Haible  <bruno@clisp.org>
13607
13608         * modules/iconv-tests: New file.
13609         * tests/test-iconv.c: New file.
13610
13611 2007-01-14  Bruno Haible  <bruno@clisp.org>
13612
13613         * gnulib-tool (func_get_license): For test modules, use the license of
13614         the main module.
13615
13616 2007-01-14  Bruno Haible  <bruno@clisp.org>
13617
13618         * modules/iconv (Include): Clarify that <iconv.h> can only be included
13619         if iconv is found to exist.
13620
13621 2007-01-14  Bruno Haible  <bruno@clisp.org>
13622
13623         * modules/c-ctype-tests: New file.
13624         * tests/test-c-ctype.c: New file.
13625
13626 2007-01-14  Bruno Haible  <bruno@clisp.org>
13627
13628         * modules/binary-io-tests: New file.
13629         * tests/test-binary-io.sh: New file.
13630         * tests/test-binary-io.c: New file.
13631
13632 2007-01-14  Bruno Haible  <bruno@clisp.org>
13633
13634         * modules/array-oset-tests: New file.
13635         * tests/test-array_oset.c: New file.
13636
13637 2007-01-14  Bruno Haible  <bruno@clisp.org>
13638
13639         * modules/array-list-tests: New file.
13640         * tests/test-array_list.c: New file.
13641
13642 2007-01-14  Bruno Haible  <bruno@clisp.org>
13643
13644         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
13645         and make.
13646         Reported by Simon Josefsson in
13647         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
13648
13649 2007-01-14  Bruno Haible  <bruno@clisp.org>
13650
13651         * modules/allocsa-tests: New file.
13652         * tests/test-allocsa.c: New file.
13653
13654 2007-01-14  Bruno Haible  <bruno@clisp.org>
13655
13656         * modules/fchdir (Depends-on): Add absolute-header.
13657         * modules/unistd (Depends-on): Likewise.
13658
13659 2006-12-30  Bruno Haible  <bruno@clisp.org>
13660
13661         * modules/fchdir: New file.
13662         * modules/unistd (Files): Add lib/unistd_.h.
13663         (Makefile.am): Generate unistd.h from unistd_.h.
13664         * lib/fchdir.c: New file.
13665         * lib/dirent_.h: New file.
13666         * lib/unistd_.h: New file.
13667         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
13668         * m4/fchdir.m4: New file.
13669         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
13670         (gl_HEADER_UNISTD): Invoke it.
13671         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
13672         function.
13673         * lib/backupfile.c (opendir, closedir): Undefine.
13674         * lib/chown.c (open, close): Undefine.
13675         * lib/clean-temp.c (open, close): Undefine.
13676         * lib/copy-file.c (open, close): Undefine.
13677         * lib/execute.c (open, close): Undefine.
13678         * lib/fsusage.c (open, close): Undefine.
13679         * lib/gc-gnulib.c (open, close): Undefine.
13680         * lib/getcwd.c (opendir, closedir): Undefine.
13681         * lib/glob.c (opendir, closedir): Undefine.
13682         * lib/javacomp.c (open, close): Undefine.
13683         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
13684         * lib/openat-proc.c (open, close): Undefine.
13685         * lib/pagealign_alloc.c (open, close): Undefine.
13686         * lib/pipe.c (open, close): Undefine.
13687         * lib/progreloc.c (open, close): Undefine.
13688         * lib/savedir.c (opendir, closedir): Undefine.
13689         * lib/utime.c (open, close): Undefine.
13690         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
13691
13692 2007-01-10  Bruno Haible  <bruno@clisp.org>
13693
13694         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
13695
13696 2007-01-12  Eric Blake  <ebb9@byu.net>
13697
13698         Provide a robust <wchar.h>.  Further simplifications are now
13699         possible in other modules, but not included here.
13700         * modules/wchar: New module.
13701         * m4/wchar.m4: New file.
13702         * lib/wchar_.h: Likewise.
13703         * modules/mbchar (Depends-on): Depend on wchar, as the first use
13704         of the new module.
13705         * MODULES.html.sh (Extended multibyte and wide character utilities):
13706         New section.
13707
13708 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
13709
13710         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
13711         to a reasonable default for memory allocation.
13712         (xreadlink): Don't allocate a huge buffer, to work around a buggy
13713         file system that reports garbage st_size values for symlinks.
13714         Problem reported by Liyang Hu.
13715
13716 2007-01-11  Simon Josefsson  <simon@josefsson.org>
13717
13718         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
13719         Emacs .#* auto-save files).
13720
13721 2007-01-11  Bruno Haible  <bruno@clisp.org>
13722
13723         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
13724         directory.
13725
13726 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
13727
13728         Use @...@ consistently in lib/wctype_.h.
13729         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
13730         on it being set to 1 or 0.
13731         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
13732         go back to AC_SUBSTing it.
13733         * modules/wctype (Makefile.am): Undo previous change.
13734
13735 2007-01-10  Eric Blake  <ebb9@byu.net>
13736
13737         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
13738         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
13739         * modules/wctype (Makefile.am): Likewise.
13740         Reported by Chris McGuire.
13741
13742 2007-01-10  Jim Meyering  <jim@meyering.net>
13743
13744         fts.c: a small readability/maintainability improvement
13745         * lib/fts.c (fts_read): Make this code slightly more readable and
13746         maintainable by hoisting the "sp->fts_cur = p" assignments to
13747         immediately follow the statements that set P.  Derived from
13748         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
13749
13750 2007-01-10  Eric Blake  <ebb9@byu.net>
13751
13752         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
13753         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
13754         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13755         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
13756         Reported by Chris McGuire.
13757
13758 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13759
13760         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
13761         in sed script.
13762
13763 2007-01-09  Bruno Haible  <bruno@clisp.org>
13764
13765         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
13766         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
13767         variables.
13768         (func_module): Use them.
13769
13770 2007-01-09  Bruno Haible  <bruno@clisp.org>
13771
13772         * modules/unistr/base: New file.
13773         * lib/unistr.h: New file.
13774
13775         * modules/unistr/u8-to-u16: New file.
13776         * lib/unistr/u8-to-u16.c: New file.
13777
13778         * modules/unistr/u8-to-u32: New file.
13779         * lib/unistr/u8-to-u32.c: New file.
13780
13781         * modules/unistr/u16-to-u8: New file.
13782         * lib/unistr/u16-to-u8.c: New file.
13783
13784         * modules/unistr/u16-to-u32: New file.
13785         * lib/unistr/u16-to-u32.c: New file.
13786
13787         * modules/unistr/u32-to-u8: New file.
13788         * lib/unistr/u32-to-u8.c: New file.
13789
13790         * modules/unistr/u32-to-u16: New file.
13791         * lib/unistr/u32-to-u16.c: New file.
13792
13793         * modules/unistr/u8-check: New file.
13794         * modules/unistr/u16-check: New file.
13795         * modules/unistr/u32-check: New file.
13796         * lib/unistr/u8-check.c: New file.
13797         * lib/unistr/u16-check.c: New file.
13798         * lib/unistr/u32-check.c: New file.
13799
13800         * modules/unistr/u8-chr: New file.
13801         * modules/unistr/u16-chr: New file.
13802         * modules/unistr/u32-chr: New file.
13803         * lib/unistr/u8-chr.c: New file.
13804         * lib/unistr/u16-chr.c: New file.
13805         * lib/unistr/u32-chr.c: New file.
13806
13807         * modules/unistr/u8-cmp: New file.
13808         * modules/unistr/u16-cmp: New file.
13809         * modules/unistr/u32-cmp: New file.
13810         * lib/unistr/u8-cmp.c: New file.
13811         * lib/unistr/u16-cmp.c: New file.
13812         * lib/unistr/u32-cmp.c: New file.
13813
13814         * modules/unistr/u8-cpy: New file.
13815         * modules/unistr/u16-cpy: New file.
13816         * modules/unistr/u32-cpy: New file.
13817         * lib/unistr/u8-cpy.c: New file.
13818         * lib/unistr/u16-cpy.c: New file.
13819         * lib/unistr/u32-cpy.c: New file.
13820         * lib/unistr/u-cpy.h: New file.
13821
13822         * modules/unistr/u8-cpy-alloc: New file.
13823         * modules/unistr/u16-cpy-alloc: New file.
13824         * modules/unistr/u32-cpy-alloc: New file.
13825         * lib/unistr/u8-cpy-alloc.c: New file.
13826         * lib/unistr/u16-cpy-alloc.c: New file.
13827         * lib/unistr/u32-cpy-alloc.c: New file.
13828         * lib/unistr/u-cpy-alloc.h: New file.
13829
13830         * modules/unistr/u8-endswith: New file.
13831         * modules/unistr/u16-endswith: New file.
13832         * modules/unistr/u32-endswith: New file.
13833         * lib/unistr/u8-endswith.c: New file.
13834         * lib/unistr/u16-endswith.c: New file.
13835         * lib/unistr/u32-endswith.c: New file.
13836         * lib/unistr/u-endswith.h: New file.
13837
13838         * modules/unistr/u8-mblen: New file.
13839         * modules/unistr/u16-mblen: New file.
13840         * modules/unistr/u32-mblen: New file.
13841         * lib/unistr/u8-mblen.c: New file.
13842         * lib/unistr/u16-mblen.c: New file.
13843         * lib/unistr/u32-mblen.c: New file.
13844
13845         * modules/unistr/u8-mbtouc: New file.
13846         * modules/unistr/u16-mbtouc: New file.
13847         * modules/unistr/u32-mbtouc: New file.
13848         * lib/unistr/u8-mbtouc.c: New file.
13849         * lib/unistr/u16-mbtouc.c: New file.
13850         * lib/unistr/u32-mbtouc.c: New file.
13851
13852         * modules/unistr/u8-mbtouc-safe: New file.
13853         * modules/unistr/u16-mbtouc-safe: New file.
13854         * modules/unistr/u32-mbtouc-safe: New file.
13855         * lib/unistr/u8-mbtouc-safe.c: New file.
13856         * lib/unistr/u16-mbtouc-safe.c: New file.
13857         * lib/unistr/u32-mbtouc-safe.c: New file.
13858
13859         * modules/unistr/u8-move: New file.
13860         * modules/unistr/u16-move: New file.
13861         * modules/unistr/u32-move: New file.
13862         * lib/unistr/u8-move.c: New file.
13863         * lib/unistr/u16-move.c: New file.
13864         * lib/unistr/u32-move.c: New file.
13865         * lib/unistr/u-move.h: New file.
13866
13867         * modules/unistr/u8-next: New file.
13868         * modules/unistr/u16-next: New file.
13869         * modules/unistr/u32-next: New file.
13870         * lib/unistr/u8-next.c: New file.
13871         * lib/unistr/u16-next.c: New file.
13872         * lib/unistr/u32-next.c: New file.
13873
13874         * modules/unistr/u8-prev: New file.
13875         * modules/unistr/u16-prev: New file.
13876         * modules/unistr/u32-prev: New file.
13877         * lib/unistr/u8-prev.c: New file.
13878         * lib/unistr/u16-prev.c: New file.
13879         * lib/unistr/u32-prev.c: New file.
13880
13881         * modules/unistr/u8-set: New file.
13882         * modules/unistr/u16-set: New file.
13883         * modules/unistr/u32-set: New file.
13884         * lib/unistr/u8-set.c: New file.
13885         * lib/unistr/u16-set.c: New file.
13886         * lib/unistr/u32-set.c: New file.
13887         * lib/unistr/u-set.h: New file.
13888
13889         * modules/unistr/u8-startswith: New file.
13890         * modules/unistr/u16-startswith: New file.
13891         * modules/unistr/u32-startswith: New file.
13892         * lib/unistr/u8-startswith.c: New file.
13893         * lib/unistr/u16-startswith.c: New file.
13894         * lib/unistr/u32-startswith.c: New file.
13895         * lib/unistr/u-startswith.h: New file.
13896
13897         * modules/unistr/u8-stpcpy: New file.
13898         * modules/unistr/u16-stpcpy: New file.
13899         * modules/unistr/u32-stpcpy: New file.
13900         * lib/unistr/u8-stpcpy.c: New file.
13901         * lib/unistr/u16-stpcpy.c: New file.
13902         * lib/unistr/u32-stpcpy.c: New file.
13903         * lib/unistr/u-stpcpy.h: New file.
13904
13905         * modules/unistr/u8-stpncpy: New file.
13906         * modules/unistr/u16-stpncpy: New file.
13907         * modules/unistr/u32-stpncpy: New file.
13908         * lib/unistr/u8-stpncpy.c: New file.
13909         * lib/unistr/u16-stpncpy.c: New file.
13910         * lib/unistr/u32-stpncpy.c: New file.
13911         * lib/unistr/u-stpncpy.h: New file.
13912
13913         * modules/unistr/u8-strcat: New file.
13914         * modules/unistr/u16-strcat: New file.
13915         * modules/unistr/u32-strcat: New file.
13916         * lib/unistr/u8-strcat.c: New file.
13917         * lib/unistr/u16-strcat.c: New file.
13918         * lib/unistr/u32-strcat.c: New file.
13919         * lib/unistr/u-strcat.h: New file.
13920
13921         * modules/unistr/u8-strchr: New file.
13922         * modules/unistr/u16-strchr: New file.
13923         * modules/unistr/u32-strchr: New file.
13924         * lib/unistr/u8-strchr.c: New file.
13925         * lib/unistr/u16-strchr.c: New file.
13926         * lib/unistr/u32-strchr.c: New file.
13927
13928         * modules/unistr/u8-strcmp: New file.
13929         * modules/unistr/u16-strcmp: New file.
13930         * modules/unistr/u32-strcmp: New file.
13931         * lib/unistr/u8-strcmp.c: New file.
13932         * lib/unistr/u16-strcmp.c: New file.
13933         * lib/unistr/u32-strcmp.c: New file.
13934
13935         * modules/unistr/u8-strcpy: New file.
13936         * modules/unistr/u16-strcpy: New file.
13937         * modules/unistr/u32-strcpy: New file.
13938         * lib/unistr/u8-strcpy.c: New file.
13939         * lib/unistr/u16-strcpy.c: New file.
13940         * lib/unistr/u32-strcpy.c: New file.
13941         * lib/unistr/u-strcpy.h: New file.
13942
13943         * modules/unistr/u8-strcspn: New file.
13944         * modules/unistr/u16-strcspn: New file.
13945         * modules/unistr/u32-strcspn: New file.
13946         * lib/unistr/u8-strcspn.c: New file.
13947         * lib/unistr/u16-strcspn.c: New file.
13948         * lib/unistr/u32-strcspn.c: New file.
13949         * lib/unistr/u-strcspn.h: New file.
13950
13951         * modules/unistr/u8-strdup: New file.
13952         * modules/unistr/u16-strdup: New file.
13953         * modules/unistr/u32-strdup: New file.
13954         * lib/unistr/u8-strdup.c: New file.
13955         * lib/unistr/u16-strdup.c: New file.
13956         * lib/unistr/u32-strdup.c: New file.
13957         * lib/unistr/u-strdup.h: New file.
13958
13959         * modules/unistr/u8-strlen: New file.
13960         * modules/unistr/u16-strlen: New file.
13961         * modules/unistr/u32-strlen: New file.
13962         * lib/unistr/u8-strlen.c: New file.
13963         * lib/unistr/u16-strlen.c: New file.
13964         * lib/unistr/u32-strlen.c: New file.
13965         * lib/unistr/u-strlen.h: New file.
13966
13967         * modules/unistr/u8-strmblen: New file.
13968         * modules/unistr/u16-strmblen: New file.
13969         * modules/unistr/u32-strmblen: New file.
13970         * lib/unistr/u8-strmblen.c: New file.
13971         * lib/unistr/u16-strmblen.c: New file.
13972         * lib/unistr/u32-strmblen.c: New file.
13973
13974         * modules/unistr/u8-strmbtouc: New file.
13975         * modules/unistr/u16-strmbtouc: New file.
13976         * modules/unistr/u32-strmbtouc: New file.
13977         * lib/unistr/u8-strmbtouc.c: New file.
13978         * lib/unistr/u16-strmbtouc.c: New file.
13979         * lib/unistr/u32-strmbtouc.c: New file.
13980
13981         * modules/unistr/u8-strncat: New file.
13982         * modules/unistr/u16-strncat: New file.
13983         * modules/unistr/u32-strncat: New file.
13984         * lib/unistr/u8-strncat.c: New file.
13985         * lib/unistr/u16-strncat.c: New file.
13986         * lib/unistr/u32-strncat.c: New file.
13987         * lib/unistr/u-strncat.h: New file.
13988
13989         * modules/unistr/u8-strncmp: New file.
13990         * modules/unistr/u16-strncmp: New file.
13991         * modules/unistr/u32-strncmp: New file.
13992         * lib/unistr/u8-strncmp.c: New file.
13993         * lib/unistr/u16-strncmp.c: New file.
13994         * lib/unistr/u32-strncmp.c: New file.
13995
13996         * modules/unistr/u8-strncpy: New file.
13997         * modules/unistr/u16-strncpy: New file.
13998         * modules/unistr/u32-strncpy: New file.
13999         * lib/unistr/u8-strncpy.c: New file.
14000         * lib/unistr/u16-strncpy.c: New file.
14001         * lib/unistr/u32-strncpy.c: New file.
14002         * lib/unistr/u-strncpy.h: New file.
14003
14004         * modules/unistr/u8-strnlen: New file.
14005         * modules/unistr/u16-strnlen: New file.
14006         * modules/unistr/u32-strnlen: New file.
14007         * lib/unistr/u8-strnlen.c: New file.
14008         * lib/unistr/u16-strnlen.c: New file.
14009         * lib/unistr/u32-strnlen.c: New file.
14010         * lib/unistr/u-strnlen.h: New file.
14011
14012         * modules/unistr/u8-strpbrk: New file.
14013         * modules/unistr/u16-strpbrk: New file.
14014         * modules/unistr/u32-strpbrk: New file.
14015         * lib/unistr/u8-strpbrk.c: New file.
14016         * lib/unistr/u16-strpbrk.c: New file.
14017         * lib/unistr/u32-strpbrk.c: New file.
14018         * lib/unistr/u-strpbrk.h: New file.
14019
14020         * modules/unistr/u8-strrchr: New file.
14021         * modules/unistr/u16-strrchr: New file.
14022         * modules/unistr/u32-strrchr: New file.
14023         * lib/unistr/u8-strrchr.c: New file.
14024         * lib/unistr/u16-strrchr.c: New file.
14025         * lib/unistr/u32-strrchr.c: New file.
14026
14027         * modules/unistr/u8-strspn: New file.
14028         * modules/unistr/u16-strspn: New file.
14029         * modules/unistr/u32-strspn: New file.
14030         * lib/unistr/u8-strspn.c: New file.
14031         * lib/unistr/u16-strspn.c: New file.
14032         * lib/unistr/u32-strspn.c: New file.
14033         * lib/unistr/u-strspn.h: New file.
14034
14035         * modules/unistr/u8-strstr: New file.
14036         * modules/unistr/u16-strstr: New file.
14037         * modules/unistr/u32-strstr: New file.
14038         * lib/unistr/u8-strstr.c: New file.
14039         * lib/unistr/u16-strstr.c: New file.
14040         * lib/unistr/u32-strstr.c: New file.
14041         * lib/unistr/u-strstr.h: New file.
14042
14043         * modules/unistr/u8-strtok: New file.
14044         * modules/unistr/u16-strtok: New file.
14045         * modules/unistr/u32-strtok: New file.
14046         * lib/unistr/u8-strtok.c: New file.
14047         * lib/unistr/u16-strtok.c: New file.
14048         * lib/unistr/u32-strtok.c: New file.
14049         * lib/unistr/u-strtok.h: New file.
14050
14051         * modules/unistr/u8-uctomb: New file.
14052         * modules/unistr/u16-uctomb: New file.
14053         * modules/unistr/u32-uctomb: New file.
14054         * lib/unistr/u8-uctomb.c: New file.
14055         * lib/unistr/u16-uctomb.c: New file.
14056         * lib/unistr/u32-uctomb.c: New file.
14057
14058         * MODULES.html.sh (Unicode string functions): Add the new modules.
14059
14060 2007-01-08  Bruno Haible  <bruno@clisp.org>
14061
14062         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
14063         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
14064         subdirectories.
14065
14066 2007-01-08  Karl Berry  <karl@gnu.org>
14067
14068         * doc/error.texi: mention that main() fns must set program_name
14069         when progname is used.
14070
14071 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
14072
14073         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
14074         WCTYPE_H is empty, for the benefit of builds from non-distclean
14075         directories.  Problem reported by Eric Blake in
14076         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
14077
14078 2007-01-08  Bruno Haible  <bruno@clisp.org>
14079
14080         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
14081         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
14082         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
14083         PROVIDE_CANONICALIZE_FILENAME_MODE.
14084         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
14085
14086 2007-01-08  Bruno Haible  <bruno@clisp.org>
14087
14088         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
14089         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
14090         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
14091         * lib/fts.c: Likewise.
14092         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
14093
14094 2006-12-25  Bruno Haible  <bruno@clisp.org>
14095
14096         * modules/utf8-ucs4-safe: New file.
14097         * lib/utf8-ucs4-safe.h: New file.
14098         * lib/unistr/utf8-ucs4-safe.c: New file.
14099
14100         * modules/utf16-ucs4-safe: New file.
14101         * lib/utf16-ucs4-safe.h: New file.
14102         * lib/unistr/utf16-ucs4-safe.c: New file.
14103
14104         * MODULES.html.sh (Unicode string functions): Add the new modules.
14105
14106 2007-01-08  Bruno Haible  <bruno@clisp.org>
14107
14108         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
14109         (Depends-on): Add unitypes.
14110         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
14111         (u8_mbtouc_aux): Move out to separate file.
14112         (u8_mbtouc): Use ucs4_t, uint8_t types.
14113         * lib/unistr/utf8-ucs4.c: New file.
14114
14115         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
14116         (Depends-on): Add unitypes.
14117         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
14118         (u16_mbtouc_aux): Move out to separate file.
14119         (u16_mbtouc): Use ucs4_t, uint16_t types.
14120         * lib/unistr/utf16-ucs4.c: New file.
14121
14122         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
14123         (Depends-on): Add unitypes.
14124         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
14125         (u8_uctomb_aux): Move out to separate file.
14126         (u8_uctomb): Use ucs4_t, uint8_t types.
14127         * lib/unistr/ucs4-utf8.c: New file.
14128
14129         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
14130         (Depends-on): Add unitypes.
14131         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
14132         (u16_uctomb_aux): Move out to separate file.
14133         (u16_uctomb): Use ucs4_t, uint16_t types.
14134         * lib/unistr/ucs4-utf16.c: New file.
14135
14136 2006-12-25  Bruno Haible  <bruno@clisp.org>
14137
14138         * modules/unitypes: New file.
14139         * lib/unitypes.h: New file.
14140         * MODULES.html.sh (func_all_modules): New section "Unicode string
14141         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
14142         this section. Add unitypes.
14143
14144 2007-01-08  Bruno Haible  <bruno@clisp.org>
14145
14146         Avoid variable names that conflict with those from libtool.
14147         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
14148         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
14149         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
14150         library_names_spec to acl_library_names_spec, hardcode_* to
14151         acl_hardcode_*.
14152         Reported by Ralf Wildenhues.
14153
14154 2007-01-08  Bruno Haible  <bruno@clisp.org>
14155
14156         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
14157         definition.
14158         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
14159         definition.
14160         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
14161         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
14162         definition.
14163         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
14164         definition.
14165         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
14166         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
14167         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
14168         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
14169         definition.
14170         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
14171         definition.
14172         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
14173         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
14174         GC_USE_<algorithm>.
14175         * lib/gc-libgcrypt.c: Likewise.
14176         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
14177         * modules/gc-arctwo (configure.ac): Likewise.
14178         * modules/gc-des (configure.ac): Likewise.
14179         * modules/gc-hmac-md5 (configure.ac): Likewise.
14180         * modules/gc-hmac-sha1 (configure.ac): Likewise.
14181         * modules/gc-md2 (configure.ac): Likewise.
14182         * modules/gc-md4 (configure.ac): Likewise.
14183         * modules/gc-md5 (configure.ac): Likewise.
14184         * modules/gc-random (configure.ac): Likewise.
14185         * modules/gc-rijndael (configure.ac): Likewise.
14186         * modules/gc-sha1 (configure.ac): Likewise.
14187
14188 2007-01-08  Bruno Haible  <bruno@clisp.org>
14189
14190         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
14191         macro definition.
14192         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
14193         definition.
14194         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
14195         definition.
14196         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
14197         * modules/fcntl-safer (configure.ac): Likewise.
14198         * modules/fopen-safer (configure.ac): Likewise.
14199         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
14200         GNULIB_FWRITEERROR macro definition.
14201
14202 2007-01-08  Bruno Haible  <bruno@clisp.org>
14203
14204         * m4/gnulib-common.m4: New file.
14205         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
14206         (func_get_filelist): Add m4/gnulib-common.m4.
14207
14208 2007-01-08  Bruno Haible  <bruno@clisp.org>
14209
14210         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
14211         command.
14212
14213 2007-01-08  Jim Meyering  <jim@meyering.net>
14214
14215         Use a more robust test for a "can't happen" condition.
14216         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
14217         narrowed the st_size value.  Presuming the "can't happen" condition
14218         is true, that narrowing could conceivably convert an invalid st_size
14219         value into a valid one.  Instead, use a change based on Matthew
14220         Woehlke's original patch.
14221
14222         Slight readability improvement: use an assert-like macro
14223         in place of literal "abort ()" uses.
14224         * lib/fts.c (fts_assert): Define.
14225         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
14226         Use this macro instead of a bare 'abort'.
14227
14228 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
14229
14230         Don't worry about using IRIX 5.3's wctype.h broken definitions;
14231         simply work around them.
14232         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
14233         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
14234         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
14235         declaring.
14236         Don't bother to define as macros, since the standard doesn't require it.
14237         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
14238         longer worry about IRIX 5.3.
14239         (HAVE_WCTYPE_CTMP_BUG): Remove.
14240
14241 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
14242
14243         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
14244         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
14245         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
14246         Problems reported by Georg Schwarz for IRIX 5.3.
14247
14248         * gnulib-tool (autoconf_minversion): Take the maximum version number
14249         found, not the minimum.  Problem reported by James Youngman.
14250
14251 2007-01-03  Karl Berry  <karl@gnu.org>
14252
14253         * doc/error.texi: new file, explaining interaction with progname.
14254         * doc/gnulib.texi: include it.  Update copyright.
14255
14256 2007-01-03  Simon Josefsson  <simon@josefsson.org>
14257
14258         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
14259         AC_CANONICAL_HOST, to improve autobuild outputs.
14260
14261 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
14262             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14263
14264         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
14265         sockets, server sockets, and other file descriptors.  Count errors
14266         to compute the return value.  Reorder the code a bit to be easier
14267         to follow.  Don't set event bits that were not requested (except
14268         POLLERR and POLLHUP).
14269
14270 2007-01-01  Bruno Haible  <bruno@clisp.org>
14271
14272         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
14273
14274 2007-01-03  Jim Meyering  <jim@meyering.net>
14275
14276         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
14277
14278 2007-01-02  Bruno Haible  <bruno@clisp.org>
14279
14280         * modules/settime (Include): Require timespec.h.
14281         * modules/nanosleep (Include): Likewise.
14282
14283 2007-01-01  Bruno Haible  <bruno@clisp.org>
14284
14285         * gnulib-tool (func_emit_copyright_notice): Bump year.
14286         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
14287
14288 2007-01-01  Bruno Haible  <bruno@clisp.org>
14289
14290         Improve support for OpenBSD.
14291         * build-aux/config.rpath (libname_spec): Export.
14292         (library_names_spec): New variable. Export.
14293         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
14294         library_names_spec from the config.rpath output. Locate shared library
14295         through the name pattern in library_names_spec.
14296
14297 2007-01-01  Eric Blake  <ebb9@byu.net>
14298
14299         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
14300
14301 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
14302
14303         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
14304         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
14305         assume the C locale, and avoid an "eval" that could cause trouble.
14306         Problem with SORT reported by Bob Proulx.
14307
14308         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
14309         Define.  Trivial patch from Henning Nielsen Lund, originally
14310         sent to bug-grep@gnu.org today.
14311
14312 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
14313
14314         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
14315         struct stat.  Problem reported by Henning Nielsen Lund.
14316         * lib/acl.c: Include acl.h first, to check interface.  Don't
14317         bother to include sys/types.h and sys/stat.h again.
14318
14319 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14320
14321         Import the following change from libc; problem reported by
14322         Sven Verdoolaege.
14323
14324         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
14325
14326         [BZ #1373]
14327         * lib/argp.h: Remove __NTH for __argp_usage inline function.
14328
14329 2006-12-28  Jim Meyering  <jim@meyering.net>
14330
14331         * build-aux/announce-gen: Do not assume that the package
14332         builds any of tar.gz, tar.bz2, and .xdelta files.
14333         Suggestion from Simon Josefsson.
14334
14335 2006-12-28  Simon Josefsson  <simon@josefsson.org>
14336
14337         * modules/announce-gen: New file.
14338
14339 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14340
14341         * lib/mbchar.h: Just include <wctype.h>; the wctype module
14342         handles its gotchas now.
14343         * lib/mbswidth.c: Likewise.
14344         * lib/wcwidth.h: Likewise.
14345         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
14346         and iswcntrl; the wctype module does this stuff now.
14347         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
14348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14349         * modules/mbchar (Depends-on): Add wctype.
14350         * modules/mbswidth (Depends-on): Likewise.
14351         * modules/wcwidth (Depends-on): Likewise.
14352
14353 2006-12-27  Eric Blake  <ebb9@byu.net>
14354
14355         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
14356         module uses more than what <wctype.h> is required to provide.
14357
14358 2006-12-26  Eric Blake  <ebb9@byu.net>
14359
14360         * gnulib-tool (sed_extract_prog): Avoid space-tab.
14361
14362 2006-12-26  Eric Blake  <ebb9@byu.net>
14363
14364         * modules/absolute-header: New module.
14365         * modules/fcntl (Depends-on): Depend on it.
14366         * modules/inttypes (Depends-on): Likewise.
14367         * modules/stdint (Depends-on): Likewise.
14368         * modules/sys_stat (Depends-on): Likewise.
14369         * modules/wctype (Depends-on): Likewise.
14370         * MODULES.html.sh (Support for building libraries and
14371         executables): Document it.
14372
14373 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
14374
14375         * gnulib-tool (SED): Remove, undoing previous change.
14376         The problem was that it broke coreutils on Solaris, because
14377         "sed --posix" leaked into a makefile.
14378         (sed): New alias, if 'alias' and GNU sed.
14379
14380 2006-12-24  Jim Meyering  <jim@meyering.net>
14381
14382         Work around an fchownat bug in glibc-2.4:
14383         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
14384         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
14385         in spite of the -P option.
14386         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
14387         New macros.
14388         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
14389         * modules/openat (Files): Add lib/fchownat.c.
14390         * lib/openat.c (fchownat): Don't define here.  Move to...
14391         * lib/fchownat.c: ...this new file.
14392
14393 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14394
14395         Fix bug reported by Bruno Haible in
14396         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
14397         where quotearg.c didn't compile on Mac OS X 10.2 because it
14398         lacks <wchar.h> and wint_t.
14399         * lib/wctype_.h (__wctype_wint_t): New type.
14400         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
14401         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
14402         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
14403         Arg is now of type __wctype_wint_t, not wint_t.
14404         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
14405         substitute HAVE_WINT_T.
14406         * modules/wctype (Files): Add m4/wint_t.m4.
14407         (wctype.h): Substitute HAVE_WINT_T.
14408
14409 2006-12-23  Bruno Haible  <bruno@clisp.org>
14410
14411         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
14412
14413 2006-12-23  Bruno Haible  <bruno@clisp.org>
14414
14415         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
14416         S_ISLNK.
14417         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
14418         mingw.
14419
14420 2006-12-22  Bruno Haible  <bruno@clisp.org>
14421
14422         * lib/copy-file.c: Include acl.h.
14423         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
14424         Close the file descriptors only after being done with copy_acl.
14425         * modules/copy-file (Depends-on): Add acl.
14426
14427 2006-12-22  Bruno Haible  <bruno@clisp.org>
14428
14429         * gnulib-tool (SED): New variable.
14430         Use $SED instead of sed everywhere.
14431
14432 2006-12-22  Bruno Haible  <bruno@clisp.org>
14433
14434         * modules/no-c++: New file.
14435         * m4/no-c++.m4: New file.
14436         * MODULES.html.sh (Support for building libraries and executables):
14437         Add no-c++.
14438
14439 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14440
14441         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
14442         Include <limits.h>, and use its INT_MAX to rewrite the
14443         j loop so that it does not overflow 'int'.  Problem reported by
14444         Ralf Wildenhues in
14445         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
14446         Play it safe by shifting left by 1 rather than multiplying by 2,
14447         as GCC is less likely to optimize this away when the value
14448         is signed (when it assumes overflow leads to undefined behavior).
14449         Also, don't assume time_t uses two's complement.
14450
14451 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
14452
14453         * MODULES.html.sh: New module wctype.
14454         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
14455         * lib/fnmatch.c: Don't bother to include <wchar.h> before
14456         <wctype.h>, since the new wctype module should fix this.
14457         * lib/quotearg.c: Include <wctype.h> unconditionally, since
14458         the wctype module should arrange for it.
14459         * lib/regex_internal.h: Likewise.
14460         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
14461         since the wctype module should handle this now.
14462         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
14463         * modules/fnmatch (Depends-on): Add wctype.
14464         * modules/quotearg (Depends-on): Likewise.
14465         * modules/regex (Depends-on): Likewise.
14466
14467 2006-12-19  Bruno Haible  <bruno@clisp.org>
14468
14469         * lib/strdup.h [C++]: Wrap definitions in extern "C".
14470         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
14471
14472 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14473
14474         * modules/savewd (Depends-on): Fix dependency on fcntl.
14475
14476 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14477
14478         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
14479         conforms to C99, rather than relying on the user's environment
14480         setting of STDINT_H.
14481
14482 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14483         and Eric Blake  <ebb9@byu.net>
14484
14485         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
14486         This is more consistent with the other defines here.
14487         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
14488         Port to z/OS.  Problem reported by Paul Gilmartin.
14489         Change local vars to use gl_ prefix rather than ac_.
14490         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
14491         with other defines.
14492         * modules/double-slash-root: New module.
14493         * modules/dirname (Files): Remove m4/double-slash-root.m4.
14494         (Depends-on): Add double-slash-root.
14495         * MODULES.html.sh (File system functions): Mention new module.
14496
14497 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
14498
14499         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
14500         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
14501         This is for the benefit of gzip, which doesn't do i18n.
14502
14503 2006-12-12  Jim Meyering  <jim@meyering.net>
14504
14505         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
14506         Reported by Andreas Schwab <schwab@suse.de>.
14507
14508 2006-12-12  Bruno Haible  <bruno@clisp.org>
14509
14510         Merge these changes.
14511         2006-09-05  Bruno Haible  <bruno@clisp.org>
14512         * lib/iconvme.c (iconv_string): No need to save and restore errno when
14513         iconv_alloc succeeded.
14514         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
14515         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
14516         test for " && dest " at the end - dest is always != NULL there. Call
14517         iconv with 4xNULL arguments initially, to reset the state. Call iconv
14518         with 2xNULL arguments, also to flush the state storage. Handle the
14519         IRIX iconv behaviour. Realloc the final result, to throw away unused
14520         memory.
14521
14522 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
14523
14524         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
14525         and fchmodat unconditionally, since glibc 2.4 has them.
14526         Problem reported by Arkadiusz Miskiewicz.
14527
14528 2006-12-10  Bruno Haible  <bruno@clisp.org>
14529
14530         * gnulib-tool (func_import): Show the include files only for those
14531         modules that are copied and specified.
14532         Reported by Karl Berry.
14533
14534 2006-12-08  Jim Meyering  <jim@meyering.net>
14535
14536         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
14537         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
14538
14539         * build-aux/announce-gen: Add two new options, both optional:
14540         --bootstrap-tools=TOOL_LIST
14541               a comma-separated list of tools, e.g.,
14542               autoconf,automake,bison,gnulib
14543         --gnulib-snapshot-date=DATE
14544               if gnulib is in the bootstrap tool list,
14545               then report this as the snapshot date.
14546               If not specified, use the current date/time.
14547               If you specify a date here, be sure it's UTC.
14548
14549 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14550
14551         * tests/test-argp-2.sh: Fix test to match actual output.
14552         (func_compare): Fix sed script to be portable.
14553
14554 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
14555
14556         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
14557         workaround for this case.  It is not autoconfigured now; offhand
14558         it's hard to see how to autoconfigure it.
14559
14560 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
14561
14562         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
14563         a directory that is about to be chowned.  Such a directory's
14564         initial file permissions should permit the owner only and this
14565         should not be changed until after the chown, since the group and
14566         other bits would be incorrect if they granted permission before
14567         the chown.
14568
14569         Fix porting problem for iswctype reported by Georg Schwarz in:
14570         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
14571         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
14572         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
14573         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
14574         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14575
14576 2006-12-03  Jim Meyering  <jim@meyering.net>
14577
14578         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
14579         p->fts_statp may not yet be defined.
14580         (fts_read): Instead, set it in the caller, once p->fts_statp is
14581         sure to be defined, and corresponds to a top-level directory.
14582         This bug made du -x fail.  Here's the coreutils test case:
14583         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
14584         Reported by Mike Frysinger.
14585
14586 2006-12-01  Jim Meyering  <jim@meyering.net>
14587
14588         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
14589         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
14590         Reported by Simon Josefsson.
14591
14592 2006-11-30  Jim Meyering  <jim@meyering.net>
14593
14594         * m4/warning.m4: Use the all-permissive copyright notice
14595         recommended by RMS (rather than LGPL).
14596         * m4/vararrays.m4: Likewise.
14597         * m4/flexmember.m4: Likewise.
14598
14599 2006-11-29  Bruno Haible  <bruno@clisp.org>
14600
14601         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
14602         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
14603         using +=.
14604         Reported by Simon Josefsson <simon@josefsson.org>.
14605
14606 2006-11-28  James Youngman <jay@gnu.org>
14607
14608         * README: Advise users that they might find the bug-gnulib@gnu.org
14609         and autotools-announce@gnu.org mailing lists useful.
14610
14611 2006-11-28  Bruno Haible  <bruno@clisp.org>
14612
14613         * m4/ptrdiff_max.m4: Remove file.
14614
14615 2006-11-21  Bruno Haible  <bruno@clisp.org>
14616
14617         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
14618         _AC_COMPUTE_INT.
14619         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
14620         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
14621         _AC_COMPUTE_INT.
14622         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
14623         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
14624         _AC_COMPUTE_INT.
14625         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
14626
14627 2006-11-28  Jim Meyering  <jim@meyering.net>
14628
14629         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
14630         warning from "gcc -Wshadow" about shadowing the builtin.
14631
14632 2006-11-27  Bruno Haible  <bruno@clisp.org>
14633
14634         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
14635         _AC_COMPUTE_INT.
14636         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
14637
14638 2006-11-27  Bruno Haible  <bruno@clisp.org>
14639             Paul Eggert  <eggert@cs.ucla.edu>
14640
14641         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
14642
14643 2006-11-26  Bruno Haible  <bruno@clisp.org>
14644
14645         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
14646         noinst_LTLIBRARIES.
14647
14648 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
14649             Bruno Haible  <bruno@clisp.org>
14650
14651         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
14652         if compiling with "gcc -ansi".
14653
14654 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
14655
14656         Fix some incompatibilities with gcc -ansi -pedantic.
14657         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
14658         if compiling pedantically with GCC, unless it's C99 or later.
14659         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
14660         it mishandles gcc -ansi -pedantic as well.
14661         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
14662         if gcc -pedantic.
14663         * lib/regexec.c (check_node_accept_bytes): Don't use auto
14664         initializers for struct if -pedantic, unless it's C99 or later.
14665
14666 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
14667
14668         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
14669         Don't close an fd more than once. Identical atimes indicate
14670         success, not failure.
14671
14672 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
14673
14674         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
14675
14676 2006-11-23  Jim Meyering  <jim@meyering.net>
14677
14678         * build-aux/announce-gen: New file.  From coreutils.
14679
14680 2006-11-22  Jim Meyering  <jim@meyering.net>
14681
14682         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
14683         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
14684         (fts_read): Use a temporary to narrow the overused st_size member
14685         before using it in a switch statement.  Reported by Matthew Woehlke.
14686
14687         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
14688         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14689
14690 2006-11-20  Bruno Haible  <bruno@clisp.org>
14691
14692         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
14693         changequote instead of pairs of brackets.
14694         Reported by Andreas Schwab <schwab@suse.de>.
14695
14696 2006-11-21  Jim Meyering  <jim@meyering.net>
14697
14698         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
14699         so as to remain compatible with older compilers.
14700         Patch from Michael Deutschmann.
14701
14702 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
14703
14704         * MODULES.html.sh (File system functions): Add openat.
14705
14706         * lib/openat.h (rpl_fstatat): New macro, if
14707         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
14708         (fstatat): Define to rpl_fstatat under the same conditions,
14709         unless COMPILING_FSTATAT.
14710         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
14711         seems to have the bug.
14712         * lib/fstatat.c: New file.
14713         * modules/openat (Files): Add it.
14714
14715 2006-11-20  Bruno Haible  <bruno@clisp.org>
14716
14717         * Makefile: New file.
14718
14719 2006-11-20  Jim Meyering  <jim@meyering.net>
14720
14721         The beginnings of syntax-related checks for gnulib.
14722         * lib/Makefile: New file.
14723         * lib/t-idcache: New script.  Ensure that the two halves of
14724         idcache.c stay in sync.
14725
14726         * lib/idcache.c: Adjust comments in user- and group- portions to
14727         be more accurate, and to be consistent with one another.
14728
14729 2006-11-20  Jim Meyering  <jim@meyering.net>
14730
14731         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
14732         continue using the flexible array member (thus, this module performs
14733         half as many malloc calls), with the addition that...
14734         (getgroup, getuser): Consistently record a non-match via an empty
14735         "name" string, and map an empty string match to a NULL return value.
14736         * modules/idcache (Depends-on): Re-add flexmember.
14737
14738         * lib/idcache.c (getuser): Remove all uses of the register keyword.
14739         (getuidbyname, getgroup, getgidbyname): Likewise.
14740
14741         Use cleaner syntax: NULL rather than 0.
14742         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
14743
14744 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
14745
14746         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
14747         It mishandled the case where the group was missing.
14748         Problem reported by Greg Schafer.
14749         * modules/idcache: Likewise.
14750
14751 2006-11-18  Jim Meyering  <jim@meyering.net>
14752
14753         * check-module (%exempt_header): Add exception for some
14754         conditionally-included headers.
14755
14756         * modules/i-ring (Depends-on): Add verify.
14757         (License): Change to LGPL.
14758
14759 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
14760
14761         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
14762         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
14763         and inttostr.h.  Use snprintf rather than uinttostr, so that
14764         LGPLed code doesn't depend on GPLed.
14765
14766 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14767
14768         * modules/inline (License): Change from GPL to LGPL.
14769
14770 2006-11-17  Jim Meyering  <jim@meyering.net>
14771
14772         * modules/d-type (License): Switch to LGPL.
14773
14774 2006-11-15  Bruno Haible  <bruno@clisp.org>
14775
14776         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
14777
14778 2006-11-15  Eric Blake  <ebb9@byu.net>
14779
14780         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
14781         the module dependency.
14782
14783 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14784             Bruno Haible  <bruno@clisp.org>
14785
14786         * gnulib-tool (func_create_testdir): Add license consistency check.
14787
14788 2006-11-15  Eric Blake  <ebb9@byu.net>
14789
14790         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
14791         random "(cached)" in configure output.
14792
14793 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14794
14795         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
14796         test for conforming inttypes.h is both announced and cached.
14797
14798         * MODULES.html.sh (seen_modules, seen_files): New variables.
14799         (func_module): Rewrite to use a few less gnulib-tool and sed
14800         invocations.  Avoid a couple of quadratic algorithms for ...
14801         (missed_modules, missed_files): ... these, with ...
14802         (func_append, func_tmpdir): ... these new functions, from
14803         gnulib-tool.  Analogously, install traps for cleanup.
14804
14805         * tests/test-gc.c (main): Remove unused variables.
14806         * tests/test-read-file.c: Include stdlib.h, for 'free'.
14807
14808 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
14809
14810         * modules/inttostr (License): Change to LGPL.
14811
14812 2006-11-14  Eric Blake  <ebb9@byu.net>
14813
14814         * modules/tempname (License): Change to LGPL.
14815
14816 2006-11-14  Eric Blake  <ebb9@byu.net>
14817
14818         * doc/functions.texi (Function Portability): *printf functions on
14819         Cygwin now understand all POSIX size specifiers.
14820
14821 2006-11-14  Bruno Haible  <bruno@clisp.org>
14822
14823         * modules/c-ctype (License): Change to LGPL.
14824
14825 2006-11-12  Bruno Haible  <bruno@clisp.org>
14826
14827         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
14828         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
14829         for GNOME libraries, for which the include files are installed in
14830         subdirectories of $prefix/include.
14831
14832 2006-11-12  Bruno Haible  <bruno@clisp.org>
14833
14834         * m4/lib-link.m4: Require at least autoconf-2.54.
14835         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
14836         name to underscores for the --with option.
14837
14838 2006-11-13  Bruno Haible  <bruno@clisp.org>
14839
14840         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
14841         the tests directory.
14842         Reported by Ralf Wildenhues.
14843
14844 2006-11-13  Bruno Haible  <bruno@clisp.org>
14845
14846         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
14847         (func_emit_initmacro_end): Undo the override here.
14848         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
14849         Works around the famous automake error in coreutils.
14850
14851 2006-11-13  Eric Blake  <ebb9@byu.net>
14852
14853         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
14854         element, not its node.
14855
14856 2006-11-12  Bruno Haible  <bruno@clisp.org>
14857
14858         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
14859         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
14860
14861 2006-11-12  Bruno Haible  <bruno@clisp.org>
14862
14863         * gnulib-tool: New option --local-symlink.
14864         (func_usage): Document it.
14865         (lsymbolic): New variable.
14866         (func_import, func_create_testdir): If --symlink was not specified,
14867         test whether --local-symlink was specified and the file comes from
14868         the local_gnulib_dir.
14869
14870 2006-11-12  Bruno Haible  <bruno@clisp.org>
14871
14872         * gnulib-tool (func_ln): New function.
14873         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
14874
14875 2006-11-12  Bruno Haible  <bruno@clisp.org>
14876
14877         Finish support for source files in subdirectories.
14878         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
14879         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
14880         AUTOMAKE_OPTIONS.
14881         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
14882
14883 2006-11-12  Bruno Haible  <bruno@clisp.org>
14884
14885         * gnulib-tool (func_get_automake_snippet): Synthesize also an
14886         EXTRA_lib_SOURCES augmentation.
14887         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
14888
14889 2006-11-12  Jim Meyering  <jim@meyering.net>
14890
14891         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
14892         file descriptors.  This also averts a failure on systems with
14893         native openat support when a traversed directory lacks "x" access.
14894         * lib/fts_.h: Include "i-ring.h"
14895         (struct FTS) [fts_fd_ring]: New member.
14896         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
14897         (FCHDIR): Add parentheses.
14898         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
14899         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
14900         When descending, rather than simply closing the previous
14901         fts_cwd_fd value, push that file descriptor onto the ring.
14902         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
14903         (fts_open): Initialize the new fd_ring member.
14904         (fts_close): Clear the ring.
14905         (fts_safe_changedir): When possible, use our new fd_ring to skip
14906         the diropen and fstat and dev/ino comparison that would normally
14907         accompany a virtual `chdir ("..")'.
14908
14909         * modules/fts (Depends-on): Add i-ring.
14910         * modules/i-ring: New module.
14911         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
14912         * m4/i-ring.m4: New file.
14913
14914 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14915
14916         * gnulib-tool (func_create_testdir): Fix replacement of
14917         `build-aux' in configure.ac.  Run autotools in gltests
14918         subdirectory.
14919         (func_create_testdir, func_create_megatestdir, test): There is
14920         no need for '--force' in most autotool invocations in a new
14921         tree.  Actually fail the whole test if any of the tools, or the
14922         configure or make stages fail.
14923
14924         Sync from Automake.
14925         * build-aux/gnupload: Revert last change.  Add pointer to upload
14926         instructions of the GNU Maintenance Instructions.
14927         Suggestion by Karl Berry.
14928
14929 2006-11-10  Jim Meyering  <jim@meyering.net>
14930
14931         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
14932
14933 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
14934
14935         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
14936         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
14937         (bind_textdomain_codeset) [! ENABLE_NLS]:
14938         Evaluate all the arguments.  That way, callers get compatible behavior
14939         if the arguments have side effects.  Also, it avoids some GCC
14940         diagnostics in some cases; Joel E. Denny reported problems when Bison
14941         was configured with --enable-gcc-warnigs.
14942
14943 2006-11-10  Jim Meyering  <jim@meyering.net>
14944
14945         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
14946         relevant options in CFLAGS (like -O, -fno-inline) are taken into
14947         account.
14948
14949 2006-11-10  Jim Meyering  <jim@meyering.net>
14950
14951         * modules/inline: New file/module.
14952         * modules/xalloc (Files): Remove m4/inline.m4.
14953         (Depends-on): Add inline, instead.
14954         * modules/oset: Likewise.
14955         * modules/list: Likewise.
14956
14957 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
14958
14959         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
14960         Problem reported by Matthew Woehlke.
14961
14962 2006-11-09  Bruno Haible  <bruno@clisp.org>
14963
14964         * lib/tempname.c (gen_tempname): Remove variant that invokes
14965         __gen_tempname.
14966         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
14967         __gen_tempname.
14968
14969 2006-11-08  Bruno Haible  <bruno@clisp.org>
14970
14971         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
14972         to 'yes' instead of 'cross-compiling'.
14973
14974 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
14975
14976         * lib/quotearg.h (quotearg_free): New decl.
14977         * lib/quotearg.c (quotearg_free): New function.
14978         (slot0, nslots, slotvec0, slotvec):
14979         Now file-scope so that quotearg_free can get at them.
14980
14981 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14982
14983         Sync from Automake.
14984         * build-aux/gnupload: Add missing 'gnu' to example URL.
14985         Report by Karl Berry.
14986
14987 2006-11-08  Bruno Haible  <bruno@clisp.org>
14988
14989         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
14990         Suggested by Paul Eggert.
14991
14992 2006-11-08  Jim Meyering  <jim@meyering.net>
14993
14994         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
14995         It's already included if !_LIBC.
14996         (fts_safe_changedir): Add a comment.
14997
14998 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14999
15000         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
15001         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
15002         Matthew Woehlke.
15003
15004         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
15005         definitions up, to avoid colliding with change below.
15006         (static_inline) [HAVE_INLINE]: New macro.
15007         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
15008         Provide extern decls when !HAVE_INLINE.  Do not define unless
15009         static_inline is defined, either by us or by xmalloc.c.  Use
15010         static_inline rather than static inline.
15011         (XCALLOC): Optimize sizeof(T) = 1 case.
15012         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
15013
15014 2006-11-07  Bruno Haible  <bruno@clisp.org>
15015
15016         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
15017         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
15018         AC_C_INLINE.
15019         * modules/xalloc (Files): Add m4/inline.m4.
15020
15021 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15022
15023         * README: Fix typo.
15024         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
15025         (Miscellanous Notes): ...from this.
15026
15027 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15028
15029         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
15030         Mention that offsetof should be used instead of sizeof.
15031         From Bruno Haible.
15032
15033 2006-11-07  Bruno Haible  <bruno@clisp.org>
15034
15035         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
15036
15037 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
15038
15039         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
15040         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
15041         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
15042         (gl_tree_add_before, gl_tree_add_after):
15043         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
15044         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
15045         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
15046         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
15047         (gl_linked_add_after, gl_linked_add_at): Likewise.
15048         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
15049         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
15050         (gl_tree_add_before, gl_tree_add_after): Likewise.
15051         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
15052         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
15053         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
15054
15055 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15056
15057         * lib/gl_oset.h: Use C comment style, not C++ comment style.
15058
15059 2006-11-06  Bruno Haible  <bruno@clisp.org>
15060
15061         * m4/inline.m4: New file.
15062         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
15063         * modules/list (Files): Add m4/inline.m4.
15064         * modules/oset (Files): Likewise.
15065
15066 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
15067
15068         * lib/idcache.c: Include <stddef.h>, for offsetof.
15069         (struct userid.name): Change from char * to a flexible array member.
15070         All uses changed.
15071         * modules/idcache (Depends-on): Add flexmember.
15072
15073         * MODULES.html.sh (Core language properties): New module flexmember.
15074         * modules/flexmember, m4/flexmember.m4: New files.
15075
15076         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
15077         inline functions that are identical with the old xnmalloc_inline,
15078         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
15079         that we can avoid some unnecessary integer multiplications and
15080         divisions in the common case where the element size is known at
15081         compile time.
15082         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
15083         needed.
15084         (xnboundedmalloc): Remove.
15085         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
15086         arguments, for consistency with rest of this header.
15087         (xcharalloc): Rewrite using XNMALLOC.
15088         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
15089         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
15090         versions have been moved to lib/xalloc.h and renamed to be the
15091         non-*_inline versions.
15092         (xmalloc, xrealloc): Implement without reference to the xnmalloc
15093         and xnrealloc functions, since those functions are now inline and
15094         now call us.
15095         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
15096         renaming described above.
15097         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
15098         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
15099         captures the dependency in AC_C_INLINE.
15100
15101         New module canonicalize-lgpl, proposed by Charles Wilson in
15102         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
15103         with a few small changes afterwards.
15104         * MODULES.html.sh (File system functions): New module
15105         canonicalize-lgpl.
15106         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
15107         and canonicalize_file_name.
15108         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
15109         * modules/canonicalize-lgpl: New files.
15110
15111 2006-11-05  Bruno Haible  <bruno@clisp.org>
15112
15113         * gnulib-tool (func_import, func_create_testdir): Create directories
15114         also for files in subdirectories of lib/.
15115
15116 2006-11-05  Bruno Haible  <bruno@clisp.org>
15117
15118         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
15119         ANSI C compliant.
15120
15121 2006-11-03  Bruno Haible  <bruno@clisp.org>
15122
15123         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
15124         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
15125         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
15126         (xnboundedmalloc): New inline function.
15127         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
15128         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
15129         xmalloc.
15130         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
15131         xmalloc.
15132         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
15133         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
15134         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
15135         xmalloc.
15136         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
15137         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
15138         xmalloc.
15139         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
15140         gl_tree_add_after): Use XMALLOC instead of xmalloc.
15141         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
15142         xmalloc.
15143         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
15144         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
15145         gl_tree_add_after): Use XMALLOC instead of xmalloc.
15146         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
15147         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
15148         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
15149         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
15150
15151 2006-11-03  Bruno Haible  <bruno@clisp.org>
15152
15153         * lib/c-ctype.h [C++]: Define functions without name mangling.
15154         * lib/fwriteerror.h [C++]: Likewise.
15155         * lib/gcd.h [C++]: Likewise.
15156         * lib/linebreak.h [C++]: Likewise.
15157
15158 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15159
15160         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
15161         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
15162         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
15163         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
15164         Check for functions and headers just once.
15165         Check for declaration of canonicalize_file_name.
15166         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
15167
15168 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
15169
15170         * gnulib-tool (func_import): Fix typo in actioncmd.
15171
15172 2006-11-02  Bruno Haible  <bruno@clisp.org>
15173
15174         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
15175         newline sequence in the Makefile.am snippet as a space, like "make"
15176         does.
15177         Reported by Roger Persson <perrog@gmail.com>.
15178
15179 2006-11-01  Bruno Haible  <bruno@clisp.org>
15180
15181         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
15182         already declared in <string.h>.
15183         * lib/strcase.h (strncasecmp): Don't declare it if yes.
15184
15185 2006-11-01  Bruno Haible  <bruno@clisp.org>
15186
15187         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
15188         * lib/strcase.h: Include <string.h>.
15189         (strcasecmp): Define to rpl_strcasecmp here.
15190
15191 2006-11-01  Bruno Haible  <bruno@clisp.org>
15192
15193         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
15194
15195 2006-11-01  Eric Blake  <ebb9@byu.net>
15196
15197         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
15198
15199         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
15200
15201 2006-10-29  Bruno Haible  <bruno@clisp.org>
15202
15203         Make it compile in C++ mode.
15204         * lib/full-write.c (full_rw): Add a cast.
15205
15206 2006-11-01  Bruno Haible  <bruno@clisp.org>
15207
15208         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
15209         be POSIX compliant.
15210         Reported by Roger Persson <perrog@gmail.com>.
15211
15212 2006-11-01  Eric Blake  <ebb9@byu.net>
15213
15214         * lib/getopt_.h: Fix comments.
15215
15216 2006-10-31  Eric Blake  <ebb9@byu.net>
15217
15218         * modules/tmpdir (Depends-on): Add sys_stat.
15219         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
15220         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
15221         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
15222         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
15223         tempname.
15224
15225 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
15226
15227         Avoid some C++ diagnostics reported by Bruno Haible.
15228         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
15229         xmalloc.
15230         (quotearg_alloc): Use xcharalloc rather than xmalloc.
15231         (struct slotvec): Move to top level.
15232         (quotearg_n_options): Rewrite to avoid xmalloc.
15233         * lib/xalloc.h (xcharalloc): New function.
15234         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
15235         [defined __cplusplus]: Add function template that provides result
15236         type propagation.  This part of the change is from Bruno Haible.
15237
15238 2006-10-29  Bruno Haible  <bruno@clisp.org>
15239
15240         Make it compile in C++ mode.
15241         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
15242         * lib/strnlen1.c (strnlen1): Cast memchr result.
15243         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
15244         * lib/clean-temp.c (string_equals, string_hash): Add casts.
15245         (create_temp_dir): Rename local variable 'template'.
15246         (compile_csharp_using_sscli): Add cast.
15247         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
15248         * lib/findprog.c (find_in_path): Likewise.
15249         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
15250         * lib/wait-process.c (register_slave_subprocess): Likewise.
15251
15252 2006-10-22  Bruno Haible  <bruno@clisp.org>
15253
15254         * modules/tsearch: New file.
15255         * lib/tsearch.h: New file.
15256         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
15257         * m4/tsearch.m4: New file.
15258         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
15259
15260 2006-10-29  Eric Blake  <ebb9@byu.net>
15261
15262         * lib/arcfour.c: Assume config.h.
15263         * lib/arctwo.c: Likewise.
15264         * lib/base64.c: Likewise.
15265         * lib/check-version.c: Likewise.
15266         * lib/crc.c: Likewise.
15267         * lib/des.c: Likewise.
15268         * lib/gc-gnulib.c: Likewise.
15269         * lib/gc-libgcrypt.c: Likewise.
15270         * lib/gc-pbkdf2-sha1.c: Likewise.
15271         * lib/getaddrinfo.c: Likewise.
15272         * lib/getdelim.c: Likewise.
15273         * lib/getline.c: Likewise.
15274         * lib/hmac-md5.c: Likewise.
15275         * lib/hmac-sha1.c: Likewise.
15276         * lib/iconvme.c: Likewise.
15277         * lib/md2.c: Likewise.
15278         * lib/md4.c: Likewise.
15279         * lib/memxor.c: Likewise.
15280         * lib/read-file.c: Likewise.
15281         * lib/readline.c: Likewise.
15282         * lib/rijndael-alg-fst.c: Likewise.
15283         * lib/rijndael-api-fst.c: Likewise.
15284         * lib/xgetdomainname.c: Likewise.
15285
15286 2006-10-28  Eric Blake  <ebb9@byu.net>
15287
15288         * lib/xstrndup.c: Assume config.h.
15289
15290 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
15291
15292         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
15293         stat-macros.h is now for our own macros, whereas stat_h is for
15294         macros in the <sys/stat.h> name space.
15295         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
15296         (STAT_MACROS_H): Remove.
15297         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
15298         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
15299         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
15300         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
15301         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
15302         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
15303         Move these macros to ...
15304         * lib/stat_.h: here.  Don't include stat-macros.h.
15305         * lib/canonicalize.c: Don't include stat-macros.h.
15306         * lib/chown.c: Likewise.
15307         * lib/euidaccess.c: Likewise.
15308         * lib/file-type.c: Likewise.
15309         * lib/filemode.c: Likewise.
15310         * lib/glob.c: Likewise.
15311         * lib/isapipe.c: Likewise.
15312         * lib/lchown.c: Likewise.
15313         * lib/lstat.c: Likewise.
15314         * lib/mkdir-p.c: Likewise.
15315         * lib/rmdir.c: Likewise.
15316         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
15317         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
15318         unless mkdir isn't declared, to speed up 'configure'.
15319         Always create sys/stat.h, since it's unlikely any real sys/stat.h
15320         would define all the S_* symbols.
15321         * modules/canonicalize (Depends-on):
15322         Depend on sys_stat, not stat-macros.
15323         * modules/chown: Likewise.
15324         * modules/euidaccess: Likewise.
15325         * modules/filemode: Likewise.
15326         * modules/file-type: Likewise.
15327         * modules/glob: Likewise.
15328         * modules/isapipe: Likewise.
15329         * modules/lchown: Likewise.
15330         * modules/lstat: Likewise.
15331         * modules/mkancesdirs: Likewise.
15332         * modules/rmdir: Likewise.
15333         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
15334         * modules/modechange: Likewise.
15335         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
15336         (configure.ac): Remove gl_STAT_MACROS.
15337         * modules/sys_stat (Depends-on): Remove stat-macros.
15338
15339 2006-10-27  Bruno Haible  <bruno@clisp.org>
15340
15341         * m4/signed.m4: Remove file.
15342         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
15343         invocation.
15344         * modules/vasnprintf (Files): Remove m4/signed.m4.
15345
15346 2006-10-27  Bruno Haible  <bruno@clisp.org>
15347
15348         Update to GNU gettext 0.16.
15349         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
15350         m4/inttypes-h.m4, m4/signed.m4.
15351         * m4/gettext.m4: Update to GNU gettext 0.16.
15352         * m4/intl.m4: New file, from GNU gettext.
15353         * m4/intldir.m4: New file, from GNU gettext.
15354         * config/srclist.txt: Update
15355
15356 2006-10-27  Eric Blake  <ebb9@byu.net>
15357
15358         * MODULES.html.sh: Document tempname.
15359         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
15360         dependencies.
15361         (Files): Move lib/tempname.c...
15362         * modules/tempname: ...to this new module.
15363         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
15364         (gl_PREREQ_TEMPNAME): Move...
15365         * m4/tempname.m4: ...to this new file.
15366         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
15367         * modules/sys_stat (Depends-on): Add stat-macros.
15368         * lib/stat_.h (includes): Pick up stat macros.
15369         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
15370         if stat macros are broken.
15371         * lib/tempname.c (includes): No need to include "stat-macros.h".
15372         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
15373         (direxists, __path_search) [!_LIBC]: Don't compile these in
15374         gnulib; the tmpdir module covers that.
15375         * lib/tempname.h: New file.
15376
15377 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
15378
15379         * COPYING: Explain how gnulib-tool converts licence headers.
15380         Almost all wording by Eric Blake.
15381
15382 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
15383
15384         * lib/mbchar.h (is_basic_table): Make read-only.
15385         * lib/mbchar.c (is_basic_table): Likewise.
15386         Reported by John Darrington.
15387
15388 2006-10-25  Bruno Haible  <bruno@clisp.org>
15389
15390         * lib/progname.h (set_program_name): Undefine before defining.
15391
15392 2006-10-25  Bruno Haible  <bruno@clisp.org>
15393
15394         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
15395         false for non-gcc C++ compilers.
15396         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
15397
15398 2006-10-24  Bruno Haible  <bruno@clisp.org>
15399
15400         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
15401         iconv implementations like Irix iconv.
15402
15403 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15404
15405         * modules/vararrays: New file.
15406         * m4/vararrays.m4: New file, taken from diffutils.
15407         * MODULES.html.sh: New module vararrays.
15408
15409 2006-10-24  Karl Berry  <karl@gnu.org>
15410
15411         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
15412         Don't call GNU Unix.
15413
15414 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15415
15416         * users.txt: Add Libtool.
15417
15418         Sync from Libtool:
15419
15420         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15421
15422         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
15423         to gnulib's policy of including config.h unconditionally.
15424
15425 2006-10-24  Bruno Haible  <bruno@clisp.org>
15426
15427         * modules/wcwidth (Files): Add m4/wint_t.m4.
15428         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
15429         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
15430
15431 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15432
15433         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
15434         to pacify GCC with some -W flags enabled.  Problem reported by
15435         Bruno Haible.
15436
15437 2006-10-24  Jim Meyering  <jim@meyering.net>
15438
15439         * MODULES.html.sh: Remove uinttostr.  It's not a module.
15440         Reported by Karl Berry.
15441
15442 2006-10-23  Bruno Haible  <bruno@clisp.org>
15443
15444         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
15445
15446 2006-10-24  Bruno Haible  <bruno@clisp.org>
15447
15448         * lib/gl_list.h: Use C comment style, not C++ comment style.
15449
15450 2006-10-23  Eric Blake  <ebb9@byu.net>
15451
15452         * lib/getaddrinfo.c (includes): Add missing include.
15453
15454 2006-10-23  Bruno Haible  <bruno@clisp.org>
15455             Paul Eggert  <eggert@cs.ucla.edu>
15456
15457         Ability to rename obstack_free.
15458         * lib/obstack.h (__obstack_free): New macro. Declare instead of
15459         obstack_free.
15460         (obstack_free): Invoke the __obstack_free macro.
15461         * lib/obstack.c (obstack_free): Use __obstack_free macro.
15462
15463 2006-10-23  Bruno Haible  <bruno@clisp.org>
15464             Paul Eggert  <eggert@cs.ucla.edu>
15465
15466         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
15467         __argc, __argv from the declaration. (They are defined as macros on
15468         mingw.)
15469
15470 2006-10-22  Bruno Haible  <bruno@clisp.org>
15471
15472         * doc/gnulib-intro.texi: New file.
15473         * doc/gnulib.texi: Include it.
15474
15475 2006-10-21  Bruno Haible  <bruno@clisp.org>
15476
15477         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
15478         "Introduction", "Miscellanous Notes", "Particular Modules".
15479
15480 2006-10-21  Bruno Haible  <bruno@clisp.org>
15481
15482         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15483         Change mostlyclean-local rule to avoid sh syntax error from bash
15484         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
15485
15486 2006-10-23  Jim Meyering  <jim@meyering.net>
15487
15488         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
15489         in place of snprintf.
15490
15491         * modules/inttostr (Files): Add lib/uinttostr.c.
15492         * lib/uinttostr.c (inttostr): New file/function.
15493         * lib/inttostr.h (uinttostr): Declare.
15494         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
15495         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
15496         Add uinttostr.
15497         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
15498
15499 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
15500
15501         * lib/canonicalize.c (ELOOP): Define if not already defined.
15502         Problem reported by Bruno Haible in
15503         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
15504
15505 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
15506
15507         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
15508         Problem reported by Perry Smith and Ville Laurikari.
15509
15510         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
15511         uses.
15512
15513 2006-10-19  Bruno Haible  <bruno@clisp.org>
15514
15515         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
15516         for mingw.
15517
15518 2006-10-19  Bruno Haible  <bruno@clisp.org>
15519
15520         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
15521         Needed for mingw.
15522
15523 2006-10-19  Bruno Haible  <bruno@clisp.org>
15524
15525         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
15526
15527 2006-10-19  Bruno Haible  <bruno@clisp.org>
15528
15529         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
15530         it.
15531
15532 2006-10-19  Bruno Haible  <bruno@clisp.org>
15533
15534         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
15535         invocation.
15536
15537 2006-10-19  Bruno Haible  <bruno@clisp.org>
15538
15539         * gnulib-tool (func_create_testdir): Don't include ftruncate and
15540         mountlist by default.
15541
15542 2006-10-16  Bruno Haible  <bruno@clisp.org>
15543
15544         * lib/c-strstr.c: Include c-strstr.h.
15545
15546 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
15547
15548         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
15549         in a slash.
15550
15551 2006-10-18  Bruno Haible  <bruno@clisp.org>
15552
15553         * lib/lock.h [C++]: Wrap definitions in extern "C".
15554
15555 2006-10-18  Bruno Haible  <bruno@clisp.org>
15556
15557         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
15558         gl_LIBOBJS list.
15559
15560 2006-10-18  Bruno Haible  <bruno@clisp.org>
15561
15562         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
15563
15564 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
15565
15566         * lib/xstrtol.h: Include gettext.h.
15567         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
15568         Problem reported by Eric Blake.
15569         * modules/xstrtol (Depends-on): Add gettext-h.
15570
15571 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
15572
15573         * lib/strftime.c (advance): New macro.
15574         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
15575         incomplete type, so you can't add 0 to it.  Problem and patch
15576         reported by Eelco Dolstra for dietlibc.
15577
15578 2006-10-18  Jim Meyering  <jim@meyering.net>
15579
15580         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
15581         type for a local, and rename it: s/up/user_proc/.
15582
15583 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
15584
15585         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
15586         READ_UTMP_USER_PROCESS.
15587         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
15588
15589 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
15590
15591         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
15592         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
15593
15594 2006-10-17  Eric Blake  <ebb9@byu.net>
15595
15596         * lib/sigprocmask.c (sigprocmask): Fix typo.
15597
15598         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
15599
15600         * modules/clean-temp (Makefile.am): Don't add to make output...
15601         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
15602         config.h.
15603
15604 2006-10-17  Bruno Haible  <bruno@clisp.org>
15605
15606         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
15607         differently if DEFAULT_TEXT_DOMAIN is set.
15608
15609 2006-10-16  Bruno Haible  <bruno@clisp.org>
15610
15611         * lib/clean-temp.c: Include fwriteerror.h.
15612
15613 2006-10-16  Bruno Haible  <bruno@clisp.org>
15614
15615         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
15616
15617 2006-10-16  Bruno Haible  <bruno@clisp.org>
15618
15619         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
15620         * lib/sigprocmask.h: Include <sys/types.h>.
15621         (sigset_t): Use the system's definition if present.
15622
15623 2006-10-17  Eric Blake  <ebb9@byu.net>
15624
15625         * lib/xvasprintf.c (includes): Assume config.h.
15626         * lib/xasprintf.c (includes): Likewise.
15627
15628 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
15629
15630         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
15631         at least as wide as intmax_t.
15632
15633 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
15634
15635         (Imported from Automake.)
15636         * build-aux/gnupload: Update to version 1.1 of directive file.
15637
15638 2006-10-16  Eric Blake  <ebb9@byu.net>
15639
15640         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
15641         match Automake 1.10a.
15642
15643 2006-10-14  Bruno Haible  <bruno@clisp.org>
15644
15645         * modules/sigprocmask: New file.
15646         * lib/sigprocmask.h: New file.
15647         * lib/sigprocmask.c: New file.
15648         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
15649         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
15650         request sigprocmask.o.
15651         (gl_PREREQ_SIGPROCMASK): New macro.
15652         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
15653         (Depends-on): Add sigprocmask.
15654         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
15655         gt_SIGNALBLOCKING. Test for 'raise' only once.
15656         * lib/fatal-signal.c: Include sigprocmask.h.
15657         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
15658         unblock_fatal_signals): Define always.
15659         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15660         sigprocmask.
15661
15662 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
15663
15664         Sync from Automake.
15665         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
15666         which incorrectly sets the mode of an existing destination
15667         directory.  In some cases the unpatched install-sh could do the
15668         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
15669         system.  We hope this is rare in practice, but it's clearly worth
15670         fixing.  Problem reported by Alex Unleashed in
15671         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
15672         Also, don't bother to check for -m bugs unless we're using -m;
15673         suggested by Stepan Kasal.
15674
15675 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15676
15677         Sync from Automake.
15678         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
15679         `-c' flag, so they appear at the same position as in %FASTDEP%
15680         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
15681         which ignores unknown options only after the first non-option.
15682         Bug report against M4 by Nelson H. F. Beebe.
15683
15684 2006-10-13  Jim Meyering  <jim@meyering.net>
15685
15686         Fix a bug in yesterday's change.
15687         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
15688         p->fts_statp->st_dev would be used uninitialized.
15689         Ensures that we always call fts_stat on the very first entry.
15690         Miklos Szeredi reported that find -xdev stopped working.
15691
15692 2006-10-12  Bruno Haible  <bruno@clisp.org>
15693
15694         * gnulib-tool (func_get_automake_snippet): Append an automatically
15695         computed EXTRA_DIST augmentation.
15696         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
15697         * modules/alloca-opt (Makefile.am): Likewise.
15698         * modules/allocsa (Makefile.am): Likewise.
15699         * modules/arcfour (Makefile.am): Likewise.
15700         * modules/arctwo (Makefile.am): Likewise.
15701         * modules/argmatch (Makefile.am): Likewise.
15702         * modules/argz (Makefile.am): Likewise.
15703         * modules/atexit (Makefile.am): Likewise.
15704         * modules/backupfile (Makefile.am): Likewise.
15705         * modules/byteswap (Makefile.am): Likewise.
15706         * modules/c-strtod (Makefile.am): Likewise.
15707         * modules/c-strtold (Makefile.am): Likewise.
15708         * modules/calloc (Makefile.am): Likewise.
15709         * modules/canon-host (Makefile.am): Likewise.
15710         * modules/canonicalize (Makefile.am): Likewise.
15711         * modules/chdir-long (Makefile.am): Likewise.
15712         * modules/chdir-safer (Makefile.am): Likewise.
15713         * modules/check-version (Makefile.am): Likewise.
15714         * modules/chown (Makefile.am): Likewise.
15715         * modules/cloexec (Makefile.am): Likewise.
15716         * modules/close-stream (Makefile.am): Likewise.
15717         * modules/closeout (Makefile.am): Likewise.
15718         * modules/crc (Makefile.am): Likewise.
15719         * modules/csharpexec (Makefile.am): Likewise.
15720         * modules/cycle-check (Makefile.am): Likewise.
15721         * modules/des (Makefile.am): Likewise.
15722         * modules/dev-ino (Makefile.am): Likewise.
15723         * modules/dirfd (Makefile.am): Likewise.
15724         * modules/dirname (Makefile.am): Likewise.
15725         * modules/dup2 (Makefile.am): Likewise.
15726         * modules/eealloc (Makefile.am): Likewise.
15727         * modules/error (Makefile.am): Likewise.
15728         * modules/euidaccess (Makefile.am): Likewise.
15729         * modules/exclude (Makefile.am): Likewise.
15730         * modules/exitfail (Makefile.am): Likewise.
15731         * modules/fcntl-safer (Makefile.am): Likewise.
15732         * modules/fcntl (Makefile.am): Likewise.
15733         * modules/file-type (Makefile.am): Likewise.
15734         * modules/fileblocks (Makefile.am): Likewise.
15735         * modules/filemode (Makefile.am): Likewise.
15736         * modules/filenamecat (Makefile.am): Likewise.
15737         * modules/fnmatch (Makefile.am): Likewise.
15738         * modules/fopen-safer (Makefile.am): Likewise.
15739         * modules/fpending (Makefile.am): Likewise.
15740         * modules/fprintftime (Makefile.am): Likewise.
15741         * modules/free (Makefile.am): Likewise.
15742         * modules/fsusage (Makefile.am): Likewise.
15743         * modules/ftruncate (Makefile.am): Likewise.
15744         * modules/fts (Makefile.am): Likewise.
15745         * modules/gc-arcfour (Makefile.am): Likewise.
15746         * modules/gc-des (Makefile.am): Likewise.
15747         * modules/gc-hmac-md5 (Makefile.am): Likewise.
15748         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
15749         * modules/gc-md4 (Makefile.am): Likewise.
15750         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
15751         * modules/gc-sha1 (Makefile.am): Likewise.
15752         * modules/gc (Makefile.am): Likewise.
15753         * modules/getaddrinfo (Makefile.am): Likewise.
15754         * modules/getcwd (Makefile.am): Likewise.
15755         * modules/getdelim (Makefile.am): Likewise.
15756         * modules/getdomainname (Makefile.am): Likewise.
15757         * modules/getgroups (Makefile.am): Likewise.
15758         * modules/gethostname (Makefile.am): Likewise.
15759         * modules/gethrxtime (Makefile.am): Likewise.
15760         * modules/getline (Makefile.am): Likewise.
15761         * modules/getloadavg (Makefile.am): Likewise.
15762         * modules/getlogin_r (Makefile.am): Likewise.
15763         * modules/getndelim2 (Makefile.am): Likewise.
15764         * modules/getopt (Makefile.am): Likewise.
15765         * modules/getpagesize (Makefile.am): Likewise.
15766         * modules/getpass-gnu (Makefile.am): Likewise.
15767         * modules/getpass (Makefile.am): Likewise.
15768         * modules/getsubopt (Makefile.am): Likewise.
15769         * modules/gettime (Makefile.am): Likewise.
15770         * modules/gettimeofday (Makefile.am): Likewise.
15771         * modules/getugroups (Makefile.am): Likewise.
15772         * modules/getusershell (Makefile.am): Likewise.
15773         * modules/glob (Makefile.am): Likewise.
15774         * modules/group-member (Makefile.am): Likewise.
15775         * modules/hard-locale (Makefile.am): Likewise.
15776         * modules/hash (Makefile.am): Likewise.
15777         * modules/hmac-md5 (Makefile.am): Likewise.
15778         * modules/hmac-sha1 (Makefile.am): Likewise.
15779         * modules/human (Makefile.am): Likewise.
15780         * modules/idcache (Makefile.am): Likewise.
15781         * modules/imaxabs (Makefile.am): Likewise.
15782         * modules/imaxdiv (Makefile.am): Likewise.
15783         * modules/inet_ntop (Makefile.am): Likewise.
15784         * modules/inet_pton (Makefile.am): Likewise.
15785         * modules/intprops (Makefile.am): Likewise.
15786         * modules/inttostr (Makefile.am): Likewise.
15787         * modules/inttypes (Makefile.am): Likewise.
15788         * modules/isapipe (Makefile.am): Likewise.
15789         * modules/javaversion (Makefile.am): Likewise.
15790         * modules/lchmod (Makefile.am): Likewise.
15791         * modules/lchown (Makefile.am): Likewise.
15792         * modules/localcharset (Makefile.am): Likewise.
15793         * modules/long-options (Makefile.am): Likewise.
15794         * modules/lstat (Makefile.am): Likewise.
15795         * modules/malloc (Makefile.am): Likewise.
15796         * modules/mathl (Makefile.am): Likewise.
15797         * modules/mbchar (Makefile.am): Likewise.
15798         * modules/md2 (Makefile.am): Likewise.
15799         * modules/md4 (Makefile.am): Likewise.
15800         * modules/md5 (Makefile.am): Likewise.
15801         * modules/memcasecmp (Makefile.am): Likewise.
15802         * modules/memchr (Makefile.am): Likewise.
15803         * modules/memcmp (Makefile.am): Likewise.
15804         * modules/memcoll (Makefile.am): Likewise.
15805         * modules/memcpy (Makefile.am): Likewise.
15806         * modules/memmem (Makefile.am): Likewise.
15807         * modules/memmove (Makefile.am): Likewise.
15808         * modules/mempcpy (Makefile.am): Likewise.
15809         * modules/memrchr (Makefile.am): Likewise.
15810         * modules/memset (Makefile.am): Likewise.
15811         * modules/memxor (Makefile.am): Likewise.
15812         * modules/mkancesdirs (Makefile.am): Likewise.
15813         * modules/mkdir-p (Makefile.am): Likewise.
15814         * modules/mkdir (Makefile.am): Likewise.
15815         * modules/mkdtemp (Makefile.am): Likewise.
15816         * modules/mkstemp (Makefile.am): Likewise.
15817         * modules/mktime (Makefile.am): Likewise.
15818         * modules/modechange (Makefile.am): Likewise.
15819         * modules/mountlist (Makefile.am): Likewise.
15820         * modules/nanosleep (Makefile.am): Likewise.
15821         * modules/obstack (Makefile.am): Likewise.
15822         * modules/openat (Makefile.am): Likewise.
15823         * modules/pagealign_alloc (Makefile.am): Likewise.
15824         * modules/pathmax (Makefile.am): Likewise.
15825         * modules/physmem (Makefile.am): Likewise.
15826         * modules/poll (Makefile.am): Likewise.
15827         * modules/posixtm (Makefile.am): Likewise.
15828         * modules/posixver (Makefile.am): Likewise.
15829         * modules/putenv (Makefile.am): Likewise.
15830         * modules/quote (Makefile.am): Likewise.
15831         * modules/quotearg (Makefile.am): Likewise.
15832         * modules/raise (Makefile.am): Likewise.
15833         * modules/read-file (Makefile.am): Likewise.
15834         * modules/readline (Makefile.am): Likewise.
15835         * modules/readlink (Makefile.am): Likewise.
15836         * modules/readtokens (Makefile.am): Likewise.
15837         * modules/readutmp (Makefile.am): Likewise.
15838         * modules/realloc (Makefile.am): Likewise.
15839         * modules/regex (Makefile.am): Likewise.
15840         * modules/rename-dest-slash (Makefile.am): Likewise.
15841         * modules/rename (Makefile.am): Likewise.
15842         * modules/rijndael (Makefile.am): Likewise.
15843         * modules/rmdir (Makefile.am): Likewise.
15844         * modules/rpmatch (Makefile.am): Likewise.
15845         * modules/safe-read (Makefile.am): Likewise.
15846         * modules/safe-write (Makefile.am): Likewise.
15847         * modules/same-inode (Makefile.am): Likewise.
15848         * modules/same (Makefile.am): Likewise.
15849         * modules/save-cwd (Makefile.am): Likewise.
15850         * modules/savedir (Makefile.am): Likewise.
15851         * modules/setenv (Makefile.am): Likewise.
15852         * modules/settime (Makefile.am): Likewise.
15853         * modules/sha1 (Makefile.am): Likewise.
15854         * modules/sig2str (Makefile.am): Likewise.
15855         * modules/snprintf (Makefile.am): Likewise.
15856         * modules/stat-macros (Makefile.am): Likewise.
15857         * modules/stat-time (Makefile.am): Likewise.
15858         * modules/stdbool (Makefile.am): Likewise.
15859         * modules/stdint (Makefile.am): Likewise.
15860         * modules/stdlib-safer (Makefile.am): Likewise.
15861         * modules/stpcpy (Makefile.am): Likewise.
15862         * modules/stpncpy (Makefile.am): Likewise.
15863         * modules/strcase (Makefile.am): Likewise.
15864         * modules/strcasestr (Makefile.am): Likewise.
15865         * modules/strchrnul (Makefile.am): Likewise.
15866         * modules/strcspn (Makefile.am): Likewise.
15867         * modules/strdup (Makefile.am): Likewise.
15868         * modules/strerror (Makefile.am): Likewise.
15869         * modules/strftime (Makefile.am): Likewise.
15870         * modules/strndup (Makefile.am): Likewise.
15871         * modules/strnlen (Makefile.am): Likewise.
15872         * modules/strpbrk (Makefile.am): Likewise.
15873         * modules/strsep (Makefile.am): Likewise.
15874         * modules/strstr (Makefile.am): Likewise.
15875         * modules/strtod (Makefile.am): Likewise.
15876         * modules/strtoimax (Makefile.am): Likewise.
15877         * modules/strtok_r (Makefile.am): Likewise.
15878         * modules/strtol (Makefile.am): Likewise.
15879         * modules/strtoll (Makefile.am): Likewise.
15880         * modules/strtoul (Makefile.am): Likewise.
15881         * modules/strtoull (Makefile.am): Likewise.
15882         * modules/strtoumax (Makefile.am): Likewise.
15883         * modules/strverscmp (Makefile.am): Likewise.
15884         * modules/sys_socket (Makefile.am): Likewise.
15885         * modules/sys_stat (Makefile.am): Likewise.
15886         * modules/sysexits (Makefile.am): Likewise.
15887         * modules/time_r (Makefile.am): Likewise.
15888         * modules/timegm (Makefile.am): Likewise.
15889         * modules/timespec (Makefile.am): Likewise.
15890         * modules/tmpfile-safer (Makefile.am): Likewise.
15891         * modules/trim (Makefile.am): Likewise.
15892         * modules/unistd-safer (Makefile.am): Likewise.
15893         * modules/unlinkdir (Makefile.am): Likewise.
15894         * modules/unlocked-io (Makefile.am): Likewise.
15895         * modules/userspec (Makefile.am): Likewise.
15896         * modules/utime (Makefile.am): Likewise.
15897         * modules/utimecmp (Makefile.am): Likewise.
15898         * modules/utimens (Makefile.am): Likewise.
15899         * modules/vasnprintf (Makefile.am): Likewise.
15900         * modules/vasprintf (Makefile.am): Likewise.
15901         * modules/vsnprintf (Makefile.am): Likewise.
15902         * modules/xalloc (Makefile.am): Likewise.
15903         * modules/xgetcwd (Makefile.am): Likewise.
15904         * modules/xnanosleep (Makefile.am): Likewise.
15905         * modules/xreadlink (Makefile.am): Likewise.
15906         * modules/xstrtod (Makefile.am): Likewise.
15907         * modules/xstrtol (Makefile.am): Likewise.
15908         * modules/xstrtold (Makefile.am): Likewise.
15909         * modules/yesno (Makefile.am): Likewise.
15910         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
15911
15912 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
15913
15914         * modules/error (Makefile.am): Distribute files through
15915         EXTRA_DIST, not lib_SOURCES.
15916
15917 2006-10-12  Eric Blake  <ebb9@byu.net>
15918
15919         * modules/error (Makefile.am): Distribute files in /lib.
15920         * modules/obstack (Makefile.am): Likewise.
15921
15922 2006-10-12  Bruno Haible  <bruno@clisp.org>
15923
15924         * modules/acl (Makefile.am): Distribute all files in lib/ through
15925         EXTRA_DIST.
15926         * modules/arcfour (Makefile.am): Likewise.
15927         * modules/arctwo (Makefile.am): Likewise.
15928         * modules/argmatch (Makefile.am): Likewise.
15929         * modules/argz (Makefile.am): Likewise.
15930         * modules/atexit (Makefile.am): Likewise.
15931         * modules/backupfile (Makefile.am): Likewise.
15932         * modules/c-strtod (Makefile.am): Likewise.
15933         * modules/c-strtold (Makefile.am): Likewise.
15934         * modules/calloc (Makefile.am): Likewise.
15935         * modules/canon-host (Makefile.am): Likewise.
15936         * modules/canonicalize (Makefile.am): Likewise.
15937         * modules/chdir-long (Makefile.am): Likewise.
15938         * modules/chdir-safer (Makefile.am): Likewise.
15939         * modules/check-version (Makefile.am): Likewise.
15940         * modules/chown (Makefile.am): Likewise.
15941         * modules/cloexec (Makefile.am): Likewise.
15942         * modules/close-stream (Makefile.am): Likewise.
15943         * modules/closeout (Makefile.am): Likewise.
15944         * modules/crc (Makefile.am): Likewise.
15945         * modules/cycle-check (Makefile.am): Likewise.
15946         * modules/des (Makefile.am): Likewise.
15947         * modules/dirfd (Makefile.am): Likewise.
15948         * modules/dirname (Makefile.am): Likewise.
15949         * modules/dup2 (Makefile.am): Likewise.
15950         * modules/euidaccess (Makefile.am): Likewise.
15951         * modules/exclude (Makefile.am): Likewise.
15952         * modules/exitfail (Makefile.am): Likewise.
15953         * modules/fcntl-safer (Makefile.am): Likewise.
15954         * modules/file-type (Makefile.am): Likewise.
15955         * modules/fileblocks (Makefile.am): Likewise.
15956         * modules/filemode (Makefile.am): Likewise.
15957         * modules/filenamecat (Makefile.am): Likewise.
15958         * modules/fnmatch (Makefile.am): Likewise.
15959         * modules/fopen-safer (Makefile.am): Likewise.
15960         * modules/fpending (Makefile.am): Likewise.
15961         * modules/fprintftime (Makefile.am): Likewise.
15962         * modules/free (Makefile.am): Likewise.
15963         * modules/fsusage (Makefile.am): Likewise.
15964         * modules/ftruncate (Makefile.am): Likewise.
15965         * modules/fts (Makefile.am): Likewise.
15966         * modules/gc (Makefile.am): Likewise.
15967         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
15968         * modules/getaddrinfo (Makefile.am): Likewise.
15969         * modules/getcwd (Makefile.am): Likewise.
15970         * modules/getdelim (Makefile.am): Likewise.
15971         * modules/getdomainname (Makefile.am): Likewise.
15972         * modules/getgroups (Makefile.am): Likewise.
15973         * modules/gethostname (Makefile.am): Likewise.
15974         * modules/gethrxtime (Makefile.am): Likewise.
15975         * modules/getline (Makefile.am): Likewise.
15976         * modules/getloadavg (Makefile.am): Likewise.
15977         * modules/getlogin_r (Makefile.am): Likewise.
15978         * modules/getopt (Makefile.am): Likewise.
15979         * modules/getpass (Makefile.am): Likewise.
15980         * modules/getpass-gnu (Makefile.am): Likewise.
15981         * modules/getsubopt (Makefile.am): Likewise.
15982         * modules/gettime (Makefile.am): Likewise.
15983         * modules/gettimeofday (Makefile.am): Likewise.
15984         * modules/getugroups (Makefile.am): Likewise.
15985         * modules/getusershell (Makefile.am): Likewise.
15986         * modules/glob (Makefile.am): Likewise.
15987         * modules/group-member (Makefile.am): Likewise.
15988         * modules/hard-locale (Makefile.am): Likewise.
15989         * modules/hash (Makefile.am): Likewise.
15990         * modules/hmac-md5 (Makefile.am): Likewise.
15991         * modules/hmac-sha1 (Makefile.am): Likewise.
15992         * modules/human (Makefile.am): Likewise.
15993         * modules/idcache (Makefile.am): Likewise.
15994         * modules/imaxabs (Makefile.am): Likewise.
15995         * modules/imaxdiv (Makefile.am): Likewise.
15996         * modules/inet_ntop (Makefile.am): Likewise.
15997         * modules/inet_pton (Makefile.am): Likewise.
15998         * modules/inttostr (Makefile.am): Likewise.
15999         * modules/isapipe (Makefile.am): Likewise.
16000         * modules/lchown (Makefile.am): Likewise.
16001         * modules/long-options (Makefile.am): Likewise.
16002         * modules/lstat (Makefile.am): Likewise.
16003         * modules/malloc (Makefile.am): Likewise.
16004         * modules/mathl (Makefile.am): Likewise.
16005         * modules/mbchar (Makefile.am): Likewise.
16006         * modules/md2 (Makefile.am): Likewise.
16007         * modules/md4 (Makefile.am): Likewise.
16008         * modules/md5 (Makefile.am): Likewise.
16009         * modules/memcasecmp (Makefile.am): Likewise.
16010         * modules/memchr (Makefile.am): Likewise.
16011         * modules/memcmp (Makefile.am): Likewise.
16012         * modules/memcoll (Makefile.am): Likewise.
16013         * modules/memcpy (Makefile.am): Likewise.
16014         * modules/memmem (Makefile.am): Likewise.
16015         * modules/memmove (Makefile.am): Likewise.
16016         * modules/mempcpy (Makefile.am): Likewise.
16017         * modules/memrchr (Makefile.am): Likewise.
16018         * modules/memset (Makefile.am): Likewise.
16019         * modules/memxor (Makefile.am): Likewise.
16020         * modules/mkancesdirs (Makefile.am): Likewise.
16021         * modules/mkdir (Makefile.am): Likewise.
16022         * modules/mkdir-p (Makefile.am): Likewise.
16023         * modules/mkdtemp (Makefile.am): Likewise.
16024         * modules/mkstemp (Makefile.am): Likewise.
16025         * modules/mktime (Makefile.am): Likewise.
16026         * modules/modechange (Makefile.am): Likewise.
16027         * modules/mountlist (Makefile.am): Likewise.
16028         * modules/nanosleep (Makefile.am): Likewise.
16029         * modules/openat (Makefile.am): Likewise.
16030         * modules/pagealign_alloc (Makefile.am): Likewise.
16031         * modules/physmem (Makefile.am): Likewise.
16032         * modules/poll (Makefile.am): Likewise.
16033         * modules/posixtm (Makefile.am): Likewise.
16034         * modules/posixver (Makefile.am): Likewise.
16035         * modules/putenv (Makefile.am): Likewise.
16036         * modules/quote (Makefile.am): Likewise.
16037         * modules/quotearg (Makefile.am): Likewise.
16038         * modules/raise (Makefile.am): Likewise.
16039         * modules/read-file (Makefile.am): Likewise.
16040         * modules/readline (Makefile.am): Likewise.
16041         * modules/readlink (Makefile.am): Likewise.
16042         * modules/readtokens (Makefile.am): Likewise.
16043         * modules/readutmp (Makefile.am): Likewise.
16044         * modules/realloc (Makefile.am): Likewise.
16045         * modules/regex (Makefile.am): Likewise.
16046         * modules/rename (Makefile.am): Likewise.
16047         * modules/rename-dest-slash (Makefile.am): Likewise.
16048         * modules/rijndael (Makefile.am): Likewise.
16049         * modules/rmdir (Makefile.am): Likewise.
16050         * modules/rpmatch (Makefile.am): Likewise.
16051         * modules/safe-read (Makefile.am): Likewise.
16052         * modules/safe-write (Makefile.am): Likewise.
16053         * modules/same (Makefile.am): Likewise.
16054         * modules/save-cwd (Makefile.am): Likewise.
16055         * modules/savedir (Makefile.am): Likewise.
16056         * modules/setenv (Makefile.am): Likewise.
16057         * modules/settime (Makefile.am): Likewise.
16058         * modules/sha1 (Makefile.am): Likewise.
16059         * modules/sig2str (Makefile.am): Likewise.
16060         * modules/snprintf (Makefile.am): Likewise.
16061         * modules/stdlib-safer (Makefile.am): Likewise.
16062         * modules/stpcpy (Makefile.am): Likewise.
16063         * modules/stpncpy (Makefile.am): Likewise.
16064         * modules/strcase (Makefile.am): Likewise.
16065         * modules/strcasestr (Makefile.am): Likewise.
16066         * modules/strchrnul (Makefile.am): Likewise.
16067         * modules/strcspn (Makefile.am): Likewise.
16068         * modules/strdup (Makefile.am): Likewise.
16069         * modules/strerror (Makefile.am): Likewise.
16070         * modules/strftime (Makefile.am): Likewise.
16071         * modules/strndup (Makefile.am): Likewise.
16072         * modules/strnlen (Makefile.am): Likewise.
16073         * modules/strpbrk (Makefile.am): Likewise.
16074         * modules/strsep (Makefile.am): Likewise.
16075         * modules/strstr (Makefile.am): Likewise.
16076         * modules/strtod (Makefile.am): Likewise.
16077         * modules/strtoimax (Makefile.am): Likewise.
16078         * modules/strtok_r (Makefile.am): Likewise.
16079         * modules/strtol (Makefile.am): Likewise.
16080         * modules/strtoll (Makefile.am): Likewise.
16081         * modules/strtoul (Makefile.am): Likewise.
16082         * modules/strtoull (Makefile.am): Likewise.
16083         * modules/strtoumax (Makefile.am): Likewise.
16084         * modules/strverscmp (Makefile.am): Likewise.
16085         * modules/time_r (Makefile.am): Likewise.
16086         * modules/timegm (Makefile.am): Likewise.
16087         * modules/tmpfile-safer (Makefile.am): Likewise.
16088         * modules/unistd-safer (Makefile.am): Likewise.
16089         * modules/unlinkdir (Makefile.am): Likewise.
16090         * modules/userspec (Makefile.am): Likewise.
16091         * modules/utime (Makefile.am): Likewise.
16092         * modules/utimecmp (Makefile.am): Likewise.
16093         * modules/utimens (Makefile.am): Likewise.
16094         * modules/vasnprintf (Makefile.am): Likewise.
16095         * modules/vasprintf (Makefile.am): Likewise.
16096         * modules/vsnprintf (Makefile.am): Likewise.
16097         * modules/xalloc (Makefile.am): Likewise.
16098         * modules/xgetcwd (Makefile.am): Likewise.
16099         * modules/xnanosleep (Makefile.am): Likewise.
16100         * modules/xreadlink (Makefile.am): Likewise.
16101         * modules/xstrtod (Makefile.am): Likewise.
16102         * modules/xstrtol (Makefile.am): Likewise.
16103         * modules/xstrtold (Makefile.am): Likewise.
16104         * modules/yesno (Makefile.am): Likewise.
16105
16106 2006-10-12  Jim Meyering  <jim@meyering.net>
16107
16108         * m4/getloadavg.m4: Revert the change below.
16109
16110         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
16111         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
16112         fail with a symlink, which is what coreutils' ./bootstrap now
16113         creates by default.
16114
16115 2006-10-12  Bruno Haible  <bruno@clisp.org>
16116
16117         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
16118         mingw.
16119         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
16120         MSVC and mingw explicitly.
16121
16122 2006-10-11  Simon Josefsson  <jas@extundo.com>
16123             Bruno Haible  <bruno@clisp.org>
16124
16125         Add support for multiple gnulib-tool invocations in the scope of a
16126         single configure.ac file.
16127         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
16128         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
16129         with the same contents as the _LIBADD variable.
16130         (func_emit_initmacro_start, func_emit_initmacro_end,
16131         func_emit_initmacro_done): New functions.
16132         (func_import, func_create_testdir): Invoke them. Allow the identifiers
16133         gl_LIBOBJS and gl_LTLIBOBJS.
16134
16135 2006-10-11  Bruno Haible  <bruno@clisp.org>
16136
16137         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
16138         (func_create_testdir): Don't create po/Makefile.am, don't invoke
16139         autoreconf. Instead, invoke autopoint explicitly but move back the
16140         *.m4 files from gnulib.
16141
16142 2006-10-11  Bruno Haible  <bruno@clisp.org>
16143
16144         * gnulib-tool (func_usage): Make module names after --create-testdir
16145         optional.
16146         (func_create_testdir): If no module was specified, use nearly all
16147         modules.
16148
16149 2006-10-12  Jim Meyering  <jim@meyering.net>
16150
16151         Big performance improvement for fts-based tools that use FTS_NOSTAT.
16152         Avoid spurious inode-mismatch problems on non-POSIX file systems.
16153         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
16154         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
16155         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
16156         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
16157         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
16158         (fts_set_stat_required): New function.
16159         (fts_open): Defer the calls to fts_stat, if possible or requested.
16160         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
16161         into fts_stat itself.
16162         (fts_read): Perform any required (deferred) fts_stat call.
16163         (fts_build): Likewise, for the directory we're about to open and read.
16164         In the readdir loop, carefully decide whether each entry will require
16165         an eventual call to fts_stat, using dirent.d_type info if available.
16166         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
16167         a command line argument into this function.  Update all callers.
16168         Map a return value of FTS_DOT to FTS_D for a command line argument.
16169         * modules/fts (Depends-on): Add d-type.  Alphabetize.
16170         Thanks to Miklos Szeredi for his tenacity and for the initial
16171         bug report about "find" failing on a FUSE-based file system.
16172
16173         * lib/fts.c (fts_open): Use consistent indentation.
16174
16175 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
16176
16177         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
16178         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
16179         reported by Jim Meyering.  All uses of cache variables renamed
16180         to match Autoconf's.
16181         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
16182         the other one.
16183
16184         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
16185         Fix misspelling in diagnostic.
16186
16187 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
16188
16189         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
16190         defined.  Problem reported by Matthew Woehlke.
16191
16192         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
16193         Add support for Tandem NonStop R series.
16194         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
16195         Use new macro.
16196
16197         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
16198         (has_trailing_slash): Omit size arg; all callers changed.
16199         Omit 'inline', since it doesn't help performance and we'd
16200         need to configure it.
16201         Don't count //, ///, etc. as having a trailing slash.
16202         As a side effect, this removes a C99ism reported by Matthew Woehlke.
16203         (rpl_rename_dest_slash): On failure, use rename's errno rather
16204         than (in some cases) an incorrect or junk errno.
16205         Simplify code by removing need to compute length; this does
16206         cause it to make two passes instead of one over the file name,
16207         but it's worth it.
16208
16209         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
16210         change, since Autoconf's version may no longer be appropriate now
16211         that we are using CVS Autoconf's version.  Add support for Tandem.
16212
16213 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
16214             Bruno Haible  <bruno@clisp.org>
16215
16216         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
16217         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
16218         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
16219         gl_AC_TYPE_LONG_LONG.
16220
16221         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
16222         instead of HAVE_LONG_LONG.
16223         * lib/printf-args.c (printf_fetchargs): Likewise.
16224         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
16225         * lib/vasnprintf.c (VASNPRINTF): Likewise.
16226         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
16227         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
16228         gl_AC_TYPE_LONG_LONG.
16229
16230 2006-10-11  Bruno Haible  <bruno@clisp.org>
16231
16232         * m4/longlong.m4: Add comments.
16233         * m4/ulonglong.m4: Likewise.
16234
16235 2006-10-10  Bruno Haible  <bruno@clisp.org>
16236
16237         Make it possible to #define stpcpy, strdup to aliases.
16238         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
16239         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
16240
16241 2006-10-10  Bruno Haible  <bruno@clisp.org>
16242
16243         Make it possible to #define gcd to an alias.
16244         * lib/gcd.c: Include config.h.
16245
16246 2006-10-10  Bruno Haible  <bruno@clisp.org>
16247
16248         Make it possible to #define c_isascii to an alias.
16249         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
16250         defined. Undefine the macros before defining them, to avoid gcc
16251         warnings.
16252         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
16253         define NO_C_CTYPE_MACROS early.
16254
16255 2006-10-10  Bruno Haible  <bruno@clisp.org>
16256
16257         Make it possible to #define set_program_name to an alias.
16258         * lib/progname.c: Don't undefine set_program_name; instead, undefine
16259         ENABLE_RELOCATABLE early.
16260
16261 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
16262
16263         Port to Tandem NSK OSS, which has 64-bit signed int but at most
16264         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
16265         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
16266         More generally, don't assume that 64-bit signed int is available
16267         if unsigned int is, and vice versa.
16268         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
16269         unsigned symbols, not on their signed counterparts.
16270         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
16271         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
16272         (UINT64_C, UINTMAX_C):
16273         Likewise.
16274         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
16275         unsigned counterparts.
16276         (Have_long_long, Unsigned): New macros.
16277         (Int): Renamed from INT.
16278         (strtoimax): Use the new macros.
16279         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
16280         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
16281         * modules/inttypes (inttypes.h): Substitute
16282         HAVE_UNSIGNED_LONG_LONG_INT.
16283         * modules/stdint (stdint.h): Likewise.
16284         (Files): Add m4/ulonglong.m4.
16285
16286 2006-10-10  Bruno Haible  <bruno@clisp.org>
16287
16288         Fix a gcc -Wshadow warning.
16289         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
16290         to 'bucket'.
16291         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
16292         gl_linked_indexof_from_to): Likewise.
16293         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
16294         Likewise.
16295         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
16296         Likewise.
16297         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
16298         Reported by Eric Blake.
16299
16300 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
16301
16302         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
16303         for NetBSD.  Problem reported by Bruno Haible.
16304
16305 2006-10-09  Jim Meyering  <jim@meyering.net>
16306
16307         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
16308         Patch from Bruno Haible.
16309
16310 2006-10-09  Jim Meyering  <jim@meyering.net>
16311
16312         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
16313         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
16314         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
16315
16316 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16317
16318         Don't include <config.h> twice; this doesn't work in some cases,
16319         e.g., when config.h has "#define intmax_t long long int" and
16320         we include <config.h>, <inttypes.h>, <config.h> in that order.
16321         Problem reported by Matthew Woehlke in:
16322         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
16323         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
16324         * lib/fts-cycle.c: Don't include config.h.
16325         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
16326         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
16327         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
16328         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
16329         inttypes.h.
16330         * lib/xstrtoumax.c: Likewise.
16331         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
16332         __strtol and the like, so that this module is more like its siblings.
16333         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
16334         Remove; no longer needed now that we assume gnulib inttypes.h.
16335
16336 2006-10-08  Bruno Haible  <bruno@clisp.org>
16337
16338         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
16339         option.
16340
16341 2006-10-07  Jim Meyering  <jim@meyering.net>
16342
16343         * modules/inttypes (inttypes.h): Revert what seems to have been
16344         an inadvertent part of today's change: use "|", not "/" in the
16345         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
16346
16347 2006-10-07  Bruno Haible  <bruno@clisp.org>
16348
16349         * modules/sublist: New file.
16350
16351 2006-10-07  Bruno Haible  <bruno@clisp.org>
16352
16353         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
16354         * modules/argz (argz.h): Likewise.
16355         * modules/arpa_inet (arpa/inet.h): Likewise.
16356         * modules/byteswap (byteswap.h): Likewise.
16357         * modules/configmake (configmake.h): Likewise.
16358         * modules/fcntl (fcntl.h): Likewise.
16359         * modules/fnmatch (fnmatch.h): Likewise.
16360         * modules/getopt (getopt.h): Likewise.
16361         * modules/glob (glob.h): Likewise.
16362         * modules/inttypes (inttypes.h): Likewise.
16363         * modules/netinet_in (netinet/in.h): Likewise.
16364         * modules/poll (poll.h): Likewise.
16365         * modules/stdbool (stdbool.h): Likewise.
16366         * modules/stdint (stdint.h): Likewise.
16367         * modules/sys_select (sys/select.h): Likewise.
16368         * modules/sys_socket (sys/socket.h): Likewise.
16369         * modules/sys_stat (sys/stat.h): Likewise.
16370         * modules/sysexits (sysexits.h): Likewise.
16371         * modules/unistd (unistd.h): Likewise.
16372         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16373         Add a "DO NOT EDIT" comment to the generated file.
16374         (func_import): Likewise for gnulib-comp.m4.
16375
16376 2006-10-07  Bruno Haible  <bruno@clisp.org>
16377
16378         * lib/gl_sublist.h: New file.
16379         * lib/gl_sublist.c: New file.
16380
16381 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
16382
16383         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
16384         name (relative to the original working directory) and the file
16385         name component (relative to the temporary working directory).  All
16386         callers changed.
16387         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
16388         * lib/mkdir-p.c (make_dir_parents): Likewise.
16389         * lib/mkdir-p.h (make_dir_parents): Likewise.
16390
16391 2006-10-06  Eric Blake  <ebb9@byu.net>
16392
16393         Define several macros for use by the clean-temp module.
16394         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
16395         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
16396         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
16397
16398         * lib/clean-temp.h (close_stream_temp): New declaration.
16399         * lib/clean-temp.c (includes): Pull in headers according to what
16400         other modules are in use.
16401         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
16402
16403 2006-10-06  Bruno Haible  <bruno@clisp.org>
16404
16405         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
16406         instead of fopen, fwriteerror.
16407
16408 2006-10-06  Bruno Haible  <bruno@clisp.org>
16409
16410         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
16411         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
16412         int.
16413         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
16414         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
16415         Return an error indicator.
16416         Suggested by Eric Blake.
16417
16418 2006-10-06  Bruno Haible  <bruno@clisp.org>
16419
16420         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
16421         Reported by Eric Blake.
16422
16423 2006-10-06  Bruno Haible  <bruno@clisp.org>
16424
16425         * modules/closeout (Description): Mention stderr too.
16426
16427 2006-10-06  Bruno Haible  <bruno@clisp.org>
16428         and Paul Eggert  <eggert@cs.ucla.edu>
16429
16430         * lib/closeout.c (close_stdout): Also close stderr.
16431         * lib/closeout.h: Update comment.
16432
16433 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16434
16435         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
16436         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
16437         * lib/dirchownmod.c: Include lchown.h.
16438         * lib/lchown.c: Don't include files that lchown.h now includes.
16439         Don't declare chown, since lchown.h now does that.
16440         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
16441         (lchown): Define to rpl_chown if lchown is declared but
16442         does not exist.  Declare using a prototype if lchown is not
16443         declared.  Add a copyright notice.
16444         * lib/mkstemp.h: Include <unistd.h>.
16445         * lib/openat.c: Include lchown.h.
16446
16447         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
16448         we now test for that separately.
16449         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
16450         rather than O_NOFOLLOW, when testing whether it's possible to
16451         avoid a race condition reliably.
16452         * lib/savewd.c (savewd_chdir): Likewise.
16453
16454         Remove macros that are no longer needed now that stdint.h is
16455         reliable.
16456         * lib/fsusage.c (UINTMAX_MAX): Remove.
16457         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
16458         * lib/utimecmp.c (SIZE_MAX): Remove.
16459
16460         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
16461
16462         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
16463         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
16464         O_NOATIME works.
16465
16466 2006-10-05  Bruno Haible  <bruno@clisp.org>
16467
16468         * lib/gl_list.h (gl_sortedlist_search_from_to,
16469         gl_sortedlist_indexof_from_to): New declarations.
16470         (gl_list_implementation): New fields sortedlist_search_from_to,
16471         sortedlist_indexof_from_to.
16472         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
16473         inline functions.
16474         * lib/gl_list.c (gl_sortedlist_search_from_to,
16475         gl_sortedlist_indexof_from_to): New functions.
16476         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
16477         function.
16478         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
16479         (gl_array_sortedlist_search_from_to): New function.
16480         (gl_array_list_implementation): Update.
16481         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
16482         function.
16483         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
16484         (gl_carray_sortedlist_search_from_to): New function.
16485         (gl_carray_list_implementation): Update.
16486         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
16487         gl_linked_sortedlist_indexof_from_to): New functions.
16488         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
16489         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
16490         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
16491         gl_tree_sortedlist_indexof_from_to): New functions.
16492         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
16493         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
16494         Update.
16495         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
16496         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
16497         Update.
16498
16499 2006-10-05  Bruno Haible  <bruno@clisp.org>
16500
16501         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
16502         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
16503         (struct gl_list_implementation): Add fields search_from_to,
16504         indexof_from_to. Remove fields search, indexof.
16505         (gl_list_search): Use the search_from_to method.
16506         (gl_list_search_from, gl_list_search_from_to): New functions.
16507         (gl_list_indexof): Use the indexof_from_to method.
16508         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
16509         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
16510         (gl_list_search_from, gl_list_search_from_to): New functions.
16511         (gl_list_indexof): Use the indexof_from_to method.
16512         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
16513         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
16514         gl_array_indexof. Add start_index, end_index arguments.
16515         (gl_array_search_from_to): Renamed from gl_array_search. Add
16516         start_index, end_index arguments.
16517         (gl_array_remove, gl_array_list_implementation): Update.
16518         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
16519         gl_carray_indexof. Add start_index, end_index arguments.
16520         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
16521         start_index, end_index arguments.
16522         (gl_carray_remove, gl_carray_list_implementation): Update.
16523         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
16524         gl_linked_search. Add start_index, end_index arguments.
16525         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
16526         start_index, end_index arguments.
16527         (gl_linked_remove): Update.
16528         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
16529         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
16530         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
16531         field to 'size_t'.
16532         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
16533         gl_tree_search. Add start_index, end_index arguments.
16534         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
16535         start_index, end_index arguments.
16536         (gl_tree_remove): Update.
16537         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
16538         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
16539         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
16540         function.
16541         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
16542         gl_tree_search. Add start_index, end_index arguments.
16543         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
16544         start_index, end_index arguments.
16545         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
16546         Update.
16547         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
16548
16549 2006-10-05  Bruno Haible  <bruno@clisp.org>
16550
16551         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
16552
16553         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
16554         fwriteerror_temp): New declarations.
16555         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
16556         (descriptors): New variable.
16557         (cleanup): First, close the descriptors.
16558         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
16559         fclose_temp, fwriteerror_temp): New functions.
16560
16561 2006-10-04  Jim Meyering  <jim@meyering.net>
16562
16563         * lib/fts.c (fts_open): Tiny comment change.
16564
16565 2006-10-04  Bruno Haible  <bruno@clisp.org>
16566
16567         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
16568         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
16569         gl_LOCK_BODY.
16570         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
16571         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
16572         gl_LOCK_EARLY_BODY.
16573         (gl_LOCK): Require gl_LOCK_BODY.
16574
16575 2006-10-04  Bruno Haible  <bruno@clisp.org>
16576
16577         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
16578         (gl_oset_search_atleast): New declaration.
16579         (struct gl_oset_implementation): Add field 'search_atleast'.
16580         (gl_oset_search_atleast): New inline function.
16581         * lib/gl_oset.c (gl_oset_search_atleast): New function.
16582         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
16583         (gl_array_oset_implementation): Update.
16584         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
16585         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
16586         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
16587
16588 2006-10-04  Bruno Haible  <bruno@clisp.org>
16589
16590         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
16591
16592 2006-10-03  Bruno Haible  <bruno@clisp.org>
16593
16594         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
16595         from gl_avltreehash_list_implementation.
16596
16597 2006-10-03  Bruno Haible  <bruno@clisp.org>
16598
16599         * lib/gl_oset.c (gl_oset_add): Fix return type.
16600
16601 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
16602
16603         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
16604
16605 2006-10-02  Eric Blake  <ebb9@byu.net>
16606
16607         * modules/strnlen (Depends-on): Add extensions.
16608
16609 2006-10-02  Eric Blake  <ebb9@byu.net>
16610
16611         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
16612         definition in 2.60+.
16613
16614 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
16615
16616         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
16617         checks.
16618
16619 2006-10-02  Bruno Haible  <bruno@clisp.org>
16620
16621         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
16622         to the AUTOMAKE_OPTIONS.
16623         Reported by Jim Meyering.
16624
16625 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
16626
16627         Work around bug in Solaris 10 /proc file system:
16628         /proc/self/fd/NNN/.. isn't the parent directory of
16629         the directory whose file descriptor is NNN.  This needs to
16630         be worked around at run time, not compile time, since a
16631         program might be built on Solaris 8, where things work, and
16632         run on Solaris 10.
16633         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
16634         to use the following interface instead:
16635         (OPENAT_BUFFER_SIZE): New macro.
16636         (openat_proc_name): New function.
16637         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
16638         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
16639         Likewise.
16640         * lib/openat-proc.c: New file.
16641         * modules/openat (Files): Add lib/openat-proc.c.
16642         (Depends-on): Add same-inode, stdbool.
16643         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
16644
16645 2006-09-29  Bruno Haible  <bruno@clisp.org>
16646
16647         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
16648         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
16649         argument. Set stdout_closed before testing for ferror, not after.
16650         (fwriteerror, fwriteerror_no_ebadf): New functions.
16651
16652 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16653
16654         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
16655
16656 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
16657
16658         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
16659         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
16660
16661 2006-09-28  Jim Meyering  <jim@meyering.net>
16662
16663         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
16664         Include <unistd.h>.
16665
16666 2006-09-28  Bruno Haible  <bruno@clisp.org>
16667
16668         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
16669         * modules/linkedhash-list (Depends-on): Likewise.
16670         * modules/rbtreehash-list (Depends-on): Likewise.
16671
16672 2006-09-28  Bruno Haible  <bruno@clisp.org>
16673
16674         * lib/strndup.h: Simplify the redefinition of strndup.
16675         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
16676         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
16677
16678 2006-09-28  Bruno Haible  <bruno@clisp.org>
16679
16680         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
16681         * lib/gl_linkedhash_list.c: Likewise.
16682         * lib/gl_rbtreehash_list.c: Likewise.
16683
16684 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
16685
16686         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
16687         getaddrinfo.
16688
16689         * lib/__fpending.h: Don't include <stdio_ext.h> unless
16690         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
16691         it causes <stdio_ext.h> to cause a compile-time error.
16692         Problem reported by Nelson H. F. Beebe.
16693         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
16694         of HAVE_DECL___PENDING.
16695
16696         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
16697         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
16698         declaration.
16699
16700 2006-09-27  Jim Meyering  <jim@meyering.net>
16701
16702         This file could end up with a definition for a function
16703         named __strndup, rather than rpl_strndup on a system with
16704         incomplete weak_alias support.
16705         * lib/strndup.c (strndup): Rename from __strndup.
16706         Remove #defines that used to map __strndup to strndup.
16707         Don't use K&R prototypes.
16708         Remove LIBC-related code, since this file is not sync'd with glibc.
16709         * lib/strndup.h: Revamp, accordingly.
16710         * m4/strndup.m4: Modernize.
16711
16712 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
16713
16714         * modules/savewd (Depends-on): Add 'raise'.
16715         * lib/savewd.c: Include <signal.h>, for 'raise'.
16716
16717 2006-09-26  Jim Meyering  <jim@meyering.net>
16718
16719         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
16720         when we detect Darwin 8.7.0's acl_get_file bug.
16721         Rearrange to perform the new (below) run-test while $LIBS
16722         contains any acl-related library.  Set USE_ACL at the end.
16723         (gl_ACL_GET_FILE): New function.
16724
16725 2006-09-26  Eric Blake  <ebb9@byu.net>
16726
16727         * lib/verror.c: Include <config.h> unconditionally.
16728
16729 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
16730
16731         * modules/clock-time (Maintainer): Add self.
16732         * modules/getlogin_r (Depends-on): Add extensions.
16733
16734 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16735
16736         * modules/clock-time: New module.
16737         * modules/nanosleep (Depends-on): Add clock-time.
16738         * modules/gethrxtime (Depends-on): Likewise.
16739         * modules/gettime (Depends-on): Likewise.
16740         * modules/settime (Depends-on): Likewise.
16741
16742         * modules/fts-lgpl: Depend on openat.
16743         * modules/mkancesdirs: Depend on savewd.
16744         * modules/mkdir-p: Likewise.
16745
16746 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16747
16748         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
16749
16750         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
16751         `gl_have_arbitrary_file_name_length_limit' to
16752         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
16753         actually works between configure runs.
16754
16755 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16756             Bruno Haible  <bruno@clisp.org>
16757
16758         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
16759
16760 2006-09-25  Jim Meyering  <jim@meyering.net>
16761
16762         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
16763         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
16764
16765 2006-09-25  Eric Blake  <ebb9@byu.net>
16766
16767         * gnulib-tool (func_import, func_create_testdir): Fix typos in
16768         exec's in 2006-09-18 patch when shuffling fds.
16769
16770 2006-09-25  Bruno Haible  <bruno@clisp.org>
16771
16772         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
16773         Reported by Jim Meyering.
16774
16775 2006-09-24  Jim Meyering  <jim@meyering.net>
16776
16777         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
16778         compare a pointer against a literal "0".  That caused failures with
16779         at least HP-UX's hpcc.
16780
16781 2006-09-22  Simon Josefsson  <jas@extundo.com>
16782
16783         * modules/gc-sha1:
16784         * modules/gc-md4:
16785         * modules/gc-hmac-sha1:
16786         * modules/gc-hmac-md5:
16787         * modules/gc-des:
16788         * modules/gc-arcfour: Distribute more files.
16789
16790 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16791
16792         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
16793         (gl_linked_iterator_from_to): Initialize struct completely.
16794         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
16795         (gl_tree_iterator_from_to): Likewise
16796         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
16797         * lib/gl_array_list.c [lint] (gl_array_iterator)
16798         (gl_array_iterator_from_to): Likewise.
16799         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
16800         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
16801         (gl_carray_iterator_from_to): Likewise.
16802
16803         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
16804         * lib/md4.c (md4_process_block): Remove unused variable.
16805         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
16806         parentheses for clarity.
16807
16808 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16809
16810         * modules/bison-i18n (Depends-on): Add gettext.
16811
16812 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16813
16814         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
16815         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
16816         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
16817         also add missing comma that caused broken test.
16818         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
16819         stdlib.h, for `abort'.
16820         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
16821         variables.
16822         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
16823         include unistd.h if present, for `rmdir'.
16824         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
16825         variables.
16826         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
16827         in the process include standard headers for prototypes.
16828         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
16829         gets declared on GNU/Linux.
16830         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
16831         unistd.h, for `rmdir'.
16832         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
16833
16834         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
16835         always true.
16836         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
16837
16838         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
16839
16840 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16841
16842         * gnulib-tool (func_version): Create output all at once.  This
16843         may help avoid triggering unnecessary SIGPIPEs, and at any
16844         rate it doesn't hurt.
16845
16846 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16847             Bruno Haible  <bruno@clisp.org>
16848
16849         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
16850         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16851         * m4/signed.m4 (bh_C_SIGNED): Likewise.
16852
16853         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
16854         (gl_FUNC_VASPRINTF): Invoke it.
16855
16856 2006-09-22  Bruno Haible  <bruno@clisp.org>
16857
16858         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
16859         getloadavg.c as first argument.
16860
16861 2006-09-22  Bruno Haible  <bruno@clisp.org>
16862
16863         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
16864         at the beginning of the gl_INIT macro.
16865         * modules/getloadavg (configure.ac): Pass $gl_source_base to
16866         gl_GETLOADAVG.
16867
16868 2006-09-22  Bruno Haible  <bruno@clisp.org>
16869
16870         * gnulib-tool (func_create_megatestdir): Don't include the config-h
16871         module.
16872         Suggested by Ralf Wildenhues.
16873
16874 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16875
16876         Import this patch from libc:
16877
16878         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
16879
16880         * lib/regex_internal.c (re_string_reconstruct): Handle
16881         offset < pstr->valid_raw_len && pstr->offsets_needed case.
16882         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
16883         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
16884         re_string_context_at.
16885
16886         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
16887         now requires it.
16888         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
16889         gl_REGEX now does it for us.
16890         (gl_REGEX): Add test taken from
16891         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
16892
16893         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
16894         Check that large offsets work.  Modernize Autoconf usages.
16895         Prefer "yes" to mean a good thing rather than a bad.
16896         Don't put "#define mkstemp" in config.h, as this might interfere
16897         with standard system headers that "#define mkstemp mkstemp64".
16898
16899         * modules/mkstemp (Depends-on): Add extensions, so that
16900         mkstemp is visible on some platforms.
16901         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
16902         (Include): Change to "mkstemp.h" from <stdlib.h>.
16903         (Files): Add mkstemp.h.
16904
16905         * lib/mkstemp.h: New file, since some standard headers
16906         #define mkstemp.
16907         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
16908         Include "mkstemp.h".
16909         Make the _LIBC code resemble glibc original more,
16910         e.g., use K&R style.
16911         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
16912         (mkstemp): Remove, since mkstemp.h does this for us.
16913         * lib/stdlib--.h: Include mkstemp.h.
16914
16915         Import this patch from libc:
16916
16917         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
16918
16919         * lib/tempname.c (__gen_tempname): Change attempts_min
16920         into a macro.  Use preprocessor to decide how to initialize
16921         attempts [Coverity CID 67].
16922
16923 2006-09-20  Bruno Haible  <bruno@clisp.org>
16924
16925         * lib/mkdtemp.c: Import from libc.
16926         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
16927                 * sysdeps/posix/tempname.c (__gen_tempname): Change
16928                 attempts_min into a macro.  Use preprocessor to decide how to
16929                 initialize attempts [Coverity CID 67].
16930         2001-11-27  Paul Eggert  <eggert@twinsun.com>
16931                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
16932                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
16933
16934 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16935
16936         * gnulib-tool (func_exit): New function, to allow to pass the
16937         exit status portably through the trap.  Use everywhere.
16938         (--help, --version): Signal a write error.
16939         (trap): catch SIGPIPE, for write errors.
16940         Exit at the end of the trap, with the correct exit status.
16941
16942 2006-09-19  Karl Berry  <karl@gnu.org>
16943
16944         * doc/gnulib.texi: note about the license texinfo files.
16945
16946 2006-09-19  Eric Blake  <ebb9@byu.net>
16947
16948         * gnulib-tool: Avoid space-tab.
16949
16950 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
16951
16952         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
16953         that prevented coreutils 6.1 from building.  Problem reported
16954         by Petter Reinholdtsen.
16955
16956 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
16957
16958         * gnulib-tool (avoidlist): Fix typo that broke options like
16959         --avoid=lock that are used by coreutils bootstrap.
16960
16961 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
16962
16963         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
16964         more systematically.
16965
16966 2006-09-18  Jim Meyering  <jim@meyering.net>
16967
16968         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
16969
16970 2006-09-18  Bruno Haible  <bruno@clisp.org>
16971
16972         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
16973
16974 2006-09-18  Bruno Haible  <bruno@clisp.org>
16975
16976         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
16977         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
16978         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
16979         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
16980         * m4/gettext.m4: Require autoconf >= 2.52.
16981         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
16982         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
16983         of gl_cv_header_inttypes_h.
16984
16985 2006-09-18  Bruno Haible  <bruno@clisp.org>
16986
16987         * lib/javaversion.c: Include configmake.h.
16988
16989 2006-09-18  Bruno Haible  <bruno@clisp.org>
16990
16991         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
16992         avoid that the while loops be executed in a subshell.
16993
16994 2006-09-18  Bruno Haible  <bruno@clisp.org>
16995
16996         * MODULES.html.sh (func_module): Break long lines.
16997         Suggested by Bruce Korb <bkorb@gnu.org>.
16998
16999 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17000
17001         Speed up by a factor of 1.12.
17002         * gnulib-tool (nl): New variable.
17003         (func_import): Rewrite include directive extraction to only read each
17004         directive once.
17005
17006 2006-09-17  Bruno Haible  <bruno@clisp.org>
17007
17008         * modules/javaversion (Makefile.am): Remove DEFS setting.
17009         (Depends-on): Add configmake, for PKGDATADIR definition.
17010
17011 2006-09-17  Bruno Haible  <bruno@clisp.org>
17012
17013         * gnulib-tool (func_create_testdir): Rewrite all files at once.
17014
17015 2006-09-17  Bruno Haible  <bruno@clisp.org>
17016
17017         * gnulib-tool (func_append): New function, stolen from libtool.m4.
17018         (func_modules_transitive_closure, func_modules_add_dummy,
17019         func_modules_to_filelist, func_import, func_create_testdir,
17020         func_create_megatestdir, ...): Use it wherever possible.
17021         Suggested by Ralf Wildenhues.
17022
17023 2006-09-16  Karl Berry  <karl@gnu.org>
17024
17025         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
17026         to avoid sectioning errors.
17027         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
17028         [ifinfo]: blank line after @center-ed titles.
17029         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
17030         Spell FSF address consistently with others.
17031         (These changes approved by rms.)
17032
17033 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17034
17035         Speed up by a factor of 1.61.
17036         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
17037         already checked module names again.
17038
17039 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17040
17041         Speed up by a factor of 1.13.
17042         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
17043         for new_files, and the input to func_add_or_update.
17044
17045 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17046
17047         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
17048         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
17049
17050 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
17051
17052         * modules/mkancesdirs (Depends-on): Add fcntl.
17053         * modules/savewd: New file.
17054         * MODULES.html.sh (File system functions): Add savewd.
17055
17056         * modules/configmake (Makefile.am): Add support for the
17057         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
17058
17059 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
17060
17061         * m4/savewd.m4: New file.
17062
17063 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
17064
17065         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
17066         (dirchownmod): New arg FD.  All callers changed.
17067         Use FD rather than opening the directory ourself, as opening is
17068         now the caller's responsibility.
17069         * lib/dirchownmod.h: Likewise.
17070         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
17071         hosts that require <sys/types.h> before <sys/stat.h>.  Include
17072         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
17073         (test_dir): Remove.
17074         (mkancesdirs): Return length of prefix of FILE that has already
17075         been made, or -2 if there is a child doing the work.  Redo
17076         algorithm so that it is O(N) rather than O(N**2).  Optimize away
17077         ".", and treat ".." specially since it might stray back into
17078         already-created areas.  Use a subprocess if necessary.  New arg
17079         WD; all users changed.  MAKE_DIR function should now return 1
17080         if it creates a directory that is not readable.  Return -2 if
17081         a child process is spun off.
17082         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
17083         Adjust signature to match code.
17084         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
17085         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
17086         all users changed.
17087         * lib/savewd.c, lib/savewd.h: New files.
17088
17089 2006-09-15  Jim Meyering  <jim@meyering.net>
17090
17091         * modules/rename-dest-slash: New module.
17092         * MODULES.html.sh (posix_compat): Add it here.
17093
17094         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
17095
17096 2006-09-15  Jim Meyering  <jim@meyering.net>
17097
17098         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
17099         file.
17100
17101         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
17102
17103 2006-09-15  Jim Meyering  <jim@meyering.net>
17104
17105         * lib/rename-dest-slash.c (has_trailing_slash): Use
17106         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
17107         (rpl_rename_dest_slash): Perform the cheaper trailing slash
17108         test before testing whether SRC is a directory.
17109         Suggestions from Bruno Haible.
17110
17111         Avoid a warning about an unused variable.
17112         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
17113         into the #ifdef block where it's used.
17114
17115         * lib/rename-dest-slash.c: New file.
17116
17117 2006-09-14  Bruno Haible  <bruno@clisp.org>
17118
17119         * lib/allocsa.c: Include <config.h> unconditionally.
17120         * lib/asnprintf.c: Likewise.
17121         * lib/asprintf.c: Likewise.
17122         * lib/c-strcasecmp.c: Likewise.
17123         * lib/c-strcasestr.c: Likewise.
17124         * lib/c-strncasecmp.c: Likewise.
17125         * lib/c-strstr.c: Likewise.
17126         * lib/classpath.c: Likewise.
17127         * lib/clean-temp.c: Likewise.
17128         * lib/concatpath.c: Likewise.
17129         * lib/copy-file.c: Likewise.
17130         * lib/csharpcomp.c: Likewise.
17131         * lib/csharpexec.c: Likewise.
17132         * lib/execute.c: Likewise.
17133         * lib/fatal-signal.c: Likewise.
17134         * lib/findprog.c: Likewise.
17135         * lib/fwriteerror.c: Likewise.
17136         * lib/gl_array_list.c: Likewise.
17137         * lib/gl_array_oset.c: Likewise.
17138         * lib/gl_avltree_list.c: Likewise.
17139         * lib/gl_avltree_oset.c: Likewise.
17140         * lib/gl_avltreehash_list.c: Likewise.
17141         * lib/gl_carray_list.c: Likewise.
17142         * lib/gl_linked_list.c: Likewise.
17143         * lib/gl_linkedhash_list.c: Likewise.
17144         * lib/gl_list.c: Likewise.
17145         * lib/gl_oset.c: Likewise.
17146         * lib/gl_rbtree_list.c: Likewise.
17147         * lib/gl_rbtree_oset.c: Likewise.
17148         * lib/gl_rbtreehash_list.c: Likewise.
17149         * lib/imaxabs.c: Likewise.
17150         * lib/imaxdiv.c: Likewise.
17151         * lib/javacomp.c: Likewise.
17152         * lib/javaexec.c: Likewise.
17153         * lib/javaversion.c: Likewise.
17154         * lib/linebreak.c: Likewise.
17155         * lib/localcharset.c: Likewise.
17156         * lib/lock.c: Likewise.
17157         * lib/mbchar.c: Likewise.
17158         * lib/mbswidth.c: Likewise.
17159         * lib/mkdtemp.c: Likewise.
17160         * lib/pipe.c: Likewise.
17161         * lib/printf-args.c: Likewise.
17162         * lib/printf-parse.c: Likewise.
17163         * lib/progname.c: Likewise.
17164         * lib/progreloc.c: Likewise.
17165         * lib/readlink.c: Likewise.
17166         * lib/sh-quote.c: Likewise.
17167         * lib/stpcpy.c: Likewise.
17168         * lib/stpncpy.c: Likewise.
17169         * lib/strcasecmp.c: Likewise.
17170         * lib/strcasestr.c: Likewise.
17171         * lib/strcspn.c: Likewise.
17172         * lib/striconv.c: Likewise.
17173         * lib/strncasecmp.c: Likewise.
17174         * lib/strnlen1.c: Likewise.
17175         * lib/strstr.c: Likewise.
17176         * lib/strtok_r.c: Likewise.
17177         * lib/tls.c: Likewise.
17178         * lib/tmpdir.c: Likewise.
17179         * lib/unicodeio.c: Likewise.
17180         * lib/unsetenv.c: Likewise.
17181         * lib/vasnprintf.c: Likewise.
17182         * lib/vasprintf.c: Likewise.
17183         * lib/wait-process.c: Likewise.
17184         * lib/xallocsa.c: Likewise.
17185         * lib/xsetenv.c: Likewise.
17186         * lib/xstriconv.c: Likewise.
17187
17188 2006-09-13  Simon Josefsson  <jas@extundo.com>
17189
17190         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
17191         that internally, suggested by Ralf Wildenhues
17192         <Ralf.Wildenhues@gmx.de>.
17193
17194 2006-09-13  Simon Josefsson  <jas@extundo.com>
17195
17196         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
17197         @LIBOBJS@.
17198         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17199
17200 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17201
17202         * lib/_fpending.c: Include <config.h> unconditionally, since we no
17203         longer worry about uses that don't define HAVE_CONFIG_H.
17204         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
17205         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
17206         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
17207         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
17208         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
17209         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
17210         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
17211         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
17212         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
17213         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
17214         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
17215         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
17216         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
17217         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
17218         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
17219         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
17220         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
17221         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
17222         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
17223         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
17224         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
17225         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
17226         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
17227         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
17228         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
17229         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
17230         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
17231         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
17232         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
17233         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
17234         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
17235         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
17236         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
17237         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
17238         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
17239         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
17240         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
17241         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
17242         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
17243         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
17244         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
17245         Likewise.
17246
17247 2006-09-13  Eric Blake  <ebb9@byu.net>
17248
17249         * lib/getopt.c: Fix typo in last commit.
17250
17251 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17252
17253         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
17254         dgettext.
17255
17256 2006-09-12  Jim Meyering  <jim@meyering.net>
17257
17258         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
17259         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
17260         Reported by Nelson H. F. Beebe.
17261
17262 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
17263
17264         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
17265         program_invocation_name and program_invocation_short_name are
17266         initialized.
17267         * lib/argp-namefrob.h: Move declarations of program_invocation_name
17268         and program_invocation_short_name to argp.h, so they are visible
17269         to user programs.
17270         * lib/argp.h: Likewise
17271
17272 2006-09-10  Bruno Haible  <bruno@clisp.org>
17273
17274         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
17275         m4/inttypes_h.m4, m4/uintmax_t.m4.
17276
17277 2006-09-10  Bruno Haible  <bruno@clisp.org>
17278
17279         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
17280         gl_AC_TYPE_UINTMAX_T.
17281
17282 2006-09-10  Bruno Haible  <bruno@clisp.org>
17283
17284         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
17285
17286 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
17287
17288         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
17289         convention.  Text proposed by Bruno Haible.
17290         (struct argp_option): Document the use of N_() wrappers.
17291
17292         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
17293         '\v', and translate the two parts separately, instead of feeding
17294         the whole string to gettext.  This allows to exclude
17295         '\v' from the strings visible to the translator by writing doc
17296         strings as N_("..") "\v" N_("..").
17297
17298 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
17299
17300         * config/srclist.txt: Undo latest change; the bug was fixed.
17301
17302 2006-09-09  Bruno Haible  <bruno@clisp.org>
17303
17304         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
17305         assignments if building a library without libtool.
17306         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
17307         in func_emit_lib_Makefile_am.
17308         (func_import): When building a static library libfoo.a, arrange to
17309         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
17310         (func_create_testdir): Likewise.
17311         * modules/gc (configure.ac, Makefile.am): If building statically,
17312         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
17313         * modules/iconvme (configure.ac, Makefile.am): Likewise.
17314         * modules/striconv (configure.ac, Makefile.am): Likewise.
17315         Based on a suggestion by Ralf Wildenhues.
17316
17317 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
17318
17319         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
17320         Check for unistd.h too, since Autoconf doesn't assume POSIX.
17321         Also:
17322
17323         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
17324         Add year_2050_test to catch glibc bug 2821
17325         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
17326
17327         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17328         Prefer #ifdef to #if.
17329
17330         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
17331         Return from 'main' instead of calling 'exit'.
17332
17333 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
17334
17335         * lib/mktime.c (guess_time_tm): Fix bug where mktime
17336         returned the maximum time_t value rather than (time_t) -1.
17337         Problem originally reported by William Bardwell
17338         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
17339
17340         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
17341         Moved to here ...
17342         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
17343         ... from here.
17344
17345 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
17346
17347         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
17348         2821 is fixed.
17349
17350 2006-09-08  Jim Meyering  <jim@meyering.net>
17351
17352         Don't make generated files read-only.  That would bother too many
17353         people.  However, do retain the ability to work when targets are
17354         read-only: remove the destination and temporary files before writing
17355         them (when generated via sed or echo), or by using the -f option for
17356         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
17357         * modules/alloca-opt, modules/argz, modules/arpa_inet:
17358         * modules/byteswap, modules/configmake, modules/fcntl:
17359         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
17360         * modules/localcharset, modules/netinet_in, modules/poll:
17361         * modules/stdbool, modules/stdint, modules/sys_select:
17362         * modules/sys_socket, modules/sys_stat, modules/sysexits:
17363
17364 2006-09-08  Jim Meyering  <jim@meyering.net>
17365
17366         Avoid new build failure on FreeBSD 6.0.
17367         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
17368         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
17369         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
17370
17371 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17372
17373         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
17374
17375 2006-09-07  Jim Meyering  <jim@meyering.net>
17376
17377         Fix global typo in last change: use chmod u-w, not chmod u-x.
17378         Spotted by Paul Eggert and Bruce Korb.
17379         * modules/alloca-opt, modules/argz, modules/arpa_inet:
17380         * modules/byteswap, modules/configmake, modules/fcntl:
17381         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
17382         * modules/localcharset, modules/netinet_in, modules/poll:
17383         * modules/stdbool, modules/stdint, modules/sys_select:
17384         * modules/sys_socket, modules/sys_stat, modules/sysexits:
17385
17386 2006-09-06  Jim Meyering  <jim@meyering.net>
17387
17388         Make generated files be read-only.
17389         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
17390         Ensure that each generated file is now read-only.
17391         * modules/argz: Likewise.
17392         * modules/arpa_inet: Likewise.
17393         * modules/byteswap: Likewise.
17394         * modules/configmake: Likewise.
17395         * modules/fcntl: Likewise.
17396         * modules/fnmatch: Likewise.
17397         * modules/getopt: Likewise.
17398         * modules/glob: Likewise.
17399         * modules/inttypes: Likewise.
17400         * modules/netinet_in: Likewise.
17401         * modules/poll: Likewise.
17402         * modules/stdbool: Likewise.
17403         * modules/stdint: Likewise.
17404         * modules/sys_select: Likewise.
17405         * modules/sys_socket: Likewise.
17406         * modules/sys_stat: Likewise.
17407         * modules/sysexits: Likewise.
17408         * modules/localcharset: Same as above, but continue using temporary
17409         file named "t-$@" (why different?) rather than the "$@-t" used
17410         everywhere else.
17411
17412         * modules/sysexits (Makefile.am): Replace literal occurrences
17413         of "sysexit.h" more readable, and more consistent, "$@".
17414
17415 2006-09-06  Bruno Haible  <bruno@clisp.org>
17416
17417         * modules/striconv: New file.
17418         * modules/xstriconv: New file.
17419         * MODULES.html.sh (Internationalization functions): Add striconv,
17420         xstriconv.
17421
17422 2006-09-06  Bruno Haible  <bruno@clisp.org>
17423
17424         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
17425         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
17426         not using libtool correctly.
17427
17428 2006-09-06  Bruno Haible  <bruno@clisp.org>
17429
17430         * lib/striconv.h: New file.
17431         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
17432         iconvstring.c.
17433         * lib/xstriconv.h: New file.
17434         * lib/xstriconv.c: New file.
17435
17436 2006-09-06  Bruno Haible  <bruno@clisp.org>
17437
17438         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
17439         lib_..._LDFLAGS.
17440
17441 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17442
17443         * lib/argz_.h: Sync from Libtool.
17444
17445         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
17446                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17447
17448         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
17449
17450 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
17451
17452         * modules/trim: New file.
17453
17454 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
17455
17456         * lib/trim.h: New file.
17457         * lib/trim.c: New file.
17458
17459 2006-09-05  Bruno Haible  <bruno@clisp.org>
17460
17461         * MODULES.html.sh (String handling): Add trim.
17462
17463 2006-09-04  Karl Berry  <karl@gnu.org>
17464
17465         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
17466         until next release.
17467
17468 2006-09-03  Bruno Haible  <bruno@clisp.org>
17469
17470         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
17471         correctly.
17472
17473 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17474
17475         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
17476         not gl_GETLOADAVG.  Omit unneeded semicolons.
17477         Problems reported by Ralf Wildenhues in
17478         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
17479         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
17480         at the end, which is the usual gnulib style.
17481
17482         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
17483         of doing all the work ourselves.
17484         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
17485         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
17486
17487 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17488
17489         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
17490         Problem reported by Ralf Wildenhues in
17491         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
17492
17493         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
17494         HAVE_STRUCT_STATFS_F_FSTYPENAME.
17495
17496 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17497
17498         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
17499         yesterday's patch by changing test -n to test -z.
17500
17501 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17502
17503         * modules/getloadavg (Files): Add m4/getloadavg.m4.
17504         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
17505         the former is now obsolescent.
17506
17507         * modules/chdir-long (Depends-on): Add fcntl.
17508
17509 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17510
17511         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
17512         obsolescent, and programs should use gnulib instead.
17513         * m4/getloadavg.m4: New file, with contents taken from Autoconf
17514         but with prefixes changed.
17515
17516 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17517
17518         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
17519         or stdbool.h, because they might not exist while configuring.
17520
17521         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
17522         Don't include unistd.h or limits.h; not needed, since chdir-long.h
17523         does that for us.
17524         (O_DIRECTORY): Remove.
17525
17526 2006-08-31  Eric Blake  <ebb9@byu.net>
17527
17528         * gnulib-tool: Don't let emacs change spaces to TAB.
17529
17530 2006-08-31  Bruno Haible  <bruno@clisp.org>
17531
17532         * gnulib-tool: When calling func_import more than once, do it in a
17533         subshell.
17534         Reported by Eric Blake <ebb9@byu.net>.
17535
17536 2006-08-31  Bruno Haible  <bruno@clisp.org>
17537
17538         * gnulib-tool (nl): Remove variable.
17539         (sed_transform_lib_file): Use more robust test for config-h module.
17540         (func_import): Fix typo in 2006-08-25 patch.
17541
17542 2006-08-31  Bruno Haible  <bruno@clisp.org>
17543
17544         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
17545         specified, augment Makefile.am variables instead of assigning them.
17546
17547 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
17548
17549         Work around a bug in both the Linux and SunOS 64-bit kernels:
17550         nanosleep mishandles sleeps for longer than 2**31 seconds.
17551         Problem reported by Frank v Waveren in
17552         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
17553         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
17554         Check for nanosleep bug.
17555         (LIB_NANOSLEEP): Append clock_gettime library if needed.
17556
17557 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
17558
17559         Work around a bug in both the Linux and SunOS 64-bit kernels:
17560         nanosleep mishandles sleeps for longer than 2**31 seconds.
17561         Problem reported by Frank v Waveren in
17562         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
17563         * lib/nanosleep.c (BILLION): New constant.
17564         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
17565         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
17566         implementation.
17567
17568 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
17569
17570         * modules/nanosleep (Depends-on): Add gettime.
17571
17572 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
17573         and Simon Josefsson  <jas@extundo.com>
17574         and Oskar Liljeblad  <oskar@osk.mine.nu>
17575
17576         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
17577         * gnulib-tool (func_import): New license type 'unmodifiable license
17578         text'.
17579         * modules/fdl: Use it.  Longer description.
17580         * module/gpl, module/lgpl: New files.
17581
17582 2006-08-30  Jim Meyering  <jim@meyering.net>
17583
17584         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
17585         shadowing the parameter.
17586
17587 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17588
17589         Sync from Libtool:
17590
17591         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17592
17593         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
17594         sharing with gnulib.  Report by Eric Blake.
17595
17596 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
17597
17598         * modules/isapipe: New file.
17599         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
17600
17601 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
17602
17603         * modules/configmake (Makefile.am): Add a comment, and omit
17604         the CONFIGMAKE_ prefix from generated macro names.  Suggested
17605         by Bruno Haible.
17606
17607 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
17608
17609         * m4/isapipe.m4: New file.
17610
17611 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
17612
17613         * lib/isapipe.c, lib/isapipe.h: New files.
17614
17615 2006-08-29  Jim Meyering  <jim@meyering.net>
17616
17617         * modules/configmake (Makefile.am): Make configmake.h depend on
17618         Makefile.  Otherwise, a stale configmake.h could hang around.
17619
17620 2006-08-29  Eric Blake  <ebb9@byu.net>
17621
17622         * lib/error.c (error_at_line, print_errno_message): Match libc, after
17623         resolution of upstream bug 3044.
17624
17625 2006-08-29  Bruno Haible  <bruno@clisp.org>
17626
17627         * modules/localcharset (Depends-on): Add configmake.
17628         (Makefile.am): Remove setting of LIBDIR through DEFS.
17629
17630 2006-08-29  Bruno Haible  <bruno@clisp.org>
17631
17632         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
17633         defined.
17634
17635 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
17636
17637         * modules/fcntl: New file.
17638         * modules/chdir-safer (Depends-on): Add fcntl.
17639         * modules/fts: Likewise.
17640         * modules/mkdir-p: Likewise.
17641
17642         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
17643         This undoes the most recent change, since we're now addressing the
17644         problem in a different way.
17645
17646         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
17647         into output, since the output might be called Makefile.am even
17648         if $makefile_name is something different.
17649         (func_import): Use $makefile_am rather than
17650         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
17651         empty.
17652
17653         * modules/inttypes (Files): Add m4/inttypes-h.m4.
17654
17655 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
17656
17657         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
17658         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
17659         recent change to stdint.m4, since we're now addressing the problem in a
17660         different way.
17661
17662 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
17663
17664         * m4/fcntl_h.m4: New file.
17665
17666 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
17667
17668         * lib/fcntl_.h: New file.
17669         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
17670         the fcntl module.
17671         * lib/dirchownmod.c: Likewise.
17672         * lib/fts.c: Likewise.
17673
17674         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
17675         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
17676         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
17677         just before including <inttypes.h>, to avoid circular inclusion.
17678
17679 2006-08-28  Jim Meyering  <jim@meyering.net>
17680
17681         * doc/visibility.texi: Actually read and correct the grammar of the
17682         sentence affected by yesterday's change.
17683
17684 2006-08-28  Eric Blake  <ebb9@byu.net>
17685
17686         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
17687         needs wrapper.
17688
17689 2006-08-28  Eric Blake  <ebb9@byu.net>
17690
17691         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
17692
17693 2006-08-28  Eric Blake  <ebb9@byu.net>
17694
17695         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
17696
17697 2006-08-28  Bruno Haible  <bruno@clisp.org>
17698
17699         * modules/c-strstr: New file, from GNU gettext.
17700         * MODULES.html.sh (String handling): Add c-strstr.
17701
17702 2006-08-28  Bruno Haible  <bruno@clisp.org>
17703
17704         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
17705         macros.
17706         Reported by Eric Blake.
17707
17708 2006-08-28  Bruno Haible  <bruno@clisp.org>
17709
17710         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
17711         (VASNPRINTF): Return a string of length > INT_MAX without failing.
17712         * lib/vasprintf.c: Include errno.h, limits.h.
17713         (EOVERFLOW): New fallback definition.
17714         (vasprintf): Test here whether the string length is > INT_MAX.
17715         * lib/vsnprintf.c: Include errno.h, limits.h.
17716         (EOVERFLOW): New fallback definition.
17717         (vsnprintf): Fix bug when generated string was too long for the buffer.
17718         Test here whether the string length is > INT_MAX.
17719
17720 2006-08-28  Bruno Haible  <bruno@clisp.org>
17721
17722         * lib/inttypes_.h (SCNX*): Remove definitions.
17723         Reported by Eric Blake.
17724
17725 2006-08-28  Bruno Haible  <bruno@clisp.org>
17726
17727         * lib/c-strstr.h: New file, from GNU gettext.
17728         * lib/c-strstr.c: New file, from GNU gettext.
17729
17730 2006-08-28  Bruno Haible  <bruno@clisp.org>
17731
17732         * gnulib-tool: Reorder some statements.
17733
17734 2006-08-28  Bruno Haible  <bruno@clisp.org>
17735
17736         * gnulib-tool: New option --makefile-name.
17737         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
17738         $makefile_name.
17739         (func_import): Write $makefile_name to the cache file, and read it from
17740         there unless explicitly specified. Use $makefile_name as file name
17741         instead of Makefile.am. Adjust the recommendations accordingly.
17742
17743 2006-08-28  Bruno Haible  <bruno@clisp.org>
17744
17745         * gnulib-tool (func_verify_module): Check against misapplying patch.
17746
17747 2006-08-28  Bruno Haible  <bruno@clisp.org>
17748
17749         * gnulib-tool (func_relativize, func_relconcat): New functions.
17750         Give an error if --local-dir is given with --update.
17751         Remove trailing slashes from $local_gnulib_dir.
17752         (func_import): Store the relativized $local_gnulib_dir in
17753         gnulib-cache.m4, and read it from there if not specified explicitly.
17754
17755 2006-08-28  Bruno Haible  <bruno@clisp.org>
17756
17757         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
17758         is the current directory. Respect also $local_gnulib_dir.
17759
17760 2006-08-28  Bruno Haible  <bruno@clisp.org>
17761             Simon Josefsson  <jas@extundo.com>
17762
17763         BeOS portability.
17764         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
17765
17766 2006-08-27  Jim Meyering  <jim@meyering.net>
17767
17768         * doc/visibility.texi: Remove duplicate word: "pointer".
17769
17770 2006-08-26  Bruno Haible  <bruno@clisp.org>
17771
17772         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
17773         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
17774         (Makefile.am): Create inttypes.h from inttypes_.h.
17775         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
17776
17777         * modules/imaxabs: New file.
17778
17779         * modules/imaxdiv: New file.
17780
17781 2006-08-26  Bruno Haible  <bruno@clisp.org>
17782
17783         * m4/inttypes.m4: New file.
17784         * m4/_inttypes_h.m4: Remove file.
17785         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
17786         PRI_MACROS_BROKEN.
17787         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
17788
17789         * m4/imaxabs.m4: New file.
17790
17791         * m4/imaxdiv.m4: New file.
17792
17793 2006-08-26  Bruno Haible  <bruno@clisp.org>
17794
17795         * lib/inttypes_.h: New file.
17796         * lib/inttypes.h: Remove file.
17797         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
17798
17799         * lib/imaxabs.c: New file.
17800
17801         * lib/imaxdiv.c: New file.
17802
17803 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
17804
17805         New config-h module, so that "make" output needn't be cluttered
17806         by -DHAVE_CONFIG_H.
17807         * MODULES.html.sh (Support for building libraries and executables):
17808         Add config-h.
17809         * modules/config-h: New file.
17810         * gnulib-tool (nl, sed_transform_lib_file): New vars.
17811         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
17812         the config-h module is used.
17813
17814         New configmake module, so that "make" output needn't be cluttered
17815         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
17816         * MODULES.html.sh (Support for building libraries and executables):
17817         Add configmake.
17818         * modules/configmake: New file.
17819
17820 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
17821
17822         * m4/config-h.m4: New file.
17823
17824 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17825
17826         * config/srclist.txt: Add elisp-comp.
17827
17828 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17829
17830         * MODULES.html.sh (Support for building libraries and executables):
17831         Add elisp-comp.
17832         * build-aux/elisp-comp: New file.
17833         * modules/elisp-comp: New file.
17834
17835 2006-08-24  Bruno Haible  <bruno@clisp.org>
17836
17837         * gnulib-tool (func_create_testdir): Use non-default values of
17838         sourcebase and m4base.
17839
17840 2006-08-24  Bruno Haible  <bruno@clisp.org>
17841
17842         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
17843         HTML structure.
17844
17845 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17846
17847         * modules/openat (Depends-on): Add lchown.
17848
17849 2006-08-23  Bruno Haible  <bruno@clisp.org>
17850
17851         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
17852         of gl_LOCK_EARLY instead of gl_LOCK.
17853
17854 2006-08-23  Bruno Haible  <bruno@clisp.org>
17855
17856         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
17857         on OSF/1 to no.
17858         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
17859
17860 2006-08-23  Bruno Haible  <bruno@clisp.org>
17861
17862         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
17863         as unusable.
17864
17865         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
17866         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
17867         (gl_LOCK): New macro.
17868
17869 2006-08-22  Simon Josefsson  <jas@extundo.com>
17870
17871         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
17872         to md5 module.
17873
17874 2006-08-22  Simon Josefsson  <jas@extundo.com>
17875
17876         * MODULES.html.sh: Add "Support for maintaining and release
17877         projects".
17878
17879         * build-aux/gnupload: New file, from coreutils.
17880
17881 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
17882
17883         Avoid the need for AC_LIBSOURCES in m4 macros.
17884         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
17885         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
17886         * modules/check-version (EXTRA_DIST): Add check-version.h.
17887         * modules/crc (EXTRA_DIST): Add crc.h.
17888         * modules/des (EXTRA_DIST): Add des.h.
17889         * modules/gc (EXTRA_DIST): Add gc.h.
17890         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
17891         * modules/getline (EXTRA_DIST): Add getline.h.
17892         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
17893         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
17894         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
17895         * modules/md2 (EXTRA_DIST): Add md2.h.
17896         * modules/md4 (EXTRA_DIST): Add md4.h.
17897         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
17898         * modules/read-file (EXTRA_DIST): Add read-file.h.
17899         * modules/readline (EXTRA_DIST): Add readline.h.
17900         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
17901         rijndael-api-fst.h.
17902
17903 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
17904
17905         * m4/rijndael.m4 (gl_ARCFOUR):
17906         * m4/arctwo.m4 (gl_ARCTWO):
17907         * m4/check-version.m4 (gl_CHECK_VERSION):
17908         * m4/crc.m4 (gl_CRC):
17909         * m4/des.m4 (gl_DES):
17910         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
17911         * m4/gc.m4 (gl_GC):
17912         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
17913         * m4/getline.m4 (gl_FUNC_GETLINE):
17914         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
17915         * m4/hmac-md5.m4 (gl_HMAC_MD5):
17916         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
17917         * m4/md2.m4 (gl_MD2):
17918         * m4/md4.m4 (gl_MD4):
17919         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
17920         * m4/read-file.m4 (gl_FUNC_READ_FILE):
17921         * m4/readline.m4 (gl_FUNC_READLINE):
17922         * m4/rijndael.m4 (gl_RIJNDAEL):
17923         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
17924         to get the necessary .h files and whatnot.
17925
17926 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
17927
17928         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
17929         gnulib rather than the other way around.
17930         * config/srclistvars.sh (COREUTILS): Remove.
17931
17932 2006-08-22  Jim Meyering  <jim@meyering.net>
17933
17934         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
17935
17936         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
17937
17938 2006-08-22  Eric Blake  <ebb9@byu.net>
17939
17940         * modules/regexprops-generic: New file.
17941         * MODULES.html.sh (Support for building documentation): List it.
17942
17943 2006-08-22  Eric Blake  <ebb9@byu.net>
17944
17945         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
17946         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17947         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
17948         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
17949
17950 2006-08-22  Bruno Haible  <bruno@clisp.org>
17951
17952         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
17953         and lib_LTLIBRARIES like the other lib_* variables.
17954
17955 2006-08-22  Bruno Haible  <bruno@clisp.org>
17956
17957         * build-aux/x-to-1.in: New file, from GNU gettext.
17958
17959 2006-08-22  Bruno Haible  <bruno@clisp.org>
17960
17961         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
17962         <utmpx.h> exists.
17963
17964 2006-08-22  Bruno Haible  <bruno@clisp.org>
17965
17966         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
17967         <utmpx.h> exists.
17968
17969 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
17970
17971         BeOS portability.
17972         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
17973         exist.
17974         Problem reported by Bruno Haible.
17975
17976 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
17977
17978         Avoid the need for AC_LIBSOURCES in m4 macros.
17979         * modules/acl (EXTRA_DIST): Add acl.h.
17980         * modules/argmatch (Files): Add m4/argmatch.m4.
17981         (configure.ac): Add gl_ARGMATCH.
17982         (EXTRA_DIST): Renamed from lib_SOURCES, for
17983         consistency with the other modules.  Remove argmatch.c.
17984         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
17985         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
17986         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
17987         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
17988         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
17989         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
17990         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
17991         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
17992         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
17993         * modules/closeout (EXTRA_DIST): Add closeout.h.
17994         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
17995         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
17996         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
17997         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
17998         dirname.h; remove basename.c and stripslash.c.
17999         * modules/exclude (EXTRA_DIST): Add exclude.h.
18000         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
18001         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
18002         * modules/file-type (EXTRA_DIST): Add file-type.h.
18003         * modules/filemode (EXTRA_DIST): Add filemode.h.
18004         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
18005         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
18006         * modules/fpending (EXTRA_DIST): Add __fpending.h.
18007         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
18008         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
18009         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
18010         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
18011         * modules/getdate (EXTRA_DIST): Add getdate.c.
18012         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
18013         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
18014         * modules/getpass (EXTRA_DIST): Add getpass.h.
18015         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
18016         * modules/group-member (EXTRA_DIST): Add group-member.h.
18017         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
18018         * modules/hash (EXTRA_DIST): Add hash.h.
18019         * modules/human (EXTRA_DIST): Add human.h.
18020         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
18021         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
18022         * modules/lchown (EXTRA_DIST): Add lchown.h.
18023         * modules/long-options (EXTRA_DIST): Add long-options.h.
18024         * modules/lstat (EXTRA_DIST): Add lstat.h.
18025         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
18026         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
18027         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
18028         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
18029         * modules/memxor (EXTRA_DIST): Add memxor.h.
18030         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
18031         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
18032         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
18033         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
18034         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
18035         * modules/physmem (EXTRA_DIST): Add physmem.h.
18036         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
18037         * modules/posixver (EXTRA_DIST): Add posixver.h.
18038         * modules/quote (EXTRA_DIST): Add quote.h.
18039         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
18040         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
18041         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
18042         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
18043         regex_internal.h regexec.c.
18044         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
18045         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
18046         * modules/same (EXTRA_DIST): Add same.h.
18047         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
18048         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
18049         * modules/savedir (EXTRA_DIST): Add savedir.h.
18050         * modules/sha1 (EXTRA_DIST): Add sha1.h.
18051         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
18052         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
18053         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
18054         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
18055         * modules/strdup (EXTRA_DIST): Add strdup.h.
18056         * modules/strftime (EXTRA_DIST): Add strftime.h.
18057         * modules/strndup (EXTRA_DIST): Add strndup.h.
18058         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
18059         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
18060         * modules/time_r (EXTRA_DIST): Add time_r.h.
18061         * modules/timespec (EXTRA_DIST): Add timespec.h.
18062         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
18063         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
18064         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
18065         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
18066         * modules/userspec (EXTRA_DIST): Add userspec.h.
18067         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
18068         * modules/utimens (EXTRA_DIST): Add utimens.h.
18069         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
18070         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
18071         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
18072         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
18073         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
18074         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
18075         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
18076         * modules/yesno (EXTRA_DIST): Add yesno.h.
18077
18078 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
18079
18080         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
18081
18082         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
18083         * m4/dev-ino.m4, same-inode.m4: Remove.
18084
18085         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
18086         * m4/acl.m4 (AC_FUNC_ACL):
18087         * m4/backupfile.m4 (gl_BACKUPFILE):
18088         * m4/c-strtod.m4 (gl_C99_STRTOLD):
18089         * m4/canon-host.m4 (gl_CANON_HOST):
18090         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
18091         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
18092         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
18093         * m4/cloexec.m4 (gl_CLOEXEC):
18094         * m4/close-stream.m4 (gl_CLOSE_STREAM):
18095         * m4/closeout.m4 (gl_CLOSEOUT):
18096         * m4/dirfd.m4 (gl_FUNC_DIRFD):
18097         * m4/dirname.m4 (gl_DIRNAME):
18098         * m4/exclude.m4 (gl_EXCLUDE):
18099         * m4/exitfail.m4 (gl_EXITFAIL):
18100         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
18101         * m4/file-type.m4 (gl_FILE_TYPE):
18102         * m4/filemode.m4 (gl_FILEMODE):
18103         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
18104         * m4/fpending.m4 (gl_FUNC_FPENDING):
18105         * m4/fprintftime.m4 (gl_FPRINTFTIME):
18106         * m4/fts.m4 (gl_FUNC_FTS):
18107         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
18108         * m4/getdate.m4 (gl_GETDATE):
18109         * m4/gethrxtime.m4 (gl_GETHRXTIME):
18110         * m4/getpagesize.m4 (gl_GETPAGESIZE):
18111         * m4/getpass.m4 (gl_FUNC_GETPASS):
18112         * m4/gettime.m4 (gl_GETTIME):
18113         * m4/getugroups.m4 (gl_GETUGROUPS):
18114         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
18115         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
18116         * m4/hard-locale.m4 (gl_HARD_LOCALE):
18117         * m4/hash.m4 (gl_HASH):
18118         * m4/idcache.m4 (gl_IDCACHE):
18119         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
18120         * m4/lchown.m4 (gl_FUNC_LCHOWN):
18121         * m4/long-options.m4 (gl_LONG_OPTIONS):
18122         * m4/lstat.m4 (gl_FUNC_LSTAT):
18123         * m4/md5.m4 (gl_MD5):
18124         * m4/memcasecmp.m4 (gl_MEMCASECMP):
18125         * m4/memcoll.m4 (gl_MEMCOLL):
18126         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
18127         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
18128         * m4/memxor.m4 (gl_MEMXOR):
18129         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
18130         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
18131         * m4/modechange.m4 (gl_MODECHANGE):
18132         * m4/mountlist.m4 (gl_MOUNTLIST):
18133         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
18134         * m4/openat.m4 (gl_FUNC_OPENAT):
18135         * m4/pathmax.m4 (gl_PATHMAX):
18136         * m4/physmem.m4 (gl_PHYSMEM):
18137         * m4/posixtm.m4 (gl_POSIXTM):
18138         * m4/posixver.m4 (gl_POSIXVER):
18139         * m4/quote.m4 (gl_QUOTE):
18140         * m4/quotearg.m4 (gl_QUOTEARG):
18141         * m4/readtokens.m4 (gl_READTOKENS):
18142         * m4/readutmp.m4 (gl_READUTMP):
18143         * m4/regex.m4 (gl_REGEX):
18144         * m4/safe-read.m4 (gl_SAFE_READ):
18145         * m4/safe-write.m4 (gl_SAFE_WRITE):
18146         * m4/same.m4 (gl_SAME):
18147         * m4/save-cwd.m4 (gl_SAVE_CWD):
18148         * m4/savedir.m4 (gl_SAVEDIR):
18149         * m4/settime.m4 (gl_SETTIME):
18150         * m4/sha1.m4 (gl_SHA1):
18151         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
18152         * m4/stat-macros.m4 (gl_STAT_MACROS):
18153         * m4/stat-time.m4 (gl_STAT_TIME):
18154         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
18155         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
18156         * m4/strdup.m4 (gl_FUNC_STRDUP):
18157         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
18158         * m4/strndup.m4 (gl_FUNC_STRNDUP):
18159         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
18160         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
18161         * m4/time_r.m4 (gl_TIME_R):
18162         * m4/timespec.m4 (gl_TIMESPEC):
18163         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
18164         * m4/unlinkdir.m4 (gl_UNLINKDIR):
18165         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
18166         * m4/userspec.m4 (gl_USERSPEC):
18167         * m4/utimecmp.m4 (gl_UTIMECMP):
18168         * m4/utimens.m4 (gl_UTIMENS):
18169         * m4/xalloc.m4 (gl_XALLOC):
18170         * m4/xgetcwd.m4 (gl_XGETCWD):
18171         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
18172         * m4/xreadlink.m4 (gl_XREADLINK):
18173         * m4/xstrtod.m4 (gl_XSTRTOD):
18174         * m4/yesno.m4 (gl_YESNO):
18175         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
18176         to get the necessary .h files and whatnot.
18177
18178 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
18179             Bruno Haible  <bruno@clisp.org>
18180
18181         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
18182         /bin/sh understanding of '!' conditional negation.
18183
18184 2006-08-21  Jim Meyering  <jim@meyering.net>
18185
18186         * modules/openat (Depends-on): Really alphabetize.
18187
18188         * modules/acl (Depends-on): Add error and quote.
18189
18190         * check-module (find_included_lib_files): Add at-func.c to the
18191         ok-to-include-more-than-once white list.
18192
18193         * modules/openat (Depends-on): Add lstat.  Alphabetize.
18194
18195 2006-08-21  Bruno Haible  <bruno@clisp.org>
18196
18197         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18198         Emit a pkgdata_DATA variable only if some snippets add contents to it.
18199         Reported by Martin Lambers <marlam@marlam.de>.
18200
18201 2006-08-21  Bruno Haible  <bruno@clisp.org>
18202
18203         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
18204         specify an installation location, don't emit a noinst_LIBRARIES or
18205         noinst_LTLIBRARIES assignment.
18206
18207 2006-08-21  Bruno Haible  <bruno@clisp.org>
18208
18209         BeOS portability.
18210         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
18211         BeOS has mbrtowc() but no <wctype.h>.
18212
18213 2006-08-21  Bruno Haible  <bruno@clisp.org>
18214
18215         BeOS portability.
18216         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
18217         exist.
18218
18219 2006-08-21  Bruno Haible  <bruno@clisp.org>
18220
18221         BeOS portability.
18222         * lib/mbchar.h: Include <wctype.h> only if it exists.
18223
18224 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18225
18226         Remove files that are no longer needed by their respective modules.
18227         * m4/obstack.m4: Remove.
18228         * m4/strerror_r.m4: Remove.
18229         * m4/uint32_t.m4: Remove.
18230         * m4/uintptr_t.m4: Remove.
18231         * m4/ullong_max.m4: Remove.
18232         * m4/xstrtoimax.m4: Remove.
18233         * m4/xstrtoumax.m4: Remove.
18234
18235         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
18236         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
18237         dependencies now capture this.
18238
18239         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
18240         Do not use AC_LIBSOURCES, since gnulib modules now do this.
18241         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
18242         * m4/human.m4 (gl_HUMAN): Likewise.
18243         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
18244         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
18245
18246         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
18247
18248         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
18249         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
18250         stdint.
18251         * m4/human.m4 (gl_HUMAN): Likewise.
18252         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
18253         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
18254         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
18255         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
18256         * m4/xstrtol (gl_XSTRTOL): Likewise.
18257
18258         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
18259         AC_TYPE_LONG_LONG_INT.
18260         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
18261         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
18262         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
18263         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
18264
18265         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
18266         on stdbool.
18267
18268         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
18269         (gl_PREREQ_XSTRTOUL): Remove.
18270
18271         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
18272
18273         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
18274         mode.
18275
18276 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18277
18278         Add and change modules to make it easier for coreutils to use
18279         gnulib-tool.
18280         * modules/backupfile (Files): Remove m4/d-ino.m4.
18281         (Depends-on): Add d-ino.
18282         * modules/cycle-check (Depends-on): Add stdint.
18283         (lib_SOURCES): Add cycle-check.h.
18284         * modules/d-ino: New module.
18285         * modules/d-type: New module.
18286         * modules/error (Files): Remove m4/strerror_r.m4.
18287         * modules/filemode (Files): Add m4/st_dm_mode.m4.
18288         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
18289         m4/inttypes_h.m4, m4/uintmax_t.m4.
18290         (Depends-on): Add stdint.
18291         (lib_SOURCES): Add fsusage.h.
18292         * modules/getcwd (Files): Remove d-ino.m4.
18293         (Depends-on): Add d-ino.
18294         * modules/getndelim2 (Depends-on): Add stdint.
18295         * modules/glob (Files): Remove m4/d-type.m4.
18296         (Depends-on): Add d-type.
18297         * modules/host-os: New module.
18298         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
18299         m4/inttypes_h.m4, m4/uintmax_t.m4.
18300         * Depends-on: Add stdint.
18301         (lib_SOURCES): Add human.h.
18302         * modules/inttostr (Files): Remove m4/intmax_t.m4,
18303         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
18304         m4/uintmax_t.m4, m4/ulonglong.m4.
18305         (Depends-on): Add stdint.
18306         (EXTRA_DIST): Add inttostr.h.
18307         * modules/lchmod: New module.
18308         * modules/link-follow: New module.
18309         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
18310         (Depends-on): Add lchmod.
18311         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
18312         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
18313         (Depends-on): Add stdint.
18314         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
18315         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
18316         (Depends-on): Add stdint.
18317         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
18318         * modules/perl: New module.
18319         * modules/regex (Depends-on): Add stdint.
18320         * modules/rmdir-errno: New module.
18321         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
18322         m4/intmax_t.m4.
18323         (Depends-on): Add stdint.
18324         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
18325         m4/uintmax_t.m4.
18326         (Depends-on): Add stdint.
18327         * modules/unlink-busy: New module.
18328         * modules/utimecmp (Depends-on): Add stdint.
18329         * modules/uptime: New module.
18330         * modules/winsz-ioctl: New module.
18331         * modules/winsz-termios: New module.
18332         * modules/xnanosleep (Depends-on): Add nanosleep.
18333         * modules/ullong_max: Remove.
18334         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
18335         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
18336         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
18337         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
18338         (Depends-on): Add inttypes.
18339         (lib_SOURCES): Add xstrtol.h.
18340         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
18341         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
18342         * MODULES.html.sh: Move 'assert' into the assert section.
18343         Move 'dummy' into the linking section.
18344         Remove ullong_max.
18345         Add section for compatibility checks for POSIX:2001 functions,
18346         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
18347         winsz-ioctl, and winsz-termios into it.
18348         Add lchmod.
18349         Add top-level Misc section and put host-os, perl, and uptime
18350         into it.
18351
18352 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18353
18354         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
18355         now assume the stdint module.  Do not include inttypes.h.
18356         * lib/fsusage.h: Likewise.
18357         * lib/getndelim2.c: Likewise.
18358         * lib/human.h: Likewise.
18359         * lib/inttostr.h: Likewise.
18360         * lib/obstack.c: Likewise.
18361         * lib/regex_internal.h: Likewise.
18362         * lib/tempname.c: Likewise.
18363         * lib/utimecmp.c: Likewise.
18364         * lib/xstrtol.h: Likewise.
18365
18366         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
18367
18368         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
18369         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
18370         * lib/xtime.h: Likewise.
18371
18372 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
18373
18374         * modules/openat (Files): Add lib/fchmodat.c.
18375         Fixes problem reported by Jay Youngman.
18376
18377 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
18378
18379         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
18380         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
18381
18382 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
18383             Bruno Haible  <bruno@clisp.org>
18384
18385         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
18386         and is a script that invokes bison. Tighten the code. Add comments.
18387
18388 2006-08-18  Jim Meyering  <jim@meyering.net>
18389
18390         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
18391         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
18392         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
18393         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
18394
18395 2006-08-18  Bruno Haible  <bruno@clisp.org>
18396
18397         * modules/bison-i18n: New file.
18398         * MODULES.html.sh (Internationalization functions): Add it.
18399
18400 2006-08-18  Bruno Haible  <bruno@clisp.org>
18401
18402         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
18403         sys/statvfs.h. When getmntinfo was found, check its declaration and
18404         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
18405
18406 2006-08-18  Bruno Haible  <bruno@clisp.org>
18407
18408         * m4/bison-i18n.m4: New file, from bison.
18409
18410 2006-08-18  Bruno Haible  <bruno@clisp.org>
18411
18412         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
18413         (ME_DUMMY): Treat "kernfs" as a dummy.
18414         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
18415
18416 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
18417
18418         Update from coreutils.
18419
18420         2006-08-15  Jim Meyering  <jim@meyering.net>
18421
18422         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
18423
18424         2006-01-17  Jim Meyering  <jim@meyering.net>
18425
18426         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
18427
18428         2006-01-11  Jim Meyering  <jim@meyering.net>
18429
18430         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
18431         Check for the lchmod function.
18432
18433 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
18434
18435         Update from coreutils.
18436
18437         * lib/__fpending.h: Add copyright notice.
18438         * lib/fprintftime.h: Likewise.
18439         * lib/savedir.c: Use (C) in copyright notice.
18440         * lib/savedir.h: Likewise.
18441
18442         2006-08-15  Jim Meyering  <jim@meyering.net>
18443
18444         * lib/at-func.c: New file, with the logic of all emulated at-functions.
18445         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
18446         in support of the EXPECTED_ERRNO macro.
18447         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
18448         definitions.  Instead, define the appropriate symbols and include
18449         "at-func.c".
18450         * lib/mkdirat.c (mkdirat): Likewise.
18451         * lib/fchmodat.c (fchmodat): Likewise.
18452         (ENOSYS): Remove definition.
18453         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
18454         it.  Don't include "unistd--.h" -- it wasn't ever used.
18455
18456         2006-01-17  Jim Meyering  <jim@meyering.net>
18457
18458         Rewrite fts.c not to change the current working directory,
18459         by using openat, fstatat, fdopendir, etc..
18460
18461         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
18462         (HAVE_OPENAT_SUPPORT): Define.
18463         [_LIBC] (fchdir): Don't undef or define; no longer used.
18464         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
18465         Now, this `function' always succeeds, and consumes its file descriptor
18466         parameter -- so callers must not close such FDs.  Update callers.
18467         (diropen_fd, opendirat, cwd_advance_fd): New functions.
18468         (diropen): Add parameter, SP.  Adjust all callers.
18469         Implement using diropen_fd, rather than open.
18470         (fts_open): Initialize new member, fts_cwd_fd.
18471         Remove fts_rft-setting code.
18472         (fts_close): Close fts_cwd_fd, if necessary.
18473         (__opendir2): Define in terms of opendir or opendirat,
18474         depending on whether the FST_NOCHDIR flag is set.
18475         (fts_build): Since fts_safe_changedir consumes its FD, and since
18476         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
18477         and close the dup'd file descriptor upon failure.
18478         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
18479         (fts_safe_changedir): Tweak semantics to reflect that this function
18480         now calls cwd_advance_fd and hence consumes its FD argument.
18481         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
18482         [struct FTS] (fts_rft): Remove now-unused member.
18483         [struct FTS] (fts_cycle.state): Improve comment.
18484
18485         * lib/openat.c (openat_needs_fchdir): New function.
18486         * lib/openat.h (openat_needs_fchdir): Declare it.
18487
18488 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
18489
18490         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
18491         Problem and fix reported by Pádraig Brady in
18492         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
18493
18494 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18495
18496         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
18497
18498 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18499
18500         * lib/memcoll.c (memcoll): Optimize for the common case where the
18501         arguments are bytewise equal.
18502
18503 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18504
18505         * doc/regexprops-generic.texi: Add a copyright notice.
18506
18507 2006-08-15  Bruno Haible  <bruno@clisp.org>
18508
18509         * modules/tmpdir (License): Change to LGPL.
18510
18511 2006-08-15  Bruno Haible  <bruno@clisp.org>
18512
18513         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
18514         module.
18515
18516 2006-08-14  Simon Josefsson  <jas@extundo.com>
18517
18518         * config/srclist.txt: Add gnupload.
18519
18520 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
18521
18522         Change copyright notice from LGPL 2 to GPL 2, since that's the
18523         standard form used in the gnulib repository.
18524         * tests/test-lock.c: Likewise.
18525         * tests/test-stdint.c: Likewise.
18526         * tests/test-tls.c: Likewise.
18527
18528         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
18529         prelude-manager.  User shorter URLs for GNU projects, without '?'.
18530         Add copyright notice.
18531
18532         * check-module: Add copyright notice.  Output a copyright
18533         notice if "--version" is specified.
18534         * modules/COPYING: New file.
18535         * tests/test-getaddrinfo.c: Add copyright notice.
18536         * tests/test-verify.c: Likewise.
18537
18538 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
18539
18540         Change copyright notice from LGPL 2 to GPL 2, since that's the
18541         standard form used in the gnulib repository.
18542         * lib/lock.c: LGPL -> GPL.
18543         * lib/lock.h: Likewise.
18544         * lib/strnlen1.c: Likewise.
18545         * lib/strnlen1.h: Likewise.
18546         * lib/tls.c: Likewise.
18547         * lib/tls.h: Likewise.
18548         * lib/tmpdir.c: Likewise.
18549
18550         * lib/TODO: Remove; this belongs only in coreutils.
18551
18552 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
18553
18554         Add copyright notices to long-enough files that lack them, since
18555         otherwise the files aren't clearly free.  Use the same notice that
18556         getdate.texi already uses.
18557         * doc/alloca-opt.texi: Add copyright notice.
18558         * doc/alloca.texi: Likewise.
18559         * doc/ctime.texi: Likewise.
18560         * doc/functions.texi: Likewise.
18561         * doc/gcd.texi: Likewise.
18562         * doc/gnulib-tool.texi: Likewise.
18563         * doc/inet_ntoa.texi: Likewise.
18564         * doc/visibility.texi: Likewise.
18565
18566         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
18567         * doc/quote.texi: Add copyright notice.
18568
18569         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
18570         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
18571         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
18572         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
18573         is now obsolete, and give a pointer to the Sun list.
18574         Add copyright notice.
18575
18576 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
18577
18578         * config/srclistvars.sh: Add copyright notice.
18579
18580 2006-08-14  Eric Blake  <ebb9@byu.net>
18581
18582         Import the following change from libc:
18583
18584         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
18585
18586         Upstream bug 2997.
18587         * lib/misc/error.c: Add space between program name and message if file
18588         name is missing.
18589
18590 2006-08-12  Karl Berry  <karl@gnu.org>
18591
18592         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
18593         remove, these originate in gnulib now.
18594
18595 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18596
18597         * doc/Makefile (standards.info standards.html standards.dvi):
18598         Also depend on make-stds.texi.
18599
18600 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
18601
18602         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
18603         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
18604
18605         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
18606         in wchar_t.  Problem reported by Eric Blake.
18607
18608         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
18609         LEN is smaller than SIZE.  Suggested by Bruno Haible.
18610         Also, help the compiler to keep LEN in a register.
18611
18612 2006-08-11  Eric Blake  <ebb9@byu.net>
18613
18614         * users.txt: Sort.  Add tar.
18615
18616 2006-08-11  Bruno Haible  <bruno@clisp.org>
18617
18618         * users.txt: New file.
18619
18620 2006-08-11  Bruno Haible  <bruno@clisp.org>
18621
18622         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
18623         before <wchar.h>. Needed for OSF/1 and BSD/OS.
18624
18625 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18626
18627         * modules/snprintf (Depends-on): Remove minmax.
18628         (Maintainer): Add self and Bruno.
18629
18630 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18631
18632         * lib/.cppi-disable: Add snprintf.h, socket_.h.
18633         * lib/snprintf.c: Include <errno.h> and <limits.h>.
18634         (EOVERFLOW): Define if the system does not.
18635         Do not include "minmax.h"; it wasn't used.
18636         (snprintf): Don't assume size_t promotes to an unsigned type.
18637         Fix bug when generated string was too long for the buffer: the
18638         buffer's contents are supposed to be the initial prefix of the
18639         output.  Don't assume vasnprintf returns EOVERFLOW if the size
18640         exceeds INT_MAX; do the check ourselves.
18641
18642         Import the following changes from libc:
18643
18644         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
18645
18646         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
18647         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
18648         set wc to the byte which couldn't be converted.
18649         (re_string_reconstruct): Don't clear valid_raw_len before calling
18650         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
18651         tip_context using re_string_context_at.
18652
18653         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
18654
18655         * lib/posix/regex.h: g++ still cannot handled [restrict].
18656
18657         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
18658
18659         * lib/posix/regex.h: Remove special handling for VMS.
18660
18661 2006-08-10  Jim Meyering  <jim@meyering.net>
18662
18663         * modules/same-inode: New module.
18664         * modules/dev-ino: New module.
18665         * modules/cycle-check: Depend on these modules, rather than simply
18666         including their .h files.
18667         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
18668         required via m4/cycle-check.m4.
18669         * modules/same: Depend on new same-inode module, rather than
18670         including same-inode.h.
18671         * modules/chdir-safer: New file.
18672
18673         * modules/chown (Depends-on): Add stat-macros.
18674
18675 2006-08-10  Jim Meyering  <jim@meyering.net>
18676
18677         * m4/cycle-check.m4: New file.
18678         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
18679         * m4/dev-ino.m4, m4/same-inode.m4: New files.
18680
18681 2006-08-10  Eric Blake  <ebb9@byu.net>
18682
18683         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
18684         in from original proposal.
18685
18686 2006-08-10  Eric Blake  <ebb9@byu.net>
18687         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18688
18689         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
18690         namespace.
18691
18692 2006-08-10  Bruno Haible  <bruno@clisp.org>
18693
18694         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
18695         as well.
18696
18697 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
18698
18699         Sync from coreutils.
18700
18701         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
18702
18703         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
18704         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
18705
18706 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
18707
18708         * modules/restrict: Remove; no longer needed now that we assume
18709         Autoconf 2.59 or later.
18710         * MODULES.html.sh: Remove 'restrict'.
18711         * modules/argp (Depends-on): Remove 'restrict'.
18712         * modules/base64 (Depends-on): Likewise.
18713         * modules/gc (Depends-on): Likewise.
18714         * modules/getaddrinfo (Depends-on): Likewise.
18715         * modules/glob (Depends-on): Likewise.
18716         * modules/inet_ntop (Depends-on): Likewise.
18717         * modules/inet_pton (Depends-on): Likewise.
18718         * modules/memxor (Depends-on): Likewise.
18719         * modules/regex (Depends-on): Likewise.
18720         * modules/strtok_r (Depends-on): Likewise.
18721         * modules/time_r (Depends-on): Likewise.
18722
18723 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
18724
18725         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
18726         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
18727         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
18728         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
18729         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
18730         * m4/memxor.m4 (gl_MEMXOR): Likewise.
18731         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
18732         gl_C_RESTRICT replaced by AC_C_RESTRICT.
18733
18734         Merge from coreutils.
18735         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
18736         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
18737         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18738         * m4/time_r.m4 (gl_TIME_R): Likewise.
18739
18740 2006-08-09  Karl Berry  <karl@gnu.org>
18741
18742         * config/srclist.txt: no more gettext-tools, per Bruno.
18743
18744 2006-08-08  Eric Blake  <ebb9@byu.net>
18745
18746         * modules/verror: New module.
18747         * MODULES.html.sh: Document it.
18748
18749 2006-08-08  Eric Blake  <ebb9@byu.net>
18750
18751         * lib/verror.h, lib/verror.c: New files.
18752
18753 2006-08-08  Eric Blake  <ebb9@byu.net>
18754
18755         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
18756         verror_at_line output complies with GNU Coding Standards even when
18757         file is NULL.
18758
18759 2006-08-07  Bruno Haible  <bruno@clisp.org>
18760
18761         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
18762         versions of AIX.
18763         Reported by Ralf Wildenhues.
18764
18765 2006-08-07  Bruno Haible  <bruno@clisp.org>
18766
18767         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
18768         in an AC_DEFUN. Needed so that the autoconf snippets can use
18769         AC_REQUIRE.
18770
18771 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18772
18773         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18774         Initialize pkgdata_DATA.
18775         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
18776         overriding it.
18777
18778 2006-08-06  Eric Blake  <ebb9@byu.net>
18779
18780         * lib/error.h: Fold in some upstream changes from glibc.
18781         * lib/error.c: Likewise.
18782
18783 2006-08-04  Bruno Haible  <bruno@clisp.org>
18784
18785         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18786         Make the mostlyclean-local rule depend on mostlyclean-generic.
18787         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
18788
18789 2006-07-31  Bruno Haible  <bruno@clisp.org>
18790
18791         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
18792         <stdlib.h>, <string.h>.
18793
18794 2006-07-30  Bruno Haible  <bruno@clisp.org>
18795
18796         * modules/readlink (License): Change to LGPL.
18797
18798 2006-07-30  Bruno Haible  <bruno@clisp.org>
18799
18800         * modules/javaversion (Makefile.am): Distribute javaversion.java and
18801         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
18802         set PKGDATADIR to point to it.
18803
18804 2006-07-30  Bruno Haible  <bruno@clisp.org>
18805
18806         * modules/csharpexec (configure.ac): Comment out macro invocation.
18807         * modules/javaexec (configure.ac): Likewise.
18808         * modules/javacomp-script (configure.ac): Likewise.
18809
18810         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
18811
18812 2006-07-30  Bruno Haible  <bruno@clisp.org>
18813
18814         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
18815         linked-list.
18816
18817 2006-07-30  Bruno Haible  <bruno@clisp.org>
18818
18819         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
18820
18821 2006-07-30  Bruno Haible  <bruno@clisp.org>
18822
18823         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18824         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
18825         get removed.
18826
18827 2006-07-29  Bruno Haible  <bruno@clisp.org>
18828
18829         Make it possible for gnulib-tool to work with locally modified or
18830         augmented gnulib repositories.
18831         * gnulib-tool (func_usage): Document --local-dir option.
18832         (local_gnulib_dir): New variable.
18833         Handle --local-dir option.
18834         (func_lookup_file): New function.
18835         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
18836         (func_get_description, func_get_filelist, func_get_description,
18837         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
18838         func_get_automake_snippet, func_get_include_directive,
18839         func_get_license, func_get_maintainer): Use func_lookup_file.
18840         (func_import, func_create_testdir): Use func_lookup_file.
18841
18842 2006-07-29  Bruno Haible  <bruno@clisp.org>
18843
18844         * modules/setenv (Depends-on): Add unistd.
18845
18846 2006-07-29  Bruno Haible  <bruno@clisp.org>
18847
18848         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
18849
18850 2006-07-29  Bruno Haible  <bruno@clisp.org>
18851
18852         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
18853
18854 2006-07-29  Bruno Haible  <bruno@clisp.org>
18855
18856         * gnulib-tool (import, update): If there is no Makefile.am, look at
18857         aclocal.m4, instead of bailing out.
18858
18859 2006-07-29  Bruno Haible  <bruno@clisp.org>
18860
18861         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
18862         Categorize the options by when they are useful.
18863
18864 2006-07-29  Bruno Haible  <bruno@clisp.org>
18865
18866         * gnulib-tool (func_usage): Document option --no-libtool.
18867         Handle option --no-libtool.
18868         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
18869         for changed semantics of $libtool variable.
18870         (func_import): Likewise. If libtool is not used, show this through
18871         an option --no-libtool.
18872         (func_create_testdir): Update.
18873
18874 2006-07-29  Bruno Haible  <bruno@clisp.org>
18875
18876         * gnulib-tool (func_import): Extend error message about missing
18877         --doc-base.
18878
18879 2006-07-29  Bruno Haible  <bruno@clisp.org>
18880
18881         * gnulib-tool (func_import): Don't create the $docbase directory if
18882         there is no file to store there.
18883
18884 2006-07-29  Bruno Haible  <bruno@clisp.org>
18885
18886         * gnulib-tool (autoconf_minversion): If a --dir option is given and
18887         relevant, look for configure.ac there, not in the current directory.
18888         Also use a simple search for AC_PREREQ, not "autoconf --trace".
18889
18890 2006-07-29  Bruno Haible  <bruno@clisp.org>
18891
18892         * gnulib-tool (SORT): New variable.
18893         (func_usage): Undocument --assume-autoconf option.
18894         Remove --assume-autoconf option handling.
18895         (autoconf_minversion): Determine from the contents of configure.ac.
18896         (func_import): Remove autoconf_minversion handling.
18897         Suggested by Eric Blake.
18898
18899 2006-07-29  Bruno Haible  <bruno@clisp.org>
18900
18901         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
18902
18903 2006-07-29  Bruno Haible  <bruno@clisp.org>
18904
18905         * config/srclist.txt (*setenv.[ch]): Remove rules.
18906
18907 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18908
18909         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
18910
18911 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18912
18913         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
18914         arpa/inet.h.
18915
18916 2006-07-28  Simon Josefsson  <jas@extundo.com>
18917
18918         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
18919         * modules/inet_pton (Depends-on): Likewise.
18920
18921 2006-07-28  Simon Josefsson  <jas@extundo.com>
18922
18923         * m4/netinet_in_h.m4: New file.
18924
18925 2006-07-28  Simon Josefsson  <jas@extundo.com>
18926
18927         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
18928         #include's.
18929
18930 2006-07-28  Simon Josefsson  <jas@extundo.com>
18931
18932         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
18933         #include's.
18934
18935 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
18936
18937         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
18938         setgid on directories only if they set these bits.
18939         * lib/modechange.h: Remove obsolete comment about masks.
18940
18941 2006-07-28  Eric Blake  <ebb9@byu.net>
18942
18943         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
18944         macro expansion.
18945
18946 2006-07-28  Bruno Haible  <bruno@clisp.org>
18947
18948         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
18949
18950 2006-07-28  Bruno Haible  <bruno@clisp.org>
18951
18952         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
18953
18954 2006-07-28  Bruno Haible  <bruno@clisp.org>
18955
18956         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
18957         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
18958         Define fallbacks.
18959         Avoids link error on FreeBSD 4.x.
18960         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18961
18962         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
18963         encoding.
18964         * lib/mbswidth.c (iswcntrl): Likewise.
18965
18966 2006-07-27  Bruno Haible  <bruno@clisp.org>
18967
18968         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
18969         test.
18970
18971 2006-07-27  Bruno Haible  <bruno@clisp.org>
18972
18973         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
18974         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
18975         defined.
18976
18977 2006-07-26  Eric Blake  <ebb9@byu.net>
18978
18979         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
18980
18981 2006-07-26  Eric Blake  <ebb9@byu.net>
18982
18983         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
18984         like mingw that lack mkstemp.
18985         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
18986         avoid compilation warning on mingw.
18987
18988 2006-07-26  Bruno Haible  <bruno@clisp.org>
18989
18990         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
18991         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
18992         INT_FAST*_MIN, INTPTR_MIN.
18993
18994 2006-07-25  Bruno Haible  <bruno@clisp.org>
18995
18996         * modules/version-etc (Depends-on): Add stdarg.
18997
18998 2006-07-25  Bruno Haible  <bruno@clisp.org>
18999
19000         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
19001         complex commands.
19002
19003 2006-07-25  Bruno Haible  <bruno@clisp.org>
19004
19005         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
19006         defined in <stdarg.h> or config.h.
19007
19008 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
19009
19010         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
19011         (gl_STDIO_SAFER): Remove.
19012
19013 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
19014
19015         * MODULES.html.sh (File stream based Input/Output):
19016         Add fopen-safer, tmpfile-safer; remove stdio-safer.
19017         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
19018         * modules/fopen-safer, modules/tmpfile-safer: New files.
19019         * modules/stdio-safer: Remove.
19020
19021 2006-07-24  Bruno Haible  <bruno@clisp.org>
19022
19023         * modules/tmpdir: New file.
19024         * MODULES.html.sh (File system functions): Add it.
19025
19026 2006-07-24  Bruno Haible  <bruno@clisp.org>
19027
19028         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
19029         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
19030
19031 2006-07-24  Bruno Haible  <bruno@clisp.org>
19032
19033         * modules/clean-temp: New file.
19034
19035 2006-07-24  Bruno Haible  <bruno@clisp.org>
19036
19037         * m4/tmpdir.m4: New file, from GNU gettext.
19038
19039 2006-07-24  Bruno Haible  <bruno@clisp.org>
19040
19041         * lib/tmpdir.h: New file, from GNU gettext.
19042         * lib/tmpdir.c: New file, from GNU gettext.
19043
19044 2006-07-24  Bruno Haible  <bruno@clisp.org>
19045
19046         * lib/clean-temp.h: New file, from GNU gettext.
19047         * lib/clean-temp.c: New file, from GNU gettext.
19048
19049 2006-07-23  Eric Blake  <ebb9@byu.net>
19050
19051         * modules/stdio-safer (Files): Add tmpfile-safer.c.
19052         (Depends-on): Add binary-io.
19053
19054 2006-07-23  Eric Blake  <ebb9@byu.net>
19055
19056         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
19057
19058 2006-07-23  Eric Blake  <ebb9@byu.net>
19059
19060         * lib/tmpfile-safer.c: New file.
19061         * lib/stdio-safer.h (fopen_safer): Add prototype.
19062         * lib/stdio--.h (tmpfile): Make safer.
19063
19064 2006-07-23  Bruno Haible  <bruno@clisp.org>
19065
19066         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
19067         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
19068         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
19069         gl_linked_remove_at): Use it.
19070
19071 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19072         and Simon Josefsson <jas@extundo.com>
19073
19074         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
19075
19076         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
19077
19078 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
19079
19080         * modules/close-stream: New file.
19081         * modules/closeout (Description): Make it clear that it exits
19082         with a diagnostic on error.
19083         (Depends-on): Add close-stream.  Remove fpending, stdbool.
19084         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
19085
19086 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
19087
19088         * m4/close-stream.m4: New file.
19089
19090 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
19091
19092         * lib/close-stream.c, lib/close-stream.h: New files.
19093
19094 2006-07-22  Bruno Haible  <bruno@clisp.org>
19095
19096         Merge from GNU gettext 0.15.
19097
19098         2006-05-01  Bruno Haible  <bruno@clisp.org>
19099
19100                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
19101
19102         2006-07-22  Bruno Haible  <bruno@clisp.org>
19103
19104                 * modules/javaversion: New file.
19105                 * MODULES.html.sh (Java): Add javaversion.
19106
19107         2006-03-12  Bruno Haible  <bruno@clisp.org>
19108
19109                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
19110
19111         2005-12-04  Bruno Haible  <bruno@clisp.org>
19112
19113                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
19114                 (untested).
19115
19116         2006-06-21  Bruno Haible  <bruno@clisp.org>
19117
19118                 Avoid warnings from recent versions of mcs.
19119                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
19120                 -o, -L, -r any more. Use options documented since mcs-1.0
19121                 instead. Similarly for -g.
19122
19123         2005-12-04  Bruno Haible  <bruno@clisp.org>
19124
19125                 * build-aux/csharpcomp.sh.in: Suffix for resources is
19126                 .resources, not .resource.
19127
19128         2005-07-09  Bruno Haible  <bruno@clisp.org>
19129
19130                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
19131                 add a .dll suffix.
19132                 Reported by Mark Junker <mjscod@gmx.de>.
19133
19134         2006-07-22  Bruno Haible  <bruno@clisp.org>
19135
19136                 * modules/gettext: Upgrade to gettext-0.15.
19137                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
19138                 m4/visibility.m4.
19139                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
19140
19141 2006-07-22  Bruno Haible  <bruno@clisp.org>
19142
19143         Merge from GNU gettext 0.15.
19144
19145         2006-03-25  Bruno Haible  <bruno@clisp.org>
19146
19147                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
19148
19149         2006-07-21  Bruno Haible  <bruno@clisp.org>
19150
19151                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
19152                 "1.1".
19153
19154         2006-05-09  Bruno Haible  <bruno@clisp.org>
19155
19156                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
19157                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
19158                 for the conftestver execution.
19159
19160         2006-05-01  Bruno Haible  <bruno@clisp.org>
19161
19162                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
19163                 optional target-version argument. Verify that the compiler
19164                 groks source of the specified source-version, or add -source
19165                 option as necessary. Verify that the compiler produces
19166                 bytecode in the specified target-version, or add -target and
19167                 -source options as necessary. Make the result of the test
19168                 available as variable CONF_JAVAC. Also log error output in
19169                 config.log.
19170
19171         2006-03-11  Bruno Haible  <bruno@clisp.org>
19172
19173                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
19174
19175         2006-05-09  Bruno Haible  <bruno@clisp.org>
19176
19177                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
19178                 CLASSPATH_SEPARATOR to a semicolon.
19179
19180         2006-03-12  Bruno Haible  <bruno@clisp.org>
19181
19182                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
19183                 available as variable CONF_JAVA, for subsequent autoconf
19184                 tests. Also log error output in config.log.
19185
19186         2006-07-19  Bruno Haible  <bruno@clisp.org>
19187
19188                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
19189                 that getline works on glibc2 systems. Needed to avoid trouble
19190                 in relocatable.c.
19191                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
19192
19193         2005-12-04  Bruno Haible  <bruno@clisp.org>
19194
19195                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
19196                 launcher (untested).
19197
19198         2005-12-04  Bruno Haible  <bruno@clisp.org>
19199
19200                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
19201
19202         2006-07-22  Bruno Haible  <bruno@clisp.org>
19203
19204                 * gettext.m4: Update from GNU gettext-0.15.
19205                 * nls.m4: Likewise.
19206                 * po.m4: Likewise.
19207                 * inttypes-pri.m4: Likewise.
19208                 * inttypes-h.m4: Renamed from inttypes.m4.
19209                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
19210
19211 2006-07-22  Bruno Haible  <bruno@clisp.org>
19212
19213         Merge from GNU gettext 0.15.
19214
19215         2005-07-05  Bruno Haible  <bruno@clisp.org>
19216
19217                 * printf-args.c (printf_fetchargs): Work around broken
19218                 definition of wint_t on mingw.
19219
19220         2005-02-12  Bruno Haible  <bruno@clisp.org>
19221
19222                 * xallocsa.h: Add extern "C" for C++.
19223
19224         2006-05-17  Bruno Haible  <bruno@clisp.org>
19225
19226                 Cygwin portability.
19227                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
19228
19229         2006-04-30  Bruno Haible  <bruno@clisp.org>
19230
19231                 * progreloc.c: Include <mach-o/dyld.h> if available.
19232                 (find_executable): Use _NSGetExecutablePath when possible.
19233
19234         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
19235
19236                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
19237                 function.
19238
19239         2005-12-29  Bruno Haible  <bruno@clisp.org>
19240
19241                 * progreloc.c (set_program_name_and_installdir): Fix
19242                 compilation error.
19243
19244         2005-12-04  Bruno Haible  <bruno@clisp.org>
19245
19246                 Cygwin portability.
19247                 * progreloc.c: Include <windows.h> also on Cygwin.
19248                 (find_executable): Add support for Cygwin.
19249                 (set_program_name_and_installdir): Handle also platforms with
19250                 nonempty EXEEXT.
19251
19252         2006-07-11  Bruno Haible  <bruno@clisp.org>
19253
19254                 * javacomp.c: Fix a comment.
19255                 Reported by Jim Meyering.
19256
19257         2006-04-30  Bruno Haible  <bruno@clisp.org>
19258
19259                 * javacomp.h (compile_java_class): Add source_version,
19260                 target_version arguments.
19261                 * javacomp.c: Rewritten to choose only a compiler that
19262                 respects the specified source_version and target_version.
19263
19264         2006-06-27  Bruno Haible  <bruno@clisp.org>
19265
19266                 Assume correct S_ISDIR macro.
19267                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
19268
19269         2006-07-22  Bruno Haible  <bruno@clisp.org>
19270
19271                 * javaversion.h: New file, from GNU gettext.
19272                 * javaversion.c: New file, from GNU gettext.
19273                 * javaversion.java: New file, from GNU gettext.
19274                 * javaversion.class: New file, from GNU gettext.
19275
19276         2006-05-17  Bruno Haible  <bruno@clisp.org>
19277
19278                 Cygwin portability.
19279                 * javaexec.c (execute_java_class): Test for jview program
19280                 also on Cygwin.
19281
19282         2006-04-09  Bruno Haible  <bruno@clisp.org>
19283
19284                 * fatal-signal.c: Don't include string.h.
19285                 (at_fatal_signal): Use a copying loop instead of memcpy.
19286
19287         2005-12-04  Bruno Haible  <bruno@clisp.org>
19288
19289                 * csharpexec.c: Add support for 'clix' launcher (untested).
19290                 (execute_csharp_using_sscli): New function.
19291                 (execute_csharp_program): Call it.
19292
19293         2006-06-21  Bruno Haible  <bruno@clisp.org>
19294
19295                 Avoid warnings from recent versions of mcs.
19296                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
19297                 -o, -L, -r any more. Use options documented since mcs-1.0
19298                 instead. Similarly for -g.
19299
19300         2005-07-09  Bruno Haible  <bruno@clisp.org>
19301
19302                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
19303                 add a .dll suffix.
19304                 Reported by Mark Junker <mjscod@gmx.de>.
19305
19306         2006-06-17  Bruno Haible  <bruno@clisp.org>
19307
19308                 * config.charset: Update for NetBSD 3.0.
19309
19310         2006-05-17  Bruno Haible  <bruno@clisp.org>
19311
19312                 Cygwin portability.
19313                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
19314
19315         2006-05-16  Bruno Haible  <bruno@clisp.org>
19316
19317                 * localcharset.c [CYGWIN]: Include <windows.h>.
19318                 (get_charset_aliases): For Cygwin, return the same CPxxx
19319                 aliases list as under WIN32.
19320                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
19321                 the environment variables. Fall back to GetACP().
19322
19323         2006-04-05  Bruno Haible  <bruno@clisp.org>
19324
19325                 * config.charset: Update Juan Manuel Guerrero's address.
19326
19327         2005-02-12  Bruno Haible  <bruno@clisp.org>
19328
19329                 * allocsa.h: Add extern "C" for C++.
19330
19331         2005-02-10  Bruno Haible  <bruno@clisp.org>
19332
19333                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
19334                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
19335
19336         2006-07-22  Bruno Haible  <bruno@clisp.org>
19337
19338                 * gettext.h: Update to GNU gettext-0.15.
19339
19340 2006-07-22  Bruno Haible  <bruno@clisp.org>
19341
19342         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
19343         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
19344         lib-prefix.m4, longdouble.m4, ssize_t.m4.
19345
19346 2006-07-21  Eric Blake  <ebb9@byu.net>
19347
19348         * modules/stdlib-safer: New file.
19349         * MODULES.html.sh (File stream based Input/Output): Add
19350         stdlib-safer.
19351
19352 2006-07-21  Eric Blake  <ebb9@byu.net>
19353
19354         * lib/stdlib-safer.h: New file from coreutils, required by
19355         stdlib--.h.
19356
19357 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
19358
19359         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
19360
19361 2006-07-20  Bruno Haible  <bruno@clisp.org>
19362
19363         * gnulib-tool: Recognize new option --assume-autoconf.
19364         (autoconf_minversion): New variable.
19365         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
19366
19367 2006-07-20  Bruno Haible  <bruno@clisp.org>
19368
19369         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
19370
19371 2006-07-19  Derek R. Price  <derek@ximbiot.com>
19372
19373         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
19374         Reindent and repaginate.
19375
19376 2006-07-19  Derek Price  <derek@ximbiot.com>
19377
19378         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
19379         Correct grammar.
19380
19381 2006-07-17  Bruno Haible  <bruno@clisp.org>
19382
19383         * modules/list: New file.
19384         * modules/array-list: New file.
19385         * modules/carray-list, modules/carray-list-tests: New files.
19386         * modules/linked-list, modules/linked-list-tests: New files.
19387         * modules/avltree-list, modules/avltree-list-tests: New files.
19388         * modules/rbtree-list, modules/rbtree-list-tests: New files.
19389         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
19390         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
19391         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
19392         * modules/oset: New file.
19393         * modules/array-oset: New file.
19394         * modules/avltree-oset, modules/avltree-oset-tests: New files.
19395         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
19396         * tests/test-carray_list.c: New file.
19397         * tests/test-linked_list.c: New file.
19398         * tests/test-avltree_list.c: New file.
19399         * tests/test-rbtree_list.c: New file.
19400         * tests/test-linkedhash_list.c: New file.
19401         * tests/test-avltreehash_list.c: New file.
19402         * tests/test-rbtreehash_list.c: New file.
19403         * tests/test-avltree_oset.c: New file.
19404         * tests/test-rbtree_oset.c: New file.
19405         * MODULES.html.sh (Container data structures): New section.
19406
19407 2006-07-17  Bruno Haible  <bruno@clisp.org>
19408
19409         * m4/gl_list.m4: New file.
19410
19411 2006-07-17  Bruno Haible  <bruno@clisp.org>
19412
19413         * lib/gl_list.h: New file.
19414         * lib/gl_list.c: New file.
19415         * lib/gl_array_list.h: New file.
19416         * lib/gl_array_list.c: New file.
19417         * lib/gl_carray_list.h: New file.
19418         * lib/gl_carray_list.c: New file.
19419         * lib/gl_linked_list.h: New file.
19420         * lib/gl_linked_list.c: New file.
19421         * lib/gl_anylinked_list1.h: New file.
19422         * lib/gl_anylinked_list2.h: New file.
19423         * lib/gl_avltree_list.h: New file.
19424         * lib/gl_avltree_list.c: New file.
19425         * lib/gl_anyavltree_list1.h: New file.
19426         * lib/gl_anyavltree_list2.h: New file.
19427         * lib/gl_rbtree_list.h: New file.
19428         * lib/gl_rbtree_list.c: New file.
19429         * lib/gl_anyrbtree_list1.h: New file.
19430         * lib/gl_anyrbtree_list2.h: New file.
19431         * lib/gl_anytree_list1.h: New file.
19432         * lib/gl_anytree_list2.h: New file.
19433         * lib/gl_linkedhash_list.h: New file.
19434         * lib/gl_linkedhash_list.c: New file.
19435         * lib/gl_anyhash_list1.h: New file.
19436         * lib/gl_anyhash_list2.h: New file.
19437         * lib/gl_avltreehash_list.h: New file.
19438         * lib/gl_avltreehash_list.c: New file.
19439         * lib/gl_rbtreehash_list.h: New file.
19440         * lib/gl_rbtreehash_list.c: New file.
19441         * lib/gl_anytreehash_list1.h: New file.
19442         * lib/gl_anytreehash_list2.h: New file.
19443
19444         * lib/gl_oset.h: New file.
19445         * lib/gl_oset.c: New file.
19446         * lib/gl_array_oset.h: New file.
19447         * lib/gl_array_oset.c: New file.
19448         * lib/gl_avltree_oset.h: New file.
19449         * lib/gl_avltree_oset.c: New file.
19450         * lib/gl_rbtree_oset.h: New file.
19451         * lib/gl_rbtree_oset.c: New file.
19452         * lib/gl_anytree_oset.h: New file.
19453
19454 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
19455
19456         * m4/mkancesdirs.m4: New file.
19457         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
19458         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
19459         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
19460         it.
19461
19462 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
19463
19464         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
19465         * lib/mkancesdirs.h: New files.
19466         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
19467         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
19468         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
19469         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
19470         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
19471         callers changed.  Revamp internals significantly, by not
19472         attempting to create directories that are temporarily more
19473         permissive than the final results.  Do not attempt to use
19474         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
19475         This removes some race conditions, fixes some bugs, and simplifies
19476         things.  Use new dirchownmod function to do owner and mode changes.
19477         * lib/mkdir-p.h: Likewise.
19478         * lib/modechange.c (octal_to_mode): New function.
19479         (struct mode_change): New member mentioned.
19480         (make_node_op_equals): New arg mentioned.  All callers changed.
19481         (mode_compile): Keep track of which mode bits the user has explicitly
19482         mentioned.
19483         (mode_adjust): New arg DIR, so that we implement the X op correctly.
19484         New arg PMODE_BITS, to keep track of which mode bits the user
19485         mentioned; it treats S_ISUID and S_ISGID speciall.
19486         All callers changed.
19487         * lib/modechange.h: Likewise.
19488
19489 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
19490
19491         * MODULES.html.sh: Add mkancestors.
19492         * modules/mkancesdirs: New module.
19493         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
19494         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
19495         The chdir-safer and afs files are now orphans; I'll remove them
19496         unless someone speaks up.
19497         Add lib/dirchownmod.c, lib/dirchownmod.h.
19498         (Depends-on): Remove alloca, chown, save-cwd, dirname.
19499         Add lchown, mkancesdirs.
19500         (Maintainer): Add self.
19501
19502 2006-07-15  Karl Berry  <karl@gnu.org>
19503
19504         * gnulib-tool: help message wording/arrangement.
19505
19506 2006-07-14  Simon Josefsson  <jas@extundo.com>
19507
19508         * doc/gnulib.texi (Libtool and Windows): New section.
19509
19510 2006-07-12  Simon Josefsson  <jas@extundo.com>
19511
19512         * modules/gendocs (License): Fix license, approved by Karl.
19513
19514 2006-07-12  Eric Blake  <ebb9@byu.net>
19515
19516         * MODULES.html.sh: Add gendocs.
19517
19518 2006-07-11  Eric Blake  <ebb9@byu.net>
19519
19520         * modules/fdl: New module, to install doc/fdl.texi.
19521         * MODULES.html.sh: Add new section for documentation modules.
19522         * gnulib-tool: Avoid space-tab.
19523         (--doc-base): New option, to manage files from doc.
19524
19525 2006-07-11  Eric Blake  <ebb9@byu.net>
19526
19527         * m4/absolute-header.m4: Fix comments to match recent change.
19528
19529 2006-07-11  Eric Blake  <ebb9@byu.net>
19530
19531         * gnulib-tool: List --doc-base before --tests-base.
19532
19533 2006-07-11  Derek R. Price  <derek@ximbiot.com>
19534
19535         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
19536
19537 2006-07-11  Bruno Haible  <bruno@clisp.org>
19538
19539         * README: Mention where to put documentation.
19540
19541 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19542
19543         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
19544
19545 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
19546
19547         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
19548         to stdint.m4.
19549
19550 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
19551
19552         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
19553         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
19554         "no/such/file/stdint.h" when there is no such file, so that
19555         the resulting C code can be parsed by dodgy compilers.
19556         Problems reported by Bob Proulx.
19557
19558 2006-07-10  Derek R. Price  <derek@ximbiot.com>
19559
19560         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
19561         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
19562         macros into the GNU _D_EXACT_NAMLEN.
19563         * lib/savedir.c:  Likewise.
19564         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
19565
19566 2006-07-10  Derek R. Price  <derek@ximbiot.com>
19567         and Paul Eggert  <eggert@cs.ucla.edu>
19568
19569         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
19570         * m4/savedir.m4:
19571         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
19572         macros into the GNU _D_EXACT_NAMLEN.
19573
19574 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
19575
19576         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
19577         around the absolute name, to work around a problem with the HP-UX
19578         11.23 native C compiler, reported by Bob Proulx.
19579
19580 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
19581
19582         * doc/maintain.texi, make-stds.texi: Sync from
19583         <http://savannah.gnu.org/projects/gnustandards>.
19584
19585 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
19586
19587         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
19588
19589 2006-07-09  Jim Meyering  <jim@meyering.net>
19590
19591         * m4/glob.m4: Remove a doubled word in a comment.
19592
19593 2006-07-09  Jim Meyering  <jim@meyering.net>
19594
19595         * lib/argp-pv.c: Remove a doubled word in a comment.
19596         * lib/check-version.c (check_version): Likewise.
19597         * lib/javacomp.c (compile_java_class): Likewise.
19598
19599 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
19600
19601         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
19602         for the benefit of people using Autoconf 2.60.  If you want to
19603         support older Autoconf versions you can copy m4/onceonly_2_57.m4
19604         (or m4/onceonly.m4, if pre-2.57) manually.
19605
19606 2006-07-08  Jim Meyering  <jim@meyering.net>
19607
19608         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
19609         comment.
19610         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
19611         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
19612         comment.
19613
19614 2006-07-08  Jim Meyering  <jim@meyering.net>
19615
19616         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
19617
19618 2006-07-07  Simon Josefsson  <jas@extundo.com>
19619
19620         * tests/test-crc.c: Change expected crc value, the test vector
19621         were probably computed using the old broken crc.c?
19622
19623 2006-07-06  Simon Josefsson  <jas@extundo.com>
19624
19625         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
19626         now the canonical place for the M4 file).
19627
19628         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
19629         from the sys_socket dependency now.
19630
19631         * modules/inet_pton (Files): Ditto.
19632
19633         * modules/inet_ntop (Files): Ditto.
19634
19635 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
19636
19637         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
19638         not gl_PREREQ_GETUSERSHELL.
19639
19640 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19641
19642         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
19643         with only one argument, for Autoconf 2.60.
19644         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
19645         expand to nothing, so add a shell command to avoid syntax error.
19646         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
19647
19648 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19649
19650         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
19651
19652 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19653
19654         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
19655         no longer needed.  Check for isblank decl.
19656         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
19657         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
19658         of existence.
19659
19660 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19661
19662         * lib/getloadavg.c: Use __VMS, not VMS.
19663         * lib/getopt.c: Likewise.
19664         * lib/getpagesize.h: Likewise.
19665         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
19666         and probably does not work.
19667
19668 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19669
19670         * lib/.cppi-disable: Add wcwidth.
19671         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
19672         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
19673         (ISGRAPH): Remove.  All uses changed to isgraph.
19674         (FOLD) [!defined _LIBC]: Remove special case.
19675         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
19676         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
19677         HAVE_ISBLANK.
19678         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
19679         case.
19680
19681 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
19682
19683         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
19684         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
19685         brackets.  Other minor changes to suppress some compiler
19686         warnings.
19687
19688 2006-07-06  Derek R. Price  <derek@ximbiot.com>
19689         and Paul Eggert  <eggert@cs.ucla.edu>
19690
19691         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
19692         of invoking obsolescent AC_HEADER_DIRENT macro.
19693         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19694         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
19695         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19696         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
19697         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
19698         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
19699         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
19700         * m4/readdir.m4: Remove; no longer needed.
19701
19702 2006-07-06  Derek R. Price  <derek@ximbiot.com>
19703         and Paul Eggert  <eggert@cs.ucla.edu>
19704
19705         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
19706         Don't worry about this obsolete case any more.
19707         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
19708         directories.
19709         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
19710         worry about this obsolete case any more.
19711         * lib/fts.c: Likewise.
19712         * lib/getcwd.c: Likewise.
19713         * lib/glob.h: Likewise.
19714         * lib/savedir.c: Likewise.
19715
19716 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
19717
19718         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
19719         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
19720         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
19721         needed.
19722         All uses removed.
19723         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
19724         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
19725         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
19726         needed.
19727         * m4/getdate.m4 (gl_GETDATE): Likewise.
19728         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
19729         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
19730         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19731         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
19732         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
19733         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
19734         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
19735         needed.
19736
19737 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
19738
19739         * lib/memcasecmp.c: Include <limits.h>.
19740         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
19741         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
19742         Don't assume isdigit succeeds only on '0' through '9'.
19743
19744 2006-07-05  Eric Blake  <ebb9@byu.net>
19745
19746         * modules/getaddrinfo (Depends-on): Add snprintf.
19747
19748 2006-07-05  Eric Blake  <ebb9@byu.net>
19749
19750         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
19751         to avoid 'header present but could not be compiled' on cygwin.
19752
19753 2006-07-05  Eric Blake  <ebb9@byu.net>
19754
19755         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
19756         missing from netdb.h.
19757         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
19758
19759 2006-07-05  Derek R. Price  <derek@ximbiot.com>
19760
19761         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
19762         no longer needed.
19763         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
19764         * m4/getdate.m4 (gl_GETDATE): Likewise.
19765         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
19766         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
19767         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19768         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
19769         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
19770
19771 2006-07-05  Derek R. Price  <derek@ximbiot.com>
19772
19773         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
19774         All uses of is_space replaced by isspace.
19775         * lib/exit.h: Don't talk about STDC_HEADERS.
19776         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
19777         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
19778         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
19779         replaced by isprint etc.
19780         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
19781         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
19782         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
19783         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
19784         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
19785         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
19786
19787 2006-07-05  Bruno Haible  <bruno@clisp.org>
19788
19789         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
19790         the function exists, before testing against AIX.
19791         Reported by Martin Lambers <marlam@marlam.de>.
19792
19793 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
19794
19795         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
19796         From Mark D. Baushke.
19797
19798 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
19799
19800         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
19801         to the absolute name, not just one, to bypass Sun C 5.8's
19802         "warning: #include of /usr/include/... may be non-portable".
19803
19804 2006-07-04  Eric Blake  <ebb9@byu.net>
19805
19806         * modules/dirname-tests: New test module.
19807         * tests/test-dirname.c: New file, replacing dirname.c
19808         TEST_DIRNAME section that was recently deleted.
19809
19810 2006-07-04  Bruno Haible  <bruno@clisp.org>
19811
19812         Assume ANSI C header files and <ctype.h> functions.
19813         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
19814         (mbsnwidth): Use isprint, iscntrl instead.
19815
19816 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
19817
19818         Merge from coreutils.
19819         * MODULES.html.sh: Add xstrtold.
19820         * modules/xstrtold: New file.
19821         * modules/cycle-check (Files): Add lib/same-inode.h.
19822         * modules/dirname (Files): Add m4/double-slash-root.m4.
19823         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
19824         * modules/mkdir-p (Files): Add lib/same-inode.h.
19825         * modules/same (Files): Add lib/same-inode.h.
19826
19827 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
19828
19829         * m4/absolute-header.m4: Renamed from full-header-path.m4.
19830         This is to keep the terminology clean; POSIX talks about
19831         "absolute pathnames", not "full pathnames", but the GNU
19832         Coding Standards say to use "path" for something else;
19833         so use "absolute" to keep both sides happy.
19834         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
19835         Set gl_absolute_header, not gl_full_header_path.
19836         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
19837         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
19838         All uses changed.
19839
19840         Merge from coreutils.
19841
19842         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
19843
19844         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
19845         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
19846         want to require the building of c-strtod.o.
19847         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
19848         needs -lm directly.
19849         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
19850
19851         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
19852
19853         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
19854         --as-needed option if available.  Problem reported by Albert Chin in
19855         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
19856         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
19857         cc merely issues a bunch of annoying warnings for --as-needed
19858         (this problem was reported by Bob Proulx).  Also, try linking with
19859         -lm to detect a bug in binutils 2.16 (this problem was reported
19860         by Ralf Wildenhues).
19861
19862         2006-06-18  Jim Meyering  <jim@meyering.net>
19863
19864         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
19865         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
19866         macro.
19867         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
19868         also check for glibc-2.4's abort-inducing bug.
19869
19870         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
19871         Low-probability clean-up should be to use rmdir to get rid of
19872         the just-created directory, not unlink.
19873
19874         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
19875         configure fail, and request a bug report to inform us about it.
19876         Add a comment that, barring reports to the contrary, in 2007 we'll
19877         assume ftruncate is universally available.
19878
19879         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
19880
19881         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
19882
19883         2006-03-12  Jim Meyering  <jim@meyering.net>
19884
19885         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
19886         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
19887         * m4/same.m4 (gl_SAME): Likewise.
19888         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
19889
19890         2006-03-11  Eric Blake  <ebb9@byu.net>
19891
19892         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
19893         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
19894         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
19895         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
19896
19897 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
19898
19899         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
19900         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
19901         reported by Mark D. Baushke, one in
19902         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
19903
19904         Merge from coreutils.
19905
19906         * lib/.cppi-disable: Add stdint_.h.
19907         * lib/.cvsignore: Add stdint.h.
19908
19909         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
19910
19911         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
19912         both double and long double versions.
19913         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
19914         * lib/xstrtold.c: New file.
19915         * lib/xstrtod.h (xstrtold): New decl.
19916
19917         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19918
19919         * lib/filemode.c (setst): Remove.
19920         (strmode): Rewrite to avoid setst.  This makes the code shorter,
19921         (arguably) clearer, and the generated code is a bit smaller on my
19922         Debian GNU/Linux stable x86 host.
19923
19924         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
19925
19926         * lib/filemode.c: Include "filemode.h" first, to test the interface.
19927         Assume that filemode.h includes sys/types.h and sys/stat.h.
19928         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
19929         (ftypelet): Reorder to put common cases first, for efficiency.
19930         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
19931         to do 'M'.
19932         (strmode): Renamed from mode_string, and now stores 12 bytes instead
19933         of 10, for compatibility with FreeBSD.  All callers changed.
19934         (filemodestring): Now stores 12 bytes instead of 10, and sets file
19935         types that can't be deduced solely from st_mode.  First arg is now a
19936         const pointer.
19937         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
19938         (strmode): Renamed from mode_string.
19939         (filemodestring): New decl.
19940         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
19941         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
19942         needed.
19943         (S_ISPORT, S_ISWHT): New macros, if not already defined.
19944
19945         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
19946
19947         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
19948         fsusage.h now does that.  Include fsusage.h first, to test interface.
19949         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
19950         at most one method (the old code could have generated decls that
19951         didn't conform to C89, not that this was ever exercised).
19952         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
19953
19954         2006-03-19  Jim Meyering  <jim@meyering.net>
19955
19956         Work even in a chroot where d_ino values for entries in "/"
19957         don't match the stat.st_ino values for the same names.
19958         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
19959         number, iterate through all entries again, using lstat instead.
19960         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
19961         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
19962
19963         * lib/getcwd.c (__getcwd): Clarify a comment.
19964         Use memcpy in place of a call to strcpy.
19965
19966         2006-03-12  Jim Meyering  <jim@meyering.net>
19967
19968         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
19969         matches that of the current directory (which we're about to chdir ".."
19970         out of), then save the dev-ino of the parent, instead.
19971
19972         * lib/same-inode.h (SAME_INODE): New file/macro.
19973         * lib/chdir-safer.c (SAME_INODE): Remove definition.
19974         Include "same-inode.h", instead.
19975         * lib/same.c: Likewise.
19976         * lib/cycle-check.h: Include "same-inode.h".
19977         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
19978         * lib/cycle-check.c (SAME_INODE): Remove definition.
19979         * lib/root-dev-ino.h: Include "same-inode.h".
19980
19981         2006-03-11  Eric Blake  <ebb9@byu.net>
19982
19983         * lib/same.c (same_name): s/base_name/last_component/
19984         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
19985         * lib/filenamecat.c (file_name_concat): Likewise.
19986
19987         2006-03-11  Eric Blake  <ebb9@byu.net>,
19988                     Paul Eggert  <eggert@cs.ucla.edu>
19989
19990         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
19991         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
19992         drive prefix.
19993         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
19994         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
19995         (last_component): New method.
19996         * lib/dirname.c (dir_len): Determine when drive letters need a
19997         subsequent slash.  Preserve // when it is special.
19998         (dir_name): Don't append dot when drive letter is absolute.
19999         [TEST_DIRNAME]: Move into a full-blown gnulib test.
20000         * lib/basename.c (base_name): New semantics - malloc the result.
20001         Preserve // when it is special.  Preserve relative files that look
20002         like drive letters.
20003         (base_len): Preserve // when it is special.
20004         (last_component): New method, similar to old base_name semantics.
20005         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
20006         base_name.  Strip redundant slashes from ///.
20007
20008 2006-07-03  Jim Meyering  <jim@meyering.net>
20009
20010         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
20011         macro is used before the first cycle_check call.
20012
20013 2006-07-03  Eric Blake  <ebb9@byu.net>
20014
20015         * modules/dirname (Depends-on): Add xstrndup.
20016
20017 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
20018
20019         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
20020         test cases, so that config.log is a bit easier to follow.
20021
20022 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
20023
20024         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
20025         both are 64 bits, since this seems to be the tradition, and this
20026         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
20027         we ever run into a host that prefers long long to long in this
20028         case, we'll need another configure-time test.  Problem reported by
20029         Jim Meyering.
20030
20031 2006-07-02  Eric Blake  <ebb9@byu.net>
20032
20033         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
20034
20035 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
20036
20037         * modules/inttypes (Depends-on): No longer depends on stdint.
20038         * modules/stdint (Description): Say more about assumptions.
20039         Say that the fast types might differ.  Say macros are used.
20040         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
20041         (Makefile.am): Revise list of substituted symbols to match
20042         new stdint.m4.
20043         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
20044         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
20045         * tests/test-stdint.c (verify_same_types)
20046         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
20047         the code conforms to C99/C89.
20048         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
20049         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
20050
20051 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
20052
20053         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
20054         but fix a bug, by requiring at least 64 bits.
20055         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
20056         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
20057         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
20058         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
20059
20060         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
20061         changes.  Make 2.59 a prerequisite.  Check and substitute for
20062         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
20063         inttypes.h.  Do not use special include files; just use the
20064         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
20065         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
20066         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
20067         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
20068         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
20069         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
20070         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
20071         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
20072         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
20073         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
20074         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
20075         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
20076         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
20077         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
20078         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
20079         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
20080         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
20081         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
20082         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
20083         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
20084         WINT_MAX.  Check for C99 conformance more strictly, by detecting
20085         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
20086         not check for things that C99 does not require, e.g., int8_t.  If
20087         a test isn't needed unless <stdint.h> isn't working, and is
20088         unlikely to be needed for any other reason, then don't do it
20089         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
20090         size_t, since we assume C89 freestanding at least.  Do not check
20091         for sig_atomic_t, wchar_t, or wint_t, since the code now does
20092         the right thing even if the types are not defined.  Instead use:
20093         (gl_STDINT_TYPE_PROPERTIES): New macro.
20094         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
20095         testing whether <sys/types.h> clashes, as Autoconf does this for
20096         us now.  All uses removed.
20097         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
20098         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
20099         (gl_CHECK_TYPE_SAME):
20100         Remove; no longer needed.
20101         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
20102         exists, since we'll return 0 anyway in that case.
20103         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
20104
20105 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
20106
20107         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
20108         possible collision with system files.
20109         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
20110         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
20111         WCHAR_MIN and WCHAR_MAX in this case.
20112         (<stddef.h>): Do not include; no longer needed.
20113         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
20114         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
20115         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
20116         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
20117         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
20118         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
20119         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
20120         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
20121         !defined(__c99))]: Include in this case too, since it's harmless
20122         now.
20123         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
20124         dangerous to do so.
20125         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
20126         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
20127         (_STDINT_MIN, _STDINT_MAX): New macros.
20128         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
20129         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
20130         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
20131         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
20132         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
20133         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
20134         macros, not typedefs; this simplifies things quite a bit.
20135         Use long int for all types narrower than int64_t.
20136         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
20137         Define in terms of long long int or int64_t or long int,
20138         not int64_t or int32_t.  This saves some compile-time testing.
20139         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
20140         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
20141         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
20142         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
20143         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
20144         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
20145         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
20146         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
20147         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
20148         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
20149         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
20150         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
20151         undef any previous version and define our own version, for
20152         simplicity and consistency with the new macros for types.
20153         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
20154         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
20155         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
20156         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
20157         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
20158         @WINT_T_SUFFIX@ to keep things simple here.
20159         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
20160         Simplify by assuming typical 8/16/32/64 host, since we're
20161         already doing that elsewhere anyway.
20162         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
20163         and assume long long int is 64 bits if available.  This
20164         speeds up 'configure'.
20165
20166 2006-07-01  Eric Blake  <ebb9@byu.net>
20167
20168         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
20169         Reported by Andreas Buening.
20170
20171 2006-07-01  Eric Blake  <ebb9@byu.net>
20172
20173         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
20174
20175 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
20176
20177         * lib/getaddrinfo.c: fixed typo
20178
20179 2006-06-29  Jim Meyering  <jim@meyering.net>
20180
20181         * modules/strftime (Maintainer): Add my name, since with the
20182         FPRINTFTIME changes strftime.c has forked from glibc.
20183
20184 2006-06-29  Eric Blake  <ebb9@byu.net>
20185
20186         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
20187
20188 2006-06-29  Eric Blake  <ebb9@byu.net>
20189
20190         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
20191
20192 2006-06-29  Eric Blake  <ebb9@byu.net>
20193
20194         * lib/stat_.h: New file.
20195
20196 2006-06-29  Eric Blake  <ebb9@byu.net>
20197
20198         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
20199         unused static function.
20200
20201 2006-06-29  Eric Blake  <ebb9@byu.net>
20202
20203         * doc/functions.texi (Function Portability): Document missing lstat
20204         on mingw.
20205
20206 2006-06-29  Eric Blake  <ebb9@byu.net>
20207
20208         * MODULES.html.sh: Add sys_stat.
20209         * modules/sys_stat: New module.
20210         * modules/mkstemp (Depends-on): Add sys_stat.
20211
20212 2006-06-29  Derek R. Price  <derek@ximbiot.com>
20213
20214         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
20215
20216 2006-06-29  Derek R. Price  <derek@ximbiot.com>
20217
20218         * m4/c-bs-a.m4: Removed.
20219
20220 2006-06-29  Derek R. Price  <derek@ximbiot.com>
20221
20222         * lib/strftime.c: Assume strftime() exists.
20223
20224 2006-06-29  Derek Price  <derek@ximbiot.com>
20225
20226         * modules/c-bs-a: Removed - \a is C89.
20227         * MODULES.html.sh: Remove c-bs-a.
20228
20229 2006-06-29  Bruno Haible  <bruno@clisp.org>
20230
20231         * modules/wcwidth (License): Change to LGPL.
20232
20233 2006-06-28  Simon Josefsson  <jas@extundo.com>
20234
20235         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
20236         on _WIN32.
20237
20238         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
20239         getnameinfo.
20240
20241 2006-06-28  Simon Josefsson  <jas@extundo.com>
20242
20243         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
20244
20245 2006-06-28  Simon Josefsson  <jas@extundo.com>
20246
20247         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
20248         functions there.  It will succeed on Windows XP, but on Windows
20249         2000 and (presumably) earlier, it will fail, and use the internal
20250         re-implementation.
20251         (use_win32_p): New function.
20252         (getaddrinfo): Use strtoul on servname, to support numeric ports.
20253         Support AI_NUMERICSERV to disable getservbyname.
20254         (getnameinfo): New function, only supports
20255         NI_NUMERICHOST|NI_NUMERICSERV for now.
20256
20257         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
20258         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
20259         getnameinfo.
20260
20261 2006-06-28  Eric Blake  <ebb9@byu.net>
20262
20263         * modules/wcwidth: New file.
20264         * modules/mbchar (Depends-on): Add wcwidth.
20265         * modules/mbswidth (Depends-on): Add wcwidth.
20266         * MODULES.html.sh: Add wcwidth.
20267
20268 2006-06-28  Eric Blake  <ebb9@byu.net>
20269
20270         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
20271         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
20272
20273 2006-06-28  Eric Blake  <ebb9@byu.net>
20274
20275         * lib/xvasprintf.h: Fix comments.
20276
20277 2006-06-28  Eric Blake  <ebb9@byu.net>
20278
20279         * lib/mbchar.h (wcwidth): Include wcwidth.h.
20280         * lib/mbswidth.c (wcwidth): Move from here...
20281         * lib/wcwidth.h: ...to this new file.
20282
20283 2006-06-28  Derek R. Price  <derek@ximbiot.com>
20284
20285         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
20286
20287         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
20288         it's obsolete.
20289         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
20290
20291 2006-06-28  Derek R. Price  <derek@ximbiot.com>
20292
20293         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
20294         Autoconf 2.60 says this stuff was obsolete.
20295
20296 2006-06-28  Bruno Haible  <bruno@clisp.org>
20297
20298         * modules/wcwidth (Files): Add m4/wchar_t.m4.
20299
20300 2006-06-28  Bruno Haible  <bruno@clisp.org>
20301
20302         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
20303         gt_TYPE_WCHAR_T.
20304
20305 2006-06-28  Bruno Haible  <bruno@clisp.org>
20306
20307         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
20308         declaration for wcwidth.
20309         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
20310
20311 2006-06-28  Bruno Haible  <bruno@clisp.org>
20312
20313         * lib/mkdtemp.c [MINGW]: Include <io.h>.
20314         (mkdir): Define using _mkdir.
20315
20316 2006-06-28  Bruno Haible  <bruno@clisp.org>
20317
20318         * lib/getaddrinfo.h: Fix POSIX URL.
20319         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
20320         _WIN32.
20321         (use_win32_p): Make static.
20322         (getaddrinfo): Reject service name if it is empty or does not consist
20323         solely of decimal digits, or if its value is > 65535.
20324         (getnameinfo): Remove useless casts.
20325
20326 2006-06-27  Simon Josefsson  <jas@extundo.com>
20327
20328         * modules/sys_select: New file, suggested by Bruno Haible, Paul
20329         Eggert and Martin Lambers.
20330
20331 2006-06-27  Simon Josefsson  <jas@extundo.com>
20332
20333         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
20334         Eggert and Martin Lambers.
20335
20336 2006-06-27  Bruno Haible  <bruno@clisp.org>
20337
20338         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
20339         result to 0, not to empty.
20340         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
20341
20342 2006-06-27  Bruno Haible  <bruno@clisp.org>
20343
20344         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
20345
20346 2006-06-26  Simon Josefsson  <jas@extundo.com>
20347
20348         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
20349         present.
20350
20351 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
20352
20353         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
20354         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
20355         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
20356
20357 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
20358
20359         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
20360
20361 2006-06-26  Bruno Haible  <bruno@clisp.org>
20362
20363         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
20364
20365 2006-06-26  Bruno Haible  <bruno@clisp.org>
20366
20367         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
20368
20369 2006-06-26  Bruno Haible  <bruno@clisp.org>
20370
20371         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
20372         SGI C compiler in pre-C99 mode.
20373         Suggested by Mark D. Baushke and Larry Jones.
20374
20375 2006-06-26  Bruno Haible  <bruno@clisp.org>
20376
20377         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
20378         WCHAR_MAX.
20379         Reported by Mark D. Baushke and Larry Jones.
20380
20381 2006-06-26  Bruno Haible  <bruno@clisp.org>
20382
20383         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
20384         in pre-C99 mode.
20385         Suggested by Mark D. Baushke and Larry Jones.
20386
20387 2006-06-23  Simon Josefsson  <jas@extundo.com>
20388             Bruno Haible  <bruno@clisp.org>
20389
20390         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
20391         Emit mostlyclean-local rule.
20392         (func_emit_tests_Makefile_am): Likewise.
20393         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
20394
20395 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
20396
20397         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
20398
20399 2006-06-23  Bruno Haible  <bruno@clisp.org>
20400
20401         * tests/test-stdint.c: Update to match ISO C 99 Technical
20402         Corrigendum 1.
20403
20404 2006-06-23  Bruno Haible  <bruno@clisp.org>
20405
20406         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
20407
20408 2006-06-23  Bruno Haible  <bruno@clisp.org>
20409
20410         * lib/stdint_.h: Treat IRIX like OpenBSD.
20411
20412 2006-06-23  Bruno Haible  <bruno@clisp.org>
20413
20414         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
20415         ISO C 99 Technical Corrigendum 1.
20416
20417 2006-06-22  Simon Josefsson  <jas@extundo.com>
20418
20419         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
20420         MinGW.
20421
20422 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
20423
20424         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
20425         needed.  Some compiler complained about some of them.  Problem reported
20426         by Larry Jones in
20427         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
20428
20429 2006-06-21  Simon Josefsson  <jas@extundo.com>
20430
20431         * tests/test-getaddrinfo.c: New file.
20432
20433         * modules/getaddrinfo-tests: New file.
20434
20435         * MODULES.html.sh: Add inet_pton.
20436
20437         * modules/inet_pton: New file.
20438
20439 2006-06-21  Simon Josefsson  <jas@extundo.com>
20440
20441         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
20442         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
20443         of using the (limited) gnulib implementation on Windows XP.
20444
20445         * m4/inet_pton.m4: New file.
20446
20447 2006-06-21  Simon Josefsson  <jas@extundo.com>
20448
20449         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
20450         variable.
20451
20452         * lib/socket_.h: Don't define WINVER.
20453
20454         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
20455         slightly modified to work in gnulib.
20456
20457 2006-06-21  Simon Josefsson  <jas@extundo.com>
20458
20459         * doc/gnulib.texi (Windows sockets): Add.
20460
20461 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
20462
20463         * lib/read-file.c (fread_file): Start with buffer allocation of
20464         0 bytes rather than 1 byte; this simplifies the code.
20465         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
20466         code to free buffer and save/restore errno.
20467         (internal_read_file): Remove unused local.
20468
20469 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
20470
20471         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
20472         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
20473         Problem reported by Denis Excoffier in
20474         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
20475
20476 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20477
20478         * modules/sys_socket, modules/socklen: Include sys/types since
20479         FreeBSD 4.x's sys/socket.h needs it.
20480
20481 2006-06-19  Simon Josefsson  <jas@extundo.com>
20482
20483         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
20484
20485 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
20486
20487         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
20488
20489 2006-06-19  Bruno Haible  <bruno@clisp.org>
20490
20491         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
20492         and FULL_PATH_INTTYPES_H in angle brackets.
20493         Reported by Mark D. Baushke <mdb@gnu.org>.
20494
20495 2006-06-17  Eric Blake  <ebb9@byu.net>
20496
20497         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
20498         errno.
20499
20500 2006-06-17  Bruno Haible  <bruno@clisp.org>
20501
20502         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
20503         <sys/inttypes.h>.
20504
20505 2006-06-17  Bruno Haible  <bruno@clisp.org>
20506
20507         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
20508         whether errno is declared. Assume <errno.h> declares errno.
20509
20510 2006-06-17  Bruno Haible  <bruno@clisp.org>
20511
20512         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
20513
20514 2006-06-17  Bruno Haible  <bruno@clisp.org>
20515
20516         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
20517         problem on Solaris 2.5.1.
20518
20519 2006-06-16  Eric Blake  <ebb9@byu.net>
20520
20521         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
20522         * lib/unicodeio.c [!defined errno]: Likewise.
20523         * lib/strtol.c [!defined errno]: Likewise.
20524         * lib/strtod.c [!defined errno]: Likewise.
20525
20526 2006-06-15  Eric Blake  <ebb9@byu.net>
20527
20528         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
20529
20530 2006-06-15  Eric Blake  <ebb9@byu.net>
20531
20532         * config/srclist.txt (ssize_t.m4): Lose sync.
20533
20534 2006-06-15  Bruno Haible  <bruno@clisp.org>
20535
20536         * modules/stdint (Files): Include m4/full-header-path.m4,
20537         m4/size_max.m4, m4/wchar_t.m4.
20538         (Makefile.am): Many more substitutions.
20539         * modules/stdint-tests: New file.
20540         * tests/test-stdint.c: New file.
20541
20542 2006-06-15  Bruno Haible  <bruno@clisp.org>
20543
20544         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
20545         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
20546         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
20547         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
20548         gl_CHECK_TYPE_SAME): New macros.
20549
20550 2006-06-15  Bruno Haible  <bruno@clisp.org>
20551
20552         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
20553
20554 2006-06-15  Bruno Haible  <bruno@clisp.org>
20555
20556         * lib/stdint_.h: Rewritten to be fully auto-configured.
20557         Fixes bug on HP-UX/IA64.
20558
20559 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
20560
20561         * lib/getdate.y (__attribute__): Don't define if already defined.
20562         Problem reported by Larry Jones.
20563         * lib/utimens.c (__attribute__): Likewise.
20564
20565 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
20566
20567         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
20568         reported by Andreas Schwab.
20569
20570 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20571             Bruno Haible  <bruno@clisp.org>
20572
20573         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
20574         check for the declaration of strnlen and a run test that exposes the
20575         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
20576         rpl_strndup.
20577
20578 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20579             Bruno Haible  <bruno@clisp.org>
20580
20581         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
20582
20583 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20584
20585         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
20586         compile test, for Tru64 4.0D.
20587
20588 2006-05-28  Karl Berry  <karl@gnu.org>
20589
20590         * config/srclist.txt (printf-args.c): lose sync.
20591
20592 2006-05-26  Martin Lambers  <marlam@marlam.de>
20593
20594         * lib/getpass.c: Updates the test for the native W32 API, and adds
20595         missing includes, thus fixing compilation warnings.
20596
20597 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20598
20599         * lib/exclude.c (exclude_fnmatch): New function.
20600         (excluded_file_name): Call exclude_fnmatch.
20601         * lib/exclude.h (excluded_file_name): New prototype
20602
20603 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
20604
20605         * lib/tempname.c (small_open, large_open): New macros.
20606         (__open, __open64) [!_LIBC]: Remove.
20607         (__gen_tempname): Use small_open and large_open instead of __open
20608         and __open64.  This fixes a portability bug on HP-UX 11.11i
20609         reported by Simon Wing-Tang in
20610         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
20611
20612 2006-05-24  Bruno Haible  <bruno@clisp.org>
20613
20614         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
20615         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
20616         Reported by Thorsten Maerz <torte@netztorte.de> via
20617         Aaron Stone <aaron@serendipity.cx>.
20618
20619 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20620
20621         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
20622         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
20623         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
20624         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
20625         not really conditional on the cache.
20626         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
20627
20628 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20629
20630         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
20631         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
20632         (my_usleep): Don't mishandle maximum value.
20633
20634 2006-05-19  Jim Meyering  <jim@meyering.net>
20635
20636         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
20637
20638 2006-05-17  Bruno Haible  <bruno@clisp.org>
20639
20640         Cygwin portability.
20641         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
20642
20643 2006-05-17  Bruno Haible  <bruno@clisp.org>
20644
20645         * lib/stdint_.h: Fix recognition of Cygwin.
20646
20647 2006-05-15  Bruno Haible  <bruno@clisp.org>
20648
20649         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
20650         on libtool patch by Ralf Wildenhues.
20651
20652 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
20653
20654         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
20655         test for C99 conformance; (bool) 0.5 is an integer constant
20656         expression, but (bool) -0.5 is not.  Problem reported by Fedor
20657         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
20658
20659 2006-05-11  Simon Josefsson  <jas@extundo.com>
20660
20661         * m4/xvasprintf.m4: Fix obvious typo.
20662
20663 2006-05-11  Jim Meyering  <jim@meyering.net>
20664
20665         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
20666         James Lemley.
20667
20668 2006-05-10  Simon Josefsson  <jas@extundo.com>
20669
20670         * lib/md4.c: Typo fix, update copyright years.
20671         (K1, K2): Don't use L because it turn computations into 64-bit on
20672         64-bit platforms.
20673
20674 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
20675
20676         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
20677         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
20678         unwanted sign propagation, e.g., on hosts with 64-bit int.
20679         There still are some problems with reeelly weird theoretical hosts
20680         (e.g., 33-bit int) but it's not worth worrying about now.
20681         * lib/sha1.c (rol): Likewise.
20682         (K1, K2, K3, K4): Remove unnecessary L suffix.
20683
20684 2006-05-10  Bruno Haible  <bruno@clisp.org>
20685
20686         * lib/des.c: Cast to avoid warnings.
20687
20688 2006-05-09  Bruno Haible  <bruno@clisp.org>
20689
20690         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
20691         (Depends-on): Depend also on xsize, stdarg.
20692         (configure.ac): Add gl_XVASPRINTF.
20693
20694 2006-05-09  Bruno Haible  <bruno@clisp.org>
20695
20696         * m4/xvasprintf.m4: New file.
20697
20698 2006-05-09  Bruno Haible  <bruno@clisp.org>
20699
20700         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
20701         (EOVERFLOW): Define fallback value.
20702         (xstrcat): New function.
20703         (xvasprintf): Recognize the special case of a string concatenation.
20704
20705 2006-05-08  Eric Blake  <ebb9@byu.net>
20706
20707         * gnulib-tool (func_version): Base copyright year on CVS date.
20708         (func_emit_copyright_notice): New function.
20709         (func_emit_lib_Makefile_am): Use it.
20710         (func_emit_tests_Makefile_am): Likewise.
20711         (func_import): Likewise.
20712
20713 2006-05-08  Bruno Haible  <bruno@clisp.org>
20714
20715         * modules/stdarg: New file.
20716         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
20717
20718 2006-05-08  Bruno Haible  <bruno@clisp.org>
20719
20720         * m4/stdarg.m4: New file, from GNU gettext.
20721
20722 2006-05-08  Bruno Haible  <bruno@clisp.org>
20723
20724         * config/srclist.txt (build-aux/config.rpath): different from latest
20725         release.
20726
20727 2006-05-08  Bruno Haible  <bruno@clisp.org>
20728
20729         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
20730
20731 2006-05-05  Jim Meyering  <jim@meyering.net>
20732
20733         * m4/warning.m4: New file, derived from bison's file by the same name.
20734
20735 2006-05-03  Bruno Haible  <bruno@clisp.org>
20736
20737         * lib/stdint_.h: Shorter URL.
20738         * lib/inttypes.h: Likewise.
20739
20740 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20741
20742         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
20743
20744 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20745
20746         * lib/verify.h: Document the internals better.  Most of this change
20747         was written by Bruno Haible.
20748
20749 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20750
20751         * doc/verify.texi: New file, partly based on a proposal by
20752         Bruno Haible.
20753
20754 2006-05-02  Bruno Haible  <bruno@clisp.org>
20755
20756         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
20757         test from here...
20758         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
20759
20760 2006-04-29  Bruno Haible  <bruno@clisp.org>
20761
20762         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
20763         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
20764
20765 2006-04-29  Bruno Haible  <bruno@clisp.org>
20766
20767         * gnulib-tool: Make --update option actually work.
20768
20769 2006-04-29  Bruno Haible  <bruno@clisp.org>
20770
20771         * doc/gcd.texi: New file.
20772         * doc/gnulib.texi: Include it.
20773
20774 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20775
20776         * lib/getdate.y (get_date): When adding relative date, start with the
20777         initial time, not with the result of the first mktime call.
20778
20779 2006-04-25  Bruno Haible  <bruno@clisp.org>
20780
20781         * gnulib-tool (func_import): Output the include directives in three
20782         blocks, sorted separately.
20783         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20784
20785 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20786
20787         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
20788         to define main with arguments, for C++.  Reported by Eric Blake.
20789         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
20790         Prefer 'int main ()' to 'int main (void)', for C++.
20791         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
20792         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
20793         for 'main', for C99 and C++.
20794
20795 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20796
20797         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
20798         Don't assume that exit status -1 is valid.
20799         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20800         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
20801         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
20802         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
20803         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
20804         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
20805         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
20806         functions can be used without declaring them, or that you can
20807         exit with status -1.
20808         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
20809
20810 2006-04-24  Karl Berry  <karl@gnu.org>
20811
20812         * config/srclist.txt (longdouble.m4): sync lost.
20813
20814 2006-04-24  Eric Blake  <ebb9@byu.net>
20815
20816         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
20817
20818 2006-04-24  Bruno Haible  <bruno@clisp.org>
20819
20820         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
20821         poll() implementation in AIX.
20822         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20823
20824 2006-04-24  Bruno Haible  <bruno@clisp.org>
20825
20826         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
20827         assigned exactly once.
20828
20829 2006-04-23  Claudio Fontana  <claudio@gnu.org>
20830             Bruno Haible  <bruno@clisp.org>
20831
20832         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
20833         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
20834         for AM_CPPFLAGS.
20835
20836 2006-04-23  Bruno Haible  <bruno@clisp.org>
20837
20838         * modules/copy-file: Depend on unistd.
20839         * modules/execute: Likewise.
20840         * modules/fatal-signal: Likewise.
20841         * modules/findprog: Likewise.
20842         * modules/mkdtemp : Likewise.
20843         * modules/pipe: Likewise.
20844         * modules/wait-process: Likewise.
20845
20846 2006-04-23  Bruno Haible  <bruno@clisp.org>
20847
20848         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
20849         condition was already detected.
20850         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20851
20852 2006-04-23  Bruno Haible  <bruno@clisp.org>
20853
20854         * lib/copy-file.c: Include <unistd.h> unconditionally.
20855         * lib/execute.c: Likewise.
20856         * lib/fatal-signal.c: Likewise.
20857         * lib/findprog.c: Likewise.
20858         * lib/mkdtemp.c: Likewise.
20859         * lib/pipe.h: Likewise.
20860         * lib/pipe.c: Likewise.
20861         * lib/wait-process.h: Likewise.
20862
20863 2006-04-23  Bruno Haible  <bruno@clisp.org>
20864
20865         * gnulib-tool (func_usage): Fix --import description. Document
20866         --update.
20867         (func_import): Create temporary file in a temporary directory, if
20868         --dry-run is specified. Silence errors from 'grep' when there are no
20869         m4 files in $m4dir.
20870         (func_create_testdir): Silence errors from 'grep' when there are no
20871         m4 files in $m4dir.
20872         Reported by Karl Berry <karl@freefriends.org>.
20873
20874 2006-04-20  Bruno Haible  <bruno@clisp.org>
20875
20876         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
20877         one argument, so that the code will be portable to Autoconf 2.60.
20878         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
20879         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
20880         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
20881
20882 2006-04-19  Derek Price  <derek@ximbiot.com>
20883             Eric Blake  <ebb9@byu.net>
20884
20885         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
20886         rather than "/full/path.h".  Update comment to match.  Shorten &
20887         generalize m4_translit call via AS_TR_CPP.
20888
20889 2006-04-19  Derek Price  <derek@ximbiot.com>
20890             Eric Blake  <ebb9@byu.net>
20891
20892         * lib/inttypes.h: Correct grammar in comment.
20893
20894 2006-04-18  Derek Price  <derek@ximbiot.com>
20895             Paul Eggert  <eggert@cs.ucla.edu>
20896
20897         * modules/inttypes: New file.
20898         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
20899
20900 2006-04-18  Derek Price  <derek@ximbiot.com>
20901             Paul Eggert  <eggert@cs.ucla.edu>
20902
20903         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
20904         New files.
20905
20906 2006-04-18  Derek Price  <derek@ximbiot.com>
20907             Paul Eggert  <eggert@cs.ucla.edu>
20908
20909         * lib/inttypes.h: New file.
20910         * lib/strtoimax.c: Assume <inttypes.h>.
20911
20912 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
20913
20914         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
20915         isn't mounted.  Problem reported by Kir Kolyshkin.
20916
20917 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
20918
20919         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
20920         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
20921         Derek R. Price.
20922         * lib/regex.h (RE_DUP_MAX): Update comment to match current
20923         implementation.
20924
20925 2006-04-12  Eric Blake  <ebb9@byu.net>
20926
20927         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
20928         is now done automatically by the corresponding Autoconf macro.
20929
20930 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
20931
20932         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
20933         time_r.h.
20934
20935 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20936
20937         Merge regex changes from libc, removing some of our
20938         POSIX-conformance changes that were rejected and redoing them in a
20939         less-intrusive way.
20940
20941         * lib/regcomp.c (re_compile_internal, init_dfa):
20942         Length arg is now size_t, not Idx.  All uses changed.
20943         (peek_token): Forward decl now says internal_function.
20944         (__re_error_msgid, __re_error_msgid_idx):
20945         Now static rather than extern with attribute_hidden.
20946         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
20947         For some reason libc prefers K&R style defns for external functions.
20948         (regerror) [!defined _LIBC]: Likewise.
20949         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
20950         (seek_collating_symbol_entry, lookup_collation_sequence_value):
20951         (build_range_exp, build_collating_symbol):
20952         Use K&R-style defn.
20953         (re_compile_fastmap): Use '\0' to memset, not 0.
20954         (utf8_sb_map): Make the calculations more obvious.
20955         (init_dfa, parse_bracket_exp, build_charclass_op):
20956         Call calloc and cast result, as glibc does.
20957         (init_word_char, fetch_token, peek_token, peek_token_bracket):
20958         (build_range_exp, build_collating_symbol):
20959         Now internal functions.
20960
20961         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
20962
20963         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
20964         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
20965         Don't depend on VMS; depend on __VMS instead, for POSIX
20966         namespace cleanness.
20967         (regoff_t): Define to ssize_t, not long int.
20968
20969         Remove the REG_ macros named below.  Instead, make the old names
20970         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
20971         __USE_GNU_REGEX.
20972         (REG_BACKSLASH_ESCAPE_IN_LISTS):
20973         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
20974         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
20975         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
20976         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
20977         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
20978         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
20979         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
20980         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
20981         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
20982         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
20983         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
20984         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
20985         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
20986         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
20987         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
20988         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
20989         (REG_NREGS):
20990         Remove.  All uses replaced by the old RE_* names.
20991         (RE_BACKSLASH_ESCAPE_IN_LISTS):
20992         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
20993         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
20994         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
20995         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
20996         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
20997         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
20998         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
20999         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
21000         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
21001         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
21002         Don't bother having these macros be independent of each others'
21003         values, since they no longer exist in the POSIX name space.
21004
21005         Rename the following member names back to their old names,
21006         unless !__USE_GNU_REGEX.  All uses changed back.
21007         (buffer): Renamed from re_buffer.
21008         (allocated): Renamed from re_allocated.
21009         (used): Renamed from re_used.
21010         (syntax): Renamed from re_syntax.
21011         (fastmap): Renamed from re_fastmap.
21012         (translate): Renamed from re_translate.
21013         (can_be_null): Renamed from re_can_be_null.
21014         (regs_allocated): Renamed from re_regs_allocated.
21015         (fastmap_accurate): Renamed from re_fastmap_accurate.
21016         (no_sub): Renamed from re_no_sub.
21017         (not_bol): Renamed from re_not_bol.
21018         (not_eol): Renamed from re_not_eol.
21019         (newline_anchor): Renamed from re_newline_anchor.
21020         (num_regs): Renamed from rm_num_regs.
21021         (start): Renamed from rm_start.
21022         (end): Renamed from rm_end.
21023
21024         (free_state): Move up a bit.
21025
21026         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
21027         #define to be empty.
21028         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
21029         when that is what is intended.
21030         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
21031         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
21032         (MAX): New macro.
21033         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
21034         All uses changed back to re_malloc, etc.  It's now the caller's
21035         responsibility to check for overflow; all callers changed.
21036         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
21037         (re_x2nrealloc): Remove.
21038         (free_state): Remove decl.
21039
21040         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
21041         (re_set_registers, re_exec):
21042         Use K&R-style defn.
21043
21044         2006-01-31  Roland McGrath  <roland@redhat.com>
21045
21046         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
21047         Reported by Mike Frysinger <vapier@gentoo.org>.
21048
21049         2006-01-15  Andreas Jaeger  <aj@suse.de>
21050
21051         [BZ #1950]
21052         * lib/regex_internal.c (re_string_reconstruct): Adjust for
21053         build_wcs_upper_buffer change.
21054         (build_wcs_upper_buffer): Change return type.
21055
21056         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
21057
21058         * lib/regex_internal.h: Include <stdint.h> if available.
21059
21060         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
21061
21062         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
21063
21064         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
21065
21066         * lib/regcomp.c: Adjust for changed secondary hash function.
21067
21068         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
21069
21070         * lib/regex.h: Pretty printing.
21071         Clean up namespace a bit.
21072
21073         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
21074
21075         * lib/regexec.c (update_cur_sifted_state, check_arrival,
21076         check_arrival_add_next_nodes): Avoid using uninitialized variable.
21077
21078         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
21079                     Ulrich Drepper  <drepper@redhat.com>
21080
21081         [BZ #1302]
21082         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
21083         changed.
21084         (bitset_word_t): Renamed from bitset_word.  All uses changed.
21085
21086         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
21087
21088         [BZ #281]
21089         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
21090         * lib/regcomp.c: Remove unnecessary uses of
21091         unsigned RE_TRANSLATE_TYPE.
21092         * lib/regex_internal.h: Likewise.
21093         * lib/regex_internal.c: Likewise.
21094         * lib/regexec.c: Likewise.
21095         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
21096
21097         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
21098
21099         * lib/regexec.c (find_recover_state): Remove unnecessary
21100         initialization.
21101         (transit_state_bkref): Make DFA a const pointer.
21102         (get_subexp): Likewise.
21103         (check_arrival): Likewise.
21104         (update_cur_sifted_state): Likewise.
21105         (re_search_internal): Likewise.
21106         (prune_impossible_nodes): Likewise.
21107         (acquire_init_state_context): Likewise.
21108         (proceed_next_node): Likewise.
21109         (set_regs): Likewise.
21110         (free_fail_stack_return): Likewise.
21111         (check_arrival_expand_ecl): Mark DFA parameter as const.
21112         (check_arrival_expand_ecl_sub): Likewise.
21113         (check_subexp_limits): Likewise.
21114         (sub_epsilon_src_nodes):  Likewise.
21115         (add_epsilon_src_nodes):  Likewise.
21116         (merge_state_array): Likewise.
21117         (update_regs): Likewise.
21118         (build_trtable): Likewise.
21119         (sift_states_backward): Mark MCTX parameter as const.
21120         (build_sifted_states): Likewise.
21121         (update_cur_sifted_state): Likewise.
21122         (sift_states_mkref): Likewise.
21123         (check_arrival_expand_ecl): Mark eclosure as const.
21124         (check_dst_limits_calc_pos_1): Likewise.
21125         * lib/regex_internal.h (re_match_context_t): Make dfa a const
21126         pointer.
21127
21128         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
21129
21130         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
21131         (transit_state_sb): Likewise.
21132         (transit_state_mb): Likewise.
21133         (sift_states_iter_mb): Likewise.
21134         (check_arrival_add_next_nodes): Likewise.
21135         (check_node_accept_bytes): Change first parameter to pointer-to-const.
21136         [_LIBC] (re_search_2_stub): Use mempcpy.
21137
21138         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
21139         mbrtowc for very simple UTF-8 case.
21140
21141         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
21142         a pointer-to-const.
21143         (re_acquire_state_context): Likewise.
21144         * lib/regex_internal.h: Adjust prototypes.
21145
21146         * lib/regex.c: Prevent using C++ compilers.
21147
21148         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
21149         (re_acquire_state_context): Likewise.
21150
21151 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21152
21153         * modules/regex (Depends-on): Add ssize_t.
21154
21155 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21156
21157         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
21158         translation table.
21159
21160 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21161
21162         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
21163
21164 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
21165             Bruno Haible  <bruno@clisp.org>
21166
21167         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
21168         <sys/types.h> and <inttypes.h>.
21169
21170 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21171
21172         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
21173         `__error_t_defined', so argp.h will not typedef the former.
21174
21175 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
21176
21177         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
21178         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
21179         glibc names.  Even if glibc is changed to conform to POSIX, the
21180         traditional names will be available anyway, since regex depends on
21181         the extensions module.  Also, fix a longstanding typo in the
21182         implementation of Spencer ERE test #75 from grep 2.3.  Problems
21183         reported by Emanuele Giaquinta.  Also, change sense of cached
21184         variable, so that the message makes sense.
21185
21186 2006-03-24  Simon Josefsson  <jas@extundo.com>
21187
21188         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
21189         including some doc fixes.
21190         (base64_encode_alloc): Fix +1 bug on allocation failures.
21191
21192 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21193
21194         * lib/base64.c (base64_encode): Do not read past end of array with
21195         unsanitized input on systems with CHAR_BIT > 8.
21196
21197 2006-03-24  Eric Blake  <ebb9@byu.net>
21198
21199         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
21200
21201 2006-03-22  Karl Berry  <karl@gnu.org>
21202
21203         * config/srclist.txt (*setenv.[ch]): get from coreutils.
21204         * config/srclistvars.sh (COREUTILS): new var.
21205
21206 2006-03-17  Jim Meyering  <jim@meyering.net>
21207
21208         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
21209         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
21210
21211 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
21212
21213         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
21214         no longer needs it.  Instead, check that regoff_t is as least
21215         as wide as ptrdiff_t.
21216
21217         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
21218         so that our regex.h stays compatible with the installed regex.
21219         This is helpful for installers who configure --without-included-regex.
21220         Problem reported by Emanuele Giaquinta.
21221
21222 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
21223
21224         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
21225         Typedef to long int, not to off_, as POSIX will likely change
21226         in that direction.
21227
21228 2006-03-15  Eric Blake  <ebb9@byu.net>
21229
21230         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
21231
21232 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
21233
21234         * lib/argp-help.c (validate_uparams): Fix typo
21235         * lib/argp-parse.c (argp_default_options): Consistently begin help
21236         messages with a lowercase letter.
21237
21238 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
21239
21240         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
21241         overrun buffers and shouldn't be used (much as gets shouldn't be
21242         used).
21243         * lib/time_r.c (asctime_r, ctime_r): Likewise.
21244
21245 2006-03-08  Simon Josefsson  <jas@extundo.com>
21246
21247         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
21248         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21249
21250 2006-03-08  Simon Josefsson  <jas@extundo.com>
21251
21252         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
21253         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21254
21255 2006-03-08  Simon Josefsson  <jas@extundo.com>
21256
21257         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
21258         signal that configure disabled the device.
21259
21260 2006-03-08  Simon Josefsson  <jas@extundo.com>
21261
21262         * build-aux/maint.mk: Fix refresh-po, to handle no translated
21263         languages.
21264
21265 2006-03-07  Simon Josefsson  <jas@extundo.com>
21266
21267         * modules/getopt (Depends-on): Add unistd.
21268
21269         * modules/unistd: New file.
21270
21271 2006-03-07  Simon Josefsson  <jas@extundo.com>
21272
21273         * modules/gc-random: New file.
21274
21275 2006-03-07  Simon Josefsson  <jas@extundo.com>
21276
21277         * m4/unistd_h.m4: New file.
21278
21279 2006-03-07  Simon Josefsson  <jas@extundo.com>
21280
21281         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
21282         test to be side-effect free by storing the result in the cache
21283         variable gl_cv_lib_readline, and moving the assignment of
21284         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
21285         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21286
21287 2006-03-07  Simon Josefsson  <jas@extundo.com>
21288
21289         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
21290         error on missing devices (the functions will return an error).
21291
21292         * m4/gc.m4: Move random stuff to gc-random.m4
21293
21294 2006-03-07  Simon Josefsson  <jas@extundo.com>
21295
21296         * lib/unistd_.h: New file.
21297
21298 2006-03-07  Simon Josefsson  <jas@extundo.com>
21299
21300         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
21301
21302 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
21303
21304         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
21305         Problem reported by Juan Manuel Guerrero.
21306
21307 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
21308
21309         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
21310         the unistd module.
21311         * lib/getlogin_r.c: Likewise.
21312         * lib/getlogin_r.h: Likewise.
21313         * lib/glob.c: Likewise.
21314         * lib/pagealign_alloc.c: Likewise.
21315         * lib/unistd_.h: Remove; no longer needed.
21316
21317 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
21318
21319         * MODULES.html.sh (Support for systems lacking POSIX:2001):
21320         Add unistd.
21321         * modules/c-stack (Depends-on): Add unistd.
21322         * modules/getlogin_r: Likewise.
21323         * modules/glob: Likewise.
21324         * modules/pagealign_alloc: Likewise.
21325         * modules/unistd (Files): Remove lib/unistd_.h.
21326         (EXTRA_DIST): Remove.
21327         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
21328         need unistd_.h.
21329         (MOSTLYCLEANFILES): Remove unistd.h-t.
21330
21331 2006-03-03  Simon Josefsson  <jas@extundo.com>
21332
21333         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
21334
21335 2006-03-03  Simon Josefsson  <jas@extundo.com>
21336
21337         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
21338         libidn and bison.
21339
21340 2006-03-03  Simon Josefsson  <jas@extundo.com>
21341
21342         * build-aux/maint.mk: Add indent target.
21343
21344 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
21345
21346         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
21347         our replacement poll.h in any case, to avoid a differing
21348         declaration from a system header.  Seen on AIX.
21349
21350 2006-03-01  Simon Josefsson  <jas@extundo.com>
21351
21352         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
21353         <kasal@ucw.cz>.
21354
21355 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
21356
21357         * modules/gettime (Depends-on): Add extensions module.
21358         * modules/nanosleep (Depends-on): Likewise.
21359         * modules/settime (Depends-on): Likewise.
21360
21361 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
21362
21363         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
21364         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
21365         pedantically.
21366         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21367         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
21368
21369         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
21370         not "==".  Reported by Ralf Wildenhues.
21371
21372 2006-03-01  Karl Berry  <karl@gnu.org>
21373
21374         * doc/Copyright/request-*: new files, synced from gnuorg.
21375
21376 2006-03-01  Karl Berry  <karl@gnu.org>
21377
21378         * config/srclist.txt (Copyright/*): new entries.
21379
21380 2006-02-28  Simon Josefsson  <jas@extundo.com>
21381
21382         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
21383
21384 2006-02-27  Simon Josefsson  <jas@extundo.com>
21385
21386         * lib/base64.h: Indent #define's.  From Jim Meyering
21387         <jim@meyering.net>.
21388
21389 2006-02-27  Jim Meyering  <jim@meyering.net>
21390
21391         Revert the change of 2006-02-24, so these files can continue
21392         to be sync'd from gettext.
21393         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
21394         of `config.h'.
21395
21396 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
21397
21398         * modules/intprops: New file.
21399         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
21400         Add intprops.
21401         * modules/getloadavg (Files): Remove lib/intprops.h.
21402         (Depends-on): Add intprops.
21403         * modules/human: Likewise.
21404         * modules/inttostr: Likewise.
21405         * modules/openat: Likewise.
21406         * modules/sig2str: Likewise.
21407         * modules/userspec: Likewise.
21408         * modules/utimecmp: Likewise.
21409         * modules/xnanosleep: Likewise.
21410         * modules/xstrtol: Likewise.
21411
21412 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
21413
21414         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
21415         * modules/lock-tests (TESTS): Use $(EXEEXT).
21416         * modules/tls-tests: Likewise.
21417         * modules/argp-tests: Likewise.
21418         (check_PROGRAMS): New var, replacing...
21419         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
21420
21421 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21422
21423         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
21424         `config.h'.
21425
21426 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21427
21428         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
21429
21430 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21431
21432         Sync from coreutils.
21433         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
21434         gl_CHDIR_SAFER.
21435
21436 2006-02-22  Jim Meyering  <jim@meyering.net>
21437
21438         Sync from coreutils.
21439         * m4/chdir-safer.m4: New file.
21440
21441 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
21442
21443         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
21444         AT_FDCWD exceeds INT_MAX.
21445         * lib/openat.h (AT_FDCWD): Likewise.
21446
21447 2006-02-17  Eric Blake  <address@hidden>
21448
21449         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
21450
21451 2006-02-16  Simon Josefsson  <jas@extundo.com>
21452
21453         * modules/getaddrinfo (Depends-on): Add sys_socket.
21454
21455 2006-02-15  Simon Josefsson  <jas@extundo.com>
21456
21457         * build-aux/maint.mk: Add dsyntax-check rule.
21458
21459 2006-02-15  Eric Blake  <ebb9@byu.net>
21460
21461         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
21462         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
21463         'present but cannot compile' warnings on cygwin.
21464         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
21465         use ws2tcpip.h if sys/socket.h works.
21466         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
21467         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
21468
21469 2006-02-14  Simon Josefsson  <jas@extundo.com>
21470
21471         * modules/maintainer-makefile (Files): Rename.
21472
21473         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
21474         and (the local) Makefile.cfg to maint-cfg.mk.
21475
21476         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
21477         to the latter.
21478
21479         * modules/maintainer-makefile: New module.
21480
21481         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
21482         severaly stripped to make it possible to build it up from scratch
21483         with reliable tests.
21484
21485         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
21486         fixes to permit overriding the default actions when configure and
21487         makefile are not available.
21488
21489 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
21490
21491         Sync from coreutils.
21492         * modules/lstat (Depends-on): Don't depend on xalloc.
21493         (License): Change from GPL to LGPL, since this is now simply a
21494         replacement for a libc function.
21495
21496 2006-02-14  Jim Meyering  <jim@meyering.net>
21497
21498         Sync from coreutils.
21499
21500         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
21501         failure on deficient systems, and simplify gnulib lgpl dependencies.
21502         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
21503         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
21504
21505         * lib/xalloc-die.c: Remove unused definition of N_.
21506
21507 2006-02-14  Jim Meyering  <jim@meyering.net>
21508
21509         Sync from coreutils.
21510         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
21511         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
21512         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
21513         double-quote uses of that variable, to accommodate the rare case in
21514         which getmntent is available in none of the libraries checked.  This
21515         happens at least on FreeBSD 5.0.
21516
21517 2006-02-13  Simon Josefsson  <jas@extundo.com>
21518
21519         * gnulib-tool (Usage): Fix --import, from
21520         karl@freefriends.org (Karl Berry).
21521
21522 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
21523
21524         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
21525
21526 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
21527
21528         * lib/argp-namefrob.h: Restore changes accidentally lost during the
21529         "autoupdate" on 2005-12-12.
21530
21531 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
21532
21533         * modules/closeout (Depends-on): Remove atexit.
21534
21535 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
21536
21537         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
21538         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
21539
21540 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
21541
21542         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
21543         __EXTENSIONS__ if this causes compilation to fail.  Problem
21544         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
21545         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
21546
21547 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
21548
21549         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
21550         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
21551         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
21552         All uses changed.
21553
21554 2006-01-26  Simon Josefsson  <jas@extundo.com>
21555
21556         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
21557         prototype is visible on mingw32.
21558
21559         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
21560         for mingw32.
21561
21562         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
21563         mingw32).
21564
21565 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
21566
21567         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
21568         attempt to open for write; this always fails, at least on POSIX
21569         hosts.  This reinstates the 2006-01-09 change, which was
21570         inadvertently removed.
21571
21572 2006-01-26  Bruno Haible  <bruno@clisp.org>
21573
21574         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
21575         Reported by Paul Eggert.
21576
21577 2006-01-26  Bruno Haible  <bruno@clisp.org>
21578             Paul Eggert  <eggert@cs.ucla.edu>
21579
21580         * lib/stdbool_.h (_Bool)
21581         [(! (defined __cplusplus || defined __BEOS__)
21582           && !defined __GNUC__
21583           && !(defined __HP_cc || defined __xlc__
21584                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
21585                || defined __sgi))]:
21586         #define to signed char in these cases too; this simplifies
21587         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
21588         etc., separately) and makes it more conservative.
21589
21590 2006-01-25  Simon Josefsson  <jas@extundo.com>
21591
21592         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
21593         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
21594         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
21595
21596 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
21597
21598         * lib/argp-namefrob.h: Bugfix. Remove stray #
21599
21600 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
21601
21602         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
21603         so that we test the test.
21604         Check for yet another HP-UX cc bug involving *bool |= bool.
21605
21606 2006-01-25  Karl Berry  <karl@gnu.org>
21607
21608         * config/srclist.txt (vasnprintf.c): sync lost.
21609
21610 2006-01-25  Jim Meyering  <jim@meyering.net>
21611
21612         Sync from the stable (b5) branch of coreutils:
21613
21614         * lib/fts.c (fts_children): Don't let close() clobber errno from
21615         failed fchdir().
21616
21617         * lib/fts.c (fts_stat): When following a symlink-to-directory,
21618         don't necessarily interpret stat-fails+lstat-succeeds as indicating
21619         a dangling symlink.  That can also happen at least for ELOOP.
21620         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
21621         FYI, this bug predates the inclusion of fts.c in coreutils.
21622
21623         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
21624         in their own block, so pre-c99 compilers don't object.
21625
21626         Avoid the double-free (first in fts_read, second in fts_close) that
21627         would occur when an `active' directory is made inaccessible (e.g.,
21628         via chmod a-x) during a traversal.
21629         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
21630         before returning.  Reproduce this failure by
21631         mkdir -p a/b; cd a; chmod a-x . b
21632         Reported by Stavros Passas.
21633
21634 2006-01-25  Jim Meyering  <jim@meyering.net>
21635
21636         * lib/fileblocks.c: Remove more useless parentheses.
21637         * lib/readutmp.h: Likewise.
21638
21639 2006-01-25  Bruno Haible  <bruno@clisp.org>
21640
21641         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
21642         warnings.
21643         Reported by Paul Eggert.
21644
21645 2006-01-25  Bruno Haible  <bruno@clisp.org>
21646
21647         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
21648         rid of a trap command. For Solaris sh.
21649         Reported by Mark D. Baushke <mdb@gnu.org>.
21650
21651 2006-01-24  Simon Josefsson  <jas@extundo.com>
21652
21653         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
21654         Bruno.
21655
21656 2006-01-24  Karl Berry  <karl@gnu.org>
21657
21658         * config/srclist.txt (argp-namefrob.h): sync lost.
21659
21660 2006-01-24  Jim Meyering  <jim@meyering.net>
21661
21662         * modules/openat (Files): Add lib/intprops.h.
21663         From Mark D. Baushke.
21664
21665 2006-01-24  Jim Meyering  <jim@meyering.net>
21666
21667         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
21668         Reported by Mark D. Baushke.
21669
21670 2006-01-24  Jim Meyering  <jim@meyering.net>
21671
21672         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
21673
21674 2006-01-24  Bruno Haible  <bruno@clisp.org>
21675
21676         * modules/strnlen (Maintainer): Change from glibc to all.
21677
21678 2006-01-24  Bruno Haible  <bruno@clisp.org>
21679
21680         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
21681         Patch by Paul Eggert.
21682
21683 2006-01-24  Bruno Haible  <bruno@clisp.org>
21684
21685         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
21686         already has it.
21687         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
21688         2005-11-26.
21689
21690         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
21691         'signed char' to avoid problems with the built-in _Bool type.
21692         Reported by Paul Eggert on 2005-11-26.
21693
21694 2006-01-24  Bruno Haible  <bruno@clisp.org>
21695
21696         * gnulib-tool (func_import): Avoid constructing complicated sed
21697         expressions inside backquote.
21698         Report and solution by Mark D. Baushke <mdb@gnu.org>.
21699
21700 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
21701
21702         These changes imported from libc.
21703         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
21704         test and two separate function calls.
21705         * lib/strndup.c (__strndup): Add libc_hidden_def.
21706
21707 2006-01-23  Simon Josefsson  <jas@extundo.com>
21708
21709         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
21710         Remove the test_*_SOURCES variable: automake infers it by default.
21711         * modules/tls-tests: Likewise.
21712
21713 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21714
21715         Work around porting bugs reported by Dieter in
21716         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
21717         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
21718         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
21719         Include "getopt.h" first, to check interface.
21720         (getenv): Declare only if defined HAVE_DECL_GETENV &&
21721         !HAVE_DECL_GETENV.
21722         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
21723         (__strndup): Revert to K&R-style function dfns, the glibc style.
21724         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
21725         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
21726         Include strnlen.h first, to get prototype properly.
21727         (strnlen): Renamed from __strnlen.
21728         Remove weak alias.
21729
21730 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21731
21732         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
21733
21734 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21735
21736         * config/srclist.txt: Adjust to reflect glibc reorganization.
21737         This affects only comments.
21738
21739 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
21740
21741          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
21742          Reported by Bruce Korb <bkorb@gnu.org>.
21743
21744 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
21745
21746         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
21747         to pacify gcc -Wswitch-default.
21748
21749 2006-01-22  Bruno Haible  <bruno@clisp.org>
21750
21751         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
21752         temporary buffer for sprintf, take into account the precision also
21753         for 'd', 'i', 'u', 'o', 'x', 'X'.
21754
21755 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
21756
21757         * modules/argp-tests: New module
21758         * tests/test-argp.c: New file
21759         * tests/test-argp-2.sh: New file
21760
21761 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
21762
21763         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
21764         (__argp_base_name): Removed
21765         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
21766         typo.
21767         (__argp_base_name): Provide macro definition or extern declaration
21768         depending on the configuration
21769
21770 2006-01-20  Simon Josefsson  <jas@extundo.com>
21771
21772         * modules/inet_ntop (Depends-on): Depend on sys_socket.
21773
21774 2006-01-20  Simon Josefsson  <jas@extundo.com>
21775
21776         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
21777
21778 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
21779
21780         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
21781         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
21782         Suggested by Bruno Haible.
21783
21784 2006-01-20  Karl Berry  <karl@gnu.org>
21785
21786         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
21787         until changes propagate, I guess.
21788
21789 2006-01-19  Simon Josefsson  <jas@extundo.com>
21790
21791         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
21792
21793 2006-01-19  Simon Josefsson  <jas@extundo.com>
21794
21795         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
21796
21797 2006-01-19  Simon Josefsson  <jas@extundo.com>
21798
21799         * gnulib-tool: Set check_PROGRAMS.
21800
21801         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
21802         modules/des-tests, modules/gc-arcfour-tests,
21803         modules/gc-arctwo-tests, modules/gc-des-tests,
21804         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
21805         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
21806         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
21807         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
21808         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
21809         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
21810         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
21811         test_*_SOURCES.
21812
21813 2006-01-18  Simon Josefsson  <jas@extundo.com>
21814
21815         * modules/socklen (Depends-on): Depend on sys_socket.
21816
21817 2006-01-18  Simon Josefsson  <jas@extundo.com>
21818
21819         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
21820         modules/des-tests, modules/gc-arcfour-tests,
21821         modules/gc-arctwo-tests, modules/gc-des-tests,
21822         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
21823         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
21824         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
21825         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
21826         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
21827         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
21828         $(EXEEXT) to automake TESTS variable, for mingw32.
21829
21830 2006-01-17  Simon Josefsson  <jas@extundo.com>
21831
21832         * modules/socklen (Include): Need sys/socket.h.
21833
21834 2006-01-17  Bruno Haible  <bruno@clisp.org>
21835
21836         * modules/ssize_t (Include): Add <sys/types.h>.
21837
21838 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
21839
21840         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
21841         it's not portable and it doesn't work with cross-compiles.
21842         Problem reported by Bruno Haible.  Fix missing-$ typo in
21843         'test "gl_cv_ignore_unused_libraries" ...' that prevented
21844         -zignore from being used with Sun's C compiler.
21845
21846 2006-01-12  Simon Josefsson  <jas@extundo.com>
21847
21848         * lib/base64.c: Fix warning, reported by Bruno Haible
21849         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
21850
21851 2006-01-12  Bruno Haible  <bruno@clisp.org>
21852
21853         * modules/ldd: New file.
21854         * build-aux/ldd.sh.in: New file.
21855         * MODULES.html.sh (Support for building libraries and executables): Add
21856         ldd.
21857
21858 2006-01-12  Bruno Haible  <bruno@clisp.org>
21859
21860         * m4/ldd.m4: New file.
21861
21862 2006-01-12  Bruno Haible  <bruno@clisp.org>
21863
21864         * gnulib-tool (func_import, func_create_testdir): Don't go into an
21865         endless loop while replacing $auxdir with build-aux.
21866
21867 2006-01-11  Simon Josefsson  <jas@extundo.com>
21868
21869         * lib/stdint_.h (SIZE_MAX): Add missing (.
21870
21871 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21872
21873         Sync from coreutils.
21874         * lib/md5.c: Fix commentary typos.
21875         (alignof, UNALIGNED_P): No need for a GCC-specific version.
21876         * lib/md5.h (__attribute__): Remove; unused.
21877         * lib/sha1.c: Fix commentary to match md5 better.
21878         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
21879         so that we don't need to worry about alignment.  All uses changed.
21880         This merges the 2005-10-28 md5 change into sha1.
21881
21882 2006-01-11  Jim Meyering  <jim@meyering.net>
21883
21884         Sync from coreutils.
21885         * lib/md5.c (OP): Fix spacing.
21886
21887 2006-01-11  Bruno Haible  <bruno@clisp.org>
21888
21889         Ensure automatic ordering between gl_LOCK and gl_ARGP.
21890         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
21891         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
21892
21893 2006-01-11  Bruno Haible  <bruno@clisp.org>
21894
21895         Ensure automatic ordering between gl_LOCK and gl_ARGP.
21896         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
21897         the "early" section as well.
21898
21899 2006-01-11  Bruno Haible  <bruno@clisp.org>
21900
21901         Avoid "ar: no archive members specified" error on MacOS X.
21902         * gnulib-tool (func_modules_add_dummy): New function.
21903         (func_import, func_create_testdir): Invoke it.
21904
21905 2006-01-11  Bruno Haible  <bruno@clisp.org>
21906
21907         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
21908         with $auxdir in AC_CONFIG_FILES statements.
21909
21910 2006-01-11  Bruno Haible  <bruno@clisp.org>
21911
21912         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21913         Initialize also noinst_HEADERS to empty.
21914
21915 2006-01-11  Bruno Haible  <bruno@clisp.org>
21916
21917         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
21918         variables.
21919         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
21920         autoreconf.
21921
21922 2006-01-11  Bruno Haible  <bruno@clisp.org>
21923
21924         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
21925         overridable by the user.
21926         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21927
21928 2006-01-10  Simon Josefsson  <jas@extundo.com>
21929
21930         * modules/sys_socket: New file.
21931
21932 2006-01-10  Simon Josefsson  <jas@extundo.com>
21933
21934         * m4/sys_socket_h.m4: New file.
21935
21936 2006-01-10  Simon Josefsson  <jas@extundo.com>
21937
21938         * lib/socket_.h: New file.
21939
21940 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21941
21942         * modules/readutmp (Maintainer): Add myself.
21943
21944 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21945
21946         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
21947         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
21948         People who are still concerned with buggy memcmp implementations
21949         can invoke gl_FUNC_MEMCMP themselves.
21950
21951 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21952
21953         * lib/regex_internal.h (BITSET_WORD_BITS):
21954         Work around a bug in 64-bit PGC (before version 6.1-2), where the
21955         preprocessor mishandles large unsigned values as if they were signed.
21956         Problem reported by Claudio Fontana in
21957         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
21958
21959 2006-01-10  Jim Meyering  <jim@meyering.net>
21960
21961         Avoid the double-free (first in fts_read, second in fts_close) that
21962         would occur when an `active' directory is made inaccessible (e.g.,
21963         via chmod a-x) during a traversal.
21964         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
21965         before returning.  Reproduce this failure by
21966         mkdir -p a/b; cd a; chmod a-x . b
21967         Reported by Stavros Passas.
21968
21969         Sync from coreutils.
21970         * lib/sha1.c: Tweak grammar in a comment.
21971
21972 2006-01-10  Jim Meyering  <jim@meyering.net>
21973
21974         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
21975         Patch by Joerg Sonnenberger.
21976
21977 2006-01-10  Bruno Haible  <bruno@clisp.org>
21978
21979         * modules/readutmp: Depend on module free.
21980         * modules/strtok_r: Depend on module restrict.
21981
21982 2006-01-10  Bruno Haible  <bruno@clisp.org>
21983
21984         * modules/gettext (configure.ac): Add an invocation of
21985         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
21986
21987 2006-01-10  Bruno Haible  <bruno@clisp.org>
21988
21989         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
21990         Reported by Werner Lemberg <wl@gnu.org>.
21991
21992 2006-01-10  Bruno Haible  <bruno@clisp.org>
21993
21994         * lib/localcharset.c: Update from GNU gettext.
21995
21996 2006-01-10  Bruno Haible  <bruno@clisp.org>
21997
21998         * lib/argp.h (__const): Remove macro. Use const instead.
21999         * lib/argp-fmtstream.h (__const): Likewise.
22000         * lib/glob_.h (__const): Remove macro.
22001         * lib/glob-libc.h: Use const instead of __const.
22002
22003 2006-01-10  Bruno Haible  <bruno@clisp.org>
22004
22005         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
22006         variable.
22007         Needed to avoid an automake error regarding the 'gettext' module.
22008
22009 2006-01-09  Simon Josefsson  <jas@extundo.com>
22010
22011         * modules/inet_ntop (Depends-on): Add restrict.
22012
22013 2006-01-09  Simon Josefsson  <jas@extundo.com>
22014
22015         * modules/gc-rijndael-tests (License): Put under LGPL.
22016
22017         * modules/gc-des-tests (License): Likewise.
22018
22019         * modules/gc-arcfour-tests (License): Likewise.
22020
22021         * modules/gc-arctwo-tests (License): Likewise.
22022
22023         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
22024
22025         * modules/gc-hmac-sha1-tests (Files): Likewise.
22026
22027         * modules/gc-hmac-md5-tests (License): Likewise.
22028
22029         * modules/gc-sha1-tests (License): Likewise.
22030
22031         * modules/gc-md5-tests (License): Likewise.
22032
22033         * modules/gc-md4-tests (License): Likewise.
22034
22035         * modules/gc-md2-tests (License): Likewise.
22036
22037         * modules/gc-tests (License): Likewise.
22038
22039         * modules/des-tests (License): Likewise.
22040
22041         * modules/md4-tests (License): Likewise.
22042
22043         * modules/md2-tests (License): Likewise.
22044
22045 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
22046
22047         Sync from coreutils:
22048
22049         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
22050         * modules/lib-ignore: New file.
22051         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
22052         chdir-safer.m4, lchmod.m4.
22053         * modules/openat: Add mkdirat.c, openat-priv.h.
22054
22055 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
22056
22057         Sync from coreutils.
22058         * m4/lib-ignore.m4: New file.
22059         * m4/lchmod.m4: New file.
22060
22061 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
22062
22063         Sync from coreutils.
22064         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
22065         for write access: POSIX says that must fail.
22066         * lib/fts.c (diropen): Likewise.
22067         * lib/save-cwd.c (save_cwd): Likewise.
22068         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
22069         well, for minor improvements on hosts that lack O_DIRECTORY.
22070         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
22071         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
22072         Fall back on chown if open failed with EACCES.
22073
22074         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
22075         Report an error at compile-time if only a 1-second nominal clock
22076         resolution is found.
22077
22078         * lib/lchmod.h: New file.
22079         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
22080         (make_dir_parents): Use lchown rather than chown, and
22081         lchmod rather than chmod.
22082
22083         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
22084         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
22085         "proc" reported by n0dalus.
22086
22087         * lib/mountlist.c: Include <limits.h>.
22088         (dev_from_mount_options)
22089         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
22090         New function.  It no longer assumes "dev=" has the System V meaning
22091         on Linux (since it doesn't).  It also parses "dev=" more carefully.
22092         (read_file_system_list)
22093         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
22094         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
22095         dev= in that case.
22096
22097         * lib/posixtm.h (PDS_PRE_2000): New macro.
22098         * lib/posixtm.c (year): Arg is now syntax_bits rather than
22099         allow_century.  All usages changed.  Reject dates outside the range
22100         1969-1999 if PDS_PRE_2000 is used.
22101
22102 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
22103
22104         Sync from coreutils.
22105         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
22106         (Time of day items): Mention the possibility of leap seconds.
22107         Problem reported by Dr. David Alan Gilbert.
22108
22109 2006-01-09  Jim Meyering  <jim@meyering.net>
22110
22111         Sync from coreutils.
22112
22113         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
22114
22115         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
22116
22117         * lib/modechange.c (mode_compile): Reject an invalid mode string
22118         that starts with an octal digit.  From Andreas Gruenbacher.
22119
22120         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
22121         and dup to open_safer and dup_safer, respectively.
22122         (openat_permissive): Fix typo in comment.
22123
22124         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
22125         "gettext.h"; either no longer needed or are guaranteed by openat.h.
22126         (_): Remove; no longer needed.
22127         (openat): Renamed from rpl_openat; no need for rpl_openat
22128         since openat.h renames openat for us.
22129         Replace most of the body with a call to openat_permissive,
22130         to avoid duplicate code.
22131         Port to (probably hypothetical) environments were mode_t is
22132         wider than int.
22133         (openat_permissive): Require mode arg, so that we can check
22134         types better.  Put it just after flags.  Change cwd failure
22135         indicator from pointer-to-bool to pointer-to-errno-value.
22136         All callers changed.
22137         Invoke openat_save_fail and/or openat_restore_fail if
22138         cwd_errno is null, so that openat can call us.
22139         (openat_permissive, fdopendir, fstatat, unlinkat):
22140         Simplify errno handling to avoid some duplicate code,
22141         as it's OK to set errno on success.
22142         * lib/openat.h: Revamp code so that function macros depend on
22143         __OPENAT_PREFIX only, not also on AT_FDCWD.
22144         (openat_ro): Remove.  Caller changed to use openat_permissive.
22145         (openat_permissive): Now a macro, if not a function.
22146         (openat_restore_fail, openat_save_fail): Now always functions,
22147         since mkdirat needs them even if __OPENAT_PREFIX is defined.
22148
22149         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
22150         and openat.c.
22151         * lib/mkdirat.c: Include openat-priv.h.
22152         Remove definitions of macros defined therein.
22153         * lib/openat.c: Likewise.
22154
22155         * lib/mkdirat.c (mkdirat): New file and function.
22156         * lib/openat.h (mkdirat): Declare.
22157
22158         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
22159
22160         * lib/openat.h (openat_permissive): Declare.
22161         (openat_ro): Define.
22162
22163         * lib/openat.c (EXPECTED_ERRNO): New macro.
22164         (openat_permissive): New function -- used in remove.c rewrite.
22165         (all functions): Set errno just before returning, only if there
22166         was an actual failure.
22167         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
22168
22169         Emulate openat-family functions using Linux's procfs, if possible.
22170         Idea and some code based on Ulrich Drepper's glibc changes.
22171
22172         * lib/openat.c: (BUILD_PROC_NAME): New macro.
22173         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
22174         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
22175         before falling back on save_cwd and restore_cwd.
22176         (fdopendir, fstatat, unlinkat): Likewise.
22177
22178         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
22179         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
22180
22181         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
22182         as second argument to va_arg.  Otherwise, some versions of gcc
22183         warn that `if this code is reached, the program will abort'.
22184
22185 2006-01-09  Jim Meyering  <jim@meyering.net>
22186
22187         Sync from coreutils.
22188         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
22189         Require openat-priv.h.
22190
22191 2006-01-09  Bruno Haible  <bruno@clisp.org>
22192
22193         * modules/strnlen (Include): Use strnlen.h.
22194
22195 2006-01-09  Bruno Haible  <bruno@clisp.org>
22196
22197         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
22198
22199 2006-01-09  Bruno Haible  <bruno@clisp.org>
22200
22201         * lib/sysexit_.h (EX_OK): New macro.
22202         Suggested by Martin Lambers <marlam@marlam.de>.
22203
22204 2006-01-09  Bruno Haible  <bruno@clisp.org>
22205
22206         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
22207         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
22208
22209 2006-01-09  Bruno Haible  <bruno@clisp.org>
22210
22211         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
22212         numbers.
22213
22214 2006-01-09  Bruno Haible  <bruno@clisp.org>
22215
22216         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
22217         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
22218         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
22219         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
22220
22221 2006-01-09  Bruno Haible  <bruno@clisp.org>
22222
22223         * build-aux/javacomp.sh.in: New file, moved from lib/.
22224         * modules/javacomp-script (Files): Update.
22225         (configure.ac): Add AC_CONFIG_FILES invocation.
22226         (EXTRA_DIST): Remove variable.
22227
22228         * build-aux/javaexec.sh.in: New file, moved from lib/.
22229         * modules/javaexec (Files): Update.
22230         (configure.ac): Add AC_CONFIG_FILES invocation.
22231         (EXTRA_DIST): Remove javaexec.sh.in.
22232
22233         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
22234         * modules/csharpcomp-script (Files): Update.
22235         (configure.ac): Add AC_CONFIG_FILES invocation.
22236         (EXTRA_DIST): Remove variable.
22237
22238         * build-aux/csharpexec.sh.in: New file, moved from lib/.
22239         * modules/csharpexec (Files): Update.
22240         (configure.ac): Add AC_CONFIG_FILES invocation.
22241         (EXTRA_DIST): Remove csharpexec.sh.in.
22242
22243 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
22244
22245         Sync from coreutils.
22246
22247         Add POSIX ACL support
22248         * lib/acl.h (copy_acl, set_acl): Add declarations.
22249         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
22250         systems other than Linux.
22251         (chmod_or_fchmod): New function: use fchmod when possible,
22252         and chmod otherwise.
22253         (file_has_acl): Add a POSIX ACL implementation, with a
22254         Linux-specific subcase.
22255         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
22256         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
22257         acls are unsupported.
22258         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
22259         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
22260         are unsupported.
22261
22262 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
22263
22264         Sync from coreutils.
22265         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
22266
22267 2006-01-07  Bruno Haible  <bruno@clisp.org>
22268
22269         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
22270         gl_EARLY.
22271
22272 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
22273
22274         * lib/strftime.c (tzname): Don't declare if it is already #defined.
22275         Problem reported for Mingw by Mark Junker.
22276
22277 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
22278
22279         * README: Gnulib normally doesn't generate a tarball.
22280
22281 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
22282
22283         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
22284         long int, not int, for nanosecond counts, so that people who are
22285         used to POSIX struct timespec won't be surprised.  Reported by Jim
22286         Meyering.
22287
22288 2005-12-28  Bruno Haible  <bruno@clisp.org>
22289
22290         * build-aux/config.rpath: Update from GNU gettext.
22291
22292 2005-12-16  Jim Meyering  <jim@meyering.net>
22293
22294         * modules/fprintftime: New module.
22295         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
22296
22297 2005-12-16  Jim Meyering  <jim@meyering.net>
22298
22299         * m4/fprintftime.m4: New file.
22300
22301 2005-12-16  Jim Meyering  <jim@meyering.net>
22302
22303         * lib/fprintftime.c, lib/fprintftime.h: New files.
22304
22305 2005-12-15  Simon Josefsson  <jas@extundo.com>
22306
22307         * modules/socklen (configure.ac): Fix M4 macro name, to align with
22308         new m4/socklen.m4.
22309
22310 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
22311
22312         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
22313         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
22314
22315 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
22316
22317         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
22318         * lib/argp-help.c (fill_in_uparams): Check if the constructed
22319         struct uparams is valid. Fall back to the default values if it is
22320         not.
22321
22322 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
22323
22324         * modules/argp (Files): Add argp-pin.c
22325         (Depends-on): dirname
22326         (lib_SOURCES): Add argp-pin.c
22327
22328 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
22329
22330         * m4/argp.m4:  Check if program_invocation_name and
22331         program_invocation_short_name are declared and define appropriate
22332         macros if they are not.
22333
22334 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
22335
22336         * lib/argp-help.c (__argp_base_name): New function
22337         (__argp_short_program_name): Rewrite using __argp_base_name
22338         * lib/argp-namefrob.h: Define program_invocation_name and
22339         program_invocation_short_name if requested
22340         (__argp_base_name): Add prototype
22341         * lib/argp-parse.c (argp_def): Use gettext wrappers
22342         (argp_default_parser): Use __argp_base_name
22343         * lib/argp-pin.c: New file. Defines program_invocation_name and
22344         program_invocation_short_name on systems that lack them.
22345
22346 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
22347
22348         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
22349         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
22350         porting problem reported by Georg Schwarz in
22351         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
22352
22353 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
22354
22355         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
22356         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
22357         porting problem reported by Georg Schwarz in
22358         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
22359
22360 2005-12-05  Bruno Haible  <bruno@clisp.org>
22361
22362         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
22363         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
22364         Reported by Mark Junker <mjscod@gmx.de>.
22365
22366 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
22367
22368         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
22369         Use implementation from Albert Chin, with some
22370         comments/corrections by Stepan Kasal and myself.
22371
22372 2005-12-02  Bruno Haible  <bruno@clisp.org>
22373
22374         * gnulib-tool (func_import): Accept GPLed build tool modules when
22375         --lgpl is given.
22376         * modules/csharpcomp-script: New file.
22377         * modules/csharpcomp: Depend on it.
22378         * modules/javacomp-script: New file.
22379         * modules/javacomp: Depend on it.
22380         Suggested by Simon Josefsson.
22381
22382 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
22383
22384         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
22385         statement, to work around an HP-UX 10.20 compiler bug reported by
22386         Peter O'Gorman.
22387
22388 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
22389
22390         * modules/savedir (Depends-on): Add openat.
22391
22392 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
22393
22394         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
22395         (uintmax_t) [defined uintmax_t]: Do not declare.
22396         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
22397         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
22398         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
22399         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
22400         sake of portability to weird hosts that C allows (though we don't
22401         know of any practical examples).
22402
22403         * lib/savedir.h (fdsavedir): New decl.
22404         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
22405         contains most of the former guts of savedir.
22406         (savedir): Use savedirstream.
22407         Include "openat.h".
22408
22409 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
22410
22411         * modules/obstack (Files): Add m4/ulonglong.m4.
22412         Problem reported by Davide Angelocola.
22413
22414 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
22415
22416         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
22417         coreutils no longer futzes with rounding modes.
22418
22419 2005-11-14  Jim Meyering  <jim@meyering.net>
22420
22421         * lib/mkstemp-safer.c: Include <config.h>, required for possible
22422         replacement of mkstemp.
22423
22424 2005-11-10  Simon Josefsson  <jas@extundo.com>
22425
22426         * lib/readline.c: Remove EOL.
22427
22428 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
22429
22430         * modules/gethrxtime (Depends-on): Add gettime.
22431
22432 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
22433
22434         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
22435         or gettimeofday; no longer needed.
22436
22437 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
22438
22439         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
22440         time business.
22441         (gethrxtime) [! (HAVE_NANOUPTIME
22442         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
22443         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
22444         our own approximation.
22445
22446 2005-11-08  Eric Blake  <ebb9@byu.net>
22447
22448         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
22449
22450 2005-11-08  Eric Blake  <ebb9@byu.net>
22451
22452         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
22453
22454 2005-11-04  Bruno Haible  <bruno@clisp.org>
22455
22456         * gnulib-tool: Implement --update mode.
22457
22458 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
22459
22460         Fix porting problem reported by Theodoros V. Kalamatianos.
22461         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
22462         Don't assume that futimes failing means we must fail.
22463
22464 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
22465
22466         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
22467         variables to suggest the intended function of the PATH_MAX check.
22468
22469 2005-10-30  Kean Johnston  <jkj@sco.com>
22470
22471         Trivial changes to support SCO systems.
22472         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
22473         as PATH_MAX.
22474         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
22475         where __ptr is null when no I/O is pending.
22476
22477 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
22478
22479         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
22480         leave errno alone.  Problem reported by Dmitry V. Levin.
22481
22482 2005-10-28  Simon Josefsson  <jas@extundo.com>
22483
22484         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
22485         Test more.
22486
22487         * tests/test-gc-md2.c, tests/test-md2.c: New files.
22488
22489         * modules/md2, modules/md2-tests: New files.
22490
22491 2005-10-28  Simon Josefsson  <jas@extundo.com>
22492
22493         * m4/inet_ntop.m4: More tests.
22494
22495         * m4/gc-md2.m4, md2.m4: New file.
22496
22497 2005-10-28  Simon Josefsson  <jas@extundo.com>
22498
22499         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
22500         "restrict" keywords, as per POSIX.  Protect the function
22501         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
22502         Don't use K&R prototypes.  Check the sprintf return values.
22503         Re-define EAFNOSUPPORT if not present.  Indent.
22504
22505         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
22506         suggested by Bruno Haible <bruno@clisp.org>.
22507
22508         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
22509
22510         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
22511
22512         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
22513         libgcrypt).
22514
22515         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
22516
22517         * lib/md2.h, lib/md2.c: New files.
22518
22519 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
22520
22521         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
22522         errno alone.  Problem reported by Frederic Jolliton.
22523
22524 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
22525
22526         * modules/verify (License): Change from GPL to LGPL.  This is a
22527         tiny module and there are apparently near-equivalents that are
22528         under the BSD license.
22529
22530 2005-10-24  Simon Josefsson  <jas@extundo.com>
22531
22532         * modules/sha1: Relicense to LGPL.
22533
22534 2005-10-24  Simon Josefsson  <jas@extundo.com>
22535
22536         * lib/md4.h: Shrink buffer size, now that we changed the type.
22537
22538 2005-10-23  Simon Josefsson  <jas@extundo.com>
22539
22540         * gnulib-tool (func_import): Fix --tests-base.
22541
22542 2005-10-22  Simon Josefsson  <jas@extundo.com>
22543
22544         * modules/arcfour (Depends-on): Need stdint.
22545
22546 2005-10-22  Simon Josefsson  <jas@extundo.com>
22547
22548         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
22549         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
22550
22551 2005-10-22  Simon Josefsson  <jas@extundo.com>
22552
22553         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
22554         suggested by Bruno Haible <bruno@clisp.org>.
22555
22556 2005-10-22  Simon Josefsson  <jas@extundo.com>
22557
22558         * lib/crc.h: Include stddef.h, for size_t.
22559
22560 2005-10-22  Simon Josefsson  <jas@extundo.com>
22561
22562         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
22563         arcfour_context struct (simplify test vector testing in GNU
22564         Shishi).
22565
22566 2005-10-21  Simon Josefsson  <jas@extundo.com>
22567
22568         * modules/des, modules/des-tests: New files.
22569
22570         * modules/gc-des, modules/gc-des-tests: New files.
22571
22572         * tests/test-des.c, tests/test-gc-des.c: New file.
22573
22574 2005-10-21  Simon Josefsson  <jas@extundo.com>
22575
22576         * modules/arctwo, modules/arctwo-tests: New files.
22577
22578         * tests/test-arctwo.c: New file.
22579
22580         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
22581
22582         * tests/test-gc-arctwo.c: New file.
22583
22584 2005-10-21  Simon Josefsson  <jas@extundo.com>
22585
22586         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
22587         Bruno Haible <bruno@clisp.org>.
22588
22589         * m4/gc-des.m4: New file.
22590
22591 2005-10-21  Simon Josefsson  <jas@extundo.com>
22592
22593         * m4/arctwo.m4: New file.
22594
22595         * m4/gc-arctwo.m4: New file.
22596
22597 2005-10-21  Simon Josefsson  <jas@extundo.com>
22598
22599         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
22600         block.
22601
22602 2005-10-21  Simon Josefsson  <jas@extundo.com>
22603
22604         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
22605         <bruno@clisp.org>.
22606
22607         * lib/hmac-sha1.c (hmac_sha1): Likewise.
22608
22609         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
22610         Bruno Haible <bruno@clisp.org>.
22611
22612         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
22613         <bruno@clisp.org>.
22614
22615 2005-10-21  Simon Josefsson  <jas@extundo.com>
22616
22617         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
22618
22619 2005-10-21  Simon Josefsson  <jas@extundo.com>
22620
22621         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
22622
22623 2005-10-21  Simon Josefsson  <jas@extundo.com>
22624
22625         * lib/des.h, lib/des.c: New files.
22626
22627         * lib/gc-gnulib.c: Support DES.c
22628
22629 2005-10-21  Simon Josefsson  <jas@extundo.com>
22630
22631         * lib/arctwo.h, lib/arctwo.c: New files.
22632
22633         * lib/gc-gnulib.c: Support ARCTWO.
22634
22635 2005-10-21  Simon Josefsson  <jas@extundo.com>
22636
22637         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
22638         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22639
22640 2005-10-21  Simon Josefsson  <jas@extundo.com>
22641
22642         * gnulib-tool (func_import, func_create_testdir): Define automake
22643         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
22644         Makefile.am snippet),
22645         suggested by Bruno Haible <bruno@clisp.org>.
22646
22647         * modules/gc (Makefile.am): Use it.
22648
22649 2005-10-21  Bruno Haible  <bruno@clisp.org>
22650
22651         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
22652         patch.
22653
22654 2005-10-19  Simon Josefsson  <jas@extundo.com>
22655
22656         * tests/test-gc-rijndael.c: New file.
22657
22658         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
22659
22660 2005-10-19  Simon Josefsson  <jas@extundo.com>
22661
22662         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
22663         interface too.
22664
22665 2005-10-19  Simon Josefsson  <jas@extundo.com>
22666
22667         * tests/test-gc-arcfour.c: New file.
22668
22669         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
22670
22671 2005-10-19  Simon Josefsson  <jas@extundo.com>
22672
22673         * modules/gc-md4, modules/gc-md4-tests: New file.
22674
22675         * tests/test-gc-md4.c: New file.
22676
22677 2005-10-19  Simon Josefsson  <jas@extundo.com>
22678
22679         * m4/gc-md4.m4: New file.
22680
22681 2005-10-19  Simon Josefsson  <jas@extundo.com>
22682
22683         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
22684         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
22685         <kasal@ucw.cz>.
22686
22687 2005-10-19  Simon Josefsson  <jas@extundo.com>
22688
22689         * m4/gc-arcfour.m4: New file.
22690
22691         * m4/gc-rijndael.m4: New file.
22692
22693 2005-10-19  Simon Josefsson  <jas@extundo.com>
22694
22695         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
22696
22697 2005-10-19  Simon Josefsson  <jas@extundo.com>
22698
22699         * lib/gc-gnulib.c: Support ARCFOUR.
22700
22701 2005-10-19  Simon Josefsson  <jas@extundo.com>
22702
22703         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
22704         support.
22705
22706         * lib/gc.h: Add ECB enum type.
22707
22708         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
22709
22710 2005-10-18  Simon Josefsson  <jas@extundo.com>
22711
22712         * tests/test-md5.c: New file.
22713
22714         * modules/md5-tests: New file.
22715
22716 2005-10-18  Simon Josefsson  <jas@extundo.com>
22717
22718         * tests/test-md4.c: New file.
22719
22720         * modules/md4, modules/md4-tests: New files.
22721
22722 2005-10-18  Simon Josefsson  <jas@extundo.com>
22723
22724         * m4/md4.m4: New file.
22725
22726 2005-10-18  Simon Josefsson  <jas@extundo.com>
22727
22728         * lib/md4.h, lib/md4.c: New files, based on md5.?.
22729
22730 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
22731
22732         * gnulib-tool (func_create_testdir): Omit the second check whether
22733         BUILT_SOURCES in nonempty.
22734
22735 2005-10-17  Simon Josefsson  <jas@extundo.com>
22736
22737         * tests/test-rijndael.c: New file.
22738
22739 2005-10-17  Simon Josefsson  <jas@extundo.com>
22740
22741         * modules/sha1: Depend on stdint instead of md5.
22742
22743         * modules/md5: Depend on stdint, remove uint32_t.
22744
22745 2005-10-17  Simon Josefsson  <jas@extundo.com>
22746
22747         * modules/gc-sha1-tests: New file.
22748
22749         * tests/test-gc-sha1.c: New file.
22750
22751 2005-10-17  Simon Josefsson  <jas@extundo.com>
22752
22753         * m4/md5.m4: Remove call to uint32_t.m4.
22754
22755 2005-10-17  Simon Josefsson  <jas@extundo.com>
22756
22757         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
22758
22759         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
22760         md5.h.
22761
22762         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
22763
22764         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
22765
22766 2005-10-17  Simon Josefsson  <jas@extundo.com>
22767
22768         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
22769
22770 2005-10-17  Simon Josefsson  <jas@extundo.com>
22771
22772         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
22773
22774 2005-10-17  Simon Josefsson  <jas@extundo.com>
22775
22776         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
22777
22778         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
22779
22780 2005-10-17  Bruno Haible  <bruno@clisp.org>
22781
22782         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
22783         that it can also be used in a test.
22784
22785 2005-10-16  Bruno Haible  <bruno@clisp.org>
22786
22787         * gnulib-tool (func_emit_tests_Makefile_am): Also define
22788         TESTS_ENVIRONMENT, so that individual tests can augment it.
22789
22790         * gnulib-tool (func_create_testdir): Use an intermediate target for
22791         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
22792         macros, like $(ALLOCA_H), which cannot be passed through the command
22793         line.
22794
22795 2005-10-15  Simon Josefsson  <jas@extundo.com>
22796
22797         * modules/rijndael-tests: New file.
22798
22799         * modules/rijndael: New file.
22800
22801 2005-10-15  Simon Josefsson  <jas@extundo.com>
22802
22803         * m4/rijndael.m4: New file.
22804
22805 2005-10-15  Simon Josefsson  <jas@extundo.com>
22806
22807         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
22808
22809         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
22810
22811 2005-10-14  Simon Josefsson  <jas@extundo.com>
22812
22813         * tests/test-arcfour.c: New file.
22814
22815         * modules/arcfour, modules/arcfour-tests: New files.
22816
22817 2005-10-14  Simon Josefsson  <jas@extundo.com>
22818
22819         * m4/arcfour.m4: New file.
22820
22821 2005-10-14  Simon Josefsson  <jas@extundo.com>
22822
22823         * lib/arcfour.h, lib/arcfour.c: New files.
22824
22825 2005-10-14  Roland McGrath  <roland@redhat.com>
22826
22827         Import from libc.  [BZ #1331]
22828         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
22829         macro argument.
22830         Reported by Matej Vela <vela@debian.org>.
22831
22832 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
22833
22834         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
22835         include <wchar.h>; no longer needed.
22836
22837 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
22838
22839         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
22840
22841 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
22842         and  Ulrich Drepper  <drepper@redhat.com>
22843
22844         Import from libc.
22845         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
22846         instead of inline stream orientation test and two separate
22847         function calls.  Pay no attention to USE_IN_LIBIO.
22848
22849 2005-10-13  Simon Josefsson  <jas@extundo.com>
22850
22851         * modules/gc-hmac-md5-tests: New file.
22852
22853         * tests/test-gc-hmac-sha1.c: New file.
22854
22855         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
22856
22857         * modules/gc-hmac-md5-tests: New file.
22858
22859         * tests/test-gc-md5.c: New file.
22860
22861         * modules/gc-md5-tests: New file.
22862
22863 2005-10-13  Simon Josefsson  <jas@extundo.com>
22864
22865         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
22866         Move memory allocation outside of loop.
22867
22868 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
22869
22870         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
22871         intermediate directory is in a read-only file system.  Problem
22872         reported by Eric Blake.
22873
22874 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
22875
22876         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
22877
22878 2005-10-12  Simon Josefsson  <jas@extundo.com>
22879
22880         * tests/test-hmac-sha1.c: New file.
22881
22882         * modules/hmac-sha1-tests: New file.
22883
22884         * modules/hmac-sha1: New file.
22885
22886 2005-10-12  Simon Josefsson  <jas@extundo.com>
22887
22888         * modules/gc-sha1: New file.
22889
22890 2005-10-12  Simon Josefsson  <jas@extundo.com>
22891
22892         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
22893
22894         * tests/test-gc-pbkdf2-sha1.c: New file.
22895
22896 2005-10-12  Simon Josefsson  <jas@extundo.com>
22897
22898         * modules/gc-md5, modules/gc-hmac-md5: New files.
22899
22900         * modules/gc (Files): Remove md5, memxor and hmac files.
22901
22902 2005-10-12  Simon Josefsson  <jas@extundo.com>
22903
22904         * m4/gc-pbkdf2-sha1.m4: New file.
22905
22906         * m4/gc-hmac-sha1.m4: New file.
22907
22908         * m4/gc-sha1: New file.
22909
22910         * m4/hmac-sha1.m4: New file.
22911
22912 2005-10-12  Simon Josefsson  <jas@extundo.com>
22913
22914         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
22915
22916         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
22917
22918 2005-10-12  Simon Josefsson  <jas@extundo.com>
22919
22920         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
22921         suggested by Bruno Haible <bruno@clisp.org>.
22922
22923 2005-10-12  Simon Josefsson  <jas@extundo.com>
22924
22925         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
22926
22927 2005-10-12  Simon Josefsson  <jas@extundo.com>
22928
22929         * lib/gc-pbkdf2-sha1.c: New file.
22930
22931         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
22932
22933 2005-10-12  Simon Josefsson  <jas@extundo.com>
22934
22935         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
22936
22937         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
22938
22939 2005-10-12  Simon Josefsson  <jas@extundo.com>
22940
22941         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
22942         GC_USE_HMAC_MD5, respectively.
22943
22944         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
22945         (gc_md5): Fix typo.
22946
22947         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
22948
22949         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
22950
22951         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
22952
22953 2005-10-12  Bruno Haible  <bruno@clisp.org>
22954
22955         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
22956         Reported by Stepan Kasal <kasal@ucw.cz>.
22957
22958 2005-10-11  Simon Josefsson  <jas@extundo.com>
22959
22960         * tests/test-crc.c: New file.
22961
22962         * modules/crc, modules/crc-tests: New files.
22963
22964 2005-10-11  Simon Josefsson  <jas@extundo.com>
22965
22966         * m4/crc.m4: New file.
22967
22968 2005-10-11  Simon Josefsson  <jas@extundo.com>
22969
22970         * lib/gc.h: Add gc_hash and gc_hash_buffer.
22971
22972         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
22973
22974         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
22975
22976 2005-10-11  Simon Josefsson  <jas@extundo.com>
22977
22978         * lib/crc.h, lib/crc.c: New files.
22979
22980         * lib/gc.h (gc_hash_buffer): Add doc.
22981
22982 2005-10-11  Bruno Haible  <bruno@clisp.org>
22983
22984         * modules/c-strcasestr: New file.
22985         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
22986
22987 2005-10-11  Bruno Haible  <bruno@clisp.org>
22988
22989         * modules/c-strcase: New file.
22990         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
22991
22992 2005-10-11  Bruno Haible  <bruno@clisp.org>
22993
22994         * lib/strcasecmp.c: Include limits.h.
22995         (strcasecmp): Avoid integer overflow on exotic platforms.
22996         * lib/strncasecmp.c: Include limits.h.
22997         (strncasecmp): Avoid integer overflow on exotic platforms.
22998         Reported by Paul Eggert.
22999
23000 2005-10-11  Bruno Haible  <bruno@clisp.org>
23001
23002         * lib/c-strcasestr.h: New file, from GNU gettext.
23003         * lib/c-strcasestr.c: New file, from GNU gettext.
23004
23005 2005-10-11  Bruno Haible  <bruno@clisp.org>
23006
23007         * lib/c-strcase.h: New file, from GNU gettext.
23008         * lib/c-strcasecmp.c: New file, from GNU gettext.
23009         * lib/c-strncasecmp.c: New file, from GNU gettext.
23010
23011 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23012
23013         * modules/mempcpy (License): GPL -> LGPL.
23014         * modules/strchrnul (License): Likewise.
23015         * modules/sysexits (License): Likewise.
23016
23017 2005-10-08  Simon Josefsson  <jas@extundo.com>
23018
23019         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
23020
23021 2005-10-07  Simon Josefsson  <jas@extundo.com>
23022
23023         * m4/memxor.m4: Remove gl_C_RESTRICT call.
23024
23025 2005-10-06  Simon Josefsson  <jas@extundo.com>
23026
23027         * tests/test-hmac-md5.c: New file.
23028
23029         * modules/hmac-md5-tests: New file.
23030
23031         * modules/hmac-md5: New file.
23032
23033 2005-10-06  Simon Josefsson  <jas@extundo.com>
23034
23035         * m4/hmac-md5.m4: New file.
23036
23037         * m4/memxor.m4: Require gl_C_RESTRICT.
23038
23039 2005-10-06  Simon Josefsson  <jas@extundo.com>
23040
23041         * lib/memxor.c (memxor): Avoid casts and warnings.
23042
23043 2005-10-06  Simon Josefsson  <jas@extundo.com>
23044
23045         * lib/hmac-md5.c: New file.
23046
23047         * lib/hmac.h: New file.
23048
23049 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
23050
23051         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
23052         promotes to int, not unsigned int, to catch the AIX 5.3
23053         compiler bug.
23054
23055 2005-10-05  Simon Josefsson  <jas@extundo.com>
23056
23057         * modules/memxor: New file.
23058
23059         * modules/iconv (Files): Move config.rpath to havelib, it is used
23060         there.
23061
23062         * modules/havelib (Files): Add config.rpath.
23063
23064 2005-10-05  Simon Josefsson  <jas@extundo.com>
23065
23066         * m4/memxor.m4: New file.
23067
23068 2005-10-05  Simon Josefsson  <jas@extundo.com>
23069
23070         * lib/memxor.c (memxor): Fix compiler error.
23071
23072         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
23073         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
23074
23075         * lib/memxor.h, lib/memxor.c: New files.
23076
23077         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
23078         we assume all systems have it, suggested by Jim Meyering
23079         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
23080         any systems lack sys/socket.h; mingw32 is known to lack it, but we
23081         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
23082         same reasons.
23083
23084 2005-10-05  Simon Josefsson  <jas@extundo.com>
23085
23086         * config/srclist.txt: Add glibc bug 1423 for md5.h.
23087
23088 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
23089
23090         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
23091         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
23092         needed, since the source code now assumes these .h files.
23093
23094 2005-10-05  Derek Price  <derek@ximbiot.com>
23095
23096         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
23097
23098 2005-10-05  Bruno Haible  <bruno@clisp.org>
23099
23100         * modules/stdint (License): Change to LGPL.
23101
23102 2005-10-04  Simon Josefsson  <jas@extundo.com>
23103
23104         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
23105         D. Baushke" <mdb@gnu.org>.
23106
23107 2005-10-04  Bruno Haible  <bruno@clisp.org>
23108
23109         * lib/verify.h (verify_true): Provide alternative definition for C++.
23110
23111 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
23112
23113         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
23114         (SSIZE_MAX): New macro, if not already defined.
23115         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
23116         than 2 GiB.
23117
23118 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
23119
23120         Sync from coreutils.
23121         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
23122         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
23123         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
23124         ULLONG_MAX doesn't work with 2.7.2.1.
23125
23126 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
23127
23128         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
23129         From Ben Pfaff.
23130
23131         * modules/exclude (Depends-on): Depend on verify.
23132         * modules/strtoimax (Depends-on): Likewise.
23133         * modules/utimecmp (Depends-on): Likewise.
23134
23135 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
23136
23137         * lib/exclude.c: Include verify.h.
23138         (verify): Remove.  All callers changed to use verify.h's version.
23139         * lib/strtoimax.c: Likewise.
23140         * lib/utimecmp.c: Likewis.e
23141
23142         Sync from coreutils.
23143         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
23144         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
23145         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
23146         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
23147         bother returning ENOSYS if settimeofday or stime fails; just let
23148         them return whatever errno they want to return.
23149         * lib/utimens.c: Include unistd.h, for dup2.
23150         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
23151         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
23152
23153 2005-10-02  Jim Meyering  <jim@meyering.net>
23154
23155         Sync from coreutils.
23156         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
23157         from glibc-2.2.5 that fails for read-only files.
23158
23159 2005-10-02  Jim Meyering  <jim@meyering.net>
23160
23161         Sync from coreutils.
23162         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
23163         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
23164         `#if HAVE_CONFIG_H'.
23165         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
23166         Remove AT_FDCWD test.
23167         Do not consume the fd unless successful.
23168         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
23169         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
23170         block, so that we don't even try to compile it if settimeofday is
23171         available.  This works around a compilation failure on OSF1 V5.1,
23172         due to stime requiring a `long int*' while tv_sec is `int'.
23173
23174 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
23175
23176         Sync from coreutils.
23177         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
23178         against `yes', rather than just testing for nonempty.
23179
23180 2005-10-01  Simon Josefsson  <jas@extundo.com>
23181
23182         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
23183         and Darwin.
23184
23185         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
23186         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
23187         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
23188         freeaddrinfo and gai_strerror are declared by the POSIX headers.
23189         Check if struct addrinfo is declared.
23190
23191 2005-10-01  Simon Josefsson  <jas@extundo.com>
23192
23193         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
23194         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
23195         AI_* and EAI_* definitions.  Protect function declarations.
23196
23197 2005-10-01  Jim Meyering  <jim@meyering.net>
23198
23199         Sync from coreutils.
23200
23201         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
23202         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
23203         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
23204         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
23205         in the inet and nsl libraries.  Required on Solaris 5.7.
23206
23207 2005-10-01  Jim Meyering  <jim@meyering.net>
23208
23209         Sync from coreutils.
23210         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
23211         in the inet and nsl libraries.  Required on Solaris 5.7.
23212
23213 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
23214
23215         * lib/getdelim.c (getdelim): Remove unused variables.
23216
23217 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
23218
23219         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
23220         so that the code works even with ancient cpp.  Portability problem
23221         with GCC 2.7.2.1 reported by Thomas M.Ott.
23222
23223 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
23224
23225         * modules/regex (Depends-on): Add strcase.
23226
23227         * modules/gethostname (Licence): Change from GPL to LGPL, since
23228         gethostname.c is a trivial implementation of a standard library
23229         function.
23230         * modules/poll (License): Change from GPL to LGPL, since it's
23231         derived from LGPL code.
23232
23233 2005-09-27  Jim Meyering  <jim@meyering.net>
23234
23235         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
23236         HAVE_CONFIG_H.
23237
23238         * lib/intprops.h (signed_type_or_expr__): Define.
23239         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
23240         for unsigned types.
23241
23242 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
23243
23244         * lib/verify.h (verify_expr): Remove, replacing with:
23245         (verify_true): New macro that returns true instead of void.
23246         (verify_type__): Remove.
23247         (verify): Use verify_true rather than verify_type__.
23248
23249 2005-09-26  Bruno Haible  <bruno@clisp.org>
23250
23251         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
23252         is necessary.
23253         (lib_SOURCES): Remove mbchar.c.
23254         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
23255         (Files): Add m4/mbrtowc.m4.
23256         * modules/mbiter: Likewise.
23257         * modules/mbuiter: Likewise.
23258
23259 2005-09-26  Bruno Haible  <bruno@clisp.org>
23260
23261         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
23262         compile mbchar.c if they are not both present.
23263         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
23264         * m4/mbiter.m4 (gl_MBITER): Likewise.
23265         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
23266         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
23267         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
23268
23269 2005-09-25  Jim Meyering  <jim@meyering.net>
23270
23271         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
23272         also uses socklen_t.
23273
23274 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
23275
23276         * lib/utimens.c (ENOSYS): Define if not already defined.
23277         (futimens): Support having a null PATH if the file descriptor
23278         is nonnegative.
23279
23280         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
23281         Remove.
23282         (__attribute): Define to empty unless GCC 3.1 or later.
23283         This works around a core dump on OpenBSD 3.4, which has GCC
23284         2.95.3, which dumps core when given __attribute__(()).  It also
23285         simplifies other tests, since we really don't want to bother with
23286         worrying about which ancient version of GCC supported what.
23287         Original problem reported by Yoann Vandoorselaere, with part of
23288         the fix suggested by Derek Price.
23289
23290 2005-09-24  Jim Meyering  <jim@meyering.net>
23291
23292         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
23293         so we can once again use a positive bitfield width of 1 -- now we
23294         don't have to explain why we were using a bitfield width of 2.
23295
23296 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
23297
23298         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
23299         and similarly for the other external symbols.  Problem reported
23300         by James Gallager.
23301
23302         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
23303         bug reported by Jim Meyering.
23304
23305         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
23306         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
23307         not needed, since socklen is a prerequisite module.
23308
23309 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
23310
23311         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
23312         Problem reported by Eric Blake.
23313         (getaddrinfo): Initialize se so that it's not garbage.
23314         Redo internal storage allocation so that it doesn't make unportable
23315         assumptions about alignment.
23316         Fix a memory leak.
23317
23318         * lib/utimens.c (futimens): Use futimesat if available.
23319         Prefer it to futimes since it doesn't have the futimes bug.
23320
23321         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
23322         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
23323         Instead, declare a function that returns a pointer to an array,
23324         and use verify_type__ to declare the size of the array.
23325         Problem and germ of a solution reported by Bruno Haible.
23326         (verify_type__): Use 2, not 1, for bitfield size, to avoid
23327         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
23328
23329 2005-09-23  Jim Meyering  <jim@meyering.net>
23330
23331         Sync from coreutils.
23332         Correct build failure (socklen_t not defined) on at least
23333         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
23334         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
23335
23336 2005-09-23  Jim Meyering  <jim@meyering.net>
23337
23338         * modules/getaddrinfo (Depends-on): Add socklen.
23339
23340 2005-09-23  Bruno Haible  <bruno@clisp.org>
23341
23342         * tests/test-verify.c: New file.
23343
23344 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23345
23346         Sync from coreutils.
23347
23348         * modules/argmatch (Depends-on): Add verify.
23349         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
23350         unistd-safer.
23351         * modules/save-cwd (Depends-on): Likewise.
23352
23353         * modules/openat (Files): Add lib/openat-die.c.
23354         (Depends-on): Remove error, exitfail.
23355         Add dirname.
23356
23357         * modules/verify: New file.
23358         * MODULES.html.sh (Diagnostics <assert.h>): New section,
23359         with "verify" module.
23360
23361 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23362
23363         Sync from coreutils.
23364
23365         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
23366         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
23367         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
23368         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
23369         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
23370         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
23371         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
23372         Don't bother checking for string.h, stdlib.h, unistd.h.
23373         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
23374         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
23375         module's job.
23376         * m4/jm-macros.m4 (gl_MACROS): Likewise.
23377         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
23378
23379         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
23380         (gl_GETDATE): Use it.
23381
23382         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
23383
23384 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23385
23386         Sync from coreutils.
23387
23388         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
23389         stat-time.h.
23390         * lib/argmatch.h: Include verify.h
23391         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
23392         (ARGMATCH_ASSERT): Remove; unused.
23393         * lib/canonicalize.c: Assume STDC_HEADERS.
23394         * lib/exclude.c: Include "strcase.h".
23395         * lib/regex_internal.h [!defined _LIBC]: Likewise.
23396         * lib/getusershell.c: Include stdio--.h rather than stdio.h
23397         and stdio-safer.h.
23398         (getusershell): Call fopen, not fopen_safer.
23399         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
23400         Do not include unistd-safer.h.
23401         (save_cwd): Don't call fd_safer; no longer needed
23402         now that we include fcntl--.h.
23403
23404         * lib/getdate.y (relative_time): New type.
23405         (RELATIVE_TIME_0): New constant.
23406         (parser_control): Use relative_time instead of doing it ourselves.
23407         (%union): Add new relative_time rel member.
23408         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
23409         Now typeless.
23410         (relunit, relunit_snumber): Now of type rel.
23411         (zone, rel, relunit, get_date): Adjust to above changes.
23412
23413         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
23414         Do not include unistd-safer.h.
23415         (getloadavg): Don't call fd_safer; no longer needed
23416         now that we include fcntl--.h.
23417
23418         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
23419         (make_dir_parents): Treat ENOSYS like EEXIST.
23420
23421         Improve quality of diagnostics on restore_cwd failure.
23422         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
23423         (make_dir_parents): Last arg is now int * (for errno), not bool *.
23424         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
23425         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
23426         each time through the loop.  Do not diagnose restore_cwd failure;
23427         that is the caller's job (and perhaps the caller does not care).
23428
23429         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
23430         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
23431         If the file already exists but is not a directory, don't bother
23432         to try to make its parents.
23433         Close potential file descriptor leak if we can't chdir("/") (!).
23434         Don't always return true if chdir($PWD) fails; return true only
23435         if the requested action was done successfully (except for the
23436         chdir($PWD)).
23437         Don't log final directory unless we actually made it.
23438         Refactor to avoid duplicate code to fix up permissions.
23439         Don't attempt to fix up parent permissions if chdir($PWD) fails.
23440
23441         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
23442         to make it a bit faster and (I hope) clearer.
23443         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
23444         Fix bug in formats like %2N.
23445
23446         * lib/verify.h: New file.
23447
23448 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23449
23450         Sync from coreutils.
23451         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
23452
23453 2005-09-22  Jim Meyering  <jim@meyering.net>
23454
23455         Sync from coreutils.
23456
23457         * m4/lstat.m4 (gl_FUNC_LSTAT):
23458         Use AC_LIBSOURCES to require lstat.c and lstat.h.
23459         Remove obsolete comment.
23460         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
23461         * m4/xstrtod.m4: Likewise.
23462
23463         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
23464
23465 2005-09-22  Jim Meyering  <jim@meyering.net>
23466
23467         Sync from coreutils.
23468
23469         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
23470
23471         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
23472         the .tm_year member, since otherwise gcc-4.0 would now warn about
23473         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
23474
23475         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
23476         order to avoid an unsuppressible warning from gcc on 64-bit systems.
23477
23478         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
23479         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
23480         when run in a time zone for which daylight savings time is in effect
23481         for the starting date.
23482
23483         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
23484         stop us from restricting permissions of just-created absolute-named
23485         directories.
23486         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
23487         to restore initial working directory.
23488         * lib/mkdir-p.c (make_dir_parents): New parameter:
23489         different_working_dir, to tell caller if/when we change the working
23490         directory and are unable to return to the initial one.
23491         * lib/mkdir-p.h (make_dir_parents): Update prototype.
23492         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
23493         `return false'.  This fixes a bug introduced on 2004-07-30.
23494
23495         * lib/openat.c (fdopendir): Be sure to close the supplied
23496         file descriptor before returning.  This makes our replacement
23497         implementation a little closer to Solaris's, where fdopendir
23498         ties the file descriptor to the returned DIR* pointer.
23499         * lib/openat.c (unlinkat): New function.
23500         * lib/openat.h (unlinkat): Add prototype.
23501         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
23502         (openat_restore_fail): Rename from openat_restore_die.
23503         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
23504
23505         Provide an alternative to exiting immediately upon save_cwd or
23506         restore_cwd failure.  Now, an application can arrange e.g.,
23507         to perform a longjump in that case.
23508         * lib/openat.c: Include dirname.h.
23509         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
23510         (rpl_openat, fdopendir, fstatat): Call openat_save_die
23511         and openat_restore_die rather than calling error directly.
23512         Don't include "error.h" or "exitfail.h"; they're no longer needed.
23513
23514         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
23515         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
23516         define.
23517
23518         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
23519         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
23520                             int utc, int nanoseconds);
23521         Background:
23522         date should not have to allocate a megabyte of virtual memory to
23523         handle a format argument like +%1048575T.  When implemented with
23524         strftime, it must allocate such a buffer, use strftime to fill it
23525         in, print it, then free it.
23526         With fprintftime, it simply prints everything and exits.
23527         With no need for memory allocation, that's one fewer way to fail.
23528         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
23529         optional field width, not before, so we accept %9:z, not %:9z.
23530         (my_strftime): Be sure to use L_('x') for literals.
23531
23532         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
23533         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
23534         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
23535         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
23536         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
23537         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
23538         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
23539         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
23540         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
23541         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
23542         * lib/xgethostname.c, lib/xreadlink.c:
23543         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
23544
23545         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
23546         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
23547         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
23548         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
23549         and don't include <sys/file.h>).
23550
23551 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
23552
23553         Sync from coreutils.
23554
23555         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
23556         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
23557         [!LDAV_DONE]: Avoid unused variable warning.
23558
23559 2005-09-21  Bruno Haible  <bruno@clisp.org>
23560
23561         * lib/unicodeio.h (unicode_to_mb): New declaration.
23562
23563 2005-09-20  Derek Price  <derek@ximbiot.com>
23564
23565         * lib/getaddrinfo.c: Don't include <netdb.h> included from
23566         getaddrinfo.h.
23567
23568 2005-09-20  Bruno Haible  <bruno@clisp.org>
23569
23570         * gnulib-tool: Remove trailing slashes from the values specified for
23571         --source-base, --m4-base, --tests-base, --aux-dir.
23572         Suggested by Simon Josefsson <jas@extundo.com>.
23573
23574 2005-09-20  Bruno Haible  <bruno@clisp.org>
23575
23576         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
23577         func_modules_to_filelist, func_import, func_create_testdir): Make all
23578         sorting results locale-independent, so that gnulib-cache.m4 doesn't
23579         change when gnulib-tool is invoked in a different locale.
23580
23581 2005-09-19  Simon Josefsson  <jas@extundo.com>
23582
23583         * m4/socklen.m4: Fix typo.
23584
23585 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23586
23587         Use a consistent style for including <config.h>.
23588         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
23589         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
23590         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
23591         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
23592         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
23593         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
23594         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
23595         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
23596         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
23597         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
23598         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
23599         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
23600         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
23601         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
23602         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
23603         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
23604         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
23605         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
23606         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
23607         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
23608         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
23609         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
23610         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
23611         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
23612         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
23613         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
23614         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
23615         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
23616         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
23617         lib/xstrtoumax.c, lib/yesno.c:
23618         Standardize inclusion of config.h.
23619         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
23620         lib/inttostr.h:  Removed inclusion of config.h from header files.
23621         * lib/inttostr.c:  Adjusted in-tree users.
23622         * lib/timespec.h: Remove superfluous warning to include config.h.
23623         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
23624         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
23625         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
23626         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
23627         config.h with HAVE_CONFIG_H.
23628
23629 2005-09-19  Jim Meyering  <jim@meyering.net>
23630
23631         * modules/pathmax (License): Change to LGPL.
23632
23633 2005-09-19  Derek Price  <derek@ximbiot.com>
23634
23635         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
23636
23637 2005-09-19  Bruno Haible  <bruno@clisp.org>
23638
23639         * gnulib-tool (import): Provide default for --tests-base.
23640
23641 2005-09-19  Bruno Haible  <bruno@clisp.org>
23642
23643         * doc/quote.texi: New file, extracted from gnulib.texi.
23644         * doc/ctime.texi: New file, extracted from gnulib.texi.
23645         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
23646         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
23647         * doc/gnulib.texi: Include them.
23648
23649 2005-09-18  Bruno Haible  <bruno@clisp.org>
23650
23651         Portability fix.
23652         * gnulib-tool (func_readlink): New function.
23653         (func_ln_if_changed): Use it.
23654
23655 2005-09-18  Bruno Haible  <bruno@clisp.org>
23656
23657         * gnulib-tool: Support --with-tests also with --import.
23658         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
23659         (func_import): Use variables $testsbase and $inctests. Emit a
23660         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
23661         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
23662         SUBDIRS += $testsdir.
23663         (func_create_testdir): Update.
23664
23665 2005-09-18  Bruno Haible  <bruno@clisp.org>
23666
23667         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
23668         instead of $dry_run.
23669         (func_cp_if_changed, func_mv_if_changed): Remove functions.
23670         (func_ln_if_changed): Don't handle dry-run here.
23671         (func_import): In dry-run mode, detect more precisely which actions
23672         would be performed, and don't use "...ing" verbs.
23673
23674 2005-09-18  Bruno Haible  <bruno@clisp.org>
23675
23676         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
23677         (func_import): Use join on two temporary files instead of three nested
23678         loops, in order to determine which files are new or old.
23679
23680 2005-09-18  Bruno Haible  <bruno@clisp.org>
23681
23682         * gnulib-tool (func_import): Comment out code that spits out the
23683         new files with --dry-run.
23684
23685 2005-09-18  Bruno Haible  <bruno@clisp.org>
23686
23687         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
23688
23689 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
23690
23691         * lib/stat-time.h: New file.
23692         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
23693         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
23694         in a different way.
23695         (timespec_cmp): New function.
23696         * lib/utimecmp.c: Include stat-time.h.
23697         (SYSCALL_RESOLUTION): Depend on whether various struct stat
23698         members exist, not on the obsolescent ST_MTIM_NSEC.
23699         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
23700
23701 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
23702
23703         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
23704
23705 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
23706
23707         * MODULES.html.sh (File system functions): Add stat-time.
23708         * modules/stat-time: New file.
23709         * modules/timespec (Files): Remove m4/st_mtim.m4; this
23710         is now done in a different way, by the stat-time module.
23711         * modules/utimecmp (Depends-on): Add stat-time.
23712
23713 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23714
23715         * m4/st_mtim.m4: Remove.  Superseded by...
23716         * m4/stat-time.m4: New file.
23717         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
23718         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
23719
23720 2005-09-15  Derek Price  <derek@ximbiot.com>
23721
23722         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
23723
23724 2005-09-15  Derek Price  <derek@ximbiot.com>
23725
23726         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
23727         * lib/regex_internal.c: Ditto, using this...
23728         (__GNUC_PREREQ): ...new macro.
23729         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
23730         using...
23731         (__GNUC_PREREQ): ...this new macro.
23732
23733         * lib/strstr.h: Include string.h. Define strstr as a macro here.
23734
23735 2005-09-15  Derek Price  <derek@ximbiot.com>
23736             Paul Eggert  <eggert@cs.ucla.edu>
23737
23738         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
23739         changes, consolidating in...
23740         * lib/regex_internal.h: ...this file.
23741
23742 2005-09-13  Jim Meyering  <jim@meyering.net>
23743
23744         * lib/canon-host.c: Filter through gnu indent and reword comments
23745         slightly.
23746         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
23747
23748 2005-09-13  Derek Price  <derek@ximbiot.com>
23749
23750         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
23751         failure.
23752         Reported by Jim Meyering  <jim@meyering.net>.
23753
23754 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
23755
23756         * lib/base64.c: Typo.
23757         (base64_encode): Put b64str in initialized data section.
23758
23759 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
23760
23761         Merge glibc and coreutils changes into gnulib, plus a few
23762         extra fixes.
23763         * lib/md5.c: Use #error rather than a string.
23764         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
23765         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
23766         (__attribute__): Define to empty for non recent-GCC.
23767         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
23768         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
23769         Renamed from their non-__ counterparts, with new macros replacing
23770         them if not _LIBC.  Add __THROW attribute.
23771         (rol): Remove.
23772         (struct md5_ctx): Align buffer if using GCC.
23773         * lib/sha1.h (struct sha1_ctx): Likewise.
23774         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
23775         The old name was backwards.
23776         (NOTSWAP): Remove; not used.
23777         (rol): New macro, moved here from md5.h.
23778         (sha1_process_block): Remove a FIXME that doesn't make sense.
23779
23780 2005-09-12  Derek Price  <derek@ximbiot.com>
23781
23782         Return usable errors from canon-host.
23783         * lib/canon-host.h: New file.
23784         * lib/canon-host.c (canon_host): Wrap...
23785         (canon_host_r): ...this new function, which now relies exclusively on
23786         getaddrinfo.
23787         (ch_strerror): New function.
23788         (last_cherror): New global.
23789         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
23790         interface.
23791         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
23792         void *.
23793         (freeaddrinfo): Free ai->ai_canonname when set.
23794
23795 2005-09-12  Derek Price  <derek@ximbiot.com>
23796
23797         Make canon-host require getaddrinfo.
23798         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
23799         AC_LIBSOURCE canon-host.h.  Call...
23800         (gl_PREREQ_CANON_HOST): ...this new function, which requires
23801         gl_GETADDRINFO.
23802         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
23803
23804 2005-09-12  Derek Price  <derek@ximbiot.com>
23805
23806         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
23807         LGPL.
23808         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
23809
23810 2005-09-12  Derek Price  <derek@ximbiot.com>
23811
23812         * lib/gai_strerror.c: Include config.h when available.  Include
23813         getaddrinfo.h before other headers to test interface.
23814         Reported by Larry Jones <lawrence.jones@ugs.com>.
23815
23816 2005-09-12  Derek Price  <derek@ximbiot.com>
23817             Paul Eggert  <eggert@cs.ucla.edu>
23818
23819         * modules/glob (Files): Add glob-libc.h.
23820
23821 2005-09-12  Derek Price  <derek@ximbiot.com>
23822             Paul Eggert  <eggert@cs.ucla.edu>
23823
23824         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
23825         glob_.h, glob-libc.h.
23826         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
23827
23828 2005-09-12  Derek Price  <derek@ximbiot.com>
23829             Paul Eggert  <eggert@cs.ucla.edu>
23830
23831         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
23832         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
23833         protecting things that should be done only in gnulib contexts.
23834         * lib/glob_.h: New file, containing only the glob things needed for
23835         gnulib.
23836         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
23837         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
23838         (glob, globfree, glob_pattern_p): Now defined simply in terms of
23839         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
23840         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
23841         and to respect the namespace rules better.
23842
23843 2005-09-08  Simon Josefsson  <jas@extundo.com>
23844
23845         * modules/socklen: New file.
23846
23847 2005-09-08  Simon Josefsson  <jas@extundo.com>
23848
23849         * m4/socklen.m4: New file.
23850
23851 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23852
23853         * modules/utimens (Files): Add m4/utimbuf.m4, since
23854         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
23855         Reported by Sergey Poznyakoff.
23856
23857 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23858
23859         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
23860         definitions, since that's the preferred style in glibc.
23861         Fix a minor spacing issue, and update copyright notice to match
23862         glibc's.
23863
23864 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23865
23866         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
23867
23868 2005-09-06  Simon Josefsson  <jas@extundo.com>
23869
23870         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
23871         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
23872
23873 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
23874
23875         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
23876         warning.
23877
23878 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
23879
23880         * config/srclist.txt: Add glibc bug 1302.
23881
23882 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
23883
23884         Change bitset word type from unsigned int to unsigned long int,
23885         as this has better performance on typical 64-bit hosts.
23886         Port bitset code to hosts with unusual word sizes.
23887         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
23888         (build_collating_symbol):
23889         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
23890         argument is a bitset.  This is merely a style issue, but it makes
23891         it clearer that an entire array is expected.
23892         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
23893         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
23894         Port to the case where bitset_word is not the same as unsigned int.
23895         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
23896         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
23897         Likewise.
23898         * lib/regexec.c (check_dst_limits_calc_pos_1,
23899         check_subexp_matching_top):
23900         (build_trtable, group_nodes_into_DFAstates):
23901         Likewise.
23902         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
23903         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
23904         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
23905         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
23906         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
23907         * lib/regcomp.c (optimize_subexps, lower_subexp):
23908         Work even if bitset_word has holes in its bitwise representation.
23909         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
23910         * lib/regexec.c (check_dst_limits_calc_pos_1,
23911         check_subexp_matching_top):
23912         Likewise.
23913         * lib/regex_internal.c (re_string_reconstruct):
23914         Don't assume UCHAR_MAX == 255.
23915         * lib/regex_internal.h (bitset_set_all): Likewise.
23916         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
23917         All uses changed.
23918         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
23919         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
23920         All uses changed.
23921         (BITSET_WORD_MAX): New macro.
23922         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
23923         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
23924         (bitset_empty, bitset_copy):
23925         Prefer sizeof (bitset) to multiplying it out ourselves.
23926         (bitset_not_merge): Remove; unused.
23927         (bitset_contain): Return bool, not unsigned int with one bit on.
23928         All callers changed.
23929         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
23930         alignment than re_node_set; do this by defining a new internal
23931         type struct dests_alloc and using it to allocate memory.
23932
23933 2005-09-05  Bruno Haible  <bruno@clisp.org>
23934
23935         * gnulib-tool (func_import): Fix comparison in handling of symbolic
23936         links.
23937
23938 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
23939
23940         * modules/size_max (Makefile.am): Add size_max.h
23941
23942 2005-09-04  Derek Price  <derek@ximbiot.com>
23943
23944         * gnulib-tool (func_import): Fix reversed $symbolic logic.
23945
23946 2005-09-03  Simon Josefsson  <jas@extundo.com>
23947
23948         * gnulib-tool: Fix typo.
23949
23950 2005-09-03  Simon Josefsson  <jas@extundo.com>
23951
23952         * config/srclist.txt: Add glibc bug 1293.
23953
23954 2005-09-03  Derek Price  <derek@ximbiot.com>
23955
23956         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
23957         From Larry Jones <lawrence.jones@ugs.com>.
23958
23959 2005-09-02  Simon Josefsson  <jas@extundo.com>
23960
23961         * modules/socklen: New file.
23962
23963 2005-09-02  Simon Josefsson  <jas@extundo.com>
23964
23965         * modules/havelib: New module.
23966
23967         * modules/gettext, modules/iconv, modules/lock, modules/readline:
23968         Use havelib.
23969
23970 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
23971
23972         Check for arithmetic overflow when calculating sizes, to prevent
23973         some buffer-overflow issues.  These patches are conservative, in the
23974         sense that when I couldn't determine whether an overflow was possible,
23975         I inserted a run-time check.
23976         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
23977         macros.
23978         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
23979         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
23980         (re_xnrealloc, re_x2nrealloc): New inline functions.
23981         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
23982         parse_bracket_exp):
23983         (build_equiv_class, build_charclass): Check for arithmetic overflow
23984         in size expression calculations.
23985         * lib/regex_internal.c (re_string_realloc_buffers):
23986         (build_wcs_upper_buffer, re_node_set_add_intersect):
23987         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
23988         (re_dfa_add_node, register_state): Likewise.
23989         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
23990         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
23991         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
23992         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
23993
23994 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
23995
23996         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
23997         m4/ulonglong.m4.  Problem reported by Martin Lambers.
23998
23999 2005-09-02  Bruno Haible  <bruno@clisp.org>
24000
24001         Support for lib vs. lib64 distinction on biarch platforms.
24002         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
24003         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
24004         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
24005
24006 2005-09-02  Bruno Haible  <bruno@clisp.org>
24007
24008         * gnulib-tool (import): In the other first-use case, provide defaults
24009         as well.
24010
24011 2005-09-02  Bruno Haible  <bruno@clisp.org>
24012
24013         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
24014         patches not yet found in the latest gettext release.
24015
24016 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24017
24018         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
24019         to avoid a collision with bits/local_lim.h in glibc.
24020         All uses changed.  Problem reported by Dmitry V. Levin in
24021         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
24022
24023         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
24024         bugs in int versus size_t comparisons.
24025         (re_string_context_at): Fix bug where the code assumed that
24026         Idx is signed.
24027
24028         Use bool where appropriate.
24029         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
24030         All callers changed.
24031         (calc_eclosure_iter): Likewise, for ROOT arg.
24032         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
24033         (build_charclass_op): Likewise, for NON_MATCH arg.
24034         * lib/regex_internal.c (re_string_allocate, re_string_construct):
24035         (re_string_construct_common): Likewise, for ICASE arg.
24036         * lib/regexec.c (re_search_2_stub, re_search_stub):
24037         Likewise, for RET_LEN arg.
24038         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
24039         (set_regs): Likewise, for FL_BACKTRACK arg.
24040         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
24041         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
24042         (calc_eclosure_iter, parse_bracket_exp):
24043         Use bool for internal variables that are booleans.
24044         * lib/regexec.c (re_search_internal, check_matching,
24045         proceed_next_node):
24046         (set_regs, build_sifted_states, sift_states_bkref):
24047         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
24048         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
24049         (find_collation_sequence_value):
24050         Likewise.
24051         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
24052         (re_node_set_compare):
24053         Return bool, not int. All callers changed.
24054         * lib/regexec.c (check_halt_node_context, check_dst_limits):
24055         (build_trtable, check_node_accept): Likewise.
24056         * lib/regex_internal.h: Include stdbool.h.
24057
24058         Fix bugs uncovered when converting to bool.
24059         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
24060         failure instead of charging ahead blindly.
24061         * lib/regex_internal.c (register_state): Likewise.
24062         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
24063         for freeing internal storage.
24064         (group_nodes_into_DFA_states): Use unsigned int, not int, for
24065         bitset pieces used as boolean, to avoid undefined behavior
24066         on hosts that do int overflow checking.
24067
24068 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24069
24070         * config/srclist.txt: Add glibc bugs 1285-1287.
24071
24072 2005-09-01  Jim Meyering  <jim@meyering.net>
24073
24074         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
24075         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
24076         Require gl_STAT_MACROS, too.
24077
24078 2005-09-01  Bruno Haible  <bruno@clisp.org>
24079
24080         * gnulib-tool (import): In the first-use case, provide defaults.
24081
24082 2005-09-01  Bruno Haible  <bruno@clisp.org>
24083
24084         * gnulib-tool (func_import): Remove the .tmp files.
24085
24086 2005-09-01  Bruno Haible  <bruno@clisp.org>
24087
24088         * gnulib-tool (func_import): Fix handling of symbolic links.
24089
24090 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24091
24092         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
24093         old glibc regex code mishandles strings longer than 2**31 bytes.
24094         This patch fixes this when the regex code is used in gnulib
24095         (i.e., outside glibc).
24096
24097         This patch should not affect the use of the regex code inside
24098         glibc.  No doubt this problem also needs to be handled for glibc
24099         as well, but the result will be an incompatible change to the
24100         glibc ABI, and the old ABI will have to be supported too.  That
24101         can be the the subject for another patch.
24102
24103         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
24104         governing whether the rest of this patch is active.  By default,
24105         the macro is disabled and the patch has no effect.
24106         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
24107         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
24108         (struct re_pattern_buffer, re_search, re_search_2, re_match):
24109         (re_match_2, re_set_registers): Use the new types.
24110         * lib/regex_internal.h (Idx, re_hashval_t): New types.
24111         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
24112         New macros.
24113         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
24114         (re_string_context_at, bin_tree_t, re_dfastate_t):
24115         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
24116         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
24117         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
24118         (re_string_char_size_at, re_string_wchar_at):
24119         (re_string_elem_size_at):
24120         Use the new types and macros to port to 64-bit hosts.
24121         Use unsigned types for internal values, so that the code
24122         mostly works even for arrays larger than SSIZE_MAX.
24123         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
24124         (search_duplicated_node, calc_eclosure_iter, fetch_number):
24125         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
24126         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
24127         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
24128         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
24129         (calc_inveclosure, parse_dup_op, build_range_exp):
24130         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
24131         (fetch_number, create_token_tree, mark_opt_subexp):
24132         Likewise.
24133         * lib/regex_internal.c (re_string_construct_common,
24134         create_ci_newstate):
24135         (create_cd_newstate, re_string_allocate, re_string_construct):
24136         (re_string_realloc_buffers, build_wcs_upper_buffer):
24137         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
24138         (re_string_reconstruct, re_string_peek_byte_case):
24139         (re_string_fetch_byte_case, re_string_context_at):
24140         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
24141         (re_node_set_init_copy, re_node_set_add_intersect):
24142         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
24143         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
24144         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
24145         (re_acquire_state, re_acquire_state_context, register_state):
24146         Likewise.
24147         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
24148         search_cur_bkref_entry):
24149         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
24150         (re_search_internal, re_search_2_stub, re_search_stub)
24151         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
24152         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
24153         (update_cur_sifted_state, check_dst_limits):
24154         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
24155         (check_subexp_limits, sift_states_bkref, merge_state_array):
24156         (check_subexp_matching_top, get_subexp, get_subexp_sub):
24157         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
24158         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
24159         (expand_bkref_cache, check_node_accept_bytes):
24160         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
24161         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
24162         (acquire_init_state_context, check_halt_node_context):
24163         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
24164         (sift_states_backward, clean_state_log_if_needed):
24165         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
24166         (find_recover_state, transit_state_sb, transit_state_mb):
24167         (transit_state_bkref, build_trtable, match_ctx_clean):
24168         Likewise.
24169         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
24170         to work around an assumption that REG_MISSING is negative.
24171
24172         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
24173         (seek_collating_symbol_entry) [defined _LIBC]:
24174         (lookup_collation_sequence_value) [defined _LIBC]:
24175         (build_range_exp, build_collating_symbol) [defined _LIBC]:
24176         Use prototypes rather than old-style function definitions.
24177         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
24178         (transit_state_sb) [0]:
24179         (find_collation_sequence_value) [defined _LIBC]: Likewise.
24180
24181         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
24182         rm_eo.
24183
24184         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
24185         (optimize_subexps, lower_subexp):
24186         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
24187         since the signed shift might overflow.  Use 1u<<31 instead.
24188         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
24189         Likewise.
24190         * lib/regexec.c (check_dst_limits_calc_pos_1,
24191         check_subexp_matching_top): Likewise.
24192
24193         * lib/regcomp.c (optimize_subexps, lower_subexp):
24194         Use CHAR_BIT rather than 8, for clarity.
24195         * lib/regexec.c (check_dst_limits_calc_pos_1):
24196         (check_subexp_matching_top): Likewise.
24197         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
24198         have to worry about portability issues when shifting it left.
24199         Remove no-longer-needed test for table_size > 0.
24200         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
24201         in a word, as the resulting behavior is undefined.
24202         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
24203         in one case, a <= should have been an <, and in another case the
24204         whole test was missing.
24205         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
24206         the standard name CHAR_BIT.
24207         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
24208         this is not true on one's complement and signed-magnitude hosts.
24209
24210         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
24211         next_last_offset.
24212         (struct re_dfa_t): Remove unused member states_alloc.
24213         * lib/regcomp.c (init_dfa): Don't initialize unused members.
24214
24215 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24216
24217         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
24218         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
24219         and large-file glibc and in 32-bit large-file Solaris.
24220
24221 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24222
24223         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
24224         lengths fit in regoff_t; this isn't true if regoff_t is the same
24225         width as size_t.
24226         * lib/regex.c (re_search_internal): 5th arg is LAST_START
24227         (= START + RANGE) instead of RANGE.  This avoids overflow
24228         problems when regoff_t is the same width as size_t.
24229         All callers changed.
24230         (re_search_2_stub): Check for overflow when adding the
24231         sizes of the two strings.
24232         (re_search_stub): Check for overflow when adding START
24233         to RANGE; if it occurs, substitute the extreme value.
24234
24235 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24236
24237         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
24238
24239 2005-08-31  Jim Meyering  <jim@meyering.net>
24240
24241         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
24242         a pointer-to-const.
24243         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
24244         (register_state): Likewise.
24245         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
24246         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
24247         (group_nodes_into_DFAstates): Likewise.
24248
24249 2005-08-31  Jim Meyering  <jim@meyering.net>
24250
24251         * check-module: Add a FIXME comment.
24252
24253 2005-08-31  Eric Blake  <ebb9@byu.net>
24254
24255         * modules/unistd-safer (Files): Add unistd--.h.
24256         * modules/stdio-safer (Files): Add stdio--.h.
24257
24258 2005-08-31  Derek Price  <derek@ximbiot.com>
24259
24260         * lib/getdelim.c (getdelim): Return EOF on EOF.
24261         Reported by Larry Jones <lawrence.jones@ugs.com>.
24262
24263 2005-08-31  Bruno Haible  <bruno@clisp.org>
24264
24265         Avoid unnecessary diffs in the generated lib/Makefile.am.
24266         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
24267         the generated files.
24268         (func_import): Don't set cmd.
24269
24270 2005-08-31  Bruno Haible  <bruno@clisp.org>
24271
24272         * lib/strstr.c: Include <stddef.h>, for NULL.
24273         * lib/strcasestr.c: Likewise.
24274         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24275
24276 2005-08-31  Bruno Haible  <bruno@clisp.org>
24277
24278         * gnulib-tool: New option --macro-prefix.
24279         (func_import): Use macro_prefix.
24280         (import): Handle option --macro-prefix.
24281
24282 2005-08-31  Bruno Haible  <bruno@clisp.org>
24283
24284         * gnulib-tool (import): Rename most ac_* variables to cached_*.
24285         Also use new variables cached_lgpl, cached_libtool.
24286
24287 2005-08-31  Bruno Haible  <bruno@clisp.org>
24288
24289         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
24290         always instantiating them.
24291
24292 2005-08-31  Bruno Haible  <bruno@clisp.org>
24293
24294         * gnulib-tool (func_import): Read the previous cached settings
24295         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
24296         earlier added by gnulib but are now dropped. Warn when a gnulib file
24297         overwrites a non-gnulib file.
24298
24299 2005-08-31  Bruno Haible  <bruno@clisp.org>
24300
24301         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
24302         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
24303         projects that don't keep autogenerated files in CVS. Put into
24304         actioncmd only the specified modules, not the transitive closure.
24305
24306 2005-08-31  Bruno Haible  <bruno@clisp.org>
24307
24308         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
24309         Create directories that shall be filled.
24310         (import): Don't look for gl_* macros in configure.ac. Recurse across
24311         all directories containing a gnulib-cache.m4 files, if meaningful.
24312
24313 2005-08-31  Bruno Haible  <bruno@clisp.org>
24314
24315         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
24316         (import): Set seen_libtool when we see gl_LIBTOOL.
24317
24318 2005-08-31  Bruno Haible  <bruno@clisp.org>
24319
24320         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
24321         declaration macro definitions from generated gnulib.m4.
24322
24323 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
24324
24325         * lib/iconvme.h: Add prototype for iconv_alloc.
24326
24327 2005-08-29  Simon Josefsson  <jas@extundo.com>
24328
24329         * lib/iconvme.c: Fix errno.
24330
24331 2005-08-29  Bruno Haible  <bruno@clisp.org>
24332
24333         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
24334         that it works when the directory contains spaces.
24335
24336 2005-08-29  Bruno Haible  <bruno@clisp.org>
24337
24338         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
24339
24340 2005-08-29  Bruno Haible  <bruno@clisp.org>
24341
24342         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
24343         Emit more advice.
24344
24345 2005-08-29  Bruno Haible  <bruno@clisp.org>
24346         and Stepan Kasal  <kasal@ucw.cz>
24347
24348         * check-module: If more parameters are given, check each of them
24349         separately; add more exceptions, as noted by Jim Meyering.
24350         (check_module): New procedure.
24351         (%exempt_header): Now contains all exceptions.
24352
24353 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
24354
24355         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
24356
24357 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
24358
24359         * lib/iconvme.c: Split iconv_string into iconv_alloc.
24360
24361 2005-08-28  Bruno Haible  <bruno@clisp.org>
24362
24363         * m4/gnulib-tool.m4: New file.
24364
24365 2005-08-27  Jim Meyering  <jim@meyering.net>
24366
24367         * modules/unistd-safer (Files): Add pipe-safer.c.
24368         * modules/fcntl-safer (Files): Add creat-safer.c.
24369
24370 2005-08-27  Jim Meyering  <jim@meyering.net>
24371
24372         * m4/stdlib-safer.m4: New file.  From coreutils.
24373         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
24374         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
24375         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
24376         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
24377         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
24378
24379 2005-08-27  Jim Meyering  <jim@meyering.net>
24380
24381         * lib/fopen-safer.c: Merge minor changes from coreutils.
24382         * lib/dup-safer.c: Likewise.
24383         * lib/fd-safer.c: Likewise.
24384
24385         Merge from coreutils.
24386         * lib/stdio--.h: New file.
24387         * lib/stdlib--.h: New file.
24388         * lib/mkstemp-safer.c: New file.
24389
24390         GNU tar needs these.
24391         * lib/pipe-safer.c: New file.
24392         * lib/creat-safer.c: New file.
24393         * lib/fcntl--.h (creat): Define to creat_safer.
24394         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
24395         * lib/unistd--.h (pipe): Define to pipe_safer.
24396         * lib/unistd-safer.h: Declare pipe_safer.
24397
24398 2005-08-26  Simon Josefsson  <jas@extundo.com>
24399
24400         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
24401         Haible <bruno@clisp.org>.
24402
24403 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
24404
24405         * lib/regex_internal.h: Remove all references to
24406         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
24407         or better.
24408         (bitset_not, bitset_merge, bitset_not_merge):
24409         (bitset_mask, re_string_allocate, re_string_construct):
24410         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
24411         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
24412         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
24413         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
24414         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
24415         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
24416         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
24417         (re_acquire_state_context):
24418         Remove unnecessary forward decls.
24419         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
24420         Put __attribute at function definition,
24421         now that the function decl has been removed.
24422         * lib/regex_internal.c (re_string_peek_byte_case):
24423         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
24424         Likewise.
24425
24426 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
24427
24428         * m4/regex.m4: Add AC_PREREQ(2.50).
24429         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
24430
24431 2005-08-25  Simon Josefsson  <jas@extundo.com>
24432
24433         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
24434         __fsetlocking.
24435
24436 2005-08-25  Simon Josefsson  <jas@extundo.com>
24437
24438         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
24439         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
24440         GLIBC specific code.
24441
24442 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
24443
24444         Make regex safe for g++.  This fixes one real bug (an "err"
24445         that should have been "*err").  g++ problem reported by
24446         Sam Steingold.
24447         * lib/regex_internal.h (re_calloc): New macro, consistent with
24448         re_malloc etc.  All callers of calloc changed to use re_calloc.
24449         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
24450         not int.  All callers changed.
24451         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
24452         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
24453         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
24454         (find_recover_state): Change "err" to "*err"; this fixes what
24455         appears to be a real bug.
24456         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
24457         versus int.
24458
24459 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
24460
24461         * modules/regex (Depends-on): Add malloc, since the code
24462         assumes that !malloc(0) means failure.
24463
24464 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
24465
24466         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
24467
24468         alloca modernization/simplification for regex.
24469         * lib/regex.c: Remove portability cruft for alloca.  This no longer
24470         needs to be at the start of the file, and can be moved into
24471         regex_internal.h and simplified.
24472         * lib/regex_internal.h: Include <alloca.h>.
24473         (__libc_use_alloca) [!defined _LIBC]: New macro.
24474         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
24475         now works outside glibc.
24476
24477 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
24478
24479         * config/srclist.txt: Add glibc bugs 1241, 1245.
24480
24481 2005-08-25  Jim Meyering  <jim@meyering.net>
24482
24483         * lib/open-safer.c: Include <config.h>.
24484         Otherwise, we'd lose LARGEFILE support in any file using
24485         e.g. "fcntl--.h"
24486
24487 2005-08-25  Bruno Haible  <bruno@clisp.org>
24488
24489         * m4/minmax.m4: Require autoconf 2.52.
24490         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
24491         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
24492         alternatives of translit over the alphabet.
24493         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
24494
24495 2005-08-24  Simon Josefsson  <jas@extundo.com>
24496
24497         * tests/test-getpass.c: New file.
24498
24499 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24500
24501         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
24502         for GNU regex features.
24503
24504 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24505
24506         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
24507         * lib/regex.h (regerror): Likewise.
24508
24509         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
24510         requires this.  (The code never needed it.)
24511
24512         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
24513         All uses of recently-renamed identifiers changed to use the new,
24514         POSIX-compliant names.  The code will build and run just fine
24515         without these changes, but it's better to eat our own dog food
24516         and use the standard-conforming names.
24517
24518         * lib/regex.h: Fix a multitude of POSIX name space violations.
24519         These changes have an effect only for programs that define
24520         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
24521         do not change anything for programs compiled in the normal way.
24522         Also, there is no effect on the ABI.
24523
24524         (_REGEX_SOURCE): New macro.
24525         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
24526         defined and _GNU_SOURCE is not; this fixes a name space violation.
24527
24528         Rename the following macros to obey POSIX requirements.
24529         The old names are still visible as macros if _REGEX_SOURCE is defined.
24530         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
24531         RE_BACKSLASH_ESCAPE_IN_LISTS.
24532         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
24533         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
24534         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
24535         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
24536         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
24537         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
24538         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
24539         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
24540         (REG_INTERVALS): renamed from RE_INTERVALS.
24541         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
24542         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
24543         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
24544         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
24545         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
24546         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
24547         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
24548         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
24549         RE_UNMATCHED_RIGHT_PAREN_ORD.
24550         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
24551         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
24552         (REG_DEBUG): renamed from RE_DEBUG.
24553         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
24554         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
24555         unusual, since we can't clash with the POSIX REG_ICASE.
24556         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
24557         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
24558         (REG_NO_SUB): renamed from RE_NO_SUB.
24559         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
24560         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
24561         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
24562         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
24563         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
24564         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
24565         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
24566         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
24567         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
24568         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
24569         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
24570         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
24571         RE_SYNTAX_POSIX_MINIMAL_BASIC.
24572         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
24573         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
24574         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
24575         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
24576         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
24577         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
24578         (REG_FIXED): Renamed from REGS_FIXED.
24579         (REG_NREGS): Renamed from RE_NREGS.
24580
24581         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
24582         of other REG_* macros, since POSIX says the user is allowed to
24583         #undef these macros selectively.
24584
24585         (reg_errcode_t): Update comment stating what other tables need
24586         to be consistent.
24587
24588         Rename the following enum values to obey POSIX requirements.
24589         The old names are still visible as macros.
24590         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
24591         is not defined, since GNU is supposed to be a superset of POSIX as
24592         much as possible, and since we want reg_errcode_t to be a signed
24593         type for implementation consistency.
24594         (_REG_NOERROR): Renamed from REG_NOERROR.
24595         (_REG_NOMATCH): Renamed from REG_NOMATCH.
24596         (_REG_BADPAT): Renamed from REG_BADPAT.
24597         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
24598         (_REG_ECTYPE): Renamed from REG_ECTYPE.
24599         (_REG_EESCAPE): Renamed from REG_EESCAPE.
24600         (_REG_ESUBREG): Renamed from REG_ESUBREG.
24601         (_REG_EBRACK): Renamed from REG_EBRACK.
24602         (_REG_EPAREN): Renamed from REG_EPAREN.
24603         (_REG_EBRACE): Renamed from REG_EBRACE.
24604         (_REG_BADBR): Renamed from REG_BADBR.
24605         (_REG_ERANGE): Renamed from REG_ERANGE.
24606         (_REG_ESPACE): Renamed from REG_ESPACE.
24607         (_REG_BADRPT): Renamed from REG_BADRPT.
24608         (_REG_EEND): Renamed from REG_EEND.
24609         (_REG_ESIZE): Renamed from REG_ESIZE.
24610         (_REG_ERPAREN): Renamed from REG_ERPAREN.
24611         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
24612         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
24613         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
24614         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
24615
24616         (_REG_RE_NAME, _REG_RM_NAME): New macros.
24617         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
24618         changed.  But support the old name if the new one is not defined
24619         and if _REGEX_SOURCE.
24620
24621         Change the following member names in struct re_pattern_buffer.
24622         The old names are still supported if !_REGEX_SOURCE.
24623         The new names are always supported, regardless of _REGEX_SOURCE.
24624         (re_buffer): Renamed from buffer.
24625         (re_allocated): Renamed from allocated.
24626         (re_used): Renamed from used.
24627         (re_syntax): Renamed from syntax.
24628         (re_fastmap): Renamed from fastmap.
24629         (re_translate): Renamed from translate.
24630         (re_can_be_null): Renamed from can_be_null.
24631         (re_regs_allocated): Renamed from regs_allocated.
24632         (re_fastmap_accurate): Renamed from fastmap_accurate.
24633         (re_no_sub): Renamed from no_sub.
24634         (re_not_bol): Renamed from not_bol.
24635         (re_not_eol): Renamed from not_eol.
24636         (re_newline_anchor): Renamed from newline_anchor.
24637
24638         Change the following member names in struct re_registers.
24639         The old names are still supported if !_REGEX_SOURCE.
24640         The new names are always supported, regardless of _REGEX_SOURCE.
24641         (rm_num_regs): Renamed from num_regs.
24642         (rm_start): Renamed from start.
24643         (rm_end): Renamed from end.
24644
24645         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
24646         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
24647         Prepend __ to parameter names.
24648
24649         Undo yesterday's changes.
24650
24651 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24652
24653         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
24654         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
24655         lib/regex.c.
24656
24657 2005-08-24  Jim Meyering  <jim@meyering.net>
24658
24659         Sync from coreutils.
24660         * m4/fcntl-safer.m4: New file.
24661
24662         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
24663         and object files for this module.
24664
24665 2005-08-24  Jim Meyering  <jim@meyering.net>
24666
24667         Sync from coreutils.
24668         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
24669
24670 2005-08-24  Jim Meyering  <jim@meyering.net>
24671
24672         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
24673         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
24674
24675 2005-08-24  Jim Meyering  <jim@meyering.net>
24676
24677         * modules/fcntl-safer: New module.
24678         * modules/fts (Depends-on): Add fcntl-safer.
24679         * MODULES.html.sh (File descriptor based Input/Output):
24680         Add fcntl-safer.
24681
24682 2005-08-24  Bruno Haible  <bruno@clisp.org>
24683
24684         Support for unit test modules.
24685         * modules/README: Mention tests modules.
24686         * modules/TEMPLATE-TESTS: New file.
24687         * gnulib-tool: New options --extract-tests-module, --with-tests and
24688         --tests-base (unused for the moment).
24689         (testsbase, inctests): New variables.
24690         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
24691         (func_verify_module): Exclude TEMPLATE-TESTS.
24692         (func_verify_nontests_module, func_verify_tests_module): New functions.
24693         (func_get_dependencies): Add implicit dependency for tests modules.
24694         (func_get_tests_module): New function.
24695         (func_modules_transitive_closure): When --with-tests was specified,
24696         include the unit tests as well, unless explicitly avoided.
24697         (func_emit_lib_Makefile_am): Ignore the tests modules here.
24698         (func_emit_tests_Makefile_am): New function.
24699         (func_create_testdir): When --with-tests was specified, emit a
24700         tests/ directory.
24701         * MODULES.html.sh (Future developments): Update.
24702
24703 2005-08-24  Bruno Haible  <bruno@clisp.org>
24704
24705         * modules/tls-tests: New file.
24706         * tests/test-tls.c: New file, from GNU gettext.
24707
24708 2005-08-24  Bruno Haible  <bruno@clisp.org>
24709
24710         * modules/lock-tests: New file.
24711         * tests/test-lock.c: New file, from GNU gettext.
24712
24713 2005-08-24  Bruno Haible  <bruno@clisp.org>
24714
24715         * lib/lock.h: Add multiple inclusion guard.
24716         * lib/tls.h: Add multiple inclusion guard.
24717
24718 2005-08-24  Bruno Haible  <bruno@clisp.org>
24719
24720         * gnulib-tool: Add support for the --aux-dir option to
24721         --create-testdir, --create-megatestdir, --test, --megatest.
24722         (func_create_testdir, func_create_megatestdir): Optionally emit a
24723         AC_CONFIG_AUX_DIR directive.
24724         (create-testdir, create-megatestdir, test, megatest): Provide a
24725         default value for $auxdir.
24726
24727 2005-08-24  Bruno Haible  <bruno@clisp.org>
24728
24729         * gnulib-tool (import): Use compound statement instead of subshell
24730         where possible.
24731
24732 2005-08-24  Bruno Haible  <bruno@clisp.org>
24733
24734         * gnulib-tool (import): Change --aux-dir default to "build-aux".
24735
24736 2005-08-24  Bruno Haible  <bruno@clisp.org>
24737
24738         * gnulib-tool (func_version): Update.
24739
24740 2005-08-24  Bruno Haible  <bruno@clisp.org>
24741
24742         * gnulib-tool (func_import, func_create_testdir,
24743         func_create_megatestdir): Quote all autoconf macro arguments.
24744
24745 2005-08-24  Bruno Haible  <bruno@clisp.org>
24746
24747         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
24748         option --force, because --force causes the aclocal.m4 of each
24749         subdirectory to be newer than the corresponding config.h.in.
24750
24751 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
24752
24753         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
24754         All contents moved to gl_REGEX.
24755         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
24756         assume that it does.
24757
24758 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
24759
24760         * lib/regex.h (REG_NOSYS)
24761         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
24762         Define, since POSIX requires it as of 2001.
24763         (_REG_ENOSYS)
24764         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
24765         New private symbol, used to keep the enum signed in all cases.
24766         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
24767         Youngman in
24768         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
24769
24770         * lib/regex_internal.c (re_string_skip_chars, register_state):
24771         (calc_state_hash):
24772         Remove forward decls; no longer needed now that we use prototypes.
24773         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
24774         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
24775         (clean_state_log_if_needed): Likewise.
24776
24777 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
24778
24779         * config/srclist.txt: Add glibc bugs 1231-1233.
24780
24781 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
24782
24783         Fix problems reported by Sam Steingold in
24784         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
24785         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
24786         assumed that reg_errcode_t is a signed type, which is not
24787         necessarily true if _XOPEN_SOURCE is not defined.
24788         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
24789         since some compilers warn about it otherwise.
24790
24791 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
24792
24793         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
24794         (init_word_char, create_initial_state, duplicate_node_closure):
24795         (fetch_token, peek_token_bracket, build_range_exp):
24796         (build_collating_symbol): Remove forward decls; no longer needed
24797         now that we use prototypes.
24798
24799         * lib/regcomp.c:
24800         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
24801         (re_compile_fastmap_iter, regcomp, regerror, regfree):
24802         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
24803         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
24804         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
24805         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
24806         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
24807         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
24808         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
24809         (build_range_exp, build_collating_symbol, parse_bracket_exp):
24810         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
24811         (build_charclass, build_charclass_op, fetch_number, create_tree):
24812         (create_token_tree, mark_opt_subexp, duplicate_tree):
24813         Use prototypes rather than old-style definitions.
24814
24815         * lib/regex_internal.c:
24816         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
24817         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
24818         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
24819         (re_string_reconstruct, re_string_peek_byte_case):
24820         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
24821         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
24822         (re_node_set_init_copy, re_node_set_add_intersect):
24823         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
24824         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
24825         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
24826         (re_acquire_state, re_acquire_state_context, register_state):
24827         (create_ci_newstate, create_cd_newstate, free_state):
24828         Likewise.
24829         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
24830         re_search_2):
24831         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
24832         (re_search_internal, prune_impossible_nodes):
24833         (acquire_init_state_context, check_matching, static):
24834         (check_halt_node_context, check_halt_state_context, proceed_next_node):
24835         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
24836         (update_regs, sift_states_backward, build_sifted_states):
24837         (clean_state_log_if_needed, merge_state_array):
24838         (update_cur_sifted_state, add_epsilon_src_nodes):
24839         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
24840         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
24841         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
24842         (find_recover_state, check_subexp_matching_top, transit_state_mb):
24843         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
24844         (check_arrival, check_arrival_add_next_nodes):
24845         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
24846         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
24847         (check_node_accept_bytes, check_node_accept, extend_buffers):
24848         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
24849         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
24850         (sift_ctx_init):
24851         Likewise.
24852
24853         * lib/regex_internal.h:
24854         (re_string_allocate, re_string_construct, re_string_reconstruct):
24855         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
24856         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
24857         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
24858         (re_string_context_at, re_string_peek_byte_case):
24859         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
24860         is defined, since we now use prototypes always.
24861
24862         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
24863         C89 or better.  All uses removed.
24864
24865 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
24866
24867         * config/srclist.txt: Add glibc bugs 1220-1227.
24868
24869 2005-08-20  Jim Meyering  <jim@meyering.net>
24870
24871         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
24872         of unused local, dfa.
24873
24874 2005-08-20  Bruno Haible  <bruno@clisp.org>
24875
24876         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
24877
24878 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24879
24880         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
24881         (re_node_set_insert_last, re_dfa_add_node):
24882         Rename local variables to avoid GCC shadowing warnings.
24883
24884 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24885
24886         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
24887         [defined lint]: Suppress bogus uninitialized-variable warnings.
24888
24889         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
24890         and let the caller return REG_ESPACE if out of space.  This
24891         removes an uninitialied-variable warning with GCC 4.0.1, and also
24892         avoids taking the address of a local variable.  All callers
24893         changed.
24894
24895 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24896
24897         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
24898         $LIBCSRC/posix/regexec.c.
24899         Add glibc bug 1217 for regcomp.c.
24900
24901 2005-08-19  Jim Meyering  <jim@meyering.net>
24902
24903         * lib/regexec.c (proceed_next_node): Redo local variables to
24904         avoid GCC shadowing warnings.
24905
24906 2005-08-18  Bruno Haible  <bruno@clisp.org>
24907
24908         * lib/strstr.c (strstr): Fix return value in multibyte case.
24909         * lib/strcasestr.c (strcasestr): Likewise.
24910
24911 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24912
24913         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
24914
24915 2005-08-17  Jim Meyering  <jim@meyering.net>
24916
24917         Make the %s format (seconds since the epoch) work for a negative
24918         number and when used with a zero-padded field width, e.g. %015s.
24919
24920         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
24921         label so that it precedes the code to set `digits'.  Otherwise,
24922         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
24923         print `00-22'.  Now, it prints `-0022', as it should.
24924
24925 2005-08-17  Bruno Haible  <bruno@clisp.org>
24926
24927         * modules/strstr (Files): Add m4/mbrtowc.m4.
24928         (Depends-on): Add mbuiter.
24929
24930 2005-08-17  Bruno Haible  <bruno@clisp.org>
24931
24932         * modules/strcasestr: New file.
24933         * MODULES.html.sh (String handling, based on ANSI C 89): Add
24934         strcasestr.
24935
24936 2005-08-17  Bruno Haible  <bruno@clisp.org>
24937
24938         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
24939
24940 2005-08-17  Bruno Haible  <bruno@clisp.org>
24941
24942         * modules/mbuiter: New file.
24943         * MODULES.html.sh (Extended multibyte and wide character utilities):
24944         Add mbuiter.
24945
24946 2005-08-17  Bruno Haible  <bruno@clisp.org>
24947
24948         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
24949         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
24950
24951 2005-08-17  Bruno Haible  <bruno@clisp.org>
24952
24953         * m4/strcasestr.m4: New file.
24954
24955 2005-08-17  Bruno Haible  <bruno@clisp.org>
24956
24957         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
24958         * lib/strstr.c: Completely rewritten, with multibyte locale support.
24959
24960 2005-08-17  Bruno Haible  <bruno@clisp.org>
24961
24962         * lib/strcasestr.h: New file.
24963         * lib/strcasestr.c: New file.
24964
24965 2005-08-17  Bruno Haible  <bruno@clisp.org>
24966
24967         * lib/strcasecmp.c: Use mbuiter.h.
24968
24969 2005-08-17  Bruno Haible  <bruno@clisp.org>
24970
24971         * lib/mbuiter.h: New file.
24972
24973 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
24974
24975         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
24976         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
24977         and gl_GETOPT are both invoked via different paths (as happens
24978         with GNU tar CVS because it uses both argp and getopt), the former
24979         wins.
24980
24981 2005-08-16  Bruno Haible  <bruno@clisp.org>
24982
24983         * modules/tls: New file.
24984         * MODULES.html.sh (Multithreading): Add tls.
24985
24986 2005-08-16  Bruno Haible  <bruno@clisp.org>
24987
24988         * modules/strnlen1: New file.
24989         * MODULES.html.sh (String handling): Add strnlen1.
24990
24991 2005-08-16  Bruno Haible  <bruno@clisp.org>
24992
24993         * modules/strcase (Files): Add m4/mbrtowc.m4.
24994         (Depends-on): Add strnlen1, mbchar.
24995
24996 2005-08-16  Bruno Haible  <bruno@clisp.org>
24997
24998         * modules/mbiter: New file.
24999         * MODULES.html.sh (Extended multibyte and wide character utilities):
25000         Add mbiter.
25001
25002 2005-08-16  Bruno Haible  <bruno@clisp.org>
25003
25004         * modules/mbfile: New file.
25005         * MODULES.html.sh (Extended multibyte and wide character utilities):
25006         Add mbfile.
25007
25008 2005-08-16  Bruno Haible  <bruno@clisp.org>
25009
25010         * modules/mbchar: New file.
25011         * MODULES.html.sh (Extended multibyte and wide character utilities):
25012         New section.
25013
25014 2005-08-16  Bruno Haible  <bruno@clisp.org>
25015
25016         * m4/tls.m4: New file, from GNU gettext.
25017
25018 2005-08-16  Bruno Haible  <bruno@clisp.org>
25019
25020         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
25021         always.
25022         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
25023
25024 2005-08-16  Bruno Haible  <bruno@clisp.org>
25025
25026         * m4/mbiter.m4: New file.
25027
25028 2005-08-16  Bruno Haible  <bruno@clisp.org>
25029
25030         * m4/mbfile.m4: New file.
25031
25032 2005-08-16  Bruno Haible  <bruno@clisp.org>
25033
25034         * m4/mbchar.m4: New file.
25035
25036 2005-08-16  Bruno Haible  <bruno@clisp.org>
25037
25038         * lib/tls.h: New file, from GNU gettext.
25039         * lib/tls.c: New file, from GNU gettext.
25040
25041 2005-08-16  Bruno Haible  <bruno@clisp.org>
25042
25043         * lib/strnlen1.h: New file.
25044         * lib/strnlen1.c: New file.
25045
25046 2005-08-16  Bruno Haible  <bruno@clisp.org>
25047
25048         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
25049         (mbi_init): Update.
25050         (mbi_avail, mbi_advance): Let the iteration end before the terminating
25051         NUL byte, not after it.
25052
25053 2005-08-16  Bruno Haible  <bruno@clisp.org>
25054
25055         * lib/strcase.h (strcasecmp): Add note in comments.
25056         * lib/strncasecmp.c: Use code from strcasecmp.c.
25057         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
25058         (strcasecmp): Work correctly in multibyte locales.
25059
25060 2005-08-16  Bruno Haible  <bruno@clisp.org>
25061
25062         * lib/mbiter.h: New file.
25063
25064 2005-08-16  Bruno Haible  <bruno@clisp.org>
25065
25066         * lib/mbfile.h: New file.
25067
25068 2005-08-16  Bruno Haible  <bruno@clisp.org>
25069
25070         * lib/mbchar.h: New file.
25071         * lib/mbchar.c: New file.
25072
25073 2005-08-16  Bruno Haible  <bruno@clisp.org>
25074
25075         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
25076         the valid ones. Makes the comparison operations transitive:
25077         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
25078         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
25079
25080 2005-08-15  Simon Josefsson  <jas@extundo.com>
25081
25082         * modules/ssize_t (License): Change to 'unlimited'.
25083
25084         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
25085
25086 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25087
25088         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
25089         Add comments for each pending glibc patch.
25090
25091 2005-08-15  Bruno Haible  <bruno@clisp.org>
25092
25093         * lib/regex.h (__restrict_arr): Don't define to __restrict if
25094         __cplusplus is defined.
25095
25096 2005-08-14  Jim Meyering  <jim@meyering.net>
25097
25098         Sync from coreutils.
25099
25100         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
25101         Use the hash-table-based cycle-detection code not just when
25102         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
25103         Reported by James Youngman in
25104         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
25105         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
25106         FTS_TIGHT_CYCLE_CHECK.
25107         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
25108         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
25109         once again.
25110         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
25111         * lib/fts.c (fd_safer): Remove decl.
25112         Include fcntl--.h rather than unistd-safer.h
25113         (fts_safe_changedir): Don't call fd_safer; no longer needed
25114         now that we include fcntl--.h.
25115
25116 2005-08-12  Simon Josefsson  <jas@extundo.com>
25117
25118         * modules/getndelim2: Use ssize_t module.
25119         * modules/getnline: Likewise.
25120         * modules/safe-read: Likewise.
25121         * modules/xreadlink: Likewise.
25122
25123         * modules/ssize_t: New file.
25124
25125 2005-08-12  Simon Josefsson  <jas@extundo.com>
25126
25127         * m4/readline.m4: Look for termcap, curses or ncurses if required.
25128
25129 2005-08-12  Simon Josefsson  <jas@extundo.com>
25130
25131         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25132         ssize_t.
25133
25134 2005-08-12  Simon Josefsson  <jas@extundo.com>
25135
25136         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
25137         readline, getdelim and check_version.
25138         (Support for systems lacking ISO C 99: Sizes of integer types):
25139         Add size_max.
25140
25141 2005-08-12  Bruno Haible  <bruno@clisp.org>
25142
25143         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
25144
25145 2005-08-11  Simon Josefsson  <jas@extundo.com>
25146
25147         * modules/readline: New file.
25148
25149         * modules/strnlen (Files): Add strnlen.h.
25150
25151 2005-08-11  Simon Josefsson  <jas@extundo.com>
25152
25153         * m4/readline.m4: New file.
25154
25155 2005-08-11  Simon Josefsson  <jas@extundo.com>
25156
25157         * lib/readline.h, readline.c: New file.
25158
25159 2005-08-11  Simon Josefsson  <jas@extundo.com>
25160
25161         * doc/gnulib.texi (Initial import, Finishing touches): Mention
25162         gl_AVOID.
25163
25164 2005-08-11  Bruno Haible  <bruno@clisp.org>
25165
25166         * lib/strnlen.h (strnlen): Change parameter name to match comment.
25167
25168 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
25169
25170         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
25171
25172 2005-08-10  Simon Josefsson  <jas@extundo.com>
25173
25174         * tests/test-iconvme.c: New file.
25175
25176 2005-08-10  Simon Josefsson  <jas@extundo.com>
25177
25178         * m4/strnlen.m4: New file.
25179
25180         * m4/strndup.m4: Don't check for strnlen declaration, done in
25181         strnlen.m4.
25182
25183 2005-08-10  Simon Josefsson  <jas@extundo.com>
25184
25185         * lib/strndup.c: Use strnlen.h.
25186
25187         * lib/strnlen.h: New file.
25188
25189 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
25190
25191         * README: Typos.
25192
25193 2005-08-02  Simon Josefsson  <jas@extundo.com>
25194
25195         * modules/readline: New file.
25196
25197 2005-08-02  Simon Josefsson  <jas@extundo.com>
25198
25199         * modules/getdelim: New file.
25200
25201         * modules/getline: Rewrite, don't use getndelim2.
25202
25203 2005-08-02  Simon Josefsson  <jas@extundo.com>
25204
25205         * m4/getline.m4: Separate out getdelim stuff into separate module.
25206
25207         * m4/getdelim.m4: New file.
25208
25209 2005-08-02  Simon Josefsson  <jas@extundo.com>
25210
25211         * lib/getline.h, getline.c: Rewrite.
25212
25213         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
25214
25215 2005-07-31  Bruno Haible  <bruno@clisp.org>
25216
25217         * lib/lock.h (gl_lock_initializer): New macro.
25218         (gl_lock_define_initialized): Use it.
25219         (gl_rwlock_initializer): New macro.
25220         (gl_rwlock_define_initialized): Use it.
25221         (gl_recursive_lock_initializer): New macro.
25222         (gl_recursive_lock_define_initialized): Use it.
25223
25224 2005-07-30  Karl Berry  <karl@gnu.org>
25225
25226         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
25227         Report from Ben Pfaff, regarding getopt.
25228
25229 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
25230
25231         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
25232         normal way.
25233         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
25234         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
25235         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
25236         (gl_GETOPT): Use the new macros.  Most of the implementation
25237         is moved to the new macros.  This is for programs like Emacs
25238         that don't want all the functionality of gl_GETOPT.
25239
25240 2005-07-26  Bruno Haible  <bruno@clisp.org>
25241
25242         * m4/lock.m4: Update from GNU gettext.
25243
25244 2005-07-26  Bruno Haible  <bruno@clisp.org>
25245
25246         * lib/lock.h: Update from GNU gettext.
25247         * lib/lock.c: Update from GNU gettext.
25248
25249 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
25250
25251         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
25252         obsolescent AC_TRY_RUN.  Include the default includes files, for
25253         'exit'.
25254
25255 2005-07-24  Bruno Haible  <bruno@clisp.org>
25256
25257         * modules/visibility: New file.
25258         * MODULES.html.sh (Misc): Add visibility.
25259
25260 2005-07-24  Bruno Haible  <bruno@clisp.org>
25261
25262         * m4/visibility.m4: New file.
25263
25264 2005-07-24  Bruno Haible  <bruno@clisp.org>
25265
25266         * doc/visibility.texi: New file.
25267
25268 2005-07-22  Bruno Haible  <bruno@clisp.org>
25269
25270         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
25271         $(ALLOCA_H), redundant through BUILT_SOURCES.
25272         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
25273         redundant through BUILT_SOURCES.
25274         * modules/byteswap (Makefile.am): Remove explicit dependency on
25275         $(BYTESWAP_H), redundant through BUILT_SOURCES.
25276         * modules/fnmatch (Makefile.am): Remove explicit dependency on
25277         $(FNMATCH_H), redundant through BUILT_SOURCES.
25278         * modules/getopt (Makefile.am): Remove explicit dependency on
25279         $(GETOPT_H), redundant through BUILT_SOURCES.
25280         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
25281         redundant through BUILT_SOURCES.
25282         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
25283         redundant through BUILT_SOURCES.
25284         * modules/stdbool (Makefile.am): Remove explicit dependency on
25285         $(STDBOOL_H), redundant through BUILT_SOURCES.
25286         * modules/stdint (Makefile.am): Remove explicit dependency on
25287         $(STDINT_H), redundant through BUILT_SOURCES.
25288         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
25289         Remove explicit dependency on $(SYSEXITS_H).
25290         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
25291
25292 2005-07-18  Simon Josefsson  <jas@extundo.com>
25293
25294         * lib/check-version.c (check_version): Accept identical versions too.
25295
25296 2005-07-18  Bruno Haible  <bruno@clisp.org>
25297
25298         * modules/lock: New file.
25299         * MODULES.html.sh (Multithreading): New section.
25300
25301 2005-07-18  Bruno Haible  <bruno@clisp.org>
25302
25303         * m4/lock.m4: New file, from GNU gettext.
25304
25305 2005-07-18  Bruno Haible  <bruno@clisp.org>
25306
25307         * lib/lock.h: New file, from GNU gettext.
25308         * lib/lock.c: New file, from GNU gettext.
25309
25310 2005-07-18  Bruno Haible  <bruno@clisp.org>
25311
25312         * lib/lock.h (gl_once_t): New type.
25313         (gl_once_define, gl_once): New macros.
25314         * lib/lock.c (fresh_once): New variable.
25315         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
25316         functions.
25317
25318 2005-07-16  Simon Josefsson  <jas@extundo.com>
25319
25320         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
25321         workaround, suggested by Bruno.
25322
25323 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
25324
25325         * modules/xalloc (Depends-on): Add xalloc-die.
25326         * modules/xvasprintf (Depends-on): Add xalloc-die.
25327
25328 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
25329
25330         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
25331         with a minor change.
25332
25333 2005-07-15  Bruno Haible  <bruno@clisp.org>
25334
25335         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
25336         When using lib/poll.c, define poll as rpl_poll.
25337
25338 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
25339
25340         * modules/argp (Depends-on): Remove unlocked-io.
25341
25342 2005-07-14  Derek Price  <derek@ximbiot.com>
25343
25344         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
25345         for glob symlink bug.
25346
25347 2005-07-14  Bruno Haible  <bruno@clisp.org>
25348
25349         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
25350         Instead, test for *_unlocked function declarations directly.
25351
25352 2005-07-11  Simon Josefsson  <jas@extundo.com>
25353
25354         * modules/size_max: New file.
25355
25356         * modules/xsize: Depend on size_max module for size_max.m4.
25357
25358 2005-07-11  Simon Josefsson  <jas@extundo.com>
25359
25360         * lib/size_max.h: New file.
25361
25362 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
25363
25364         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
25365         copyright symbol and the year.
25366         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
25367         (version_etc_va): Use parameterized copyright notice.
25368         Reword to conform to the current GNU coding standards.
25369
25370 2005-07-11  Karl Berry  <karl@gnu.org>
25371
25372         * doc/gnulib.texi (Quoting): new node.
25373         (Initial import): more info, from Patrice.
25374
25375 2005-07-11  Bruno Haible  <bruno@clisp.org>
25376
25377         * gnulib-tool (func_usage): Document option --avoid.
25378         (Command line options): Handle --avoid.
25379         (func_acceptable): New function.
25380         (func_modules_transitive_closure): Use it.
25381
25382 2005-07-11  Bruno Haible  <bruno@clisp.org>
25383
25384         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
25385         Reported by Jim Meyering.
25386
25387 2005-07-10  Bruno Haible  <bruno@clisp.org>
25388
25389         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
25390         Needed when size_t is smaller than 'unsigned int'.
25391         Reported by Paul Eggert.
25392
25393 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
25394
25395         * modules/argp (Depends-on): Add unlocked-io
25396
25397 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
25398
25399         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
25400         block of defines.
25401
25402 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
25403
25404         * config/srclist.txt: Comment out regcomp.c, since we have a porting
25405         fix now.
25406
25407 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
25408         and Paul Eggert  <eggert@cs.ucla.edu>
25409
25410         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
25411         in wint_t, not wchar_t.  Remove now-unnecessary cast.
25412
25413 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
25414
25415         * modules/regex (Files): Add lib/regex_internal.c,
25416         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
25417         (Depends-on): Add extensions.
25418         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
25419
25420 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
25421
25422         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
25423         pathconf.
25424         * m4/same.m4 (gl_SAME): Likewise.
25425         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
25426
25427         * m4/regex.m4: Adjust to new libc regex implementation.
25428         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
25429         all the .c and .h parts of (the new) regex.
25430         Quote the m4 stuff better.
25431         Check for RE_ICASE bug of old gnulib.
25432         Check for REG_STARTEND of recent libc.
25433         Rename local variables from jm_* to gl_*.
25434         Quote operand of "test -f".
25435         Say "recent enough" version of libc, not "version 2".
25436         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
25437         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
25438         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
25439         Remove check for btowc, isascii.
25440         Require AM_LANGINFO_CODESET.
25441
25442 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
25443
25444         * lib/regex.c, regex.h: Sync from libc.
25445         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
25446         * lib/regexec.c:
25447         New files, synced from libc, except that regex_internal.h
25448         currently has a small porting fix.
25449
25450 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
25451
25452         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
25453         regex_internal.c, regexec.c.
25454         Add regex_internal.h too, but as a comment, since the libc version
25455         is currently broken in gnulib mode.
25456
25457 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25458
25459         Support programs like Emacs that use gnulib but not gettext.
25460         * MODULES.html.sh (Internationalization functions): Add gettext-h.
25461         * modules/gettext-h: New file.
25462         * modules/gettext (Files): Remove lib/gettext.h.
25463         (Depends-on): Add gettext-h.
25464         (Makefile.am): Remove lib_SOURCES.
25465         * modules/argmatch, modules/c-stack, modules/closeout:
25466         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
25467         * modules/execute, modules/file-type, modules/getaddrinfo:
25468         * modules/getopt, modules/human, modules/javacomp:
25469         * modules/javaexec, modules/mkdir-p, modules/obstack:
25470         * modules/openat, modules/pagealign_alloc, modules/pipe:
25471         * modules/quotearg, modules/regex, modules/rpmatch:
25472         * modules/unicodeio, modules/userspec, modules/version-etc:
25473         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
25474         * modules/xsetenv:
25475         Depend on gettext-h, not gettext.
25476
25477 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
25478
25479         * gnulib-tool (func_import): Add support for 'public domain' license.
25480         * modules/alloca, modules/atexit, modules/memmove:
25481         Now public domain, not GPL.
25482         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
25483         * modules/realloc, modules/strerror, modules/strtod:
25484         Now LGPL, not GPL.
25485
25486 2005-07-05  Bruno Haible  <bruno@clisp.org>
25487
25488         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
25489         autoconf CVS. Needed for mingw.
25490
25491 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25492
25493         Remove the dependency of the strftime module on the tzset module.
25494         * modules/strftime (Depends-on): Remove dependency on tzset.
25495
25496 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25497
25498         Remove the dependency of the strftime module on the tzset module.
25499         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
25500         gl_FUNC_TZSET_CLOBBER.
25501
25502 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25503
25504         Remove the dependency of the strftime module on the tzset module.
25505         * lib/strftime.c (my_strftime)
25506         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
25507         Copy the input structure, to work around some of the bug with
25508         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
25509         Solaris releases, you should also use the tzset module, but we won't
25510         require it as a dependency any more since we don't want LGPLed code
25511         to depend on GPLed code.
25512
25513 2005-07-02  Jim Meyering  <jim@meyering.net>
25514
25515         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
25516         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
25517         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
25518         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
25519
25520 2005-07-02  Jim Meyering  <jim@meyering.net>
25521
25522         * lib/backupfile.c (backup_args): Change a `0' to NULL.
25523
25524 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
25525
25526         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
25527         declares only 'struct timespec;' (!).
25528
25529 2005-07-01  Jim Meyering  <jim@meyering.net>
25530
25531         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
25532         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
25533         * lib/save-cwd.c, tempname.c:
25534         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
25535         and don't include <sys/file.h>).
25536
25537 2005-06-29  Jim Meyering  <jim@meyering.net>
25538
25539         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
25540         type name.  Use the variable name instead.
25541         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
25542         Likewise.
25543
25544 2005-06-28  Simon Josefsson  <jas@extundo.com>
25545
25546         * modules/check-version (Files): Add check-version.m4.
25547
25548 2005-06-28  Simon Josefsson  <jas@extundo.com>
25549
25550         * m4/check-version.m4: New file, suggested by Jim Meyering
25551         <jim@meyering.net>.
25552
25553 2005-06-28  Simon Josefsson  <jas@extundo.com>
25554
25555         * lib/check-version.h, lib/check-version.c: New files.
25556
25557 2005-06-28  Simon Josefsson  <jas@extundo.com>
25558
25559         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
25560         collision with global variable.  Better indentation.  Don't
25561         increment buffer pointer beyond buffer end.  Based on comments
25562         from Paul Eggert <eggert@cs.ucla.edu>.
25563
25564         * lib/base64.h: Indent.
25565
25566 2005-06-28  Simon Josefsson  <jas@extundo.com>
25567
25568         * doc/gnulib.texi (Library version handling): New section.
25569
25570 2005-06-28  Jim Meyering  <jim@meyering.net>
25571
25572         * check-module (find_included_lib_files): Hard-code another
25573         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
25574         but modules/fts-lgpl (correctly) does not list those files.
25575
25576         * modules/canonicalize (Files): Add lib/pathmax.h.
25577
25578 2005-06-25  Simon Josefsson  <jas@extundo.com>
25579
25580         * modules/check-version: New file.
25581
25582 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
25583
25584         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
25585         initializer of struct addrinfo, as an indication that we don't
25586         care how many members the structure has.
25587
25588 2005-06-24  Derek Price  <derek@ximbiot.com>
25589         and Bruno Haible  <bruno@clisp.org>
25590
25591         Remove stat module & update lstat.
25592         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
25593         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
25594         * m4/stat.m4: Remove this file.
25595
25596 2005-06-24  Derek Price  <derek@ximbiot.com>
25597         and Bruno Haible  <bruno@clisp.org>
25598
25599         Remove stat module & update lstat.
25600         * lib/stat.c: Remove this file...
25601         (slash_aware_lstat): ...moving this content and its support...
25602         * lib/lstat.c (rpl_lstat): ...into here.
25603         * lib/lstat.h: New file.
25604
25605 2005-06-24  Derek Price  <derek@ximbiot.com>
25606         and Bruno Haible  <bruno@clisp.org>
25607
25608         Remove stat module & update lstat.
25609         * config/srclist.txt (libc sources): Remove stat.
25610
25611 2005-06-24  Derek Price  <derek@ximbiot.com>
25612         and Bruno Haible  <bruno@clisp.org>
25613
25614         Remove stat module & update lstat.
25615         * MODULES.html.sh (stat): Remove.
25616         * MODULES.html: Regenerated.
25617         * modules/lstat (Description): Correct function name.
25618         (Files): Add "lstat.h".
25619         (Depends-on): Remove stat, add xalloc, stat-macros.
25620         * modules/stat: Remove this file.
25621         (Include): Add "lstat.h", remove <sys/stat.h>.
25622
25623 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
25624
25625         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
25626         (ranged_convert): Don't save conversion in a temporary struct.
25627         This causes a warning with GCC 4.0.0, and anyway in the typical
25628         case it's not worth the extra 100 bytes or so of code.
25629         (ranged_convert, __mktime_internal): When calling a function via a
25630         pointer P, use P () rather than (*P) (), as we now assume C89 or
25631         better.
25632
25633 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
25634
25635         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
25636         "who -r" failed to give output.  Problem reported by Tim Waugh.
25637
25638         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
25639         (xcalloc): Use it to avoid needless tests.
25640         Problem reported by Jim Meyering.
25641
25642 2005-06-20  Derek Price  <derek@ximbiot.com>
25643
25644         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
25645         unnecessary for Autoconfs > 2.59c.
25646
25647 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25648
25649         * lib/argp.h (__option_is_short): Check upper limit of
25650         __key. Isprint() requires its argument to have the value
25651         of an unsigned char or EOF.
25652
25653 2005-06-16  Jim Meyering  <jim@meyering.net>
25654
25655         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
25656         when either N or S is zero.
25657
25658 2005-06-16  Derek Price  <derek@ximbiot.com>
25659
25660         * m4/bison.m4: Declare YACC & YFLAGS precious.
25661
25662 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
25663
25664         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
25665         multibyte string or pattern, fall back on unibyte matching.
25666         Problem reported by James Youngman.
25667
25668 2005-06-08  Bruno Haible  <bruno@clisp.org>
25669
25670         * modules/csharpcomp: New file.
25671         * MODULES.html.sh (C#): Add csharpcomp.
25672
25673 2005-06-08  Bruno Haible  <bruno@clisp.org>
25674
25675         * m4/csharpcomp.m4: New file, from GNU gettext.
25676
25677 2005-06-08  Bruno Haible  <bruno@clisp.org>
25678
25679         * lib/csharpcomp.h: New file, from GNU gettext.
25680         * lib/csharpcomp.c: New file, from GNU gettext.
25681         * lib/csharpcomp.sh.in: New file, from GNU gettext.
25682
25683 2005-06-08  Bruno Haible  <bruno@clisp.org>
25684
25685         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
25686         warning on mingw.
25687
25688 2005-06-07  Derek Price  <derek@ximbiot.com>
25689
25690         Sync from CVS.
25691         * lib/glob_.h: Indent nested #ifdef.
25692
25693 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
25694
25695         Sync from coreutils.
25696         Use "file name" when talking about file names, instead of "filename"
25697         or "path", as per the GNU coding standards.
25698         * lib/mkdir-p.c: Renamed from makepath.c.
25699         (make_dir_parents): Renamed from make_path.  All callers changed.
25700         * lib/mkdir-p.h: Likewise.  All includers changed.
25701         * lib/filenamecat.c: Renamed from path-concat.c.
25702         (file_name_concat): Renamed from path_concat.  All callers changed.
25703         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
25704         * lib/filenamecat.h: Likewise.  All includers changed.
25705         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
25706         in comments or local variable names.
25707         * lib/basename.c: Likewise.
25708         * lib/canonicalize.c, canonicalize.h: Likewise.
25709         * lib/dirname.c, dirname.h: Likewise.
25710         * lib/euidaccess.c: Likewise.
25711         * lib/exclude.c: Likewise
25712         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
25713         * lib/fsusage.c, fsuage.h: Likewise.
25714         * lib/fts.c, fts_.h: Likewise.
25715         * lib/getcwd.c: Likewise.
25716         * lib/getloadavg.c: Likewise.
25717         * lib/mkstemp.c: Likewise.
25718         * lib/mountlist.c, mountlist.h: Likewise.
25719         * lib/openat.c, openat.h: Likewise.
25720         * lib/readlink-stub.c: Likewise.
25721         * lib/readutmp.c, readutmp.h: Likewise.
25722         * lib/rename.c: Likewise.
25723         * lib/rmdir.c: Likewise.
25724         * lib/same.c: Likewise.
25725         * lib/savedir.c: Likewise.
25726         * lib/stripslash.c: Likewise.
25727         * lib/tempname.c: Likewise.
25728         * lib/xreadlink.c: Likewise.
25729         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
25730         All uses changed.
25731         * lib/exclude.h: Likewise.
25732
25733         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
25734         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
25735         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
25736         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
25737         * lib/pathmax.h: Include <limits.h> unconditionally, since other
25738         files have been getting away with it for years (MORE/BSD 4.3
25739         is extinct now).
25740         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
25741         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
25742
25743         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
25744         Define to 256, not 255, as per modern POSIX.
25745
25746 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
25747
25748         Sync from coreutils.
25749         Use "file name" when talking about file names, instead of "filename"
25750         or "path", as per the GNU coding standards.
25751         * MODULES.html.sh: mkdir-p renamed from makepath.
25752         filenamecat renamed from path-concat.
25753         * modules/filenamecat: Renamed from modules/path-concat.
25754         (Files): filenamecat.h and filenamecat.c renamed from
25755         path-concat.h and path-concat.c.
25756         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
25757         (Include): filenamecat.h, not path-concat.h.
25758         * modules/mkdir-p: Renamed from modules/makepath.
25759         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
25760         makepath.c.
25761         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
25762         (Include): mkdir-p.h, not makepath.h.
25763
25764 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
25765
25766         Sync from coreutils.
25767         * m4/mkdir-p.m4: Renamed from makepath.m4.
25768         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
25769         Rename files from makepath.c to mkdir-p.c, and from
25770         makepath.h to mkdir-p.h.
25771         * m4/filenamecat.m4: Renamed from path-concat.m4.
25772         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
25773         Rename files from path-concat.c to filenamecat.c,
25774         and from path-concat.h to filenamecat.h.
25775         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
25776         "file name" in local variables or comments.
25777         * m4/rename.m4: Likewise.
25778
25779 2005-06-01  Bruno Haible  <bruno@clisp.org>
25780
25781         * modules/csharpexec: New file.
25782         * MODULES.html.sh (C#): New section.
25783
25784 2005-06-01  Bruno Haible  <bruno@clisp.org>
25785
25786         * m4/csharp.m4: New file, from GNU gettext.
25787         * m4/csharpexec.m4: New file, from GNU gettext.
25788
25789 2005-06-01  Bruno Haible  <bruno@clisp.org>
25790
25791         * lib/csharpexec.h: New file, from GNU gettext.
25792         * lib/csharpexec.c: New file, from GNU gettext.
25793         * lib/csharpexec.sh.in: New file, from GNU gettext.
25794
25795 2005-05-31  Derek Price  <derek@ximbiot.com>
25796             Paul Eggert  <eggert@cs.ucla.edu>
25797
25798         Sync from cvs.
25799         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
25800
25801 2005-05-31  Derek Price  <derek@ximbiot.com>
25802             Paul Eggert  <eggert@cs.ucla.edu>
25803
25804         Sync from cvs.
25805         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
25806
25807 2005-05-29  Derek Price  <derek@ximbiot.com>
25808
25809         * config/srclist.txt (glob_.h, glob.c): Add these files.
25810
25811 2005-05-29  Derek Price  <derek@ximbiot.com>
25812
25813         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
25814         * modules/glob: New file.
25815         * modules/getlogin_r: Add link to POSIX spec in description.
25816
25817 2005-05-29  Derek Price  <derek@ximbiot.com>
25818             Paul Eggert  <eggert@cs.ucla.edu>
25819
25820         * m4/glob.m4: New file.
25821
25822 2005-05-29  Derek Price  <derek@ximbiot.com>
25823             Paul Eggert  <eggert@cs.ucla.edu>
25824
25825         * lib/glob_.h, lib/glob.c: New files.
25826
25827 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
25828
25829         * modules/fts (Files): Remove m4/inttypes-pri.m4.
25830         * modules/fts-lgpl (Depends-on): Remove gettext.
25831
25832 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
25833
25834         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
25835         and don't require gt_INTTYPES_PRI.
25836
25837 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
25838
25839         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
25840
25841         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
25842         the configuration hassle isn't worth it.
25843         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
25844         (LONGEST_MODIFIER, PRIuMAX): Remove.
25845
25846 2005-05-27  Bruno Haible  <bruno@clisp.org>
25847
25848         * lib/getlogin_r.h: Remove second include of <stddef.h>.
25849
25850 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
25851
25852         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
25853         _POSIX_PTHREAD_SEMANTICS for Solaris.
25854
25855 2005-05-25  Derek Price  <derek@ximbiot.com>
25856
25857         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
25858
25859 2005-05-25  Derek Price  <derek@ximbiot.com>
25860             Paul Eggert  <eggert@cs.ucla.edu>
25861
25862         * modules/getlogin_r, m4/getlogin_r.m4: New files.
25863         * lib/getlogin_r.c, getlogin_r.h: New files.
25864
25865 2005-05-25  Bruno Haible  <bruno@clisp.org>
25866             Derek Price  <derek@ximbiot.com>
25867
25868         * lib/getlogin_r.h: Simplify API documentation.
25869
25870 2005-05-23  Derek Price  <derek@ximbiot.com>
25871
25872         * modules/minmax (Files): Add m4/minmax.m4.
25873         (configure.ac): Add gl_MINMAX.
25874
25875 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
25876
25877         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
25878         so that unistd-safer.h (GPL'ed code) need not be included.
25879
25880 2005-05-22  Bruno Haible  <bruno@clisp.org>
25881
25882         * m4/minmax.m4: New file.
25883         Based on a patch by Derek Price <derek@ximbiot.com>.
25884
25885 2005-05-22  Bruno Haible  <bruno@clisp.org>
25886
25887         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
25888         (INT64_MIN): Fix definition.
25889         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
25890
25891         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
25892         NEED_SIGNED_INT_TYPES.
25893
25894         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
25895         HAVE_SYSTEM_INTTYPES.
25896
25897 2005-05-22  Bruno Haible  <bruno@clisp.org>
25898
25899         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
25900         Also include <sys/param.h> if it defines MIN, MAX.
25901         Based on a patch by Derek Price <derek@ximbiot.com>.
25902
25903 2005-05-21  Jim Meyering  <jim@meyering.net>
25904
25905         * modules/fts (Files): Add m4/inttypes-pri.m4.
25906         (Depends-on): Add lstat and remove gettext.  Alphabetize.
25907
25908 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
25909
25910         New fts module.
25911         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
25912         (setup_dir, free_dir): New functions.
25913         (enter_dir, leave_dir): Define trivial
25914         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
25915         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
25916         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
25917         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
25918         Move to fts-cycle.c.
25919         (fts_open): Use setup_dir.
25920         (fts_close): Use free_dir.
25921         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
25922         This adds a label and some gotos, but the alternatives were messier.
25923         Check for memory allocation failure when entering a dir.
25924         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
25925         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
25926         (FTS): New member fts_cycle, that is a union that contains the
25927         old active_dir_ht and cycle_state.  All uses changed to mention
25928         fts_cycle.ht and fts_cycle.state.
25929         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
25930         fts.c, with the following changes:
25931         (setup_dir, free_dir): New functions.
25932         (enter_dir): Now returns bool.  Return true if successful, false
25933         if memory exhausted.  All callers changed.
25934         Do not bother partly cleaning up on
25935         memory allocation failure; that is free_dir's job.
25936         However, free ad if hash_insert fails, to avoid memory leak.
25937         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
25938         fts->fts_options to see which union member to use.
25939
25940 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
25941
25942         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
25943         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
25944
25945 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
25946
25947         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
25948
25949 2005-05-20  Jim Meyering  <jim@meyering.net>
25950
25951         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
25952         Now a macro, to pacify GCC.
25953
25954 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
25955
25956         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
25957         of -1.
25958
25959 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
25960
25961         * lib/chown.c (rpl_chown): Return -1 on failure.
25962
25963 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
25964
25965         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
25966         Don't check for stddef.h.
25967         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
25968         don't use its results.
25969         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
25970         since we include them unconditionally.  Don't require
25971         AM_STDBOOL_H, since stdbool is a prerequisite.
25972         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
25973         since we assume C89 or better.
25974         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
25975         as we don't use their results.
25976         Don't check for fchdir, memmove, memset, strrchr, as we use
25977         them unconditionally.
25978         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
25979         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
25980
25981 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
25982
25983         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
25984         Include <stddef.h> unconditionally, since we assume C89 now.
25985         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
25986         * lib/fts.c: Include fts_.h first, to check interface.
25987         Do not include intprops.h; no longer needed.
25988         Include cycle-check.h and hash.h, since fts_.h no longer does.
25989         Remove unnecessary casts of closedir to void.
25990         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
25991         decide whether to decrement nlinks.
25992         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
25993         (FTS): Use struct hash_table * instead of Hash_table, so that
25994         we no longer need to include hash.h here.
25995
25996 2005-05-18  Jim Meyering  <jim@meyering.net>
25997
25998         * modules/dirfd (License): Change to LGPL.  Most of the code
25999         is already in the public domain.
26000
26001 2005-05-18  Jim Meyering  <jim@meyering.net>
26002
26003         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
26004         Reported by Yoann Vandoorselaere.
26005
26006 2005-05-17  Jim Meyering  <jim@meyering.net>
26007
26008         * m4/fts.m4: New file, from coreutils.
26009
26010 2005-05-17  Jim Meyering  <jim@meyering.net>
26011
26012         * lib/fts.c, lib/fts_.h: New files, from coreutils.
26013
26014 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
26015
26016         Sync from coreutils.
26017         * m4/unlinkdir.m4: New file.
26018
26019 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
26020
26021         Sync from coreutils.
26022         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
26023         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
26024         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
26025         White space changes only.
26026         * lib/makepath.c (make_path): Port to hosts where leading "//" is
26027         special.
26028         * lib/yesno.c: Include getline.h, not ctype.h.
26029         (yesno): Don't remove leading white space; POSIX doesn't allow it.
26030         Use getline to remove arbitrary restriction on response length.
26031
26032 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
26033
26034         * config/srclist-update: Spell out "Street" in FSF postal
26035         mail address; this is the style the FSF seems to prefer.
26036
26037         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
26038         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
26039         this updates FSF postal mail address.
26040
26041         Sync from coreutils.
26042         * modules/unlinkdir: New file.
26043         * modules/yesno (Depends-on): Add getline.
26044         * MODULES.html.sh (File system functions): Add unlinkdir.
26045
26046 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
26047
26048         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
26049         lib/strsep.h:
26050         Change the initial comment to refer to GPL, not LGPL.
26051         gnulib-tool will change it to LGPL as needed.
26052
26053         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
26054         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
26055         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
26056         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
26057         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
26058         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
26059         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
26060         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
26061         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
26062         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
26063         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
26064         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
26065         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
26066         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
26067         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
26068         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
26069         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
26070         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
26071         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
26072         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
26073         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
26074         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
26075         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
26076         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
26077         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
26078         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
26079         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
26080         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
26081         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
26082         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
26083         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
26084         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
26085         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
26086         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
26087         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
26088         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
26089         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
26090         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
26091         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
26092         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
26093         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
26094         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
26095         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
26096         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
26097         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
26098         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
26099         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
26100         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
26101         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
26102         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
26103         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
26104         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
26105         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
26106         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
26107         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
26108         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
26109         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
26110         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
26111         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
26112         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
26113         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
26114         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
26115         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
26116         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
26117         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
26118         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
26119         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
26120         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
26121         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
26122         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
26123         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
26124         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
26125         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
26126         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
26127         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
26128         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
26129         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
26130         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
26131         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
26132         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
26133         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
26134         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
26135         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
26136         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
26137         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
26138         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
26139         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
26140         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
26141         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
26142         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
26143         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
26144         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
26145         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
26146         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
26147         lib/yesno.c, lib/yesno.h:
26148         Update FSF postal mail address.
26149
26150 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
26151
26152         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
26153         tests/test-memmem.c, tests/test-stpncpy.c:
26154         Update FSF postal mail address.
26155
26156 2005-05-13  Bruno Haible  <bruno@clisp.org>
26157
26158         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
26159         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
26160         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
26161         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
26162         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
26163         Add support for 64-bit integers in the MSVC compiler.
26164
26165 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26166
26167         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
26168
26169 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
26170
26171         * gnulib-tool (func_import): Sort and uniquify recommended includes.
26172
26173 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
26174
26175         * doc/getdate.texi (General date syntax): Don't say that date
26176         date --iso-8601=ns generates acceptable dates; it doesn't yet.
26177         Problem reported by Nic Ferrier.
26178
26179 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26180
26181         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
26182         specified in ai_socktype. Fix invalid ai_protocol
26183         check. ai_protocol is usually set to 0 or depending on
26184         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
26185         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
26186         ai_socktype / ai_protocol in the returned addrinfo structure.
26187
26188 2005-05-10  Simon Josefsson  <jas@extundo.com>
26189
26190         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
26191         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26192
26193 2005-05-10  Karl Berry  <karl@gnu.org>
26194
26195         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
26196         (from http://www.gnu.org/licenses).
26197         * doc/COPYING.LIB: also rename to COPYING.LESSER.
26198         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
26199         fdl.texi suffices.
26200
26201 2005-05-10  Karl Berry  <karl@gnu.org>
26202
26203         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
26204         (COPYING.DOC): remove.
26205
26206         * config/srclist-update: new FSF address.
26207
26208 2005-05-10  Derek Price  <derek@ximbiot.com>
26209
26210         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
26211         possible.
26212
26213 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26214             Bruno Haible  <bruno@clisp.org>
26215
26216         * modules/inet_ntop: New file.
26217         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26218         inet_ntop.
26219
26220 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26221             Bruno Haible  <bruno@clisp.org>
26222
26223         * m4/inet_ntop.m4: New file.
26224
26225 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26226             Bruno Haible  <bruno@clisp.org>
26227
26228         * lib/inet_ntop.h: New file.
26229         * lib/inet_ntop.c: New file, from glibc with modifications.
26230
26231 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
26232
26233         * modules/time_r (License): Change to LGPL.
26234         * modules/extensions (License): Change to LGPL.  Actually,
26235         the license is more permissive than that, but currently gnulib-tool
26236         doesn't know how to handle more-permissive licenses.
26237
26238         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
26239         Problem reported by Dave Love.
26240
26241 2005-05-08  Jim Meyering  <jim@meyering.net>
26242
26243         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
26244         blank.
26245
26246 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
26247
26248         * modules/argmatch (Depends-on): Add stdbool.
26249         * modules/backupfile (Depends-on): Likewise.
26250         * modules/chdir-long (Depends-on): Likewise.
26251         * modules/closeout (Depends-on): Likewise.
26252         * modules/cycle-check (Depends-on): Likewise.
26253         * modules/dirname (Depends-on): Likewise.
26254         * modules/fnmatch (Depends-on): Likewise.
26255         * modules/fsusage (Depends-on): Likewise.
26256         * modules/fwriteerror (Depends-on): Likewise.
26257         * modules/getcwd (Depends-on): Likewise.
26258         * modules/getloadavg (Depends-on): Likewise.
26259         * modules/hard-locale (Depends-on): Likewise.
26260         * modules/makepath (Depends-on): Likewise.
26261         * modules/mountlist (Depends-on): Likewise.
26262         * modules/nanosleep (Depends-on): Likewise.
26263         * modules/posixtm (Depends-on): Likewise.
26264         * modules/quotearg (Depends-on): Likewise.
26265         * modules/readtokens (Depends-on): Likewise.
26266         * modules/readtokens0 (Depends-on): Likewise.
26267         * modules/readutmp (Depends-on): Likewise.
26268         * modules/save-cwd (Depends-on): Likewise.
26269         * modules/strftime (Depends-on): Likewise.
26270         * modules/userspec (Depends-on): Likewise.
26271         * modules/utimecmp (Depends-on): Likewise.
26272         * modules/xgetcwd (Depends-on): Likewise.
26273         * modules/xnanosleep (Depends-on): Likewise.
26274         * modules/xstrtod (Depends-on): Likewise.
26275         * modules/yesno (Depends-on): Likewise.
26276
26277 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
26278
26279         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
26280         needless checks.
26281
26282 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
26283
26284         Merge from coreutils.  Among other things,
26285         add bulletproofing for cases where stdin, stdout, or stderr are closed.
26286         * lib/fd-safer.c: New file.
26287         * lib/fcntl-safer.h, open-safer.c: Remove.
26288         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
26289         * lib/dup-safer.c: Include unistd-safer.h first.
26290         Don't include errno.h.
26291         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
26292         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
26293         * lib/file-type.c: Rely on file-type.h change.
26294         * lib/getloadavg.c: Include unistd-safer.h.
26295         (getloadavg): Use safer open.
26296         * lib/getusershell.c: Include "stdio-safer.h".
26297         (getusershell): Use safer fopen.
26298         * lib/long-options.c (long_options): Use NULL rather than 0.
26299         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
26300         'free'.
26301         * lib/modechange.c: Likewise.
26302         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
26303         (MODE_DONE): New constant.
26304         (struct mode_change): Remove 'next' member.
26305         (make_node_op_equals): New function; like the old one of the
26306         same name, except it allocates an array.
26307         (mode_compile, mode_create_from_ref): Use it.
26308         (mode_compile): Allocate result as an array, not a linked list.
26309         Parse octal string ourself, so that we catch mistakes like "+0".
26310         (mode_adjust): Arg is an array, not a linked list.
26311         * lib/modechange.c: Include stat-macros.h, xalloc.h.
26312         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
26313         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
26314         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
26315         Remove.  This is now stat-macros.h's job.
26316         (talloc): Remove.  All callers replaced by xalloc, so that
26317         our invokers don't have to worry about reporting memory failures.
26318         (make_node_op_equals): Remove.
26319         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
26320         New constants.
26321         (struct mode_change): Moved here from modechange.h.
26322         (mode_append_entry): Remove.
26323         (mode_compile): Remove MASKED_OPS arg, since it encouraged
26324         apps to have incorrect behavior.  Use simpler algorithm for head
26325         and tail.  Don't futz with umask; that's now the job of mode_adjust.
26326         Detect more invalid usages rather than having somewhat-random behavior.
26327         Don't insert an "a=" action, as that leads to incorrect behavior.
26328         (mode_compile, mode_create_from_ref): Return NULL on error instead
26329         of an enum, since now there's only one way to have an error.  All
26330         callers changed.
26331         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
26332         at the correct time.  Simplify calculation of "+u" and its ilk.
26333         Don't mishandle "+X".
26334         (mode_free): Remove "register" and localize decls.
26335         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
26336         (struct mode_change): Move to modechange.c; callers don't
26337         need to see this stuff.
26338         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
26339         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
26340         (mode_change, mode_adjust): Reflect the new signatures noted above.
26341         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
26342         that might redefine system include files.
26343         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
26344         (my_usleep): Use NULL rather than (void *) 0.
26345         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
26346         Use siginterrupt to specify that system calls should be interrupted.
26347         (rpl_nanosleep): Move initialization of suspended closer to call of
26348         my_usleep.
26349         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
26350         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
26351         (desirable_utmp_entry): New function.
26352         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
26353         using x2nrealloc, to simplify logic.
26354         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
26355         size calculation.  Do not assume utmp file is a regular file.
26356         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
26357         (READ_UTMP_CHECK_PIDS): New constant.
26358         * lib/save-cwd.c: Include unistd-safer.h.
26359         (save_cwd): Use fd_safer.
26360         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
26361         [!_LIBC] Include "stat-macros.h" instead.
26362         * lib/unistd-safer.h (fd_safer): New decl.
26363
26364 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
26365
26366         * modules/getloadavg (Depends-on): Add unistd-safer.
26367         * modules/getusershell (Depends-on): Add stdio-safer.
26368         * modules/lstat (Depends-on): Remove xalloc.
26369         * modules/mkstemp (Depends-on): Add stat-macros.
26370         * modules/modechange (Depends-on): Remove xstrtol.
26371         Add stat-macros, xalloc.
26372         * modules/save-cwd (Depends-on): Add unistd-safer.
26373         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
26374         * modules/unistd-safer (Files): Add lib/fd-safer.c
26375         (Makefile.am): Remove lib_SOURCES.
26376
26377         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
26378         Remove fcntl-safer; unistd-safer supersedes it.
26379
26380 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
26381
26382         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
26383         AC_HEADER_STAT.
26384         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
26385         (gl_PREREQ_CHOWN): Remove.
26386         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
26387         it.  Don't require AC_HEADER_STAT.
26388         (gl_PREREQ_LSTAT): Remove.
26389         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
26390         Don't require AC_HEADER_STAT.
26391         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
26392         (gl_PREREQ_RMDIR): Remove.
26393         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
26394         mention stat-macros.h or AC_HEADER_STAT, since we'll make
26395         the stat-macros module a prerequisite.
26396         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
26397         * m4/filemode.m4 (gl_FILEMODE): Likewise.
26398         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
26399         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
26400         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
26401         variable names.
26402         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
26403         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
26404         variable prefixes.
26405         * m4/fcntl-safer.m4: Remove.
26406         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
26407         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
26408         Invoke gl_PREREQ_FD_SAFER.
26409         (gl_PREREQ_FD_SAFER): New macro.
26410         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
26411         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
26412         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
26413         Remove duplicate call to AC_LIBOBJ(readutmp).
26414         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
26415
26416         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
26417         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
26418
26419 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
26420
26421         * MODULES.html.sh (Misc): Add byteswap.
26422
26423 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
26424
26425         * modules/getcwd (Depends-on): Add extensions.
26426         * modules/openat (Depends-on): Likewise.
26427
26428 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
26429
26430         * modules/byteswap: New file.
26431
26432 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
26433
26434         * m4/byteswap.m4: New file.
26435
26436 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
26437
26438         * lib/byteswap_.h: New file.
26439
26440 2005-04-25  Karl Berry  <karl@gnu.org>
26441
26442         * m4/gettext.m4: Update from GNU gettext 0.14.4.
26443
26444 2005-04-25  Albert Chin  <china@thewrittenword.com>
26445
26446         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
26447         Toolkit C bug.
26448
26449 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
26450
26451         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
26452         (func_ln_if_changed) Remove forcibly for no error message
26453         in case file does not exist.
26454
26455 2005-04-19  Simon Josefsson  <jas@extundo.com>
26456
26457         * gnulib-tool (Options): Make --symlink mean --symbolic.
26458
26459 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
26460
26461         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
26462
26463 2005-04-16  Simon Josefsson  <jas@extundo.com>
26464
26465         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
26466
26467 2005-04-15  Simon Josefsson  <jas@extundo.com>
26468
26469         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
26470
26471 2005-04-15  Simon Josefsson  <jas@extundo.com>
26472
26473         * gnulib-tool: Rename --symlink to --symbolic.
26474
26475 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
26476
26477         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
26478         symbolic links to files instead of copying/moving.  Add --aux-dir,
26479         specifying directory relative --dir where auxiliary build tools
26480         are placed.
26481
26482 2005-04-14  Bruno Haible  <bruno@clisp.org>
26483
26484         * modules/allocsa (License): Change to LGPL.
26485         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26486
26487 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
26488
26489         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
26490         that "UTC +1 second" continues to work.  Problem reported
26491         by Dmitry V. Levin.
26492         (relunit_snumber): New rule.
26493         (relunit): Use it.
26494
26495 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
26496
26497         * lib/getdate.y (universal_time_zone_table): New constant.
26498         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
26499         universal_time_zone_table.
26500         (lookup_zone): Prefer universal_time_zone_table to
26501         local_time_zone_table, so that "GMT" time stamps are allowed in
26502         London during the summer.  Problem reported by Ian Abbott.
26503
26504 2005-04-12  Jim Meyering  <jim@meyering.net>
26505
26506         * lib/human.c (humblock): Set *options even when returning due to
26507         xstrtoumax conversion failure.  Thanks to a used-uninitialized
26508         warning from gcc-4.
26509
26510 2005-04-09  Jim Meyering  <jim@meyering.net>
26511
26512         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
26513         -Wuninitialized: initialize tm0.tm_year.
26514
26515 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
26516
26517         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
26518         count, since there's no maximum.  All uses changed.
26519         Add member dsts_seen.
26520         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
26521         not being INT_MAX.
26522         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
26523         Use pc_rels_seen to decide whther a date is absolute.
26524
26525         * lib/getdate.y (number): Don't overwrite year.
26526         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
26527         check.
26528
26529 2005-04-02  Simon Josefsson  <jas@extundo.com>
26530
26531         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
26532         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
26533
26534 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
26535
26536         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
26537         where no absolute path name can be longer than PATH_MAX.
26538
26539 2005-03-27  Jim Meyering  <jim@meyering.net>
26540
26541         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
26542
26543 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
26544
26545         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
26546         "one's complement" -> "ones' complement" in comment, as per Knuth.
26547         "value of type" -> "type or expression" in comment.
26548         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
26549
26550 2005-03-26  Jim Meyering  <jim@meyering.net>
26551
26552         Comment nits.
26553         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
26554         Correct typos: s/or/of/.
26555
26556 2005-03-26  Jim Meyering  <jim@meyering.net>
26557
26558         * modules/check-include-files: Move to ../ and rename to...
26559         * check-module: ...this.
26560
26561 2005-03-25  Jim Meyering  <jim@meyering.net>
26562
26563         * modules/xvasprintf (Files): Add xalloc.h.
26564
26565 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
26566
26567         * modules/gettext (Files): config/config.rpath ->
26568         build-aux/config.rpath
26569         * modules/iconv (Files): Likewise.
26570         Problem reported by Oskar Liljeblad.
26571
26572 2005-03-23  Jim Meyering  <jim@meyering.net>
26573
26574         * modules/check-include-files: New script to check for
26575         missing dependencies, multiple includes, etc.
26576
26577         * modules/c-strtold (Depends-on): Add xalloc.
26578         * modules/c-strtod (Depends-on): Add xalloc.
26579         * modules/hash (Depends-on): Add xalloc.
26580         (Files): Remove lib/xalloc.h.
26581
26582         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
26583         * modules/userspec (Files): Add lib/inttostr.h.
26584
26585 2005-03-23  Jim Meyering  <jim@meyering.net>
26586
26587         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
26588
26589 2005-03-22  Jim Meyering  <jim@meyering.net>
26590
26591         * modules/stat-macros: New module.
26592         * modules/canonicalize, modules/euidaccess, modules/file-type,
26593         * modules/filemode, modules/lchown, modules/makepath,
26594         * modules/rmdir, modules/stat: Depend on new stat-macros module
26595         rather than listing lib/stat-macros.h manually.
26596         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
26597
26598 2005-03-22  Jim Meyering  <jim@meyering.net>
26599
26600         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
26601
26602 2005-03-22  Bruno Haible  <bruno@clisp.org>
26603
26604         * config/srclist.txt: Replace target directory 'config' with
26605         'build-aux'.
26606         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
26607         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
26608         ../build-aux/.
26609
26610 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
26611
26612         * modules/chdir-long (Depends-on): Add mempcpy.
26613
26614         * modules/acl, modules/backupfile, modules/c-strtod,
26615         modules/c-strtold, modules/canon-host, modules/canonicalize,
26616         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
26617         modules/exclude, modules/exitfail, modules/file-type,
26618         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
26619         modules/getdate, modules/getline, modules/getpagesize,
26620         modules/getpass, modules/getugroups, modules/group-member,
26621         modules/hard-locale, modules/hash, modules/human, modules/idcache,
26622         modules/inttostr, modules/long-options, modules/makepath,
26623         modules/md5, modules/memcasecmp, modules/memcoll,
26624         modules/modechange, modules/mountlist, modules/path-concat,
26625         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
26626         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
26627         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
26628         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
26629         modules/strftime, modules/strndup, modules/strverscmp,
26630         modules/timespec, modules/unlocked-io, modules/userspec,
26631         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
26632         modules/yesno:
26633         Remove lib_SOURCES line from Makefile.am section, as this is now
26634         done automatically by the corresponding Autoconf macro.
26635
26636 2005-03-21  Jim Meyering  <jim@meyering.net>
26637
26638         Changes imported from coreutils.
26639
26640         * lib/cycle-check.c: Don't include xalloc.h.
26641
26642         * lib/path-concat.c: Don't include assert.h.
26643         (path_concat): Remove assertion that would have triggered
26644         for ABASE starting with more than one slash.
26645         Reported by Andreas Schwab.
26646
26647         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
26648         properly when ABASE is an absolute file name.
26649         Correct the description of this function.
26650         Include <assert.h>.
26651         Add an assertion and a test driver.
26652         This fixes a bug introduced on 2004-07-02.
26653         Andreas Schwab reported the resulting failure of cp --parents:
26654         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
26655
26656 2005-03-21  Jim Meyering  <jim@meyering.net>
26657
26658         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
26659         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
26660
26661 2005-03-21  Jim Meyering  <jim@meyering.net>
26662         and  Paul Eggert  <eggert@cs.ucla.edu>
26663
26664         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
26665         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
26666         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
26667         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
26668         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
26669         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
26670         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
26671         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
26672         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
26673         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
26674         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
26675         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
26676         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
26677         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
26678         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
26679         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
26680         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
26681         for these modules.
26682
26683 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
26684
26685         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
26686         (which shouldn't happen), generate nothing instead of returning 0
26687         immediately, so that nstrftime (NULL, ...) doesn't return 0.
26688
26689 2005-03-16  Bruno Haible  <bruno@clisp.org>
26690
26691         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
26692         HAVE_LONGLONG_64BIT.
26693
26694 2005-03-16  Bruno Haible  <bruno@clisp.org>
26695
26696         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
26697         HAVE_LONGLONG_64BIT.
26698
26699 2005-03-16  Bruno Haible  <bruno@clisp.org>
26700
26701         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
26702         HAVE_LONGLONG_64BIT.
26703
26704 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
26705
26706         * lib/strftime.c (my_strftime): Prepend space to format so that we can
26707         reliably distinguish strftime failure from empty output on POSIX
26708         hosts.
26709
26710 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
26711
26712         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
26713         (iconv_string): Don't guess a size-zero buffer, as that might cause
26714         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
26715         result would be 'too large', where 'too large' is (heuristically)
26716         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
26717         overflow concerns.  This will prevent some unwanted malloc failures
26718         when the inputs are very large.
26719
26720 2005-03-15  Karl Berry  <karl@gnu.org>
26721
26722         * config/srclist.txt (config.rpath): from gettext.
26723         * config/config.rpath: update.
26724
26725 2005-03-15  Bruno Haible  <bruno@clisp.org>
26726
26727         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
26728         to 'negate'.
26729
26730         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
26731         variable.
26732
26733         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
26734         results.
26735
26736 2005-03-14  Simon Josefsson  <jas@extundo.com>
26737
26738         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
26739         <fx@gnu.org>.
26740
26741 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
26742
26743         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
26744         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
26745         intprops.h.
26746         * lib/strtol.c: Likewise.
26747
26748 2005-03-14  Jim Meyering  <jim@meyering.net>
26749
26750         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
26751         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
26752         to be nonzero so that we (and caller) can detect the difference
26753         between a valid zero-length expansion and an error return, even
26754         when the underlying strftime fails before writing anything into
26755         that location.
26756
26757 2005-03-14  Bruno Haible  <bruno@clisp.org>
26758
26759         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
26760         Update from GNU gettext 0.14.3.
26761
26762 2005-03-10  Jim Meyering  <jim@meyering.net>
26763
26764         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
26765
26766 2005-03-10  Jim Meyering  <jim@meyering.net>
26767
26768         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
26769         so that this module works on systems without fchdir.
26770
26771 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
26772
26773         Factor int-properties macros into a single file, except for
26774         glibc-related files.
26775         * lib/intprops.h: New file.
26776         * lib/getloadavg.c: Include it instead of limits.h.
26777         (INT_STRLEN_BOUND): Remove.
26778         * lib/human.c: Include intprops.h.
26779         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
26780         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
26781         302/1000.
26782         * lib/inttostr.h: Include intprops.h instead of limits.h.
26783         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
26784         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
26785         for consistency with intprops.h.
26786         (time_t_is_integer, twos_complement_arithmetic): Use them.
26787         * lib/sig2str.h: Include <signal.h>, intprops.h.
26788         (INT_STRLEN_BOUND): Remove.
26789         * lib/strftime.c (TYPE_SIGNED): Remove.
26790         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
26791         * lib/strtol.c: Adjust comments to match intprops.h.
26792         * lib/userspec.c: Include intprops.h.
26793         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
26794         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
26795         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
26796         instead of rolling our own expressions.
26797         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
26798
26799         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
26800         instead of int.
26801         (my_strftime): Do not mishandle years close to INT_MAX, by doing
26802         the right thing even if adding 1900 would overflow.  Similarly
26803         for tm_mon + 1 and tm_yday + 1.
26804         Make %Y always equivalent to %C%y, and similarly for %G and %g.
26805         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
26806         (DO_SIGNED_NUMBER): New macro.
26807         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
26808
26809 2005-03-07  Bruno Haible  <bruno@clisp.org>
26810
26811         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
26812
26813 2005-03-07  Bruno Haible  <bruno@clisp.org>
26814
26815         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
26816
26817 2005-03-04  Derek R. Price  <derek@ximbiot.com>
26818
26819         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
26820         (func_import): Only replace files via --import when they have actually
26821         changed.
26822
26823 2005-03-03  Derek R. Price  <derek@ximbiot.com>
26824
26825         * m4/mmap-anon.m4: New file.
26826         * m4/pagealign_alloc.m4: New file.
26827
26828 2005-03-03  Derek R. Price  <derek@ximbiot.com>
26829             Bruno Haible  <bruno@clisp.org>
26830
26831         * modules/pagealign_alloc: New file.
26832         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
26833
26834 2005-03-03  Derek R. Price  <derek@ximbiot.com>
26835             Bruno Haible  <bruno@clisp.org>
26836
26837         * lib/pagealign_alloc.h: New file.
26838         * lib/pagealign_alloc.c: New file.
26839
26840 2005-03-03  Bruno Haible  <bruno@clisp.org>
26841
26842         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
26843         Use an all-permissive copyright notice, recommended by RMS.
26844
26845 2005-03-02  Bruno Haible  <bruno@clisp.org>
26846
26847         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
26848         of AIX, the replacement has to be done only after <string.h> is
26849         included, therefore not in config.h. stpncpy.h does the replacement,
26850         and stpncpy.c uses it.
26851
26852 2005-03-02  Bruno Haible  <bruno@clisp.org>
26853
26854         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
26855         stpncpy.c uses it.
26856
26857 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26858
26859         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
26860         The workaround isn't strictly needed for POSIX conformance, and
26861         it's too much of a pain to configure and maintain.  We'll ask
26862         people to fix their kernels instead.
26863         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
26864         (NANOSLEEP_BUG_WORKAROUND): Remove.
26865         (xnanosleep): Remove the workaround.
26866
26867 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26868
26869         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
26870         Reported by Derek Price.
26871         (Include): Add "timespec.h".
26872
26873         * modules/xnanosleep (Depends-on): Remove gethrxtime.
26874
26875 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26876
26877         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
26878         to detect nanosleep bug.
26879
26880 2005-03-01  Bruno Haible  <bruno@clisp.org>
26881
26882         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
26883
26884 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
26885
26886         * modules/gethrxtime: New file.
26887         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
26888         (Depends-on): Add gethrxtime.
26889         (configure.ac): Add gl_XNANOSLEEP.
26890         (Makefile.am): Remove lib_SOURCES line.
26891
26892 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
26893
26894         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
26895         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
26896
26897 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
26898
26899         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
26900         * lib/timespec.h (gettime): Return void, since it always
26901         succeeds now.  All uses changed.
26902         * lib/gettime.c (gettime) Likewise.
26903         [HAVE_NANOTIME]: Prefer nanotime.
26904         Assume gettimeofday succeeds, as POSIX requires.
26905         Assime time () succeeds, since other code already does.
26906         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
26907         (timespec_subtract): Remove.
26908         (NANOSLEEP_BUG_WORKAROUND): New constant.
26909         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
26910         things considerably.  Use it only on GNU/Linux hosts, since the
26911         workaround shouldn't be needed elsewhere.
26912
26913 2005-02-24  Bruno Haible  <bruno@clisp.org>
26914
26915         * modules/gettext (Files): Add m4/glibc2.m4.
26916
26917 2005-02-24  Bruno Haible  <bruno@clisp.org>
26918
26919         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
26920         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
26921         * m4/progtest.m4:
26922         Update from GNU gettext 0.14.2.
26923         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
26924
26925 2005-02-24  Bruno Haible  <bruno@clisp.org>
26926
26927         * lib/localcharset.c: Update from GNU gettext 0.14.2.
26928         * lib/config.charset: Update from GNU gettext 0.14.2.
26929
26930 2005-02-24  Bruno Haible  <bruno@clisp.org>
26931
26932         * lib/gettext.h: Update from GNU gettext 0.14.2.
26933
26934 2005-02-23  Simon Josefsson  <jas@extundo.com>
26935
26936         * m4/iconvme.m4: New file.
26937
26938 2005-02-23  Jim Meyering  <jim@meyering.net>
26939
26940         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
26941         change.
26942         Thanks to Bruno Haible for catching it.
26943
26944 2005-02-22  Simon Josefsson  <jas@extundo.com>
26945
26946         * modules/iconvme: New file.
26947
26948         * MODULES.html.sh: Add iconvme.
26949
26950 2005-02-22  Simon Josefsson  <jas@extundo.com>
26951
26952         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
26953
26954 2005-02-22  Simon Josefsson  <jas@extundo.com>
26955
26956         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
26957
26958 2005-02-22  Jim Meyering  <jim@meyering.net>
26959
26960         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
26961         s/ifndef/ifdef/.
26962
26963 2005-02-20  Neil Conway  <neilc@samurai.com>
26964
26965         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
26966         returned by OSX/Darwin if the specified buffer is not large
26967         enough for the hostname.
26968
26969 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26970
26971         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
26972         pass it to _help, otherwise the latter coredumps trying to
26973         dereference state.root_argp.
26974
26975 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
26976
26977         * modules/chdir-long (Depends-on): Add memrchr.
26978         * modules/memrchr (Files): Add lib/memrchr.h.
26979         (Include): "memrchr.h".
26980
26981 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
26982
26983         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
26984
26985 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
26986
26987         * lib/memrchr.h: New file.
26988         * lib/chdir-long.c: Include it.
26989         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
26990         Don't bother including stddef.h.
26991
26992 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
26993
26994         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
26995         inclusion.
26996         Include <sys/types.h>, for dev_t.
26997         (ME_DUMMY, ME_REMOTE): Move from here....
26998         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
26999         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
27000         Dmitry V. Levin.
27001         Include mountlist.h first, to test the interface.
27002
27003 2005-01-29  Bruno Haible  <bruno@clisp.org>
27004
27005         * lib/progname.c (program_name): Initialize.
27006         Needed when linking statically on MacOS X.
27007
27008 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27009
27010         Sync from coreutils.
27011         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
27012         (Depends-on): Add c-strtod.
27013         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
27014
27015 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27016
27017         Sync from coreutils.
27018         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
27019
27020         Remove files that are specific to coreutils.
27021         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
27022
27023 2005-01-28  Bruno Haible  <bruno@clisp.org>
27024
27025         * modules/javacomp: New file.
27026         * MODULES.html.sh (Java): Add javacomp.
27027
27028 2005-01-28  Bruno Haible  <bruno@clisp.org>
27029
27030         * m4/javacomp.m4: New file, from GNU gettext.
27031
27032 2005-01-28  Bruno Haible  <bruno@clisp.org>
27033
27034         * lib/javacomp.sh.in: New file, from GNU gettext.
27035         * lib/javacomp.h: New file, from GNU gettext.
27036         * lib/javacomp.c: New file, from GNU gettext.
27037
27038 2005-01-26  Simon Josefsson  <jas@extundo.com>
27039
27040         * lib/gai_strerror.c: Use GPL in header.
27041
27042 2005-01-26  Bruno Haible  <bruno@clisp.org>
27043
27044         * modules/javaexec: New file.
27045         * MODULES.html.sh (Java): Add javaexec.
27046
27047 2005-01-26  Bruno Haible  <bruno@clisp.org>
27048
27049         * m4/javaexec.m4: New file, from GNU gettext.
27050
27051 2005-01-26  Bruno Haible  <bruno@clisp.org>
27052
27053         * lib/javaexec.sh.in: New file, from GNU gettext.
27054         * lib/javaexec.h: New file, from GNU gettext.
27055         * lib/javaexec.c: New file, from GNU gettext.
27056
27057 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27058
27059         * modules/lchown (Depends-on): Remove lchown.h
27060
27061 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27062
27063         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
27064         must be defined if the header file was not found, in order
27065         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
27066
27067 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27068
27069         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
27070         initializers for struct pentry_state.
27071         (__argp_error): Check return value of __asprintf
27072         (__argp_failure): Translate error message
27073
27074         * lib/argp-parse.c: Removed braces around the expansion of N_()
27075
27076 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27077
27078         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
27079         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
27080         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
27081         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
27082         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
27083         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
27084         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
27085         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
27086         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
27087         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
27088         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
27089         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
27090         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
27091         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
27092         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
27093         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
27094         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
27095         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
27096         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
27097         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
27098         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
27099         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
27100         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
27101         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
27102         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
27103         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
27104         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
27105         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
27106         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
27107         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
27108         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
27109         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
27110         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
27111         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
27112         xstrtol.m4, xstrtoumax.m4, yesno.m4:
27113         Use an all-permissive copyright notice, recommended by RMS.
27114
27115 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
27116
27117         * modules/chdir-long (Depends-on): Remove mempcpy.
27118
27119 2005-01-21  Jim Meyering  <jim@meyering.net>
27120
27121         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
27122         same value as for Solaris 9.
27123
27124         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
27125         component length.  This included changing the parameter to be
27126         of type `char *' rather than `char const *'.
27127         * lib/chdir-long.h (chdir_long): Update prototype.
27128
27129         * lib/openat.c (fdopendir, fstatat): New functions.
27130         * lib/openat.h: Include headers required for use of DIR and struct
27131         stat.
27132         [AT_SYMLINK_NOFOLLOW]: Define.
27133         (fdopendir, fstatat): Add prototypes.
27134
27135 2005-01-21  Bruno Haible  <bruno@clisp.org>
27136
27137         * modules/classpath: New file.
27138         * MODULES.html.sh (Java): Add classpath.
27139
27140 2005-01-21  Bruno Haible  <bruno@clisp.org>
27141
27142         * lib/classpath.h: New file, from GNU gettext.
27143         * lib/classpath.c: New file, from GNU gettext.
27144
27145 2005-01-20  Simon Josefsson  <jas@extundo.com>
27146
27147         * modules/version-etc-fsf: New file.
27148
27149 2005-01-20  Simon Josefsson  <jas@extundo.com>
27150
27151         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
27152         * lib/version-etc.c: Remove version_etc_copyright.
27153         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
27154         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
27155
27156 2005-01-20  Simon Josefsson  <jas@extundo.com>
27157
27158         * lib/base64.h (isbase64): Add.
27159
27160         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
27161         using a unsigned prototype, don't inline.
27162         (base64_decode): Use it.
27163
27164 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
27165
27166         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
27167         it.
27168
27169 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
27170
27171         * lib/save-cwd.c (save_cwd): Remove code to support the case
27172         where fchdir is missing or flaky.
27173
27174 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
27175
27176         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
27177
27178 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
27179
27180         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
27181         AC_LIBSOURCES now does this.
27182         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
27183         with new ullong_max module.
27184
27185 2005-01-19  Bruno Haible  <bruno@clisp.org>
27186
27187         * modules/sh-quote: New file.
27188         * MODULES.html.sh (Executing programs): Add sh-quote.
27189
27190 2005-01-19  Bruno Haible  <bruno@clisp.org>
27191
27192         * lib/sh-quote.h: New file, from GNU gettext.
27193         * lib/sh-quote.c: New file, from GNU gettext.
27194
27195 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
27196
27197         Merge from coreutils.
27198         * m4/ullong_max.m4: New file.
27199         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
27200         (gl_MACROS): Assume localeconv exists.
27201
27202 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
27203
27204         Merge changes from coreutils, as described below in several
27205         changelogs dated today.
27206
27207         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
27208         (O_DIRECTORY): Remove; not needed here, since "." must be
27209         a directory.  All uses removed.
27210         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
27211         universal on Suns, and we also need to test for IRIX.
27212         Revamp code to use 'if' rather than '#if'.
27213         Avoid unnecessary comparison of cwd->desc to 0.
27214
27215         * lib/utimens.c (futimens): Robustify the previous patch, by checking
27216         for known valid error numbers rather than observed invalid ones.
27217
27218 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
27219
27220         * modules/ullong_max: New file.
27221
27222         * modules/chdir-long, modules/openat: New files.
27223         * modules/save-cwd (Depends-on): Depend on chdir-long.
27224         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
27225
27226 2005-01-18  Jim Meyering  <jim@meyering.net>
27227
27228         Merge from coreutils.
27229         * m4/chdir-long.m4, m4/openat.m4: New files.
27230         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
27231         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
27232         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
27233         is sane and DOES follow symlinks.  Besides, testing 20 different
27234         systems found no broken chown implementations.
27235         Prompted by a change in rsync's copy of this macro.
27236         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
27237
27238         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
27239
27240         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
27241         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
27242         NULL-means-set-to-current-time semantics.
27243         Remove temporary file immediately, rather than waiting
27244         for configure's at-exit trap code to do it.
27245
27246 2005-01-18  Jim Meyering  <jim@meyering.net>
27247
27248         * lib/version-etc.c (version_etc_copyright): Update copyright date.
27249
27250         * lib/utimens.c (futimens): Account for the fact that futimes
27251         can also fail with errno == ENOSYS or errno == ENOENT.
27252         Patch from Dmitry V. Levin.
27253
27254         Change the name of the robust chdir function from chdir to chdir_long.
27255         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
27256         (restore_cwd): Use chdir_long, not chdir.
27257         * lib/chdir-long.c: Renamed from chdir.c.
27258         * lib/chdir-long.h: Renamed from chdir.h.
27259         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
27260         Hurd.
27261
27262 2005-01-18  Bruno Haible  <bruno@clisp.org>
27263
27264         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
27265         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
27266         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
27267         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
27268         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
27269         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
27270         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
27271         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
27272         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
27273         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
27274         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
27275         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
27276         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
27277         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
27278         Use an all-permissive copyright notice, recommended by RMS.
27279
27280 2005-01-18  Bob Proulx  <bob@proulx.com>
27281
27282         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
27283         simplify offsetof() macro construct to avoid compile failure with
27284         native HP-UX 11.0 ANSI C compiler.
27285
27286 2005-01-17  Bruno Haible  <bruno@clisp.org>
27287
27288         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
27289         redundant because stpncpy.m4 takes care of it.
27290
27291 2005-01-17  Bruno Haible  <bruno@clisp.org>
27292
27293         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
27294
27295 2005-01-17  Bruno Haible  <bruno@clisp.org>
27296
27297         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
27298         used.
27299
27300 2005-01-17  Bruno Haible  <bruno@clisp.org>
27301
27302         * lib/fwriteerror.h (fwriteerror): Change specification to include
27303         fclose.
27304         * lib/fwriteerror.c: Include <stdbool.h>.
27305         (fwriteerror): At the end, close the file stream. Record whether
27306         stdout was already closed.
27307
27308 2005-01-17  Bruno Haible  <bruno@clisp.org>
27309
27310         * lib/execute.c (environ): Declare if needed.
27311         * lib/pipe.c (environ): Likewise.
27312         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
27313
27314 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27315
27316         * modules/argp: Depend on vsnprintf
27317
27318 2005-01-10  Jim Meyering  <jim@meyering.net>
27319
27320         * modules/closeout (Depends-on): Add atexit.
27321
27322 2005-01-06  Bruno Haible  <bruno@clisp.org>
27323
27324         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
27325
27326 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27327
27328         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
27329         definitions to be after all include files, to avoid collisions.
27330         Problem reported by Bob Proulx.
27331
27332 2005-01-04  Jim Meyering  <jim@meyering.net>
27333
27334         Changes imported from coreutils.
27335         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
27336         as the mkstemp template, use a temporary directory and an
27337         8.3-friendly template to avoid trouble on systems like DJGPP.
27338         Reported by Juan M. Guerrero via Stepan Kasal.
27339         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
27340         close. Remove the temporary directory right away, rather than waiting
27341         for configure's at-exit trap code to do it.
27342         Suggestion from Stepan Kasal.
27343
27344 2005-01-01  Simon Josefsson  <jas@extundo.com>
27345
27346         * gnulib-tool: Print #include directives when --import'ing.
27347
27348 2004-12-28  Simon Josefsson  <jas@extundo.com>
27349
27350         * tests/test-base64.c: Include required header files.  Remove
27351         unused variables.
27352
27353 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27354
27355         * modules/error (Depends-on): Remove gettext.
27356
27357 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27358
27359         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
27360         not needed.  This removes a dependency on the gettext module.
27361         [defined _LIBC]: Do not include <libintl.h>; not needed.
27362
27363 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
27364
27365         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
27366         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
27367
27368 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
27369
27370         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
27371         HAVE_DECL_STRTOLD.
27372
27373 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
27374
27375         * modules/getdate (Depends-on): Remove alloca-opt.
27376
27377 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
27378
27379         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
27380
27381 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
27382
27383         * lib/argp-parse.c: Include <stddef.h>.
27384         (alignof, alignto): New macros.
27385         (parser_init): Don't assume that void * is aligned sufficiently
27386         for struct option.
27387
27388         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
27389         need to extend the stack.
27390         (YYINITDEPTH): New macro, so that the initial stack isn't overly
27391         large.
27392
27393 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27394
27395         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
27396
27397 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
27398
27399         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
27400         (2004-10-24) change.  Apparently this was a false alarm.
27401
27402         * modules/getdate: Depend on alloca-opt, not alloca.
27403
27404 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
27405
27406         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
27407         Remove now-obsolete comment about AIX.
27408         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
27409         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
27410         (YYMAXDEPTH): New macro.
27411
27412 2004-12-18  Simon Josefsson  <jas@extundo.com>
27413
27414         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
27415
27416 2004-12-18  Bruno Haible  <bruno@clisp.org>
27417
27418         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
27419
27420 2004-12-18  Bruno Haible  <bruno@clisp.org>
27421
27422         * lib/fatal-signal.c (fatal_signals): Make non-const.
27423         (init_fatal_signals): New function.
27424         (uninstall_handlers, install_handlers): Ignore signals that were set to
27425         SIG_IGN.
27426         (at_fatal_signal): Call init_fatal_signals.
27427         (init_fatal_signal_set): Likewise. Ignore signals that were set to
27428         SIG_IGN.
27429         Reported by Paul Eggert.
27430
27431 2004-12-18  Bruno Haible  <bruno@clisp.org>
27432
27433         * doc/alloca.texi: New file.
27434         * doc/alloca-opt.texi: New file.
27435
27436 2004-12-17  Jim Meyering  <jim@meyering.net>
27437
27438         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
27439         Otherwise, install-sh could exit with improper exit status when
27440         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
27441
27442 2004-12-16  Simon Josefsson  <jas@extundo.com>
27443
27444         * tests/test-base64.c: Add license.
27445
27446 2004-12-15  Stepan Kasal  <address@hidden>
27447
27448         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
27449
27450 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
27451
27452         * modules/getcwd (Files): Add m4/d-ino.m4.
27453         Suggested by Mark D. Baushke.
27454
27455 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
27456
27457         * lib/getdate.y (textint): New member "negative".
27458         (time_zone_hhmm): New function.
27459         Expect 14 shift-reduce conflicts, not 13.
27460         (o_colon_minutes): New rule.
27461         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
27462         (yylex): Set the "negative" member of signed numbers.
27463
27464 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
27465
27466         * doc/getdate.texi (Time of day items, Time zone items):
27467         Describe new formats +00:00, UTC+00:00.
27468
27469 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
27470
27471         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
27472         spurious "-l"s.  Problem reported by Stepan Kasal.
27473
27474 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
27475
27476         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
27477         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
27478
27479 2004-12-04  Simon Josefsson  <jas@extundo.com>
27480
27481         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
27482         Vandoorselaere <yoann@prelude-ids.org>.
27483
27484 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
27485
27486         Changes imported from coreutils.
27487         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
27488         exist.
27489         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
27490
27491 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
27492
27493         Changes imported from coreutils.
27494         * lib/hard-locale.c: Assume <locale.h> exists.
27495         Include "strdup.h".
27496         (GLIBC_VERSION): New macro.
27497         (hard_locale): Assume setlocale exists.
27498         Rewrite to avoid #ifdef.
27499         Use strdup rather than malloc + strcpy.
27500         * lib/human.c: Assume <locale.h> exists.
27501         (human_readable): Assume localeconv exists.
27502
27503 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
27504
27505         * modules/hard-locale (Depends-on): Add strdup.
27506
27507 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
27508
27509         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
27510         convert T2, not T.  (Imported from libc.)
27511
27512 2004-11-30  Simon Josefsson  <jas@extundo.com>
27513
27514         * modules/restrict (License): Change to LGPL.
27515
27516 2004-11-30  Simon Josefsson  <jas@extundo.com>
27517
27518         * m4/restrict.m4: Add copyright and copying conditions.
27519
27520 2004-11-30  Simon Josefsson  <jas@extundo.com>
27521
27522         * m4/base64.m4: New file.
27523
27524 2004-11-30  Simon Josefsson  <jas@extundo.com>
27525
27526         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
27527         base64.
27528
27529         * tests/test-base64.c: New file.
27530
27531         * modules/base64: New file.
27532
27533 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
27534
27535         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
27536         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
27537
27538         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
27539
27540 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
27541
27542         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
27543         (__getcwd.c): Don't restore errno; glibc doesn't.
27544         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
27545         first, falling back to our code only if its results look suspicious.
27546         Ensure that the resulting buffer is only as large as necessary.
27547
27548         * lib/readutmp.c: Include readutmp.h first.
27549         Include <errno.h>, since readutmp.h no longer does that.
27550         * lib/readutmp.h: Don't include <errno.h>,
27551         <sys/param.h>, <time.h>; not needed to establish interface.
27552         (errno): Remove decl.
27553         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
27554         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
27555         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
27556
27557 2004-11-28  Simon Josefsson  <jas@extundo.com>
27558
27559         * lib/base64.h, base64.c: New file.
27560
27561 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
27562
27563         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
27564
27565 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
27566
27567         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
27568         (Depends-on): Remove pathmax, same.  Add mempcpy.
27569         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
27570         (Makefile.am): Append getcwd.h to lib_SOURCES.
27571         (Include): Add getcwd.h.
27572         (Maintainer): Change from Jim Meyering to "all, glibc",
27573         since getdate now uses intended-for-glibc code.
27574         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
27575         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
27576
27577 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27578
27579         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
27580         HP's ANSI C compiler.
27581         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
27582         Declaring int functions causes warnings on some modern systems and
27583         shouldn't be needed to compile on ancient ones.
27584         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
27585         defined.
27586
27587         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
27588         with the following changes.
27589         (__set_errno): Parenthesize properly.
27590         Include <stdbool.h>.
27591         (MIN, MAX, MATCHING_INO): New macros.
27592         (__getcwd): Define with prototype, not K&R form.
27593         Use heuristics to allocate default buffer on stack if possible.
27594         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
27595         behavior, and to avoid the PATH_MAX limit when computing
27596         ../../../../...
27597         Use MATCHING_INO to compare inode number to file.
27598         Check for arithmetic overflow in size calculations.
27599         Fix bug in reallocation of dot array that caused getcwd to fail
27600         on directories nested deeper than 75.
27601         Be more careful about saving errno on error.
27602         Do not use realloc; use only free+malloc, as this is a bit
27603         more flexible and avoids a needless copy operation.
27604         Do not inspect st_dev and st_ino for symbolic links; POSIX
27605         doesn't specify the latter.
27606         Check for closedir errors.
27607         Avoid needless casts.
27608         Use "#ifdef weak_alias" around weak_alias, to be like other
27609         glibc code.
27610         The following changes to getcwd.c have effect only when used in
27611         gnulib; they have no effect inside glibc proper.
27612         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
27613         as alloca isn't used.
27614         (alloca, __alloca): Likewise.
27615         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
27616         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
27617         unconditionally, as gnulib assumes C89 or better.
27618         Do not include <sys/param.h>.
27619         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
27620         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
27621         better.
27622         (NULL) [!defined NULL]: Remove; we assume C89 or better.
27623         Include <dirent.h> in a way that is compatible with modern Autoconf.
27624         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
27625         New macros, if not already defined.
27626         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
27627         Use "_LIBC", not "defined _LIBC", for consistency.
27628         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
27629         a mempcpy module.
27630         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
27631         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
27632         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
27633         credit only to Jim Meyering and adjust the copyright dates.
27634         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
27635         <stdlib.h>, <unistd.h>, "pathmax.h".
27636         Instead, include "xgetcwd.h" (first) and "getcwd.h".
27637         (INITIAL_BUFFER_SIZE): Remove.
27638         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
27639
27640 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27641
27642         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
27643         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
27644         Use the _ONCE methods, for efficiency.
27645         Check for fcntl.h.  In test program, include <errno.h>
27646         and <fcntl.h> if available.  Remove old K&R cruft from
27647         test program.  Check for common errors in GNU/Linux,
27648         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
27649         don't do AC_LIBOBJ, as that's getcwd.m4's job.
27650         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
27651         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
27652         name accordingly.
27653         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
27654         accommodate new getcwd.c.
27655         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
27656         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
27657         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
27658         that's all we need now.
27659
27660 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27661
27662         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
27663         argp-parse.c depends on getopt internals, that means we should
27664         always use our getopt, to be on the safe side.
27665         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
27666         order not to spoil the result of an eventual previous invocation
27667         of gl_GETOPT_SUBSTITUTE.
27668
27669 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27670
27671         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
27672         redefinition warnings. To avoid them, include the defines
27673         in `#if !defined __need_getopt ... #endif'. The only place
27674         where __getopt_argv_const is used is in definitions
27675         of getopt_long and getopt_long_only below, which are as well
27676         protected by `#ifndef __need_getopt'.
27677         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
27678         __need_getopt after including <stdio.h> and <unistd.h> These
27679         headers might have defined it.
27680
27681 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
27682
27683         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
27684
27685 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
27686
27687         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
27688         (futimens): New function, which uses futimes if available.
27689         (futimens, utimens): Support timespec==NULL, with same semantics
27690         as utime and utimens.
27691         * lib/utimens.h (futimens): New decl.
27692
27693 2004-11-23  Jim Meyering  <jim@meyering.net>
27694
27695         * lib/getopt_.h: Remove trailing blanks.
27696
27697 2004-11-23  Jim Meyering  <jim@meyering.net>
27698
27699         * lib/__fpending.c: Add comment.
27700
27701 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
27702
27703         * modules/canonicalize (Depends-on): Add xreadlink.
27704         Problem reported by James Youngman.
27705
27706 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
27707
27708         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
27709         New macros.
27710         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
27711         optopt): Use them instead of invoking ## directly; otherwise, the
27712         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
27713
27714 2004-11-19  Bruno Haible  <bruno@clisp.org>
27715
27716         * lib/strtok_r.c: Move comments from here...
27717         * lib/strtok_r.h: ... to here.
27718
27719 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27720
27721         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
27722         implementations that mishandle size_t overflow.
27723
27724 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27725
27726         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
27727         might fail.  Problem reported by Yoann Vandoorselaere.
27728         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
27729         implementations that mishandle size_t overflow.
27730
27731 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27732
27733         * modules/canon-host (Depends-on): Add strdup.
27734
27735 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27736
27737         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
27738
27739 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27740
27741         * lib/canon-host.c: Include "strdup.h".
27742         (canon_host): Use getaddrinfo if available, so that IPv6 works.
27743         Use strdup instead of malloc/strcpy to duplicate strings.
27744
27745         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
27746         (human_space_before_unit): New constant.
27747         * lib/human.c (human_readable): Support it.
27748
27749         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
27750         (xgetcwd): Set errno correctly when failing.
27751         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
27752         the failure is actually due to a PATH_MAX problem.
27753
27754         Further getopt changes to make it more likely that glibc will
27755         buy the changes back.
27756         * lib/getopt.c (POSIXLY_CORRECT): New constant.
27757         (getopt): Use it, so to preserve glibc semantic
27758         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
27759         when compiling for libc.
27760         * lib/getopt_.h (__getopt_argv_const): Bring it back.
27761         (getopt_long, getopt_long_only): Use it.
27762
27763         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
27764         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
27765         (getopt): Argv is now char * const *, as per standard.
27766         (_getopt_internal_r, _getopt_internal): Argv is now char **,
27767         not char *__getopt_argv_const *.
27768         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
27769         _getopt_long_only_r): Likewise.
27770         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
27771         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
27772         _getopt_long_r, _getopt_long_only_r): Likewise.
27773         * lib/getopt_.h (__getopt_argv_const): Remove.
27774         (getopt): Argv is now char * const *, as per standard.
27775
27776         * lib/getdate.y (tORDINAL): New token.
27777         (day, relunit): Allow it for relative times.
27778         (relative_time_table): Use tORDINAL for ordinals.
27779
27780 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27781
27782         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
27783         Document that "second" isn't allowed as an ordinal number.
27784
27785 2004-11-16  Jim Meyering  <jim@meyering.net>
27786
27787         * modules/closeout (Depends-on): Add fpending.
27788
27789 2004-11-15  Jim Meyering  <jim@meyering.net>
27790
27791         * lib/closeout.c: Include "__fpending.h" once again.
27792         Include <stdbool.h>.
27793         (close_stdout): Don't fail just because stdout was closed initially,
27794         since some programs don't write to stdout in the normal course of
27795         operation (other than --version and --help), and we don't want this
27796         function to make e.g. `touch file >&-' fail.
27797         But do fail if it was closed and someone has tried to write to it.
27798         E.g., `printf foo >&-' must fail.
27799
27800 2004-11-13  Jim Meyering  <jim@meyering.net>
27801
27802         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
27803
27804 2004-11-12  Simon Josefsson  <jas@extundo.com>
27805
27806         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
27807         small doc fix is still pending.
27808
27809 2004-11-11  Simon Josefsson  <jas@extundo.com>
27810
27811         * modules/strtok_r: New file.
27812
27813         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27814         strtok_r.
27815
27816 2004-11-11  Simon Josefsson  <jas@extundo.com>
27817
27818         * m4/strtok_r.m4: New file.
27819
27820         * m4/getopt.m4: Replace opterr.
27821
27822 2004-11-11  Simon Josefsson  <jas@extundo.com>
27823
27824         * lib/strtok_r.h, strtok_r.c: New file.
27825
27826 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
27827
27828         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
27829         of replacing opterr, getopt, etc.  This should handle the
27830         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
27831
27832 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
27833
27834         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
27835         we can stop lying to compilers about the constness of argv when we
27836         are compiled outside glibc.
27837         (getopt, getopt_long, getopt_long_only): Use it.
27838         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
27839         _getopt_internal, getopt): Likewise.
27840         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
27841         _getopt_long_only_r): Likewise.
27842         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
27843         _getopt_long_r, _getopt_long_only_r): Likewise.
27844
27845         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
27846         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
27847         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
27848         the other external symbols.
27849         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
27850         declaration, since the above renaming now works around collisions.
27851
27852 2004-11-11  Jim Meyering  <jim@meyering.net>
27853
27854         * lib/linebreak.c: Remove trailing blanks.
27855         * lib/alloca_.h: Likewise.
27856         * lib/acosl.c: Likewise.
27857         * lib/euidaccess.c: Likewise.
27858         * lib/allocsa.h: Likewise.
27859
27860 2004-11-10  Simon Josefsson  <jas@extundo.com>
27861
27862         * m4/getaddrinfo.m4: New file.
27863
27864 2004-11-10  Simon Josefsson  <jas@extundo.com>
27865
27866         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
27867
27868 2004-11-10  Simon Josefsson  <jas@extundo.com>
27869
27870         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27871         getaddrinfo.
27872
27873         * modules/getaddrinfo: New file.
27874
27875 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27876
27877         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
27878
27879 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27880
27881         * lib/mktime.c (SHR): New macro, which is a portable
27882         substitute for >> that should work even on Crays.
27883         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
27884         Problem reported by Mark D. Baushke in
27885         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
27886         * lib/getdate.y (SHR): Likewise.
27887         (tm_diff): Use it.
27888         * lib/strftime.c (SHR): Likewise.
27889         (tm_diff): Use it.
27890         * lib/quotearg.c (struct quoting_options): Use unsigned int for
27891         quote_these_too, so that right shifts are well defined.  All uses
27892         changed.
27893
27894 2004-11-10  Jim Meyering  <jim@meyering.net>
27895
27896         Ensure that no close failure goes unreported.
27897         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
27898         return early when it seems there's nothing to flush.
27899         Don't include __fpending.h.
27900
27901 2004-11-10  Jim Meyering  <jim@meyering.net>
27902
27903         * modules/closeout (Depends-on): Remove fpending.
27904
27905 2004-11-10  Jim Meyering  <jim@meyering.net>
27906
27907         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
27908
27909 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
27910
27911         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
27912         gl_FUNC_STRFTIME.
27913         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
27914         and AC_REQUIRE when possible, to avoid duplicate checks.
27915         Check for <wchar.h>.
27916
27917 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
27918
27919         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
27920
27921 2004-11-09  Bruno Haible  <bruno@clisp.org>
27922
27923         * m4/sockpfaf.m4: New file.
27924
27925 2004-11-05  Bruno Haible  <bruno@clisp.org>
27926
27927         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
27928         Reported by Mark D. Baushke <mdb@cvshome.org>.
27929
27930 2004-11-04  Bruno Haible  <bruno@clisp.org>
27931
27932         2004-09-11  Bruno Haible  <bruno@clisp.org>
27933                 * allocsa.valgrind: New file.
27934         2004-02-06  Bruno Haible  <bruno@clisp.org>
27935                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
27936                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
27937                 Reported by Christopher Seip <chris.seip@hp.com>.
27938
27939 2004-11-04  Bruno Haible  <bruno@clisp.org>
27940
27941         * modules/allocsa (Files): Add lib/allocsa.valgrind.
27942         (Makefile.am): Distribute it.
27943
27944 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
27945
27946         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
27947         with errno == ERANGE if the buffer is too small.
27948         Problem reported by Mark D. Baushke.
27949
27950 2004-11-03  Albert Chin  <china@thewrittenword.com>
27951             Paul Eggert  <eggert@cs.ucla.edu>
27952
27953         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
27954         equivalent, substitute $ac_type for equivalent type rather than
27955         blindly using uint32_t *always* which won't work if uint32_t is not
27956         available.  Define _UINT32_T to work around typedef of uint32_t if
27957         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
27958         2.5.1.
27959
27960 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27961
27962         * m4/jm-macros.m4: Sync from coreutils.
27963         (gl_MACROS): Check for mbrlen, for pathchk.
27964         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
27965
27966 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27967
27968         * lib/xreadlink.c (MAXSIZE): New macro.
27969         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
27970         size does not exceed MAXSIZE.  Avoid cast.
27971         As suggested by Mark D. Baushke in
27972         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
27973         if readlink fails with buffer size just under MAXSIZE, try again
27974         with MAXSIZE.
27975
27976 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27977
27978         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
27979
27980 2004-11-02  Derek R. Price  <derek@ximbiot.com>
27981         and  Paul Eggert  <eggert@cs.ucla.edu>
27982
27983         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
27984         (get_date): Overparenthesize to avoid GCC warning.
27985
27986 2004-11-02  Bruno Haible  <bruno@clisp.org>
27987
27988         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
27989         returns void.
27990
27991 2004-11-02  Bruno Haible  <bruno@clisp.org>
27992
27993         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
27994         function returns void.
27995
27996 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27997
27998         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
27999         fflush_unlocked, flockfile, funlockfile, funlockfile,
28000         fputs_unlocked, putc_unlocked.
28001
28002 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
28003
28004         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
28005         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
28006         already declared.
28007
28008 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28009
28010         * modules/getdate (Files): Add doc/getdate.texi.
28011         (Depends-on): Add setenv, xalloc.
28012
28013 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28014
28015         * lib/getdate.y: Add support for TZ="foo" within a date string.
28016         Fix some bugs near time_t boundaries.  Reject dates with
28017         out-of-range components, e.g., "Sept 31".
28018         Include <stdlib.h>, "setenv.h", "xalloc.h".
28019         (ISDIGIT_LOCALE): Remove; unused.
28020         Note that the TZ and time functions used here are not reentrant.
28021         (mktime_ok, get_tz): New functions.
28022         (TZBUFSIZE): New constant.
28023         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
28024         This requires that we sometimes generate our own TZ="XXX..." setting.
28025
28026 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28027
28028         * doc/getdate.texi: New file, from coreutils with modifications for
28029         the new TZ parsing.
28030
28031 2004-10-27  Derek R. Price  <derek@ximbiot.com>
28032
28033         * lib/mktime.c (not_equal_tm): Remove redundant check.
28034
28035 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28036
28037         * modules/regex (lib_SOURCES): Add regex.c.
28038         Reported by James Youngman in
28039         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
28040
28041 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28042
28043         * lib/getdate.y: Use Bison 1.875 features, and some minor
28044         code cleanups.  This change does not affect semantics.
28045         Don't include <stdlib.h>; no longer needed.
28046         Don't include unlocked-io.h; only the "#if TEST" code uses
28047         stdio, and performance isn't crucial there.
28048         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
28049         Bison 1.875 features as described below.
28050         All uses of "PC." replaced by "pc->".
28051         (YYSTYPE): Add a forward declaration.
28052         (yylex, yyerror): Use full prototypes in forward decls.
28053         Use "%pure-parser" rather than obsolescent "%pure_parser".
28054         Use %parse-param and %lex-param instead of obsolescent
28055         YYPARSE_PARAM and YYLEX_PARAM.
28056         (meridian_table, month_and_day_table, time_units_table,
28057         relative_time_table, time_zone_table, military_table,
28058         lookup_zone, lookup_word, get_date):
28059         Use NULL instead of 0 where appropriate.
28060         (to_hour): Avoid abort (), to avoid a dependency on
28061         stdlib.h.
28062         (yyerror, yylex): Now accepts parser_control * arg.
28063         (main) [TEST]: Use '\0' rather than 0 for char.
28064
28065 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28066
28067         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
28068
28069 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28070
28071         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
28072         It's now the caller's responsibility to handle the case where
28073         !HAVE_GETPAGESIZE && !defined getpagesize.
28074
28075         * lib/mktime.c (leapyear): Arg is long int, not int.
28076
28077 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28078
28079         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
28080
28081 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
28082
28083         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
28084         missing.  Problem reported by James Youngman.
28085
28086 2004-10-16  Simon Josefsson  <jas@extundo.com>
28087
28088         * gnulib-tool: Fix comments.  Fix parse problem.
28089         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
28090
28091 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
28092
28093         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
28094         implementation of getopt_long.  Problem reported by Alexander Taler in:
28095         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
28096
28097 2004-10-15  Bruno Haible  <bruno@clisp.org>
28098
28099         * gnulib-tool: Untabify. Initialize supplied_libname.
28100         (func_usage): More homogenous output.
28101         (func_modules_transitive_closure, func_modules_to_filelist,
28102         func_emit_lib_Makefile_am): New functions.
28103         (func_import): New function, extracted from big case statement. Use
28104         func_get_license, func_modules_transitive_closure,
28105         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
28106         opt_lgpl. Don't use test -a, as it's not portable.
28107         (func_create_testdir): Use func_modules_transitive_closure,
28108         func_modules_to_filelist, func_emit_lib_Makefile_am.
28109
28110 2004-10-15  Bruno Haible  <bruno@clisp.org>
28111
28112         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
28113
28114 2004-10-15  Bruno Haible  <bruno@clisp.org>
28115
28116         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
28117         the portions belonging to each module.
28118         Suggested by Derek Robert Price <derek@ximbiot.com>.
28119
28120 2004-10-12  Simon Josefsson  <jas@extundo.com>
28121
28122         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
28123         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
28124         to real functions.
28125
28126 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28127
28128         * modules/vsnprintf: New file.
28129
28130 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28131
28132         * m4/vsnprintf.m4: New file.
28133
28134 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28135
28136         * lib/vsnprintf.h: New file.
28137         * lib/vsnprintf.c: New file.
28138
28139 2004-10-11  Bruno Haible  <bruno@clisp.org>
28140
28141         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
28142         vsnprintf.
28143
28144 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28145
28146         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
28147
28148 2004-10-07  Bruno Haible  <bruno@clisp.org>
28149
28150         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
28151         fits into the provided buffer.
28152
28153 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28154
28155         * lib/diacrit.c, diacrit.h: Add GPL notice.
28156
28157         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
28158         notice.
28159         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
28160         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
28161         This avoids a potential constant-folding bug.
28162
28163 2004-10-05  Bruno Haible  <bruno@clisp.org>
28164
28165         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
28166         for the declaration of strsep.
28167
28168 2004-10-05  Bruno Haible  <bruno@clisp.org>
28169
28170         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
28171
28172 2004-10-04  Simon Josefsson  <jas@extundo.com>
28173
28174         * modules/memmem: New file.
28175         * tests/test-memmem.c: New file.
28176         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
28177
28178 2004-10-04  Simon Josefsson  <jas@extundo.com>
28179
28180         * m4/memmem.m4: New file.
28181
28182 2004-10-04  Simon Josefsson  <jas@extundo.com>
28183
28184         * lib/memmem.h: New file.
28185         * lib/memmem.c: New file, taken from glibc.
28186
28187 2004-10-04  Simon Josefsson  <jas@extundo.com>
28188
28189         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
28190         '#ifdef USE_UNLOCKED_IO'.
28191
28192 2004-10-04  Simon Josefsson  <jas@extundo.com>
28193
28194         * config/srclist.txt: Add memmem from glibc.
28195
28196 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
28197
28198         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
28199
28200         * modules/argmatch, modules/argp, modules/closeout, modules/error,
28201         modules/exclude, modules/getdate, modules/getline,
28202         modules/getndelim2, modules/getpass, modules/getpass-gnu,
28203         modules/getusershell, modules/linebuffer, modules/md5,
28204         modules/mountlist, modules/posixtm, modules/readtokens,
28205         modules/readutmp, modules/regex, modules/sha1,
28206         modules/version-etc, modules/yesno:
28207         Remove dependency on unlocked-io.
28208
28209 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
28210
28211         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
28212
28213         * m4/unlocked-io.m4: Add copyright notice.
28214         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
28215
28216 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
28217
28218         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
28219         * lib/xmalloc.c (xmemdup): Likewise.
28220         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
28221         XFREE): Remove these long-obsolescent macros.
28222         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
28223         * lib/xstrdup.c: Remove.
28224
28225         * lib/regex.c (re_comp): Cast gettext return value to char *,
28226         Problem reported by Martin Neitzel via Mark D. Baushke.
28227
28228 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
28229
28230         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
28231         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
28232         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
28233         regex.c, sha1.c, version-etc.c, yesno.c:
28234         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
28235         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
28236         the includer's responsibility.
28237
28238         Sync from coreutils.
28239
28240         * lib/modechange.c (mode_compile): Don't decrement a pointer that
28241         points to the start of a string, as the C Standard says the
28242         resulting behavior is undefined.
28243
28244         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
28245         simple -> simple_backups, numbered_existing ->
28246         numbered_existing_backups, numbered -> numbered_backups
28247         to avoid shadowing problems.  All uses changed.
28248         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
28249         * lib/backupfile.c (check_extension, numbered_backup):
28250         Rename locals to avoid shadowing 'basename'.
28251         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
28252         once.
28253
28254         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
28255         * lib/.cvsignore: Add getopt.h.
28256
28257 2004-10-04  Bruno Haible  <bruno@clisp.org>
28258
28259         * modules/README: New file.
28260         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
28261         not a module.
28262
28263 2004-10-02  Jim Meyering  <jim@meyering.net>
28264
28265         * lib/dirfd.h, getpagesize.h: Add copyright notice.
28266
28267 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28268
28269         * modules/strsep: New file.
28270
28271 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28272
28273         * m4/strsep.m4: New file.
28274
28275 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28276
28277         * lib/strsep.h: New file.
28278         * lib/strsep.c: New file.
28279
28280 2004-10-01  Simon Josefsson  <jas@extundo.com>
28281
28282         * lib/snprintf.c (snprintf): Handle size==0.
28283
28284 2004-10-01  Simon Josefsson  <jas@extundo.com>
28285             Bruno Haible  <bruno@clisp.org>
28286
28287         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
28288         (snprintf): Declare 'args'.
28289
28290 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
28291
28292         * lib/snprintf.c: Remove comments as to why each header is needed.
28293
28294 2004-10-01  Bruno Haible  <bruno@clisp.org>
28295
28296         * MODULES.html.sh: Add strsep.
28297
28298 2004-09-30  Simon Josefsson  <jas@extundo.com>
28299
28300         * modules/snprintf: New file.
28301
28302 2004-09-30  Simon Josefsson  <jas@extundo.com>
28303
28304         * m4/snprintf.m4: New file.
28305
28306 2004-09-30  Simon Josefsson  <jas@extundo.com>
28307
28308         * lib/snprintf.h, lib/snprintf.c: New files.
28309
28310 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28311
28312         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
28313         (hol_entry_help): Never translate an empty string.
28314         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
28315         * lib/argp.h (OPTION_NO_TRANS): New option.
28316
28317 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
28318
28319         * modules/argp (Maintainer): Replace Simon Josefsson
28320         by Sergey Poznyakoff.
28321
28322 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
28323
28324         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
28325         changes merged back into glibc.
28326
28327 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
28328
28329         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
28330
28331 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
28332
28333         * lib/xvasprintf.c: Include xalloc.h.
28334         (xvasprintf): Use xalloc_die, not xmalloc_die.
28335
28336 2004-09-29  Bruno Haible  <bruno@clisp.org>
28337
28338         * modules/alloca-opt: New file, derived from modules/alloca.
28339         * modules/allocsa: Depend on alloca-opt instead of alloca.
28340         * modules/setenv: Likewise.
28341         * modules/vasnprintf: Likewise.
28342         * MODULES.html.sh: Add alloca-opt.
28343
28344 2004-09-28  Simon Josefsson  <jas@extundo.com>
28345
28346         * gnulib-tool: New parameter --lgpl, to asseert that modules are
28347         LGPL, and to replace license template from GPL to LGPL.
28348
28349 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
28350
28351         * modules/dummy: Change license to LGPL.
28352
28353 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
28354
28355         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
28356
28357 2004-09-24  Simon Josefsson  <jas@extundo.com>
28358
28359         * modules/minmax (License): Change from GPL to LGPL.
28360
28361 2004-09-23  Simon Josefsson  <jas@extundo.com>
28362
28363         * gnulib-tool (--import): Typo.
28364
28365 2004-09-23  Simon Josefsson  <jas@extundo.com>
28366
28367         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
28368
28369 2004-09-22  Bruno Haible  <bruno@clisp.org>
28370
28371         * modules/*: Add 'License' field.
28372         * gnulib-tool: Accept --extract-license option.
28373         (func_get_license): New function.
28374
28375 2004-09-21  Bruno Haible  <bruno@clisp.org>
28376
28377         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
28378         Reported by Simon Josefsson.
28379
28380 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28381
28382         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
28383         gl_AC_TYPE_LONG_LONG.
28384
28385 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28386
28387         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
28388
28389 2004-09-18  Simon Josefsson  <jas@extundo.com>
28390         and  Paul Eggert  <eggert@cs.ucla.edu>
28391
28392         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
28393         calls with autoreconf.  Define GL_LIB.
28394
28395 2004-09-14  Karl Berry  <karl@gnu.org>
28396
28397         * config/srclist.txt: unsync setenv.c, sigh.
28398
28399 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28400
28401         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
28402         Problem reported by Bruno Haible in:
28403         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
28404
28405 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28406
28407         * config/srclist.txt: Comment out argp-pvh.c.
28408
28409 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
28410
28411         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
28412         in case some system header has #define'd it.  Problem reported by
28413         Soeren D. Schulze in
28414         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
28415
28416 2004-09-09  Karl Berry  <karl@gnu.org>
28417
28418         * regex.[ch]: delete from the root.  These were supposed to be
28419                 synced with emacs cvs, but this has not happened for about
28420                 a year, and anyway nothing else uses emacs regex.[ch].
28421                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
28422                 lib/regex[.ch] is untouched.
28423
28424 2004-09-09  Bruno Haible  <bruno@clisp.org>
28425
28426         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
28427
28428 2004-09-09  Bruno Haible  <bruno@clisp.org>
28429
28430         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
28431         modifications.
28432         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
28433
28434 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
28435
28436         * modules/xvasprintf: New file.
28437         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
28438
28439 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
28440
28441         * lib/xvasprintf.h: New file.
28442         * lib/xvasprintf.c: New file.
28443         * lib/xasprintf.c: New file.
28444
28445 2004-09-08  Bruno Haible  <bruno@clisp.org>
28446
28447         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
28448
28449 2004-09-08  Bruno Haible  <bruno@clisp.org>
28450
28451         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
28452         length is > INT_MAX.
28453         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
28454         more.
28455
28456 2004-09-08  Bruno Haible  <bruno@clisp.org>
28457
28458         * lib/stdint_.h: New file, taken from GNU clisp.
28459
28460 2004-09-08  Bruno Haible  <bruno@clisp.org>
28461             Oskar Liljeblad  <oskar@osk.mine.nu>
28462
28463         * modules/stdint: New file.
28464         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
28465
28466 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
28467
28468         Import from coreutils.
28469         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
28470         strings on unbounded length.  alloca's performance benefits aren't
28471         that important here.
28472         (V_STRDUP): Remove.
28473         (parse_with_separator): New function, with most of the internals
28474         of the old parse_user_spec.  Allow user to omit both user and group,
28475         for compatibility with FreeBSD.
28476         Clone only the user name, not the entire spec.
28477         Do not set *uid, *gid unless entirely successful.
28478         Avoid memory leak in some failing cases.
28479         Fix regression for USER.GROUP reported by Dmitry V. Levin in
28480         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
28481         (parse_user_spec): Rewrite to use parse_with_separator.
28482
28483 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
28484
28485         * modules/userspec: Don't depend on alloca.
28486
28487 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
28488
28489         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
28490
28491 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28492
28493         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
28494         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
28495         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
28496
28497 2004-08-16  Simon Josefsson  <jas@extundo.com>
28498
28499         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
28500         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
28501         Add --dry-run for --import.
28502         Let user provided command line parameters override configure.ac
28503         settings.
28504
28505 2004-08-12  Simon Josefsson  <jas@extundo.com>
28506
28507         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
28508         as discussed with Paul Eggert in threads rooted at
28509         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
28510         and
28511         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
28512         Before, the test was empty, and relied on ELIDE_CODE in source
28513         code.)
28514         (gl_PREREQ_GETOPT): New macro.
28515         (gl_GETOPT): Use them.
28516
28517 2004-08-12  Simon Josefsson  <jas@extundo.com>
28518
28519         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
28520         * lib/getopt_.h: Renamed from getopt.h.
28521
28522 2004-08-12  Simon Josefsson  <jas@extundo.com>
28523
28524         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
28525         Change default library name from libfoo to libgnu.
28526         Now, if you have a configure.ac that says:
28527                 gl_SOURCE_BASE(gl)
28528                 gl_M4_BASE(gl/m4)
28529                 gl_MODULES(error getopt etcetera)
28530                 gl_INIT
28531         you can import all you need by running:
28532                 ../gnulib/gnulib-tool --import
28533
28534         * modules/getopt (Files): Rename getopt.h to getopt_.h.
28535         (Makefile.am): Rewrite, use logic from argz.
28536         (Include): Use <getopt.h> instead of "getopt.h".
28537
28538 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
28539
28540         * modules/argp (Files): Add m4/unlocked-io.m4.
28541         (Depends-on): Add extensions.
28542
28543 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
28544
28545         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
28546         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
28547         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
28548         Check for program_invocation_name, program_invocation_short_name,
28549         flockfile, funlockfile, features.h, _getopt_long_only_r.
28550
28551 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
28552
28553         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
28554         its complicated substitute.
28555         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
28556         and program_invocation_name.
28557         (__argp_basename) [!_LIBC]: Remove; the only use was
28558         replaced by its body.
28559         (__argp_short_program_name): Change condition from
28560         !defined __argp_short_program_name to
28561         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
28562         to match argp-namefrob.h.
28563         (__argp_failure): Don't assume strerror_r returns char *.
28564         * lib/argp-parse.c (N_): Define unconditionally.
28565         (argp_default_options): Fill out initializers with 0 to avoid
28566         gcc warnings.
28567
28568 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
28569
28570         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
28571         getopt1.c.
28572
28573 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
28574
28575         Merge from coreutils.
28576
28577         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
28578
28579         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
28580         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
28581
28582 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
28583
28584         Merge from coreutils.
28585
28586         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
28587         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
28588         for Reliant Unix 5.43.
28589
28590         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
28591         (union fooround): Use uintmax_t, not long int.
28592         The rest is a merge from libc:
28593         [defined _LIBC]: Include <shlib-compat.h>.
28594         (_obstack) [defined _LIBC]: Remove after 2.3.4.
28595
28596         * lib/settime.c (settime): Recode to avoid warning with
28597         Sun Forte C 6U2.
28598
28599         * lib/strverscmp.c: Convert to UTF-8.
28600
28601 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
28602
28603         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
28604         m4/uintmax_t.m4.
28605
28606 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
28607
28608         * modules/xalloc-die: New file.
28609         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
28610
28611         * modules/md5 (Files): Add m4/uint32_t.m4.
28612         * modules/sha1: Renamed from modules/sha.
28613         (Files):
28614         Rename lib/sha.h to lib/sha1.h.
28615         Rename lib/sha.c to lib/sha1.c.
28616         Rename m4/sha.m4 to m4/sha1.m4.
28617         (lib_SOURCES): Likewise.
28618         (configure.ac): Rename gl_SHA to gl_SHA1.
28619         (Include): sha.h -> sha1.h.
28620
28621 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
28622
28623         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
28624         * m4/sha1.m4: Renamed from sha.m4.
28625         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
28626
28627 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
28628
28629         * lib/obstack.h (obstack_empty_p):
28630         Don't assume that chunk->contents is suitably aligned.
28631         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
28632         Likewise. Problem reported by Benno in
28633         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
28634
28635         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
28636         readable.  This could be improved further but it'd take some work.
28637
28638 2004-08-08  Simon Josefsson  <jas@extundo.com>
28639
28640         * modules/xgethostname (Depends-on): Remove exit and error (not
28641         used).
28642
28643         * modules/getpass-gnu: Add getpass.h.
28644         (Depends-on): Add stdbool.
28645         * modules/getpass: Add getpass.h.
28646
28647 2004-08-08  Simon Josefsson  <jas@extundo.com>
28648
28649         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
28650         Check getpass declaration.
28651
28652 2004-08-08  Simon Josefsson  <jas@extundo.com>
28653
28654         * lib/xgethostname.c: Don't include error.h (not used).
28655
28656         * lib/getpass.h: Add.
28657         * lib/getpass.c: Include getpass.h first.
28658
28659 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
28660
28661         * lib/xalloc-die.c: New file.
28662         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
28663         All uses removed.
28664         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
28665         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
28666         xalloc-die.c.
28667         (_, N_, xalloc_die): Move to xalloc-die.c.
28668         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
28669         so that we needn't mess with xalloc_msg_memory_exhausted.
28670
28671         * lib/sha1.h: Renamed from sha.h.
28672         (SHA1_H): Renamed from _SHA_H.
28673         (sha1_ctx): Renamed from sha_ctx.
28674         (sha1_init_ctx): Renamed from sha_init_ctx.
28675         (sha1_process_block): Renamed from sha_process_block.
28676         (sha1_process_bytes): Renamed from sha_process_bytes.
28677         (sha1_finish_ctx): Renamed from sha_finish_ctx.
28678         (sha1_read_ctx): Renamed from sha_read_ctx.
28679         (sha1_stream): Renamed from sha_stream.
28680         (sha1_buffer): Renamed from sha_buffer.
28681         * lib/sha1.c: Likewise; renamed from sha.c.
28682         Do not include <sys/types.h>.
28683         Include <stddef.h> rather than <stdlib.h>.
28684
28685 2004-08-08  Bruno Haible  <bruno@clisp.org>
28686
28687         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
28688         FILESYSTEM_PREFIX_LEN.
28689         * lib/progreloc.c: Likewise.
28690         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
28691
28692 2004-08-06  Simon Josefsson  <jas@extundo.com>
28693
28694         * modules/progname (Depends-on): Don't depend on stdbool.
28695
28696 2004-08-06  Simon Josefsson  <jas@extundo.com>
28697
28698         * modules/getsubopt: New file.
28699         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28700         getsubopt.
28701
28702 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
28703
28704         More merge from coreutils.
28705
28706         * m4/utimens.m4, m4/utimecmp.m4: New files.
28707         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
28708         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
28709         prereq.m4, sha.m4: Import changes from coreutils.
28710
28711 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
28712
28713         More merge from coreutils.
28714         * modules/raise, modules/readtokens0, modules/utimens:
28715         * modules/utimecmp, module/xnanosleep: New files.
28716         * modules/strftime: Add lib/strftime.h.
28717         Change include from <time.h> to "strftime.h".
28718         * modules/yesno: Add lib/yesno.h.
28719         * modules/backupfile: Remove lib/addext.c.
28720         * modules/euidaccess: Add stat-macros.h.
28721         * modules/canonicalize, modules/euidaccess,
28722         modules/filemode, modules/lchown, modules/makepath,
28723         modules/rmdir, modules/stat: Likewise.
28724
28725 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
28726
28727         Merge from tar.
28728         * lib/argp-help.c (make_hol, hol_append): Don't assume that
28729         SIZE_MAX is a valid preprocessor constant.
28730         (__argp_basename): Change from "#ifndef _LIBC"
28731         to "#ifndef __argp_short_program_name", so that
28732         we don't compile these functions for tar.
28733
28734         More merges from coreutils.
28735         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
28736         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
28737         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
28738         * lib/addext.c: Remove; no longer needed.
28739         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
28740         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
28741         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
28742         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
28743         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
28744         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
28745         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
28746         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
28747         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
28748         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
28749         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
28750         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
28751         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
28752         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
28753         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
28754         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
28755         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
28756         Import changes from coreutils.
28757
28758 2004-08-05  Simon Josefsson  <jas@extundo.com>
28759
28760         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
28761
28762 2004-08-05  Simon Josefsson  <jas@extundo.com>
28763
28764         * m4/getsubopt.m4: New file.
28765
28766 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
28767
28768         Merge from coreutils.
28769
28770         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
28771         * m4/getcwd-path-max.m4: New files.
28772
28773         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
28774         FILESYSTEM_PREFIX_LEN ->
28775         FILE_SYSTEM_PREFIX_LEN.
28776         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
28777         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
28778         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
28779         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
28780
28781         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
28782         prerequisite modules now handle the DOS stuff.
28783         Don't check for unistd.h.
28784
28785 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
28786
28787         Merge from coreutils.
28788
28789         * lib/.gdb-history: Remove; this doesn't belong here.
28790
28791         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
28792         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
28793         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
28794         * lib/getcwd.c: New files.
28795
28796         * lib/dirname.h: Include <stdbool.h>.
28797         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
28798         for consistency with POSIX terminology.  All uses changed.
28799         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
28800         (strip_trailing_slashes): Use bool for booleans.
28801         * lib/stripslash.c (strip_trailing_slashes): Likewise.
28802
28803         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
28804         sometimes returns a positive errno value even when it succeeds.
28805         (print_errno_message) [!LIBC]: Fall back on strerror if
28806         __strerror_r fails.
28807
28808         * lib/path-concat.c (mempcpy): Don't define if a system header defines
28809         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
28810         (longest_relative_suffix): New function.
28811         (path_concat): Use it.  Assume first argument is not NULL.
28812         Port to DOS.  Omit redundant separators.
28813         Report an error instead of returning NULL.
28814         Use mempcpy instead of memcpy.
28815         (xpath_concat): Remove: not declared or used.
28816
28817         * lib/same.h: Include <stdbool.h>
28818         (same_name): Return bool, not int.
28819         * lib/same.c (same_name): Likewise.
28820         (errno): Don't declare; we assume C89 or better now.
28821
28822         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
28823         if not already defined.
28824
28825         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
28826         * lib/dup-safer.c (errno): Likewise.
28827
28828 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
28829
28830         Merge from coreutils.
28831         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
28832         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
28833         * modules/path-concat: Don't depend on strdup.
28834
28835 2004-08-03  Simon Josefsson  <jas@extundo.com>
28836
28837         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
28838         * lib/progname.h: Don't include stdbool.h.
28839
28840 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
28841
28842         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
28843         * MODULES.html.sh (func_all_modules): Remove fatal.
28844
28845 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
28846
28847         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
28848
28849 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
28850
28851         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
28852         working.
28853
28854 2004-08-02  Simon Josefsson  <jas@extundo.com>
28855
28856         * lib/getsubopt.h: New file, with comments from Bruno Haible.
28857         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
28858         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
28859
28860 2004-08-01  Simon Josefsson  <jas@extundo.com>
28861
28862         * lib/xgetdomainname.c: Include stdlib.h, for free().
28863
28864 2004-07-19  Bruno Haible  <bruno@clisp.org>
28865
28866         * MODULES.html.sh (func_all_modules): Add dummy.
28867
28868 2004-07-16  Simon Josefsson  <jas@extundo.com>
28869
28870         * modules/dummy: New file.
28871
28872 2004-07-16  Simon Josefsson  <jas@extundo.com>
28873
28874         * lib/dummy.c: New file.
28875
28876 2004-07-16  Bruno Haible  <bruno@clisp.org>
28877
28878         * lib/backupfile.h: Add extern "C" for C++.
28879         * lib/closeout.h: Likewise.
28880         * lib/copy-file.h: Likewise.
28881         * lib/findprog.h: Likewise.
28882         * lib/full-write.h: Likewise.
28883         * lib/pathname.h: Likewise.
28884         * lib/progname.h: Likewise.
28885         * lib/stpcpy.h: Likewise.
28886         * lib/stpncpy.h: Likewise.
28887         * lib/strcase.h: Likewise.
28888         * lib/strstr.h: Likewise.
28889         * lib/xalloc.h: Likewise.
28890
28891         * lib/mbswidth.h: Add extern "C" for C++.
28892         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
28893
28894 2004-07-13  Robert Millan  <robertmh@gnu.org>
28895
28896         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
28897
28898 2004-07-09  Simon Josefsson  <jas@extundo.com>
28899
28900         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
28901         failed without this.)
28902
28903 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
28904
28905         * modules/chown (Files): Add lib/fchown-stub.c, since
28906         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
28907
28908 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
28909
28910         * lib/fchown-stub.c: New file.
28911
28912 2004-06-24  Jim Meyering  <jim@meyering.net>
28913
28914         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
28915
28916 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
28917
28918         * modules/argz: Omit "#include".
28919
28920         * MODULES.html.sh (func_all_modules): Add calloc, to match
28921         2004-06-01 addition of calloc module.
28922
28923 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
28924
28925         * m4/argz.m4: New file, which is autoupdated from libtool.
28926
28927 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
28928
28929         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
28930         libtool.
28931
28932 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
28933
28934         * config/srclist-update: Don't insist on "USA." before the
28935         close-comment, as libtool omits the period and puts the */ on a
28936         separate line.
28937         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
28938         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
28939
28940 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
28941
28942         * modules/argz: New file.
28943         * MODULES.html.sh (func_all_modules): Add argz.
28944
28945 2004-06-12  Jim Meyering  <jim@meyering.net>
28946         and  Paul Eggert  <eggert@cs.ucla.edu>
28947
28948         * modules/hash (Files): Add lib/xalloc.h.
28949         * modules/pipe (Depends-on): Add wait-process.
28950         * modules/stat (Depends-on): Add xalloc.
28951         * modules/userspec (Files): Add lib/userspec.h.
28952         * modules/xstrto
28953
28954         Upgrade from gettext-0.13.
28955         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
28956         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
28957         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
28958
28959 2004-06-10  Jim Meyering  <jim@meyering.net>
28960
28961         * lib/calloc.c: New file.
28962
28963 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
28964
28965         * lib/getdate.y (yylex): Allow space between sign and number.
28966         Problem reported by Dan Jacobson.
28967
28968 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
28969
28970         Merge from coreutils CVS.
28971
28972         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
28973         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
28974         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
28975         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
28976         xstrtol.m4: Fix copyright date and/or serial number.
28977
28978         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
28979         See if we need an fchown replacement.
28980         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
28981         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
28982         and use the replacement function if we detect either defect.
28983
28984         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
28985         gl_UTIMECMP.
28986
28987 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
28988         and  Jim Meyering  <jim@meyering.net>
28989
28990         Merge from coreutils CVS.
28991
28992         * lib/stat-macros.h: New file, with contents from file-type.h
28993         and coreutils' system.h.
28994         * lib/file-type.c: Include "stat-macros.h".
28995         * lib/file-type.h (file_type): Move all macro definitions to new file,
28996         stat-macros.h.
28997
28998         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
28999         Wrap old code with this conditional.
29000         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
29001         function that does not dereference symlinks.
29002         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
29003
29004         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
29005         dependency problems.
29006         (xreadlink): Accept new arg SIZE, for efficiency.
29007         All decls and uses changed.
29008         * lib/xreadlink.h: Include <stddef.h>, for size_t.
29009
29010         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
29011         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
29012
29013         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
29014         sysexits.h.
29015
29016 2004-06-01  Jim Meyering  <jim@meyering.net>
29017
29018         * m4/calloc.m4: New file.
29019
29020 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
29021
29022         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
29023         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
29024         Also, fix a typo in a diagnostic.
29025
29026 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
29027
29028         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
29029         or AC_FUNC_REALLOC.
29030
29031 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
29032
29033         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
29034         macros to be defined.
29035         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
29036         the allocator returns NULL because the requested size is zero.
29037
29038 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29039
29040         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
29041         var.  Add comment explaining why libc still defines it.  This
29042         merges the following patch from glibc:
29043         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
29044
29045 2004-05-20  Andreas Schwab  <schwab@suse.de>
29046
29047         * m4/free.m4: Replace free if it not known to work, not the other
29048         way round.
29049
29050 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
29051
29052         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
29053         present in glibc since revision 1.1 of this file.
29054         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
29055         obstack_alignment_mask, obstack_alloc, obstack_base,
29056         obstack_blank, obstack_blank_fast, obstack_chunk_size,
29057         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
29058         obstack_grow0, obstack_init, obstack_int_grow,
29059         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
29060         obstack_next_free, obstack_object_size, obstack_ptr_grow,
29061         obstack_ptr_grow_fast, obstack_room): Remove declarations of
29062         nonexistent functions.
29063
29064 2004-05-18  Karl Berry  <karl@gnu.org>
29065
29066         * config/srclist.txt: break link for vasnprintf.c.
29067
29068 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
29069
29070         Port obstack to the AS/400, where pointers are 16 bytes wide and
29071         you cannot cast an integer to a valid pointer.  This patch is
29072         currently waiting to be integrated into glibc; see
29073         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
29074
29075         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
29076         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
29077         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
29078         (struct obstack): temp member is now a union of a pointer and
29079         an integer, instead of an integer.  All integer uses changed.
29080         This does not affect the physical layout of struct obstack,
29081         except on hosts (like the AS/400) where the size or alignment of
29082         void * is greater than that of ptrdiff_t.
29083         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
29084         __STDC__)]: Store temporary in pointer member of union, not
29085         integer member.
29086         * lib/obstack.c: Include <stddef.h>, for offsetof.
29087         (struct fooalign): Remove; it doesn't need a name.
29088         (union fooround): Change double to long double, and add void *.
29089         (DEFAULT_ALIGNMENT): Use offsetof to compute.
29090         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
29091         not a macro.  Hence the values are always int; so remove all
29092         casts-to-int in uses.
29093
29094 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
29095
29096         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
29097         we can get this patch merged into glibc.
29098
29099 2004-05-17  Derek R. Price  <derek@ximbiot.com>
29100             Paul Eggert  <eggert@cs.ucla.edu>
29101
29102         * m4/argp: Depend on alloca.
29103
29104 2004-05-17  Derek R. Price  <derek@ximbiot.com>
29105             Paul Eggert  <eggert@cs.ucla.edu>
29106
29107         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
29108         freecoding.
29109
29110 2004-05-17  Bruno Haible  <bruno@clisp.org>
29111
29112         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
29113         precision that consists of a '.' followed by an empty digit string.
29114         Patch by Tor Lillqvist <tml@iki.fi>.
29115
29116 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
29117
29118         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
29119         for backward compatibility with older code.  We need our own
29120         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
29121         it under some other name, and our alloca.h will define it.
29122
29123 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
29124             Derek Price  <derek@ximbiot.com>
29125
29126         * lib/alloca.c: Include <alloca.h>, to get our interface.
29127         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
29128         include <alloca.h> first.  Use C89 prototype for alloca; this
29129         requires including <stddef.h> for size_t.  Use extern "C" if C++.
29130         Use #elif for simplicity, since we can assume C89 now.
29131         Don't try to source the system alloca.h since it will not be found
29132         and to prevent recursively including its replacement.
29133         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
29134         * lib/regex.c: Likewise.
29135
29136 2004-05-16  Derek Price  <derek@ximbiot.com>
29137             Paul Eggert  <eggert@cs.ucla.edu>
29138
29139         getline cleanup.  This changes the getndelim2 API: both order of
29140         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
29141         no delimiter).
29142
29143         * lib/getline.c: Don't include stddef.h or stdio.h, since our
29144         interface does that.
29145         (getline): Always use getdelim, so that we don't have two
29146         copies of this code.
29147         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
29148         if available.
29149         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
29150         (GETNDELIM2_MAXIMUM): New macro.
29151         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
29152         instead of the old practice of delim2==0.  All callers changed.
29153         Return -1 on overflow, instead of returning junk.
29154         Do not set *linesize unless allocation succeeds.
29155         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
29156         that we include sys/types.h.
29157         * lib/getnline.h: Likewise.
29158         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
29159         (getndelim2): Reorder arguments.
29160         * lib/getnline.c (getnline, getndelim):
29161         Don't discard the NMAX argument.
29162         (getnline): Invoke getndelim, to avoid code duplication.
29163         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
29164         of (size_t) -1 by callers of the getnline family.
29165
29166 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
29167
29168         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
29169         Check for gettimeofday.
29170         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
29171         Check for settimeofday, stime.
29172
29173 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
29174
29175         * lib/nanosleep.c (suspended): Change its type from int to
29176         sig_atomic_t volatile.
29177         (first_call): Make it private to rpl_nanosleep, and have it
29178         be zero initially as that's a bit faster.
29179         (my_usleep): Round up fractional times instead of truncating them,
29180         as this is the usual meaning for 'sleep'.
29181
29182         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
29183         doesn't work.
29184         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
29185         (ENOSYS): Define if not defined.
29186         (settime): Fall back on stime if it exists and settimeofday fails.
29187         But don't bother with fallbacks if a method fails with errno == EPERM.
29188
29189 2004-05-11  Jim Meyering  <jim@meyering.net>
29190
29191         Prior to this change, the save_cwd caller required read access to the
29192         current directory on most systems (ones with the fchdir function).
29193
29194         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
29195         fails, try write-only, and finally, resort to using xgetcwd.
29196
29197 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
29198
29199         * lib/obstack.c, obstack.h: Import changes from libc.
29200
29201 2004-04-28  Bruno Haible  <bruno@clisp.org>
29202
29203         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
29204         also implicitly appends .exe to executables.
29205         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
29206         accepts Windows pathnames.
29207         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
29208         Treat Cygwin like Windows, since it now accepts Windows pathnames.
29209         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
29210         Treat Cygwin like Windows, since it now accepts Windows pathnames.
29211         Reported by Derek Robert Price <derek@ximbiot.com>.
29212
29213 2004-04-21  Karl Berry  <karl@gnu.org>
29214
29215         * config/srclist.txt (localcharset.c): break sync.
29216
29217 2004-04-20  Paul Eggert  <eggert@twinsun.com>
29218
29219         * m4/host-os.m4: Add a copyright notice.
29220
29221 2004-04-20  Jim Meyering  <jim@meyering.net>
29222
29223         Change UTILS_ to gl_ in AC_DEFINE'd names.
29224         Change utils_- and jm_-prefixed variables, too.
29225         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
29226         UTILS_FUNC_MKDIR_TRAILING_SLASH.
29227         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
29228
29229         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
29230         Don't emit trailing blanks.
29231         Also rename jm_-prefixed variables to have gl_ prefix.
29232
29233         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
29234         Also rename jm_-prefixed variables to have gl_ prefix.
29235
29236         * m4/jm-macros.m4: Reflect the renamings.
29237         * m4/prereq.m4: Likewise.
29238
29239 2004-04-20  Jim Meyering  <jim@meyering.net>
29240
29241         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
29242         memory.
29243
29244 2004-04-20  Jim Meyering  <jim@meyering.net>
29245             Bruno Haible  <bruno@clisp.org>
29246
29247         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
29248         memory when realloc fails.
29249
29250 2004-04-19  Jim Meyering  <jim@meyering.net>
29251
29252         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
29253         now that readutmp.c may call `free (0)'.
29254
29255 2004-04-19  Bruno Haible  <bruno@clisp.org>
29256
29257         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
29258         * m4/inttypes_h.m4: Likewise.
29259         * m4/stdint_h.m4: Likewise.
29260         * m4/intmax_t.m4: Likewise.
29261         * m4/uintmax_t.m4: Likewise.
29262
29263 2004-04-18  Jim Meyering  <jim@meyering.net>
29264
29265         * m4/prereq.m4: Don't forbid jm_ prefix.
29266
29267         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
29268         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
29269         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
29270         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
29271         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
29272         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
29273         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
29274         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
29275         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
29276         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
29277         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
29278         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
29279         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
29280         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
29281         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
29282         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
29283         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
29284         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
29285         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
29286
29287 2004-04-18  Jim Meyering  <jim@meyering.net>
29288
29289         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
29290         failure, don't leak memory and do call END_UTMP_ENT.
29291
29292 2004-04-16  Jim Meyering  <jim@meyering.net>
29293
29294         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
29295         coreutils' stat program.
29296         (gl_PREREQ): Don't require jm_PREREQ_STAT.
29297
29298 2004-04-11  Paul Eggert  <eggert@twinsun.com>
29299
29300         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
29301         C89.
29302         (CHAR_BIT): Remove, since we assume C89.
29303         Include <stdint.h> if available, as per current Autoconf CVS advice.
29304
29305 2004-03-31  Jim Meyering  <jim@meyering.net>
29306
29307         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
29308         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
29309         * m4/xalloc.m4: Likewise.
29310
29311 2004-03-30  Paul Eggert  <eggert@twinsun.com>
29312
29313         Merge from coreutils.
29314
29315         * m4/inttostr.m4: New file.
29316         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
29317         Require AM_STDBOOL_H and gl_TIMESPEC instead.
29318         Require gl_CLOCK_TIME.
29319         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
29320
29321 2004-03-30  Paul Eggert  <eggert@twinsun.com>
29322
29323         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
29324         not bool, to be more consistent with Unix conventions.
29325         Suggested by Bruno Haible.
29326
29327         Merge from coreutils.
29328
29329         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
29330         * lib/umaxtostr.c: New files.
29331
29332         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
29333         the usual <time.h> dance.
29334         (get_date): Change signature to support fractional time stamps.
29335         All callers changed.
29336         * lib/getdate.y: Include "getdate.h" first, as we can now
29337         assume C89 and don't need to worry about 'const'.
29338         Similarly, include "unlocked-io.h" near start, not in middle.
29339         Include <limits.h>.
29340         (textint.value): Use long int rather than int.
29341         (textint.digits): Use size_t rather than int.
29342         (BILLION, LOG10_BILLION): New constants.
29343         (parser_control): New member rel_ns.  Members day_ordinal,
29344         time_zone, month, day, hour, minutes, rel_year, rel_month,
29345         rel_day, rel_hour, rel_minutes, rel_seconds
29346         are now long int, not int.  Member seconds is now struct timespec,
29347         not int.  New member timespec_seen.  Members dates_seen, days_seen,
29348         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
29349         not int.
29350         (%union.intval): Now long int, not int.
29351         New member timespec.
29352         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
29353         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
29354         (spec): Now is a timespec or an item list.
29355         (timespec, items): New nonterminals.
29356         (time, rel, relunit, number, get_date):
29357         Add support for fractional seconds.
29358         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
29359         (gmtime, localtime, mktime): Remove decls; not needed with C89.
29360         (to_hour): First arg is now long int, not int.
29361         (to_year): Returns long int, not int.
29362         Don't treat year -70 like 70.
29363         (tm_diff): Returns long int, not int.
29364         (lookup_word): Use bool instead of int when appropriate.
29365         (yylex): Use size_t for count, not int.
29366         Detect overflow when parsing large integer constants.
29367         Add support for fractions.
29368         (get_date): Make pointers 'const' if possible.
29369         Use more-portable code to detect integer overflow.
29370         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
29371         Don't use ctime; it's not reliable if the year has >4 digits.
29372
29373         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
29374         This is for compatibility with BSD.
29375
29376         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
29377         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
29378         From coreutils' system.h.
29379
29380         * lib/userspec.c: Don't include "posixver.h".
29381         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
29382         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
29383         compatible extension.  Simplify code by removing a boolean int
29384         that was always nonzero if a string was nonnull.
29385
29386 2004-03-30  Jim Meyering  <jim@meyering.net>
29387
29388         Merge from coreutils.
29389
29390         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
29391         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
29392         on some systems one must include <grp.h> before it.
29393         Reported by Christian Krackowizer.
29394
29395 2004-03-30  Jim Meyering  <jim@meyering.net>
29396
29397         Merge from coreutils.
29398
29399         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
29400
29401         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
29402         an empty input stream.
29403
29404         * lib/readtokens.c: Include <stdbool.h>.
29405         (readtoken): Use `size_t' rather than int/long.
29406         All callers adjusted.
29407         Use `bool' rather than `int' where appropriate.
29408         Use memset rather than an explicit loop.
29409         Use x2nrealloc rather than xrealloc.
29410         Allow the use of `\0' as a delimiter.
29411         (readtokens): Likewise.
29412         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
29413
29414 2004-03-30  Jim Meyering  <jim@meyering.net>
29415
29416         * m4/realloc.m4: Remove file, since now it does no more than
29417         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
29418         the `configure.ac' section of module/realloc.
29419         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
29420
29421 2004-03-30  Bruno Haible  <bruno@clisp.org>
29422
29423         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
29424         nonnull.
29425
29426 2004-03-29  Paul Eggert  <eggert@twinsun.com>
29427
29428         Merge changes to getloadavg.c from coreutils and Emacs.
29429
29430         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
29431         Define to an expression, not to the empty string.
29432         Include cloexec.h and xalloc.h.
29433         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
29434         Use set_cloexec_flag rather than rolling our own.
29435         * lib/cloexec.c, lib/cloexec.h: New files.
29436
29437 2004-03-29  Paul Eggert  <eggert@twinsun.com>
29438
29439         * m4/cloexec.m4: New file.
29440
29441 2004-03-18  Paul Eggert  <eggert@twinsun.com>
29442
29443         * lib/getopt.h: Sync with libc CVS.
29444
29445 2004-03-18  Paul Eggert  <eggert@twinsun.com>
29446             Bruno Haible  <bruno@clisp.org>
29447
29448         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
29449         mbswidth.
29450
29451 2004-03-18  Paul Eggert  <eggert@twinsun.com>
29452             Bruno Haible  <bruno@clisp.org>
29453
29454         * lib/mbswidth.h: Include <wchar.h> only if
29455         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
29456         <wchar.h>.
29457         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
29458
29459 2004-03-09  Paul Eggert  <eggert@twinsun.com>
29460
29461         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
29462         Sync with libc CVS.
29463         * lib/getopt_int.h: New file, also synced from libc.
29464
29465 2004-03-09  Paul Eggert  <eggert@twinsun.com>
29466
29467         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
29468         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
29469         Bring back getopt.c, getopt.h, getopt1.c.
29470
29471 2004-03-07  Paul Eggert  <eggert@twinsun.com>
29472
29473         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
29474         All uses changed.  Check for sa_sigaction member; this fixes
29475         a bug first reported by Jason Andrade in
29476         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
29477
29478 2004-03-07  Paul Eggert  <eggert@twinsun.com>
29479
29480         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
29481         '#if' expressions.  Unlike the code it replaces, it does not
29482         depend on (defined _SC_PAGESIZE).  However, it does depend on
29483         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
29484         first reported by Jason Andrade in
29485         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
29486
29487 2004-02-25  Simon Josefsson  <jas@extundo.com>
29488
29489         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
29490
29491 2004-02-25  Simon Josefsson  <jas@extundo.com>
29492
29493         * lib/strdup.h: New file.
29494         * lib/strdup.c: Include it.
29495         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
29496         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
29497
29498 2004-02-23  Karl Berry  <karl@gnu.org>
29499
29500         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
29501         (from fencepost.gnu.org:/gd/gnuorg).
29502
29503 2004-02-23  Karl Berry  <karl@gnu.org>
29504
29505         * config/srclistvars.sh (GNUORG) [karl]: redefine.
29506         * config/srclist.txt: add maintain/standards documents.
29507
29508 2004-02-18  Bruno Haible  <bruno@clisp.org>
29509
29510         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
29511         Reported by Derek Robert Price <derek@ximbiot.com>.
29512
29513 2004-02-16  Karl Berry  <karl@gnu.org>
29514
29515         * config/mkinstalldirs, install-sh: update from automake.
29516
29517 2004-02-06  Karl Berry  <karl@gnu.org>
29518
29519         * m4/po.m4: update from gettext 0.14.1.
29520
29521 2004-02-06  Karl Berry  <karl@gnu.org>
29522
29523         * lib/config.charset: update from gettext 0.14.1.
29524
29525 2004-02-05  Paul Eggert  <eggert@twinsun.com>
29526
29527         Add comments and code, prompted by suggestions from Bruno Haible
29528         for sh-quote.
29529         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
29530         describing the enum quoting_style values.
29531         * lib/quotearg.c (quotearg_alloc): New function.
29532         (quotearg_buffer_restyled): Treat lone { and } as special.
29533         Treat = as special.  Work around bug with older shells
29534         that "see" a '\' that is really the 2nd byte of a multibyte char.
29535         Quote empty string with shell_quoting_style.
29536
29537 2004-02-03  Bruno Haible  <bruno@clisp.org>
29538
29539         * m4/pipe.m4: New file, from GNU gettext.
29540
29541 2004-02-03  Bruno Haible  <bruno@clisp.org>
29542
29543         * lib/pipe.h: New file, from GNU gettext.
29544         * lib/pipe.c: New file, from GNU gettext.
29545
29546 2004-01-27  Bruno Haible  <bruno@clisp.org>
29547
29548         * m4/execute.m4: New file, from GNU gettext.
29549
29550 2004-01-27  Bruno Haible  <bruno@clisp.org>
29551
29552         * lib/execute.h: New file, from GNU gettext.
29553         * lib/execute.c: New file, from GNU gettext.
29554         * lib/w32spawn.h: New file, from GNU gettext.
29555
29556 2004-01-24  Paul Eggert  <eggert@twinsun.com>
29557
29558         Merge from diffutils.
29559
29560         * lib/file-type.c (file_type): Add typed memory objects.
29561         * lib/file-type.h (S_TYPEISTMO): New macro.
29562
29563         * lib/c-stack.h (c_stack_action): Remove argv argument.
29564         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
29565         (die): Don't calculate message unless segv_action returns.
29566         (get_stack_location, min_address_from_argv, max_address_from_argv,
29567         volatile stack_base, volatile_stack_size): Remove.
29568         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
29569         that every segmentation violation is a stack overflow.  (Ouch!)
29570         See Debian bug 136249 (still outstanding) for more info about why
29571         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
29572
29573 2004-01-24  Paul Eggert  <eggert@twinsun.com>
29574
29575         Exit-status fix from coreutils.
29576
29577         Use exit_failure consistently in place of EXIT_FAILURE,
29578         so that program exit statuses are consistent on failure.
29579
29580         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
29581         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
29582         * lib/argmatch.h: Comment fix to match the above.
29583         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
29584         Now a macro referring to exit_failure, instead of a separate
29585         variable.  Include "exitfail.h" to get it.
29586         * lib/xstrtol.h: Include "exitfail.h".
29587         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
29588
29589         * lib/long-options.c (parse_long_options): Use prototype
29590         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
29591         for clarity.
29592
29593 2004-01-21  Jim Meyering  <jim@meyering.net>
29594
29595         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
29596         so as not to conflict with a different-sized __mktime_internal
29597         function in GNU libc.
29598         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
29599         Problem building statically-linked `ls' reported by Michael Brunnbauer.
29600
29601 2004-01-20  Karl Berry  <karl@gnu.org>
29602
29603         * config/config.guess: update from config.
29604
29605         * config/srclistvars.sh: GNUWWWLICENSES for karl.
29606
29607 2004-01-20  Bruno Haible  <bruno@clisp.org>
29608
29609         Safer stack allocation.
29610         * lib/setenv.c: Include allocsa.h.
29611         (alloca): Remove fallback definition.
29612         (freea): Remove macro.
29613         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
29614         instead of freea.
29615
29616 2004-01-20  Bruno Haible  <bruno@clisp.org>
29617
29618         * m4/eealloc.m4: New file, from GNU gettext.
29619
29620 2004-01-20  Bruno Haible  <bruno@clisp.org>
29621
29622         * m4/allocsa.m4: New file, from GNU gettext.
29623
29624 2004-01-20  Bruno Haible  <bruno@clisp.org>
29625
29626         * lib/xallocsa.h: New file, from GNU gettext.
29627         * lib/xallocsa.c: New file, from GNU gettext.
29628
29629 2004-01-20  Bruno Haible  <bruno@clisp.org>
29630
29631         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
29632
29633 2004-01-20  Bruno Haible  <bruno@clisp.org>
29634
29635         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
29636         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
29637         specially.
29638
29639 2004-01-20  Bruno Haible  <bruno@clisp.org>
29640
29641         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
29642         patch.
29643
29644 2004-01-20  Bruno Haible  <bruno@clisp.org>
29645
29646         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
29647
29648 2004-01-20  Bruno Haible  <bruno@clisp.org>
29649
29650         * lib/eealloc.h: New file.
29651
29652 2004-01-20  Bruno Haible  <bruno@clisp.org>
29653
29654         * lib/binary-io.h: Avoid warnings on Cygwin.
29655
29656 2004-01-20  Bruno Haible  <bruno@clisp.org>
29657
29658         * lib/allocsa.h: New file, from GNU gettext.
29659         * lib/allocsa.c: New file, from GNU gettext.
29660
29661 2004-01-18  Karl Berry  <karl@gnu.org>
29662
29663         * doc/gpl.texi, doc/lgpl.texi: new files.
29664
29665 2004-01-18  Karl Berry  <karl@gnu.org>
29666
29667         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
29668         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
29669
29670 2004-01-15  Paul Eggert  <eggert@twinsun.com>
29671
29672         Merge from coreutils.
29673
29674         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
29675         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
29676         (gl_DEFAULT_POSIX2_VERSION): Move
29677         the documentation from 'configure' into 'config.hin',
29678         so that 'configure --help' isn't burdened by it and
29679         we don't have to worry about its formatting there.
29680         Reword the documentation so that it's more succinct
29681         and can be run together into a single paragraph.
29682         * m4/same.m4 (gl_SAME): Check for pathconf.
29683
29684 2004-01-15  Paul Eggert  <eggert@twinsun.com>
29685
29686         Merge from coreutils.
29687
29688         * lib/posixver.c: Include posixver.h.
29689
29690         * lib/same.c: Include <stdbool.h>, <limits.h>.
29691         (_POSIX_NAME_MAX): Define if not defined.
29692         (MIN): New macro.
29693         (same_name): If file names are silently truncated, report
29694         that the file names are the same if they are the same after
29695         the silent truncation.
29696
29697         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
29698         conversion function.
29699         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
29700         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
29701         longer needed.
29702
29703 2004-01-15  Jim Meyering  <jim@meyering.net>
29704
29705         Merge from coreutils.
29706
29707         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
29708         if no library is required.
29709         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
29710         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
29711         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
29712         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
29713         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
29714         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
29715         value, $ac_cv_search_crypt, if it's "none required".
29716         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
29717         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
29718         not gl_FUNC_GETLOADAVG.
29719         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
29720         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
29721
29722 2004-01-15  Jim Meyering  <jim@meyering.net>
29723
29724         Merge from coreutils.
29725
29726         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
29727         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
29728         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
29729
29730         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
29731         optional configure-time default.
29732
29733         * lib/version-etc.c (version_etc_copyright): Update copyright date.
29734
29735         * lib/xreadlink.c (xreadlink): Correct outdated comment.
29736
29737 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
29738
29739         Merge from coreutils.
29740
29741         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
29742         value, $ac_cv_search_nanosleep, if it's "none required".
29743
29744 2004-01-14  Paul Eggert  <eggert@twinsun.com>
29745
29746         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
29747         with like-named macro in fnmatch.c.
29748         (EXT): Use an internal constant instead.
29749
29750         Merge fnmatch patches from glibc.
29751         * lib/fnmatch.c (mbsinit): Remove define.
29752         Add libc_hidden_ver (__fnmatch, fnmatch).
29753         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
29754         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
29755
29756 2004-01-14  Karl Berry  <karl@gnu.org>
29757
29758         * config/install-sh: update from automake.
29759
29760 2004-01-13  Karl Berry  <karl@gnu.org>
29761
29762         * config/install-sh: update from automake.
29763
29764 2004-01-09  Karl Berry  <karl@gnu.org>
29765
29766         * config/install-sh: update from automake.
29767
29768 2004-01-05  Karl Berry  <karl@gnu.org>
29769
29770         * config/config.{sub,guess}: update from config.
29771
29772 2003-12-31  Karl Berry  <karl@gnu.org>
29773
29774         * config/depcomp: update from automake.
29775
29776 2003-12-14  Karl Berry  <karl@gnu.org>
29777
29778         * lib/config.charset: update from gettext-runtime.
29779
29780 2003-12-03  Paul Eggert  <eggert@twinsun.com>
29781
29782         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
29783         Bug reported by Alfred M. Szmidt.
29784
29785 2003-12-03  Bruno Haible  <bruno@clisp.org>
29786
29787         * m4/gettext.m4: Upgrade from gettext-0.13.
29788         * m4/po.m4: Upgrade from gettext-0.13.
29789         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
29790         * m4/intmax.m4: New file, from gettext-0.13.
29791         * m4/printf-posix.m4: New file, from gettext-0.13.
29792
29793 2003-11-29  Karl Berry  <karl@gnu.org>
29794
29795         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
29796
29797 2003-11-25  Paul Eggert  <eggert@twinsun.com>
29798             Bruno Haible  <bruno@clisp.org>
29799
29800         * lib/printf-parse.h: Don't include sys/types.h.
29801         (ARG_NONE): New macro.
29802         (char_directive): Change type of *arg_index fields to size_t.
29803         * lib/printf-parse.c: Don't include sys/types.h.
29804         (SSIZE_MAX): Remove macro.
29805         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
29806         Remove unnecessary overflow check.
29807         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
29808         fields.
29809
29810 2003-11-25  Bruno Haible  <bruno@clisp.org>
29811
29812         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
29813
29814 2003-11-25  Bruno Haible  <bruno@clisp.org>
29815
29816         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
29817         gt_TYPE_SSIZE_T.
29818
29819 2003-11-24  Paul Eggert  <eggert@twinsun.com>
29820
29821         * modules/alloca: Remove dependency on xalloc.
29822
29823 2003-11-24  Paul Eggert  <eggert@twinsun.com>
29824
29825         * lib/alloca.c: Remove dependency on xalloc module.
29826         (xalloc_die): Remove.
29827         (memory_full) [!defined emacs]: New macro.
29828         [!defined emacs]: Don't include xalloc.h.
29829         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
29830         address arithmetic overflows.  Change datatypes a bit to avoid
29831         unnecessary casts.
29832
29833 2003-11-22  Jim Meyering  <jim@meyering.net>
29834
29835         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
29836         s/size/size_t/.
29837
29838 2003-11-21  Karl Berry  <karl@gnu.org>
29839
29840         * config/config.{sub,guess}: update from config.
29841
29842 2003-11-18  Karl Berry  <karl@gnu.org>
29843
29844         * config/config.{sub,guess}: update from config.
29845
29846         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
29847
29848 2003-11-17  Paul Eggert  <eggert@twinsun.com>
29849
29850         * README: Mention that S+T cannot overflow if S is the size of
29851         an existing object and T is sufficiently small.
29852
29853 2003-11-17  Jim Meyering  <jim@meyering.net>
29854
29855         On systems without utime and without a utimes function capable of
29856         dealing with a NULL struct utimbuf* argument, this utime replacement
29857         could -- in unusual circumstances -- leak a file descriptor.
29858         * lib/utime.c: Include <unistd.h> and <errno.h>.
29859         (utime_null): Be sure to close `fd' and to preserve errno.
29860         Reported by Geoff Collyer via Arnold Robbins.
29861
29862 2003-11-17  Bruno Haible  <bruno@clisp.org>
29863
29864         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
29865         (Depends-on): Add xsize.
29866
29867 2003-11-17  Bruno Haible  <bruno@clisp.org>
29868
29869         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
29870
29871 2003-11-17  Bruno Haible  <bruno@clisp.org>
29872
29873         * lib/vasnprintf.c (alloca): Remove fallback definition.
29874         (freea): Remove definition.
29875         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
29876         Reported by Paul Eggert.
29877
29878 2003-11-16  Paul Eggert  <eggert@twinsun.com>
29879             Bruno Haible  <bruno@clisp.org>
29880
29881         Protect against address arithmetic overflow.
29882         * lib/printf-args.h: Include stddef.h.
29883         (arguments): Change type of field 'count' to size_t.
29884         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
29885         'unsigned int' where appropriate.
29886         * lib/printf-parse.h: Include sys/types.h.
29887         (char_directive): Change type of *arg_index fields to ssize_t.
29888         (char_directives): Change type of fields 'count', max_*_length to
29889         size_t.
29890         * lib/printf-parse.c: Include sys/types.h and xsize.h.
29891         (SSIZE_MAX): Define fallback value.
29892         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
29893         instead of 'int' where appropriate. Check a_allocated, d_allocated
29894         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
29895         * lib/vasnprintf.c: Include xsize.h.
29896         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
29897         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
29898         overflow. Avoid wraparound when converting a width or precision from
29899         decimal to binary.
29900
29901 2003-11-16  Bruno Haible  <bruno@clisp.org>
29902
29903         Update from GNU gettext.
29904         * lib/printf-parse.c: Generalize to it can be compiled for wide
29905         strings.
29906         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
29907         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
29908         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
29909         SNPRINTF): New macros.
29910         Don't include <alloca.h> if the file is used inside libintl.
29911         (local_wcslen): New function, for Solaris 2.5.1.
29912         (VASNPRINTF): Use it instead of wcslen.
29913
29914 2003-11-16  Bruno Haible  <bruno@clisp.org>
29915
29916         * lib/xsize.h (xmax): New function.
29917         (xsum, xsum3, xsum4): Declare as "pure" functions.
29918
29919 2003-11-12  Paul Eggert  <eggert@twinsun.com>
29920
29921         * modules/xalloc (Files): Undo latest change, since xalloc.h
29922         no longer needs SIZE_MAX or PTRDIFF_MAX.
29923
29924 2003-11-12  Paul Eggert  <eggert@twinsun.com>
29925
29926         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
29927         gl_PTRDIFF_MAX.
29928
29929 2003-11-12  Paul Eggert  <eggert@twinsun.com>
29930
29931         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
29932         "return", to pacify some unknown compiler.  Problem reported
29933         by Joerg Schilling.
29934
29935 2003-11-12  Paul Eggert  <eggert@twinsun.com>
29936
29937         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
29938         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
29939         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
29940         heuristic is just as accurate as far as we know, and it removes a
29941         dependency on size_max.m4 and ptrdiff_max.m4.
29942
29943 2003-11-11  Bruno Haible  <bruno@clisp.org>
29944
29945         * modules/xsize (Files): Add m4/size_max.m4.
29946         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
29947
29948 2003-11-11  Bruno Haible  <bruno@clisp.org>
29949
29950         * m4/size_max.m4: New file.
29951         * m4/ptrdiff_max.m4: New file.
29952         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
29953         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
29954         (gl_XALLOC): Invoke it.
29955
29956 2003-11-11  Bruno Haible  <bruno@clisp.org>
29957
29958         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
29959         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
29960         defined.
29961
29962 2003-11-10  Paul Eggert  <eggert@twinsun.com>
29963
29964         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
29965         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
29966         rejected some allocations of exactly SIZE_MAX - 2 bytes.
29967         From Bruno Haible.
29968         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
29969         not (size_t) -1, since it's defined here.
29970
29971 2003-11-09  Karl Berry  <karl@gnu.org>
29972
29973         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
29974
29975 2003-11-06  Paul Eggert  <eggert@twinsun.com>
29976
29977         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
29978         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
29979         Reject sizes of exactly SIZE_MAX bytes.
29980         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
29981         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
29982
29983 2003-11-05  Bruno Haible  <bruno@clisp.org>
29984
29985         * lib/xsize.h: Include limits.h, to avoid a possible collision with
29986         SIZE_MAX defined in <limits.h> on Solaris.
29987
29988 2003-11-04  Jim Meyering  <jim@meyering.net>
29989
29990         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
29991         variable names, rather than @VAR@.
29992         * modules/poll: Likewise.
29993
29994 2003-11-04  Bruno Haible  <bruno@clisp.org>
29995
29996         * modules/xsize: New file.
29997         * modules/linebreak: Depend on xsize.
29998         * MODULES.html.sh (func_all_modules): Add xsize.
29999
30000 2003-11-04  Bruno Haible  <bruno@clisp.org>
30001
30002         * m4/xsize.m4: New file.
30003
30004 2003-11-04  Bruno Haible  <bruno@clisp.org>
30005
30006         * lib/xsize.h: New file.
30007         * lib/linebreak.c: Include xsize.h.
30008         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
30009         argument for overflow.
30010         Suggested by Paul Eggert.
30011
30012 2003-11-03  Karl Berry  <karl@gnu.org>
30013
30014         * config/config.{guess,sub}: update from config.
30015
30016 2003-11-03  Jim Meyering  <jim@meyering.net>
30017
30018         * modules/userspec (lib_SOURCES): Add userspec.h.
30019         (Include): Add "userspec.h".
30020         Improve description.
30021
30022 2003-11-03  Jim Meyering  <jim@meyering.net>
30023
30024         * lib/userspec.c: Include "userspec.h".
30025         * lib/userspec.h: New file.
30026
30027 2003-11-03  Bruno Haible  <bruno@clisp.org>
30028
30029         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
30030
30031 2003-11-03  Bruno Haible  <bruno@clisp.org>
30032
30033         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
30034         available, to avoid (extremely rare) race condition.
30035         Suggested by Paul Eggert.
30036
30037 2003-11-02  Karl Berry  <karl@gnu.org>
30038
30039         * config/srclist.txt (vasprintf.c): sync broken, sigh.
30040
30041 2003-10-31  Paul Eggert  <eggert@twinsun.com>
30042
30043         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
30044         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
30045         (read_filesystem_list): Set and use me_type_malloced.
30046         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
30047         whatever the type happens to be), for brevity and consistency.
30048         Check for size calculation overflow on Alphas running OSF/1.
30049
30050 2003-10-31  Jim Meyering  <jim@meyering.net>
30051
30052         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
30053
30054         * lib/linebuffer.c: Include <string.h> for declaration of memset.
30055
30056 2003-10-30  Paul Eggert  <eggert@twinsun.com>
30057             Bruno Haible  <bruno@clisp.org>
30058
30059         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
30060         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
30061
30062 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
30063
30064         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
30065         netbsd*-gnu*.  Suggested by Robert Millan.
30066
30067 2003-10-29  Paul Eggert  <eggert@twinsun.com>
30068
30069         * modules/group-member: Depend on stdbool.
30070
30071 2003-10-29  Paul Eggert  <eggert@twinsun.com>
30072
30073         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
30074
30075 2003-10-29  Paul Eggert  <eggert@twinsun.com>
30076
30077         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
30078         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
30079         after the 'gnu' in these cases.  This fixes some bugs in the
30080         previous change, and is based on suggestions by Robert Millan.
30081
30082 2003-10-29  Paul Eggert  <eggert@twinsun.com>
30083
30084         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
30085         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
30086         no longer needed.
30087         * lib/quotearg.c (quotearg_n_options): Use it.
30088         * lib/group-member.c: Include <stdbool.h>.
30089         (free_group_info): Arg is now const *; don't free arg.
30090         (get_group_info): Now returns bool and accepts struct group_info *,
30091         rather than returning a malloc'ed struct group_info *.
30092         All uses changed.  Check for overflow in internal size calculation.
30093
30094         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
30095         rather than xmalloc/xrealloc.
30096         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
30097         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
30098         conformance bug: the old code used a pointer after freeing the
30099         storage that it addressed.
30100         * lib/hash.c (hash_initialize): Simplify the code by using
30101         xalloc_oversized rather than doing it by hand.
30102         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
30103         the buffer preserved.  Use free and xmalloc instead.
30104         * lib/quotearg.c (quotearg_n_options): Likewise.
30105         Use a simpler test for size overflow.  Don't use xalloc_oversized
30106         because unsigned int might be wider than size_t (!); this suggests
30107         that we should switch from unsigned int to size_t for slot numbers.
30108
30109 2003-10-28  Paul Eggert  <eggert@twinsun.com>
30110
30111         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
30112         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
30113         NetBSD kernels.  Requested by Richard Stallman.
30114
30115 2003-10-27  Paul Eggert  <eggert@twinsun.com>
30116
30117         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
30118         to allocate the returned structure.  Do not allocate a subarray,
30119         as x2nrealloc will do that.
30120         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
30121         instead of xnrealloc.
30122         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
30123
30124 2003-10-27  Bruno Haible  <bruno@clisp.org>
30125
30126         * lib/stdbool_.h: Better support for BeOS.
30127
30128 2003-10-26  Paul Eggert  <eggert@twinsun.com>
30129
30130         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
30131         now uses inline.
30132
30133 2003-10-26  Paul Eggert  <eggert@twinsun.com>
30134
30135         * lib/xalloc.h (xalloc_oversized): New static inline function, for
30136         callers that want to do their own size-overflow checking.  Include
30137         <stdbool.h>, since xalloc_oversized returns bool.
30138         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
30139         to use xalloc_oversized.
30140
30141         Add two functions x2realloc, x2nrealloc, for programs that grow
30142         arrays dynamically by doubling their sizes.
30143         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
30144         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
30145         New functions.
30146
30147         Port to C99 semantics for 'inline' of external functions.
30148         Bug reported by Bruno Haible.
30149         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
30150         with the old contents of xnmalloc.
30151         (xnmalloc, xmalloc): Use it.
30152         (xnrealloc_inline): New static inline function,
30153         with the old contents of xnrealloc.
30154         (xnrealloc, xrealloc): Use it.
30155
30156         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
30157         that.
30158
30159 2003-10-26  Karl Berry  <karl@gnu.org>
30160
30161         * config/srclist.txt (COPYING.DOC): no longer available from
30162         /gd/gnuorg; don't know where the ultimate source is.
30163
30164 2003-10-25  Paul Eggert  <eggert@twinsun.com>
30165
30166         Fix several address-calculation bugs in the hash modules,
30167         plus some minor code cleanup.
30168
30169         * lib/hash.h: Include <stdbool.h>, for bool.
30170         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
30171         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
30172         hash_get_n_entries, hash_get_max_bucket_length,
30173         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
30174         hash_rehash): Use size_t rather than unsigned.
30175         * lib/hash.c (struct hash_table, hash_get_n_buckets,
30176         hash_get_n_buckets_used, hash_get_n_entries,
30177         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
30178         hash_get_entries, hash_do_for_each, hash_string, is_prime,
30179         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
30180         Likewise.
30181         (SIZE_MAX): Define if not defined.
30182         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
30183         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
30184         hash_print):
30185         Use const * when possible.
30186         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
30187         (check_tuning): Fix bug: if tuning parameters were very close to
30188         0 or 1, rounding errors could have caused subscript violations.
30189         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
30190         (hash_initialize): Add 'fail:' label
30191         to free table and return NULL, and use it to simplify code.
30192         Use calloc rather than clearing the storage ourself.
30193         (hash_initialize, hash_rehash): Check for arithmetic overflow in
30194         buffer size calculations.
30195         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
30196         Include <stddef.h>, for size_t.
30197         * lib/hash-pjw.c (hash_pjw): Likewise.
30198         Switch to method described by Bruno Haible.
30199         Include <limits.h>, for CHAR_BIT.
30200         (SIZE_BITS): New macro.
30201
30202 2003-10-23  Paul Eggert  <eggert@twinsun.com>
30203
30204         * m4/getline.m4 (AM_FUNC_GETLINE):
30205         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
30206         hosts.  Problem reported by Derek Robert Price in
30207         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
30208         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
30209         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
30210
30211 2003-10-21  Paul Eggert  <eggert@twinsun.com>
30212
30213         * lib/getndelim2.c (getndelim2): When size calculation overflows,
30214         ceiling the allocation at NMAX bytes rather than silently
30215         discarding input bytes before NMAX is reached.  This makes
30216         a difference only if NMAX exceeds SIZE_MAX / 2.
30217
30218         * lib/obstack.c: Merge from glibc.
30219         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
30220         Add libc_hidden_def (_obstack_newchunk).
30221         (_obstack_free) [! defined _LIBC]: Remove.
30222         [defined _LIBC]: Make a strong alias from obstack_free, rather than
30223         a clone of the function body.
30224         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
30225         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
30226
30227         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
30228         glibc.
30229         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
30230         arg to memcpy.
30231
30232         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
30233         (obstack_ptr_grow_fast, obstack_int_grow_fast):
30234         Don't use lvalue casts, as GCC plans to remove support for them
30235         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
30236         was also present in the non-GCC version, indicating that this
30237         code had always been buggy and had never been widely used.
30238         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
30239         Use the fast variant of each macro, rather than copying the
30240         definiens of the fast variant; that way, we'll be more likely to
30241         catch future bugs in the fast variants.
30242
30243 2003-10-20  Bruno Haible  <bruno@clisp.org>
30244
30245         * modules/wait-process: New file.
30246         * MODULES.html.sh (func_all_modules): Add wait-process.
30247
30248 2003-10-20  Bruno Haible  <bruno@clisp.org>
30249
30250         * m4/wait-process.m4: New file.
30251
30252 2003-10-20  Bruno Haible  <bruno@clisp.org>
30253
30254         * lib/wait-process.h: New file, from GNU gettext.
30255         * lib/wait-process.c: New file, from GNU gettext.
30256
30257 2003-10-19  Jim Meyering  <jim@meyering.net>
30258
30259         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
30260         HPUX 10.20.
30261
30262 2003-10-18  Karl Berry  <karl@gnu.org>
30263
30264         * config/config.guess: update from config.
30265
30266 2003-10-16  Paul Eggert  <eggert@twinsun.com>
30267
30268         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
30269         (getgroups): First arg is int, not size_t.
30270         Don't let 'free' mangle errno.
30271
30272 2003-10-16  Paul Eggert  <eggert@twinsun.com>
30273
30274         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
30275
30276 2003-10-16  Karl Berry  <karl@gnu.org>
30277
30278         * config/config.{guess,sub}: update from config.
30279
30280 2003-10-16  Jim Meyering  <jim@meyering.net>
30281
30282         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
30283         memcpy.
30284
30285 2003-10-15  Paul Eggert  <eggert@twinsun.com>
30286
30287         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
30288         (SIZE_MAX): Remove.
30289         (new_exclude, add_exclude_file): Initial size no longer needs to
30290         be a power of 2.
30291         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
30292         our own address arithmetic overflow checking.
30293
30294         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
30295         (fnmatch): Do not alloca more than 2000 wide characters;
30296         instead, use malloc for large buffers.
30297         Check for address arithmetic overflow, and return -1
30298         with errno set to ENOMEM in that case.
30299         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
30300         (NEW_PATTERN): Do not alloca more than 8000 bytes;
30301         instead, return -1.  Check for address arithmetic overflow.
30302
30303 2003-10-14  Paul Eggert  <eggert@twinsun.com>
30304
30305         Handle invalid suffixes and overflow independently, so that
30306         callers can treat them independently as needed.  Fix some bugs in
30307         suffix handling, e.g., "100k@" was not diagnosed as an invalid
30308         suffix for a human-readable blocksize.  The major caller-visible
30309         change is the addition of a new
30310         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
30311         that both overflow and suffix chars were found.
30312
30313         * lib/human.c (humblock): Don't check separately for invalid suffix
30314         char; that is xstrtoumax's job (now that its bug is fixed).
30315         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
30316         INTMAX_MAX]: New macros.
30317         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
30318         TYPE_MAXIMUM): New macros.
30319         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
30320         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
30321         if overflow occurs, as it's what __strtol does and it's more useful
30322         in practice.
30323         (__xstrtol): If __strtol reports some error other than ERANGE,
30324         reflect it to the caller as LONGINT_INVALID.  If it reports
30325         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
30326         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
30327         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
30328         value.
30329         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
30330         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
30331         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
30332         [defined UINTMAX_MAX]: New macros.
30333
30334 2003-10-14  Bruno Haible  <bruno@clisp.org>
30335
30336         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
30337
30338 2003-10-14  Bruno Haible  <bruno@clisp.org>
30339
30340         * m4/sig_atomic_t: New file, from GNU gettext.
30341         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
30342
30343 2003-10-14  Bruno Haible  <bruno@clisp.org>
30344
30345         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
30346         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
30347         Also use volatile where needed.
30348
30349 2003-10-12  Paul Eggert  <eggert@twinsun.com>
30350
30351         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
30352         Change maintainer from Bruno Haible to 'all'.
30353
30354 2003-10-12  Paul Eggert  <eggert@twinsun.com>
30355
30356         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
30357
30358 2003-10-12  Paul Eggert  <eggert@twinsun.com>
30359
30360         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
30361         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
30362         and define in terms of the other primitives.
30363         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
30364         (SIZE_MAX): Define if not already defined.
30365         (array_size_overflow): New function.
30366         (xalloc_die): Abort instead of exiting if 'error' returns.
30367         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
30368         (xmalloc, xrealloc): Use them.
30369         (xcalloc): Check for address arithmetic overflow.
30370         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
30371         a bit faster than strcpy.
30372
30373 2003-10-10  Simon Josefsson  <jas@extundo.com>
30374
30375         * modules/argp (Depends-on): Add restrict and strcase.
30376
30377 2003-10-10  Simon Josefsson  <jas@extundo.com>
30378
30379         * m4/argp.m4: Add AC_C_INLINE.
30380
30381 2003-10-08  Paul Eggert  <eggert@twinsun.com>
30382
30383         Merge getpass from libc, plus a few fixes.
30384
30385         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
30386         Include <stdbool.h>.
30387         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
30388         __fsetlocking to empty.
30389         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
30390         do include <bits/libc-lock.h>.
30391         Do not include <fcntl.h>; not needed.
30392         [_LIBC]: Include <wchar.h>.
30393         (NOTCANCEL_MODE): New macro.
30394         (flockfile, funlockfile) [_LIBC]: New macros.
30395         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
30396         [!_LIBC]: New macros.
30397         (call_fclose): New function.
30398         (getpass): Use it.  Save tty stream separately; this simplifies the
30399         code and makes it more reliable if stdin happens to equal stdout.
30400         Invoke __fsetlocking on tty.
30401         Handle thread cancellation if needed.
30402         Namespace cleanup (use __tcgetattr, __getline).
30403         Use bool for Booleans.
30404         [USE_IN_LIBIO]: Handle wide streams.
30405         [!_LIBC]: Unconditionally do the fseek, since we don't know what
30406         stream might go where.
30407
30408         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
30409         doesn't have to include <stdio.h> before us.
30410         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
30411         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
30412         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
30413         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
30414         if not declared, so that we can use getpass.c code from libc without
30415         rewriting it.
30416         (flockfile, ftrylockfile, funlockfile): New macros.
30417
30418 2003-10-08  Paul Eggert  <eggert@twinsun.com>
30419
30420         * modules/getpass: Depend on stdbool.
30421
30422 2003-10-08  Paul Eggert  <eggert@twinsun.com>
30423
30424         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
30425
30426 2003-10-07  Karl Berry  <karl@gnu.org>
30427
30428         * config/config.{guess,sub}: update from config.
30429
30430 2003-10-06  Jim Meyering  <jim@meyering.net>
30431             Bruno Haible  <bruno@clisp.org>
30432
30433         This lets translators provide better translations for the
30434         "Written by ..." part of --version output.
30435         * lib/version-etc.h: Include stdarg.h.
30436         (version_etc_copyright): Declare as readonly.
30437         (version_etc): Make this function variadic with a NULL-terminated list
30438         of author name strings.
30439         (version_etc_va): New declaration.
30440         * lib/version-etc.c: Include stdarg.h, stdlib.h.
30441         (version_etc_copyright): Declare as readonly.
30442         (version_etc_va): New function. Provide a different translatable string
30443         for each possible number of authors < 10. Abbreviate when there are 10
30444         authors or more.
30445         (version_etc): Make this function variadic. Call version_etc_va.
30446         Suggestion from Gary V. Vaughan.
30447
30448         * lib/long-options.h (parse_long_options): Change prototype: the
30449         authors string is moved to the end and becomes variadic.
30450         * lib/long-options.c: Include stdarg.h.
30451         (parse_long_options): Make this function variadic, too.
30452         Call version_etc_va, not version_etc.
30453
30454 2003-10-06  Bruno Haible  <bruno@clisp.org>
30455
30456         * modules/version-etc-2: Remove file.
30457         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
30458
30459 2003-10-06  Bruno Haible  <bruno@clisp.org>
30460
30461         * modules/fatal-signal: New file.
30462         * MODULES.html.sh (func_all_modules): Add fatal-signal.
30463
30464 2003-10-06  Bruno Haible  <bruno@clisp.org>
30465
30466         * m4/fatal-signal.m4: New file.
30467         * m4/signalblocking.m4: New file, from GNU gettext.
30468
30469 2003-10-06  Bruno Haible  <bruno@clisp.org>
30470
30471         * lib/version-etc-2.h: Remove file.
30472         * lib/version-etc-2.c: Remove file.
30473
30474 2003-10-06  Bruno Haible  <bruno@clisp.org>
30475
30476         * lib/fatal-signal.h: New file, from GNU gettext.
30477         * lib/fatal-signal.c: New file, from GNU gettext.
30478
30479 2003-10-05  Paul Eggert  <eggert@twinsun.com>
30480
30481         * README: Rework advice for preventing empty .o files.
30482         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
30483         not <sys/types.h>.
30484
30485 2003-10-04  Karl Berry  <karl@gnu.org>
30486
30487         * lib/argp*: update from libc.
30488
30489 2003-10-04  Karl Berry  <karl@gnu.org>
30490
30491         * config/config.{guess,sub}: update from config.
30492
30493 2003-10-02  Bruno Haible  <bruno@clisp.org>
30494
30495         * modules/lchown (Include): Add lchown.h.
30496         * modules/time_r (Include): Use "..." syntax.
30497         * modules/xgetdomainname (Include): Add xgetdomainname.h.
30498
30499 2003-10-01  Simon Josefsson  <jas@extundo.com>
30500
30501         * MODULES.html.sh (func_all_modules): Move gethostname from section
30502         'based on' to section 'lacking' POSIX:2001.
30503
30504 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
30505
30506         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
30507         to output mode on the same stream.
30508
30509 2003-09-29  Paul Eggert  <eggert@twinsun.com>
30510
30511         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
30512         Fix arg typo in previous patch.
30513
30514 2003-09-28  Jim Meyering  <jim@meyering.net>
30515
30516         * lib/error.c: Correct cpp indentation.
30517
30518 2003-09-27  Paul Eggert  <eggert@twinsun.com>
30519
30520         * modules/free: New file.
30521
30522 2003-09-27  Paul Eggert  <eggert@twinsun.com>
30523
30524         * m4/free.m4: New file.
30525
30526 2003-09-27  Paul Eggert  <eggert@twinsun.com>
30527
30528         * lib/minmax.h (MIN, MAX)
30529         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
30530         Omit the special code that used __typeof__, since we worry that
30531         it could be more trouble than it's worth.  See:
30532         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
30533         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
30534
30535         * lib/free.c: New file.
30536
30537 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
30538
30539         Trivial fixes to Makefile.am parts of module listings.
30540         * modules/strstr: Append strstr.h to lib_SOURCES.
30541         * modules/strcase: Likewise, for strcase.h.
30542
30543 2003-09-27  Karl Berry  <karl@gnu.org>
30544
30545         * config/mkinstalldirs: update from automake.
30546
30547 2003-09-26  Paul Eggert  <eggert@twinsun.com>
30548
30549         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
30550         (error_tail): Do not loop, reallocating temporary buffer, since
30551         the output cannot contain more wide characters than the input
30552         contains bytes, the size must be big enough already.  This avoids
30553         one potential size overflow calculation.  Check for size overflow
30554         when calculating temporary buffer size.  Free temporary buffer
30555         when done, if it was allocated with malloc; this plugs a memory
30556         leak.  Remove casts from void * to pointers, that are no longer
30557         needed now that we're assuming C89 or better.
30558
30559         Merge error changes from glibc.
30560
30561         * lib/error.c, error.h: Update copyright notice header to match glibc.
30562         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
30563         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
30564         Disable cancellation while printing error.
30565         * lib/error.h: Prepend __ to parameter names.
30566
30567 2003-09-26  Jim Meyering  <jim@meyering.net>
30568
30569         * lib/error.c (error_tail): Move some declarations
30570         into inner scope where the local variables are used.
30571
30572 2003-09-26  Bruno Haible  <bruno@clisp.org>
30573
30574         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
30575         stpncpy().
30576         Don't define stpncpy through config.h; it's now done through stpncpy.h.
30577
30578 2003-09-26  Bruno Haible  <bruno@clisp.org>
30579
30580         * lib/stpncpy.h (gnu_stpncpy): New declaration.
30581         (stpncpy): Define as alias for gnu_stpncpy.
30582         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
30583
30584 2003-09-25  Simon Josefsson  <jas@extundo.com>
30585
30586         * lib/xgetdomainname.h: New file.
30587         * lib/xgetdomainname.c: New file.
30588
30589 2003-09-25  Simon Josefsson  <jas@extundo.com>
30590             Bruno Haible  <bruno@clisp.org>
30591
30592         * modules/getdomainname: New file.
30593         * modules/xgetdomainname: New file.
30594         * MODULES.html.sh (func_all_modules): Add getdomainname,
30595         xgetdomainname.
30596
30597 2003-09-25  Simon Josefsson  <jas@extundo.com>
30598             Bruno Haible  <bruno@clisp.org>
30599
30600         * m4/getdomainname.m4: New file.
30601
30602 2003-09-25  Simon Josefsson  <jas@extundo.com>
30603             Bruno Haible  <bruno@clisp.org>
30604
30605         * lib/getdomainname.h: New file.
30606         * lib/getdomainname.c: New file.
30607
30608 2003-09-25  Karl Berry  <karl@gnu.org>
30609
30610         * lib/argp-fmtstream.c, argp-help.c: update from libc.
30611
30612 2003-09-25  Karl Berry  <karl@gnu.org>
30613
30614         * config/install-sh: update from automake.
30615
30616 2003-09-25  Bruno Haible  <bruno@clisp.org>
30617
30618         * modules/version-etc-2: New file, from modules/version-etc with
30619         modifications.
30620         * MODULES.html.sh (func_all_modules): Add version-etc-2.
30621
30622 2003-09-25  Bruno Haible  <bruno@clisp.org>
30623
30624         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
30625         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
30626
30627 2003-09-24  Simon Josefsson  <jas@extundo.com>
30628
30629         * modules/xgethostname: Add xgethostname.h.
30630
30631 2003-09-24  Paul Eggert  <eggert@twinsun.com>
30632
30633         * lib/linebuffer.c (freebuffer): Don't free the argument, just
30634         the buffer associated with the argument.  Bug reported by
30635         Simon Josefsson.
30636
30637 2003-09-24  Paul Eggert  <eggert@twinsun.com>
30638
30639         * README: Document assumptions that 'int' is at least 32 bits
30640         wide, that integer arithmetic is 2's complement without overflow,
30641         that there are no holes in integer values, that adding sizes of
30642         two nonoverlapping objects can't overflow, and that all-bits-zero
30643         yields scalar zero.  Fix spelling and capitalization typos.
30644
30645 2003-09-19  Karl Berry  <karl@gnu.org>
30646
30647         * lib/argp.h: update from libc.
30648
30649 2003-09-17  Paul Eggert  <eggert@twinsun.com>
30650
30651         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
30652         to avoid spurious warnings like "AC_RUN_IFELSE was called before
30653         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
30654
30655 2003-09-17  Paul Eggert  <eggert@twinsun.com>
30656
30657         * gnulib-tool: Use "test -h", not "test -L", for portability
30658         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
30659         (tags_regexp): Remove, since \| doesn't conform to POSIX.
30660         (sed_extract_prog): Issue s commands one-by-one, rather than
30661         using \| in one s command.
30662
30663 2003-09-16  Paul Eggert  <eggert@twinsun.com>
30664
30665         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
30666         input error, instead of returning NULL the next time we are called
30667         (and therefore losing track of errno).
30668
30669 2003-09-16  Bruno Haible  <bruno@clisp.org>
30670
30671         * gnulib-tool (func_create_testdir): Warn about duplicated
30672         dependencies.
30673
30674 2003-09-15  Paul Eggert  <eggert@twinsun.com>
30675
30676         * modules/argmatch, modules/fatal, modules/obstack,
30677         modules/xalloc, modules/xgethostname: Sort dependencies by
30678         importance, not alphabetically.
30679
30680 2003-09-15  Paul Eggert  <eggert@twinsun.com>
30681
30682         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
30683         fails, so that the caller gets the proper errno.
30684
30685         * lib/readutmp.c (read_utmp): Likewise.
30686         Check for fstat error.  Close stream and free storage
30687         when failing.
30688
30689 2003-09-14  Karl Berry  <karl@gnu.org>
30690
30691         * config/srclist.txt (strdup.c): disable for c89 changes.
30692
30693 2003-09-14  Jim Meyering  <jim@meyering.net>
30694
30695         * lib/getloadavg.c: Correct cpp indentation.
30696         * lib/strdup.c: Likewise.
30697         * lib/vasnprintf.c: Likewise.
30698
30699 2003-09-14  Bruno Haible  <bruno@clisp.org>
30700
30701         * modules/fwriteerror: New file.
30702         * MODULES.html.sh (func_all_modules): Add fwriteerror.
30703
30704 2003-09-14  Bruno Haible  <bruno@clisp.org>
30705
30706         * lib/fwriteerror.h: New file.
30707         * lib/fwriteerror.c: New file.
30708
30709 2003-09-12  Paul Eggert  <eggert@twinsun.com>
30710
30711         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
30712         modules/xgethostname, modules/xalloc: Depend on exit.
30713
30714 2003-09-12  Paul Eggert  <eggert@twinsun.com>
30715
30716         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
30717
30718         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
30719         and AC_MINIX, too, so that their extensions are available.
30720
30721         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
30722         This macro has been superseded by gl_BACKUPFILE.
30723
30724         More patches to assume C89 or better.
30725
30726         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
30727
30728         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
30729         unconditionally.
30730         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
30731         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
30732         Include <string.h>, <stdlib.h> unconditionally.
30733         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
30734         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
30735         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
30736         headers or for string.h.
30737         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
30738         or strtoul.
30739
30740         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
30741         headers.
30742         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
30743         * m4/userspec.m4 (gl_USERSPEC): Likewise.
30744         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
30745         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
30746         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
30747         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
30748         memcpy, memset.
30749         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
30750         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
30751         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
30752         strtol.
30753         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
30754         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
30755         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
30756         strtoul.
30757
30758 2003-09-12  Paul Eggert  <eggert@twinsun.com>
30759
30760         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
30761         * lib/obstack.c [!defined _LIBC]: Likewise.
30762         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
30763         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
30764         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
30765
30766         More changes to assume C89 or better.
30767
30768         * lib/error.c (error_tail): Assume vprintf.
30769
30770         * lib/argmatch.c (getenv): Remove decl.
30771         * lib/progreloc.c (get_full_program_name): Define via prototype.
30772         * lib/setenv.c (clearenv): Likewise.
30773         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
30774         needed.
30775         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
30776         (malloc, memcpy): Remove decls.
30777         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
30778         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
30779         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
30780         (memcpy): Remove macro.
30781         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
30782         (__P): Remove.  All uses removed.
30783         (PTR): Remove.  All uses changed to void *.
30784         (CHAR_BIT, NULL): Remove.
30785         (spaces, zeros, memset_space, memset_zero)
30786         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
30787         Remove.
30788         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
30789         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
30790         Define with prototype.
30791         Remove now-unnecessary prototype decl.
30792         (extra_args_spec): Assume ANSI C.  All uses changed.
30793         (extra_args_spec_iso): Remove.
30794         (my_strftime, emacs_strftimeu): Define via prototype.
30795         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
30796         unconditionally.
30797         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
30798         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
30799         (strtoul, strtol): Remove decls.
30800         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
30801         LONG_MAX): Remove.
30802         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
30803         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
30804         (LOCALE_PARAM_PROTO): New macro.
30805         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
30806         (INTERNAL (strtol), strtol): Define with a prototype.
30807         (PARAMS): Remove.  All uses removed.
30808         * lib/tempname.c: Include <string.h> unconditionally.
30809         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
30810         * lib/xgethostname.c (main): Define with a prototype.
30811         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
30812         Include <stdlib.h> unconditionally.
30813         (calloc, malloc, realloc, free): Remove decls.
30814         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
30815         Include <stdlib.h> unconditionally.  Sort include file names.
30816         (strtod): Remove.
30817         (xstrtod): Define with a prototype.
30818         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
30819         (strtol, strtoul): Remove decls.
30820
30821 2003-09-11  Paul Eggert  <eggert@twinsun.com>
30822
30823         More patches to assume C89 or better.
30824         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
30825         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
30826         string.h, memchr, STDC_HEADERS.
30827
30828 2003-09-11  Paul Eggert  <eggert@twinsun.com>
30829
30830         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
30831         Include <stdlib.h>, <string.h> unconditionally.
30832         Remove now-unnecessary cast to char *.
30833         * lib/strnlen.c: Include <string.h> unconditionally.
30834         * lib/yesno.c (yesno): Define with a prototype.
30835
30836 2003-09-11  Bruno Haible  <bruno@clisp.org>
30837
30838         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
30839
30840 2003-09-10  Jim Meyering  <jim@meyering.net>
30841
30842         * lib/error.c: Correct indentation of cpp directives.
30843
30844 2003-09-10  Bruno Haible  <bruno@clisp.org>
30845
30846         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
30847         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
30848         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
30849         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
30850         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
30851         <stdlib.h> and <string.h> checks.
30852         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
30853         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
30854
30855 2003-09-10  Bruno Haible  <bruno@clisp.org>
30856
30857         * lib/strcspn.c: Include <string.h> unconditionally.
30858         * lib/strpbrk.c: Include <string.h> unconditionally.
30859         * lib/strstr.c: Include <string.h> unconditionally.
30860         * lib/unicodeio.c: Include <string.h> unconditionally.
30861         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
30862         * lib/unsetenv.c: Likewise.
30863         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
30864         * lib/yesno.c: Include <stdlib.h> unconditionally.
30865         (rpmatch): Add prototype.
30866
30867 2003-09-09  Paul Eggert  <eggert@twinsun.com>
30868
30869         More patches to assume C89 or better.
30870         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
30871         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
30872         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
30873         or for string.h.
30874         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
30875         stdlib.h.
30876         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
30877         C headers.
30878         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
30879         string.h.
30880         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
30881         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
30882         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
30883         or for string.h.
30884         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
30885         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
30886         C headers.
30887         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
30888         memcpy.
30889         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
30890         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
30891         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
30892         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
30893         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
30894         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
30895         string.h, free.
30896         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
30897         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
30898         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
30899         C headers, or for string.h.
30900         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
30901         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
30902         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
30903         headers, memory.h, stdlib.h, string.h, strings.h.
30904         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
30905         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
30906         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
30907         strchr.
30908         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
30909         headers, memory.h, string.h.
30910         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
30911         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
30912         free.
30913         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
30914         headers.
30915         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
30916         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
30917         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
30918         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
30919         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
30920
30921 2003-09-09  Paul Eggert  <eggert@twinsun.com>
30922
30923         More K&R removal.
30924
30925         * lib/acosl.c (main): Use a prototype.
30926         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
30927         tanl.c: Likewise.
30928
30929         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
30930
30931         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
30932         (getopt, etopt_long, getopt_long_only, _getopt_internal)
30933         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
30934         with a prototype.
30935         * lib/getopt.c (const): Remove macro.
30936         Include <string.h> unconditionally.
30937         (my_index): Remove; all uses changed to strchr.
30938         (strlen): Remove decl.
30939         (exchange): Remove forward decl; no longer needed.
30940         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
30941         Define with prototype.
30942         * lib/getopt1.c (const): Remove macro.
30943         (getopt_long, getopt_long_only, main): Define with prototype.
30944
30945         * lib/getugroups.c: Include <string.h> unconditionally.
30946
30947         * lib/getusershell.c: Include <stdlib.h> unconditionally.
30948         (getusershell, setusershell, endusershell, readname, main):
30949         Define with prototypes.
30950
30951         * lib/group-member.c: Include group-member.h first.
30952         Include <stdlib.h> unconditionally.
30953
30954         * lib/hard-locale.c: Include hard-locale.h first.
30955         Include <stdlib.h>, <string.h> unconditionally.
30956
30957         * lib/hash.c (free, malloc): Remove decls.
30958         Include <stdlib.h> unconditionally.
30959
30960         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
30961         (getenv): Do not declare.
30962
30963         * lib/idcache.c: Include <string.h> unconditionally.
30964
30965         * lib/long-options.c: Include long-options.h first, to test interface.
30966         Include <stdlib.h> unconditionally.
30967
30968         * lib/makepath.c: Include makepath.h first, to test interface.
30969         Include <stdlib.h> and <string.h> unconditionally.
30970
30971         * lib/linebuffer.c: Include <stdlib.h>.
30972         (free): Remove decl.
30973
30974         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
30975         stddef.h. rpl_malloc returns void *, not char *.
30976         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
30977         prototype.
30978
30979         * lib/md5.h: Include <limits.h> unconditionally.
30980         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
30981         (__P): Remove; all uses removed.
30982         * lib/md5.c: Include "md5.h" first.
30983         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
30984         md5_buffer, md5_process_bytes, md5_process_block):
30985         Define with prototypes.
30986         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
30987         * lib/sha.c: Include "sha.h" first.
30988         Include <stdlib.h>, <string.h> unconditionally.
30989
30990         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
30991         * lib/memcmp.c (__ptr_t): Likewise.
30992         * lib/memrchr.c (__ptr_t): Likewise.
30993         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
30994         Include <string.h> unconditionally.
30995         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
30996         * lib/memchr.c: Include <stdlib.h> unconditionally.
30997         * lib/memchr.c (LONG_MAX): Remove.
30998         * lib/memrchr.c (LONG_MAX): Likewise.
30999         * lib/memchr.c (__memchr): Define via a prototype.
31000         * lib/memrchr.c (__memrchr): Likewise.
31001         * lib/memcmp.c (__P): Remove, and remove all uses.
31002         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
31003         Remove forward decls; no longer needed.
31004         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
31005         Use types required by C89 in prototype.
31006
31007         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
31008         * lib/savedir.c: Likewise.
31009         * lib/mkdir.c (free): Remove decl.
31010         * lib/rmdir.c (rmdir): Define with a prototype.
31011         * lib/savedir.c: Include savedir.h first, to test interface.
31012
31013         * lib/mktime.c (STDC_HEADERS): Remove.
31014         Include <stdlib.h>, <string.h> unconditionally.
31015
31016         * lib/modechange.c: Include <stdlib.h> unconditionally.
31017         (malloc): Remove decl.
31018
31019         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
31020         (free): Remove decl.
31021
31022         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
31023         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
31024         (This type really should be intptr_t, but that's a C99ism.)
31025         (_obstack_memcpy): Remove: all uses changed to memcpy.
31026         Include <string.h> unconditionally.
31027         (struct obstack): Assume __STDC__ for types of members
31028         chunkfun, freefun, extra_arg.
31029         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
31030         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
31031         obstack_begin, obstack_specify_allocation,
31032         obstack_specify_allocation_with_arg, obstack_chunkfun,
31033         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
31034         Remove unprototyped decls and the macros that use them.
31035         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
31036         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
31037         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
31038         (defined __STDC__ && __STDC__)]:
31039         Remove nonprototyped code.
31040         Include <stdlib.h> unconditionally.
31041         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
31042         _obstack_allocated_p, _obstack_free, obstack_free,
31043         _obstack_memory_used, print_and_abort):
31044         Define using prototypes.
31045         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
31046         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
31047         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
31048         obstack_next_free, obstack_object_size, obstack_room) [0]:
31049         Remove unused, unprototyped code.
31050
31051         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
31052
31053         * lib/physmem.c (physmem_total, physmem_available, main): Define
31054         with prototypes.
31055
31056         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
31057         (main): Define with a prototype.
31058
31059         * lib/posixver.c (getenv): Remove decl.
31060
31061         * lib/putenv.c (malloc): Returns void *, not char *.
31062         Include <string.h> unconditionally.
31063         (strchr, memcpy, NULL): Do not define.
31064
31065         * lib/readtokens.c: Include readtokens.h first, to test interface.
31066         Include <stdlib.h>, <string.h> unconditionally.
31067         (init_tokenbuffer): Define with a prototype.
31068
31069         * lib/regex.c (PARAMS): Remove.  All uses removed.
31070         All uses of _RE_ARGS removed, too.
31071         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
31072         unconditionally.
31073         (bzero): Assume memset exists.
31074         (memcmp, memcpy, NULL): Remove.
31075         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
31076         char, or assignments to local vars of type signed char.
31077         (init_syntax_once, PREFIX(extract_number_and_incr),
31078         PREFIX(print_partial_compiled_pattern),
31079         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
31080         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
31081         PREFIX(regex_grow_registers), PREFIX(regex_compile),
31082         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
31083         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
31084         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
31085         wcs_compile_range, byte_compile_range, truncate_wchar,
31086         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
31087         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
31088         count_mbs_length, wcs_re_match_2_internal,
31089         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
31090         PREFIX(alt_match_null_string_p),
31091         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
31092         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
31093         regfree, PREFIX(extract_number)): Define with prototype.  Remove
31094         now-unnecessary declaration, if any.
31095         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
31096         regcomp, regexec):
31097         Remove now-unnecessary casts among pointer types.
31098         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
31099
31100         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
31101         (free): Remove decl.
31102
31103         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
31104
31105         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
31106         (free): Remove decl.
31107
31108         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
31109         * lib/xgetcwd.c: Likewise.
31110
31111         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
31112         (free): Remove decl.
31113
31114         * lib/strchrnul.c (strchrnul): Define with a prototype.
31115         Fix bug: c_in was not converted to char before searching.
31116
31117         The following changes are not K&R related:
31118
31119         * lib/group-member.h: Include <sys/types.h>, so that this file is
31120         self-contained.
31121         * lib/makepath.h: Likewise.
31122
31123         * lib/getusershell.c (readname, default_index, line_size, readname):
31124         Use size_t, not int, for sizes.
31125         (readname): If the size overflows, report an error instead of
31126         looping forever.
31127
31128 2003-09-09  Paul Eggert  <eggert@twinsun.com>
31129
31130         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
31131         libc.
31132
31133 2003-09-09  Paul Eggert  <eggert@twinsun.com>
31134
31135         * README: New section: portability guidelines.
31136
31137 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
31138
31139         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
31140         C89 spec.
31141
31142 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
31143
31144         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
31145
31146 2003-09-08  Paul Eggert  <eggert@twinsun.com>
31147
31148         Assume C89 or better; remove K&R cruft.
31149         A few of these changes were first proposed by Derek Robert Price
31150         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
31151
31152         * lib/addext.c: Include <string.h> unconditionally.
31153         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
31154         Don't declare getenv or malloc.
31155
31156         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
31157         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
31158         (NULL): Remove.
31159         (find_stack_direction, alloca): Use prototypes.
31160
31161         * lib/atexit.c (atexit): Define using a prototype.
31162
31163         * lib/basename.c, dirname.c, stripslash.c:
31164         Include <string.h> unconditionally.
31165
31166         * lib/bcopy.c: Include <stddef.h>.
31167         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
31168
31169         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
31170
31171         * lib/error.h (error, error_at_line, error_print_progname)
31172         [! (defined (__STDC__) && __STDC__)]: Remove decls.
31173         * lib/error.c: Include error.h first, to check interface.
31174         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
31175         (VA_START): Remove; all uses changeed to va_start.
31176         (exit, strerror): Remove decls.
31177         (error_print_progname): Prototype uncondionally.
31178         Don't include <errno.h>; no longer needed.
31179         (private_strerror): Remove.
31180         (error_tail): Always define.
31181         (error, error_at_line): Assume C89 or better; always use prototypes.
31182         * lib/fatal.c: Include "fatal.h" first, to test interface.
31183         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
31184         (VA_START): Remove; all uses changed to va_start.
31185         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
31186         this case.
31187         (exit): Remove decl.
31188         (fatal): Prototype unconditionally.  Assume va_start works.
31189         Abort at end, to pacify gcc.
31190
31191         * lib/euidaccess.c (main): Define with a prototype.
31192
31193         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
31194
31195         * lib/exitfail.c: Include <stdlib.h> unconditionally.
31196
31197         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
31198         prototypes.
31199         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
31200         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
31201         (getenv): Remove decl.
31202         (fnmatch): Define using a prototype.
31203         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
31204         (FCT): Define using a prototype.
31205
31206         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
31207
31208         * lib/gethostname.c: Include <stddef.h>.
31209         (gethostname): Define with prototype.  Length is size_t, not int.
31210
31211 2003-09-08  Paul Eggert  <eggert@twinsun.com>
31212
31213         Assume C89 or better; remove K&R cruft.
31214         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
31215         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
31216         string.h, getenv, malloc.
31217         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
31218         headers.
31219         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
31220         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
31221         do not check for strerror.
31222         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
31223         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
31224         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
31225         do not check for doprnt or vprintf.
31226         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
31227         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
31228
31229 2003-09-08  Paul Eggert  <eggert@twinsun.com>
31230
31231         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
31232         getversion.c should have been removed then, but was accidentally
31233         preserved.
31234
31235         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
31236         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
31237
31238 2003-09-08  Karl Berry  <karl@gnu.org>
31239
31240         * config/config.sub, config.guess, srclistvars.sh: update from savannah
31241                 config, forget about prep.
31242
31243         * config/depcomp, missing: update from automake.
31244
31245 2003-09-07  Paul Eggert  <eggert@twinsun.com>
31246
31247         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
31248         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
31249
31250 2003-09-07  Paul Eggert  <eggert@twinsun.com>
31251
31252         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
31253         copy_tm_result.  Bug reported by Simon Josefsson in
31254         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
31255
31256 2003-09-06  Paul Eggert  <eggert@twinsun.com>
31257
31258         * m4/time_r.m4: New file.
31259         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
31260         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
31261         is. Check for timegm declaration.
31262         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
31263         Do not check for gmtime_r.
31264         Replace mktime if __mktime_internal does not exist and if mktime
31265         hasn't been replaced already.
31266
31267 2003-09-06  Paul Eggert  <eggert@twinsun.com>
31268
31269         * lib/time_r.c, lib/time_r.h: New files.
31270
31271         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
31272         __localtime_r.
31273         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
31274         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
31275
31276         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
31277         __gmtime_r.
31278         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
31279         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
31280         Include <time_r.h>.
31281
31282         * lib/timegm.c: Switch to glibc implementation, with the following
31283         changes:
31284         [defined HAVE_CONFIG_H]: Include <config.h>.
31285         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
31286         (__mktime_internal) [!defined _LIBC]: New decl.
31287         (__gmtime_r) [!defined _LIBC]: New macro and function.
31288         (timegm): Use a prototype, since gnulib assumes C89.
31289         Do not bother declaring tmp to be const, as it's not really usefu.
31290         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
31291         (timegm): Declare only if HAVE_DECL_TIMEGM.
31292
31293 2003-09-06  Paul Eggert  <eggert@twinsun.com>
31294
31295         * MODULES.html.sh (func_all_modules): Add time_r.
31296         * modules/time_r: New file.
31297         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
31298         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
31299
31300 2003-09-03  Paul Eggert  <eggert@twinsun.com>
31301
31302         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
31303         Bug reported by Lute Kamstra in
31304         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
31305
31306         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
31307         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
31308         course with correspondingly smaller numbers for tomorrow and
31309         yesterday.  From Tadayoshi Funaba.  Originally installed into
31310         sh-utils on 1999-08-07, but the patch got lost (I guess during the
31311         coreutils merge?).
31312
31313 2003-08-31  Simon Josefsson  <jas@extundo.com>
31314
31315         * modules/timegm: New file.
31316         * MODULES.html.sh (func_all_modules): Add timegm.
31317
31318 2003-08-31  Simon Josefsson  <jas@extundo.com>
31319
31320         * m4/timegm.m4: New file.
31321
31322 2003-08-31  Simon Josefsson  <jas@extundo.com>
31323
31324         * lib/timegm.h: New file.
31325         * lib/timegm.c: New file.  Based on
31326         wget-1.8.2/src/http.c:mktime_from_utc.
31327
31328 2003-08-31  Karl Berry  <karl@gnu.org>
31329
31330         * lib/argp.h: update from libc.
31331
31332 2003-08-28  Bruno Haible  <bruno@clisp.org>
31333
31334         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
31335         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
31336         followed by '#define fnmatch fnmatch_posix' gives an error.
31337
31338 2003-08-28  Bruno Haible  <bruno@clisp.org>
31339
31340         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
31341         warning on QNX, which defines O_BINARY to 000000.
31342
31343 2003-08-27  Jim Meyering  <jim@meyering.net>
31344
31345         * m4/mkstemp.m4: Require that the system mkstemp be able to create
31346         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
31347         would fail after 32.  Reported by Danny Levinson.  Details here:
31348         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
31349
31350 2003-08-24  Bruno Haible  <bruno@clisp.org>
31351
31352         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
31353         MSVC7 <stdio.h> is included later.
31354
31355 2003-08-22  Simon Josefsson  <jas@extundo.com>
31356
31357         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
31358
31359 2003-08-20  Karl Berry  <karl@gnu.org>
31360
31361         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
31362
31363 2003-08-20  Bruno Haible  <bruno@clisp.org>
31364
31365         * modules/progname: New file.
31366         * MODULES.html.sh (func_all_modules): Add progname.
31367
31368 2003-08-20  Bruno Haible  <bruno@clisp.org>
31369
31370         * lib/progname.h: New file, from GNU gettext.
31371         * lib/progname.c: New file, from GNU gettext.
31372         * lib/progreloc.c: New file, from GNU gettext.
31373
31374 2003-08-19  Jim Meyering  <jim@meyering.net>
31375
31376         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
31377         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
31378
31379 2003-08-19  Bruno Haible  <bruno@clisp.org>
31380
31381         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
31382         more.
31383
31384 2003-08-19  Bruno Haible  <bruno@clisp.org>
31385
31386         * lib/xstrdup.c: Assume <string.h> exists.
31387
31388 2003-08-18  Paul Eggert  <eggert@twinsun.com>
31389
31390         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
31391         in makefile rules.
31392
31393 2003-08-18  Jim Meyering  <jim@meyering.net>
31394
31395         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
31396         * m4/lib-ld.m4: Likewise.
31397
31398 2003-08-18  Jim Meyering  <jim@meyering.net>
31399
31400         * lib/setenv.h: Indent nested cpp directive.
31401         * lib/vasnprintf.c: Remove trailing blanks.
31402
31403 2003-08-17  Simon Josefsson  <jas@extundo.com>
31404
31405         * modules/xstrndup: New file.
31406         * MODULES.html.sh (func_all_modules): Add xstrndup.
31407
31408 2003-08-17  Simon Josefsson  <jas@extundo.com>
31409
31410         * modules/argp: Fix autoconf macro name. Add more dependencies.
31411
31412 2003-08-17  Simon Josefsson  <jas@extundo.com>
31413
31414         * m4/xstrndup.m4: New file.
31415
31416 2003-08-17  Simon Josefsson  <jas@extundo.com>
31417
31418         * m4/argp.m4: New file.
31419
31420 2003-08-17  Simon Josefsson  <jas@extundo.com>
31421             Bruno Haible  <bruno@clisp.org>
31422
31423         * lib/xstrndup.h: New file.
31424         * lib/xstrndup.c: New file.
31425
31426 2003-08-17  Bruno Haible  <bruno@clisp.org>
31427
31428         * modules/strndup (Files, Include): Add lib/strndup.h.
31429
31430 2003-08-17  Bruno Haible  <bruno@clisp.org>
31431
31432         * modules/euidaccess (Files): Add lib/euidaccess.h.
31433
31434 2003-08-17  Bruno Haible  <bruno@clisp.org>
31435
31436         * lib/strndup.h: New file.
31437
31438 2003-08-17  Bruno Haible  <bruno@clisp.org>
31439
31440         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
31441         like AC_GNU_SOURCE.
31442         * modules/extensions (configure.ac): Comment out the invocation of
31443         gl_USE_SYSTEM_EXTENSIONS.
31444
31445 2003-08-16  Paul Eggert  <eggert@twinsun.com>
31446
31447         Merges from coreutils, etc.
31448         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
31449         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
31450         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
31451         fixing a typo.
31452         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
31453         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
31454
31455 2003-08-16  Paul Eggert  <eggert@twinsun.com>
31456
31457         Document merge from coreutils.
31458         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
31459         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
31460         * modules/utime: Add m4/utimes-null.m4.
31461
31462 2003-08-16  Paul Eggert  <eggert@twinsun.com>
31463
31464         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
31465         space, undoing this 2003-08-12 change:
31466         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
31467
31468 2003-08-16  Paul Eggert  <eggert@twinsun.com>
31469
31470         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
31471         strtoul.c from libc, undoing this 2003-08-12 change:
31472         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
31473
31474 2003-08-16  Jim Meyering  <jim@meyering.net>
31475
31476         Merges from coreutils.
31477         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
31478         prefix.  Adjust cache variables similarly.  Create 500 rather than
31479         just 300 files, to exercise bug on Darwin6.5, too.
31480         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
31481         $missing_dir.
31482         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
31483         AM_SYS_POSIX_TERMIOS.
31484         Reported by mkc@mathdogs.com.
31485         Also change use of $am_cv_sys_posix_termios
31486         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
31487         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
31488         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
31489         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
31490         in /proc/mounts until it finds one with matching device number.  This
31491         is unnecessary when the FILE argument *is* a mount point.  No stat call
31492         is necessary in that case.  So, disable the statvfs-testing code on
31493         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
31494         as RedHat bug# 84846.
31495         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
31496         to 1MB, so as not to render systems with no stack size limit (e.g.,
31497         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
31498         Include <unistd.h>.  On some systems,
31499         it is required for the definition of _SC_PAGESIZE.
31500
31501 2003-08-16  Jim Meyering  <jim@meyering.net>
31502
31503         Merge from coreutils.
31504         * lib/xstrtoimax.c: #else #if -> #elif.
31505         * lib/xstrtoumax.c: Likewise.
31506
31507 2003-08-16  Jim Meyering  <jim@meyering.net>
31508
31509         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
31510         * m4/utimes.m4: Removed.
31511         * m4/utimes-null.m4: Renamed from utimes.m4.
31512
31513         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
31514         to 1MB, so as not to render systems with no stack size limit (e.g.,
31515         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
31516         Include <unistd.h>.  On some systems,
31517         it is required for the definition of _SC_PAGESIZE.
31518
31519 2003-08-16  Jim Meyering  <jim@meyering.net>
31520         and Paul Eggert  <eggert@cs.ucla.edu>
31521
31522         Merges from coreutils, etc.
31523
31524         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
31525         using the latest version from cvs.  This avoids problems with #line
31526         directives using a vendor (Sun) compiler.
31527         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
31528         Don't set GETGROUPS_LIB here; now it's
31529         done via getgroups.m4's wrapper function.
31530         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
31531         rather than just in sh-util/configure.in, so that the
31532         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
31533         same.
31534         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
31535         AC_FUNC_GETLOADAVG where to find getloadavg.c.
31536         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
31537         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
31538         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
31539         Remove code that is now done by the newly-required macros.
31540         Append $(EXEEXT) to DF_PROG.
31541         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
31542         Do not invoke or require the following here,
31543         since prereq.m4 or some gnulib .m4 now does this for us:
31544         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
31545         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
31546         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
31547         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
31548         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
31549         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
31550         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
31551         AC_FUNC_OBSTACK.
31552         Do not replace the following functions, as this is now the job
31553         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
31554         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
31555         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
31556         atexit getpass, strdup, getpagesize.
31557         Replace 'raise'.
31558         Do not check for the following functions, as this is now the job
31559         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
31560         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
31561         setregid.
31562         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
31563         Check for sys/sysctl.h.
31564         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
31565         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
31566         of checking for ssize_t ourselves.
31567
31568         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
31569         Require every macro that gnulib/modules/* suggests for us.
31570         (jm_PREREQ_ADDEXT): New macro.
31571         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
31572         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
31573
31574         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
31575         (gl_PHYSMEM): Use it.
31576         Also check for `table' function.
31577         Check for new headers and functions.
31578         Add check for sys/sysmp.h.
31579         With suggestions from Kaveh Ghazi.
31580         Ignore headers that are present but cannot be compiled.  This
31581         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
31582         C 5.4.
31583
31584 2003-08-15  Paul Eggert  <eggert@twinsun.com>
31585
31586         Document merge from coreutils.
31587         * modules/userspec: Depend on posixver.
31588         * modules/strftime: Depend on tzset.
31589
31590 2003-08-15  Paul Eggert  <eggert@twinsun.com>
31591
31592         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
31593         rather than tab, after '#' in shell-script copyright notices.
31594         Suggested by Bruno Haible.
31595
31596 2003-08-15  Paul Eggert  <eggert@twinsun.com>
31597
31598         * config/srclist-update: Use three spaces, rather than tab, after '#'
31599         in shell-script copyright notices.  Suggested by Bruno Haible.
31600         Remove unnecessary parenthesization in regular expression.
31601
31602 2003-08-15  Jim Meyering  <jim@meyering.net>
31603
31604         Merge from coreutils.
31605         * lib/xgethostname.c: Include <stdlib.h>.
31606         (xghostname): Don't exit for anything other than memory-related
31607         failure; just return NULL.
31608         * lib/userspec.c: Include "posixver.h".
31609         (parse_user_spec): Accept `.' as a separator only
31610         in pre-POSIX-200112 mode.
31611         * lib/strtoimax.c: Use #elif rather than #else #if.
31612         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
31613         Remove function, now that we can rely on a working tzset function.
31614         [!_LIBC]: Ensure that the required autoconf test has been run.
31615         [!defined _NL_CURRENT && HAVE_STRFTIME]:
31616         Use underlying_strftime for %r.
31617         * lib/sha.c: Merge in some clean-up and optimization changes from
31618         glibc.
31619         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
31620         Ensure that it is a multiple of 64.
31621         Rearrange loop exit tests so as to avoid performing an
31622         additional fread after encountering an error or EOF.
31623         * lib/realloc.c: Update copyright date.
31624
31625 2003-08-15  Jim Meyering  <jim@meyering.net>
31626         and Paul Eggert  <eggert@twinsun.com>
31627
31628         Merge from coreutils.
31629         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
31630         member but strut utmpx does not.  Needed for AIX 4.3.3.
31631         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
31632
31633 2003-08-15  Jim Meyering  <jim@meyering.net>
31634         and Paul Eggert  <eggert@cs.ucla.edu>
31635
31636         Merges from coreutils, etc.
31637         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
31638         Require gl_FUNC_TZSET_CLOBBER.
31639         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
31640         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
31641         members.
31642
31643 2003-08-14  Paul Eggert  <eggert@twinsun.com>
31644
31645         Help the merge from coreutils.
31646         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
31647         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
31648         * m4/tzset.m4: Use it too.
31649
31650 2003-08-14  Paul Eggert  <eggert@twinsun.com>
31651
31652         * modules/tzset: New file.
31653
31654 2003-08-14  Jim Meyering  <jim@meyering.net>
31655
31656         Merges from coreutils.
31657         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
31658         variable names, rather than @FNMATCH_H@.
31659         * modules/alloca: Likewise for $(ALLOCA_H).
31660
31661         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
31662         the three copies of the literal target, `fnmatch.h'.
31663         * modules/alloca (alloca.h): Likewise.
31664
31665 2003-08-14  Jim Meyering  <jim@meyering.net>
31666
31667         Merge from coreutils.
31668         * m4/tzset.m4: New file.
31669         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
31670         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
31671         otherwise, AIX 5.1 systems would end up using the latter.
31672         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
31673         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
31674         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
31675         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
31676
31677 2003-08-14  Jim Meyering  <jim@meyering.net>
31678
31679         Merge from coreutils.
31680         * lib/obstack.h: Whitespace changes.
31681         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
31682         and xcalloc return values.
31683         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
31684         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
31685         hang on OSF/1 5.1 for DIR on both local and remote file systems.
31686         Reported by (and fix confirmed by) Nelson H. F. Beebe.
31687         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
31688         error from mntctl.
31689         Use mntctl's return value to drive the entry-processing loop, since
31690         we can't rely on the value of the vmt_length member in the last
31691         entry.  On some systems doing so could result in exhausting
31692         virtual memory.  Based in part on a patch from Mike Jetzer.
31693
31694 2003-08-14  Jim Meyering  <jim@meyering.net>
31695         and Paul Eggert  <eggert@twinsun.com>
31696
31697         Merges from coreutils, plus other fixes.
31698         * lib/physmem.c: Merge in portability changes from gcc/libiberty
31699         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
31700         for credits and details.  Thanks to Kaveh Ghazi for helping
31701         to keep these files in sync.
31702         (ARRAY_SIZE): Define it.
31703         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
31704         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
31705         (memcasecmp): Don't assume size_t fits in unsigned int.
31706         Remove casts and duplicate code.
31707         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
31708         (memcpy): Remove definition.
31709         Merge in some clean-up and optimization changes from glibc.
31710         [BLOCKSIZE]: Move definition to top of file.
31711         Ensure that it is a multiple of 64.
31712         Rearrange loop exit tests so as to avoid performing an
31713         additional fread after encountering an error or EOF.
31714         * lib/md5.h (md5_uintptr): Define.
31715         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
31716         return to the initial working directory.  Preserve errno
31717         for caller.
31718         * lib/idcache.c: Include "xalloc.h".
31719         (xmalloc, xrealloc): Remove decls.
31720         (getuser): Remove casts no longer required in C89.
31721         * lib/human.c: Include stdio.h, for sprintf.
31722         * lib/group-member.c: Include "xalloc.h".
31723         (xmalloc, xrealloc): Remove decls.
31724         (get_group_info): Remove casts no longer required in C89.
31725         * lib/getusershell.c (readname): Remove casts no longer required in
31726         C89.
31727         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
31728         * lib/getline.c: Whitespace fix, from coreutils.
31729
31730 2003-08-13  Paul Eggert  <eggert@twinsun.com>
31731
31732         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
31733         Check for isascii.
31734
31735         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
31736         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
31737         Undo previous (whitespace-only) change.
31738
31739 2003-08-13  Paul Eggert  <eggert@twinsun.com>
31740
31741         * lib/exclude.c: Include <ctype.h>
31742         (IN_CTYPE_DOMAIN): New macro.
31743         (is_space): New fn.
31744         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
31745         and empty lines.
31746
31747         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
31748         Undo previous (whitespace-only) change.
31749
31750 2003-08-13  Paul Eggert  <eggert@twinsun.com>
31751
31752         * config/srclist-update: Change update back to the old behavior,
31753         leaving whitespace alone.  Use one 'sed' command rather than a
31754         pipeline.
31755         (fixlicense): Now a variable, not a function.
31756         (remove_trailing_blanks): Remove.
31757         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
31758         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
31759         Undo previous (whitespace-only) change.
31760
31761 2003-08-12  Paul Eggert  <eggert@twinsun.com>
31762
31763         Merge from coreutils.
31764         * modules/euidaccess: Add lib_SOURCES, include for new
31765         file euidaccess.h
31766
31767 2003-08-12  Paul Eggert  <eggert@twinsun.com>
31768
31769         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
31770         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
31771         Normalize leading white space and remove trailing white space.
31772
31773         Merge from coreutils
31774         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
31775
31776         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
31777         0.12.1.  These files are now being upgraded automatically by
31778         ../config/srclist-update.
31779
31780 2003-08-12  Paul Eggert  <eggert@twinsun.com>
31781
31782         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
31783         Normalize leading white space and remove trailing white space.
31784         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
31785         notice, as per ../config/srclist-update.
31786
31787         Merge from coreutils.
31788         * lib/euidaccess.h: New file.
31789         * lib/euidaccess.c: Include it.
31790         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
31791         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
31792         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
31793
31794 2003-08-12  Paul Eggert  <eggert@twinsun.com>
31795
31796         * config/srclist-update: Add copyright notice.
31797         (remove_id_lines, remove_trailing_blanks): New constants.
31798         (fixfile): Use them to normalize spacing a bit in copied files.
31799         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
31800         Normalize leading white space and remove trailing white space.
31801
31802         * config/texinfo.tex: Sync with texinfo.
31803
31804         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
31805         strtoul.c from libc, to merge coreutils whitespace changes.
31806
31807         * config/srclist.txt: Get the following m4 files from gettext:
31808         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
31809         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
31810         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
31811         wint_t.m4.
31812
31813 2003-08-12  Karl Berry  <karl@gnu.org>
31814
31815         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
31816         been made.
31817
31818 2003-08-11  Paul Eggert  <eggert@twinsun.com>
31819
31820         * modules/gnu-source, m4/gnu-source.m4:
31821         Remove; we're assuming Autoconf 2.54 or later now.
31822         Suggested by Bruno Haible.
31823         * MODULES.html.sh (func_all_modules): Remove gnu-source.
31824
31825 2003-08-11  Bruno Haible  <bruno@clisp.org>
31826
31827         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
31828
31829 2003-08-11  Bruno Haible  <bruno@clisp.org>
31830
31831         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
31832         (vasnprintf): Use it instead of wcslen.
31833
31834 2003-08-11  Bruno Haible  <bruno@clisp.org>
31835
31836         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
31837         value to ensure that _Bool promotes to int. Use #define for _Bool when
31838         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
31839
31840 2003-08-10  Karl Berry  <karl@gnu.org>
31841
31842         * lib/regex.h: update from libc (whitespace fix).
31843
31844 2003-08-09  Paul Eggert  <eggert@twinsun.com>
31845
31846         Merge some files from coreutils.  These changes were
31847         originally made by Jim Meyering.
31848         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
31849         many older Unixes require this.
31850         * lib/alloca.c (alloca): Remove cast to argument of free;
31851         no longer needed in C89.
31852         * lib/alloca_.h, regex.h: Fix white space to match
31853         what GNU indent does.
31854
31855 2003-08-09  Paul Eggert  <eggert@twinsun.com>
31856
31857         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
31858         apparently Emacs's Unicode mode got confused before my 2003-08-05
31859         checkin.
31860
31861 2003-08-08  Paul Eggert  <eggert@twinsun.com>
31862
31863         * m4/extensions.m4: New file.
31864         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
31865         Require gl_USE_SYSTEM_EXTENSIONS.
31866         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
31867         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
31868
31869 2003-08-08  Paul Eggert  <eggert@twinsun.com>
31870
31871         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
31872         * modules/extensions, modules/gnu-source: New files.
31873         * modules/timespec, modules/unlocked-io: Depend on extensions.
31874
31875 2003-08-07  Paul Eggert  <eggert@twinsun.com>
31876
31877         * modules/restrict: New file.
31878         * MODULES.html.sh (func_all_modules): Add restrict.
31879         * modules/regex: Depend on restrict.
31880
31881 2003-08-07  Paul Eggert  <eggert@twinsun.com>
31882
31883         * m4/restrict.m4: New file.
31884         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
31885
31886 2003-08-07  Bruno Haible  <bruno@clisp.org>
31887
31888         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
31889         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
31890
31891 2003-08-07  Bruno Haible  <bruno@clisp.org>
31892
31893         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
31894         makes the module 'getndelim2' compatible with the module 'getline'.
31895
31896 2003-08-05  Paul Eggert  <eggert@twinsun.com>
31897
31898         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
31899         byte with "\201" to avoid glitches when editing that source file
31900         with multi-gnome-terminal.
31901
31902 2003-08-05  Paul Eggert  <eggert@twinsun.com>
31903
31904         * lib/bumpalloc.h: Remove.
31905
31906 2003-08-05  Paul Eggert  <eggert@twinsun.com>
31907
31908         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
31909         * modules/bumpalloc: Remove.
31910
31911 2003-08-04  Paul Eggert  <eggert@twinsun.com>
31912
31913         * lib/getloadavg.c: Change copyright notice and spacing to conform to
31914         GNU coding style.
31915
31916         Merge from coreutils.
31917         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
31918         1. From glibc.
31919         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
31920         from Karl Berry, implemented by Jim Meyering.
31921         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
31922         from Dmitry V. Levin.
31923         Remove anachronistic cast of xrealloc.
31924         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
31925         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
31926         type. Otherwise, it wouldn't compile with at least /bin/cc on
31927         ymp-cray-unicos9.0.2.X.
31928         Combine two mostly-identical uses of alloca into one.
31929         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
31930
31931 2003-08-04  Dave Love  <d.love@dl.ac.uk>
31932
31933         [From Emacs.]
31934
31935         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
31936         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
31937         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
31938         obsolete NLIST_NAME_UNION.
31939         [__GNU__]: Undef BSD and FSCALE.
31940         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
31941
31942 2003-08-03  Paul Eggert  <eggert@twinsun.com>
31943
31944         * lib/stdbool_.h (_Bool): Make it signed char, instead of
31945         an enum type, so that it's guaranteed to promote to int.  See:
31946         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
31947
31948 2003-08-03  Karl Berry  <karl@gnu.org>
31949
31950         * config/depcomp: update from automake.
31951
31952 2003-07-31  Paul Eggert  <eggert@twinsun.com>
31953
31954         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
31955         (strerror): Don't assume that a printable int fits in 14 bytes.
31956
31957 2003-07-31  Bruno Haible  <bruno@clisp.org>
31958
31959         * modules/getpass-gnu: New file.
31960         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
31961
31962 2003-07-31  Bruno Haible  <bruno@clisp.org>
31963
31964         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
31965
31966 2003-07-24  Karl Berry  <karl@gnu.org>
31967
31968         * config/missing: update from automake.
31969
31970 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
31971             Bruno Haible  <bruno@clisp.org>
31972
31973         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
31974         * lib/getline.c (getline, getdelim): Likewise.
31975         Remove _GNU_SOURCE define; now it's defined in config.h through
31976         m4/getline.m4.
31977
31978 2003-07-23  Karl Berry  <karl@gnu.org>
31979
31980         * config/config.sub: update from prep.
31981
31982 2003-07-22  Paul Eggert  <eggert@twinsun.com>
31983
31984         * modules/xalloc (Depends-on): Add exitfail.
31985         * modules/xmemcoll: Likewise.
31986
31987 2003-07-22  Paul Eggert  <eggert@twinsun.com>
31988
31989         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
31990         over-parenthesization in macros.
31991
31992         Sync with coreutils.
31993
31994         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
31995         required by C99.
31996
31997         Use `exit_failure' for xalloc and xmemcoll instead of their own
31998         private exit-failure variables.
31999         * lib/xalloc.h (xalloc_exit_failure): Remove.
32000         * lib/xmalloc.c: Likewise.  Include exitfail.h.
32001         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
32002         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
32003         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
32004         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
32005
32006 2003-07-20  Jim Meyering  <jim@meyering.net>
32007
32008         * modules/closeout (Depends-on): Add exitfail.
32009         Suggestion from Bruno Haible.
32010
32011 2003-07-19  Karl Berry  <karl@gnu.org>
32012
32013         * config/config.sub: update from prep.
32014
32015 2003-07-18  Paul Eggert  <eggert@twinsun.com>
32016
32017         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
32018         Remove.
32019         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
32020         to test that it can stand by itself.  Include "exitfail.h".
32021         Clients should set exit_failure instead.
32022         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
32023
32024 2003-07-18  Bruno Haible  <bruno@clisp.org>
32025
32026         * modules/getndelim2: New file.
32027         * modules/getline: Share files with module getndelim2.
32028         * modules/getnline: Depend on getndelim2 instead of sharing files with
32029         it. Add getnline.c to lib_SOURCES.
32030         * MODULES.html.sh (func_all_modules): Add getndelim2.
32031
32032 2003-07-18  Bruno Haible  <bruno@clisp.org>
32033
32034         * m4/getndelim2.m4: New file.
32035         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
32036         invoke gl_PREREQ_GETNDELIM2.
32037         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
32038         gl_PREREQ_GETNDELIM2.
32039         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
32040         gl_GETNDELIM2.
32041
32042 2003-07-18  Bruno Haible  <bruno@clisp.org>
32043
32044         * lib/getndelim2.h: New file.
32045         * lib/getndelim2.c: Make into a module of its own. Include config.h,
32046         getndelim2.h.
32047         (getndelim2): Make non-static. Change return type to ssize_t.
32048         * lib/getline.h: Change argument names.
32049         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
32050         * lib/getnline.c: Include getndelim2.h.
32051
32052 2003-07-18  Andreas Schwab  <schwab@suse.de>
32053
32054         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
32055
32056 2003-07-17  Karl Berry  <karl@gnu.org>
32057
32058         * config/config.sub: update from prep.
32059
32060 2003-07-17  Bruno Haible  <bruno@clisp.org>
32061
32062         * modules/getnline: New file.
32063         * modules/getline: Add lib/getndelim2.c to source file list.
32064         * MODULES.html.sh (func_all_modules): Add getnline.
32065
32066 2003-07-17  Bruno Haible  <bruno@clisp.org>
32067
32068         * m4/getnline.m4: New file.
32069
32070 2003-07-17  Bruno Haible  <bruno@clisp.org>
32071
32072         * m4/Makefile.am.in: Remove file.
32073         * m4/Makefile.am: Remove file.
32074         * m4/Makefile.in: Remove file.
32075
32076 2003-07-17  Bruno Haible  <bruno@clisp.org>
32077
32078         * lib/getnline.h: New file.
32079         * lib/getnline.c: New file.
32080         * lib/getndelim2.c: New file, extracted from getline.c.
32081         (getndelim2): Renamed from getdelim2, with added nmax argument.
32082         * lib/getline.c: Include getndelim2.c.
32083         (getdelim2): Moved out to getndelim2.c.
32084         (getline, getdelim): Update.
32085
32086 2003-07-17  Bruno Haible  <bruno@clisp.org>
32087
32088         * lib/Makefile.am: Remove file.
32089         * lib/Makefile.in: Remove file.
32090
32091 2003-07-17  Bruno Haible  <bruno@clisp.org>
32092
32093         * configure.in: Remove file.
32094         * Makefile.in: Remove file.
32095
32096 2003-07-17  Bruno Haible  <bruno@clisp.org>
32097
32098         * MODULES.html.sh: Put the </BODY> right before </HTML>.
32099
32100 2003-07-16  Karl Berry  <karl@gnu.org>
32101
32102         * config/srclist-update: was running fixlicense twice, which caused
32103                 texinfo.tex to be nullified for some reason.  Simplify,
32104                 $gplsrc is no longer needed as far as I can see?
32105
32106 2003-07-16  Jim Meyering  <jim@meyering.net>
32107
32108         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
32109
32110 2003-07-15  Paul Eggert  <eggert@twinsun.com>
32111
32112         * config/srclist.txt: Get the following files from gettext-runtime/intl
32113         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
32114         ref-del.sin.  From Bruno Haible.
32115         * config/srclist-update (fixfile): Change grep pattern again, since the
32116         previous fix didn't work (there was another trailing $).  Use
32117         '[$]' to escape the $s.
32118
32119 2003-07-15  Karl Berry  <karl@gnu.org>
32120
32121         * lib/vasnprintf.c: update from gettext.
32122
32123 2003-07-15  Karl Berry  <karl@gnu.org>
32124
32125         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
32126         gets expanded when surrounded by '$'.
32127
32128 2003-07-15  Jim Meyering  <jim@meyering.net>
32129
32130         * modules/save-cwd: Don't depend on error.  From Derek Price.
32131
32132 2003-07-15  Jim Meyering  <jim@meyering.net>
32133
32134         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
32135
32136 2003-07-14  Simon Josefsson  <jas@extundo.com>
32137
32138         * modules/mempcpy: New file.
32139         * MODULES.html.sh (func_all_modules): Add mempcpy.
32140
32141 2003-07-14  Simon Josefsson  <jas@extundo.com>
32142
32143         * m4/mempcpy.m4: New file.
32144
32145 2003-07-14  Simon Josefsson  <jas@extundo.com>
32146
32147         * lib/mempcpy.h: New file.
32148         * lib/mempcpy.c: New file.
32149
32150 2003-07-14  Paul Eggert  <eggert@twinsun.com>
32151
32152         * modules/getdate, modules/posixtm: Depend on mktime.
32153
32154 2003-07-14  Paul Eggert  <eggert@twinsun.com>
32155
32156         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
32157         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
32158         unicodeio.c, unicodeio.h, unlocked-io.h:
32159         Switch from LGPL to GPL.
32160
32161 2003-07-14  Paul Eggert  <eggert@twinsun.com>
32162
32163         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
32164         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
32165         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
32166         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
32167         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
32168         updated automatically by ../config/srclist-update.  This changes
32169         their license from LPGL to GPL.
32170
32171 2003-07-14  Paul Eggert  <eggert@twinsun.com>
32172
32173         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
32174         assumed to refer to the root of the most recent stable gettext version.
32175         * config/srclistvars.sh: Add defaults for eggert.
32176         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
32177         Match "This program" as well as "The program".  This is needed
32178         for gettext.
32179
32180 2003-07-14  Jim Meyering  <jim@meyering.net>
32181
32182         Don't emit diagnostics.  Let callers do that.
32183         * lib/save-cwd.c: Don't include "error.h".
32184         (save_cwd): Don't call error.  Ensure that errno is valid
32185         when returning nonzero.
32186
32187         * lib/save-cwd.h (restore_cwd): Update prototype.
32188         * lib/save-cwd.c (restore_cwd): Remove two parameters.
32189         Simplify.  Don't call error upon failure.  Let callers do that.
32190         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
32191         when auditing is enabled.  But don't bother updating the #if.
32192
32193 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
32194
32195         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
32196         it breaks C++ compilation.
32197         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
32198
32199 2003-07-10  Simon Josefsson  <jas@extundo.com>
32200
32201         * modules/strchrnul (Makefile.am): Add strchrnul.h.
32202
32203 2003-07-10  Jim Meyering  <jim@meyering.net>
32204
32205         * m4/clock_time.m4: Remove trailing blank.
32206         * m4/intmax_t.m4: Likewise.
32207
32208 2003-07-10  Jim Meyering  <jim@meyering.net>
32209
32210         * lib/vasnprintf.c: Remove trailing blanks.
32211         Make cpp indentation consistent.
32212
32213 2003-07-09  Paul Eggert  <eggert@twinsun.com>
32214
32215         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
32216         posixver.c, strftime.c, strnlen.c, strverscmp.c:
32217         Switch from LGPL to GPL.
32218
32219 2003-07-09  Paul Eggert  <eggert@twinsun.com>
32220
32221         * config/srclist.txt: Sort sublists.  Add
32222         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
32223         that differ from gnulib for one reason or another; we'd like this list
32224         to be smaller but for now let's document what we have.
32225
32226 2003-07-08  Paul Eggert  <eggert@twinsun.com>
32227
32228         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
32229         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
32230         and sweeter "eval x=$x".
32231         * config/srclist.txt: Get lib/argp* from glibc.
32232
32233 2003-07-07  Paul Eggert  <eggert@twinsun.com>
32234
32235         * lib/mktime.c: Fix some boundary cases and remove need for floating
32236         point.
32237
32238         Issue a compile-time diagnostic if time_t is floating point, or if
32239         two's complement arithmetic is not in effect, or if arithmetic
32240         right shift does not propagate the sign.  These assumptions were
32241         all in the original code but they weren't checked.
32242
32243         (TIME_T_MIDPOINT, verify): New macros.
32244         (__isleap): Remove; it has integer overflow problems.
32245         (leapyear): New function, without those problems.
32246         (ydhms_tm_diff): Remove; splitting into two parts.
32247         (ydhms_diff): New function, containing the arithmetic part of
32248         the old ydhms_tm_diff function.  Issue a compile-time
32249         diagnostic if we are not using C99 integer division.
32250         Avoid casts when possible.
32251         (guess_time_tm): New function, containing the checking part of
32252         the old ydhms_tm_diff function.  Return the new value, rather than
32253         the difference between it and the old.  Accept a new argument T
32254         so that *T specifies the old value.  Check for overflow in the result.
32255
32256         (__mktime_internal): Use a time_t offset, not a long int offset.
32257         This undoes the 2003-06-04 change, which is no longer needed now
32258         that we have better overflow checking.
32259         (localtime_offset): Likewise.
32260
32261         (__mktime_internal): Avoid harmful overflow on hosts where time_t
32262         and long are 64-bit but int is only 32-bit.
32263         (ydhms_diff): Use long int to store year1 and yday1.
32264         Issue a compile-time diagnostic if long int is not wide enough.
32265
32266         (__mktime_internal): Use long int to store adjusted year and yday.
32267         Use plain C rather than preprocessor commands, if that doesn't
32268         affect efficiency.
32269         Check for overflow (and try to repair) after each probe
32270         rather than checking only at the very end.  This avoids some bugs
32271         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
32272         does not equal GMT offset at maximum time).
32273         Use integer to check for overflow rather than floating point; this
32274         is more portable to non-IEEE hosts, and is a tad faster.
32275         When we detect that we are oscillating between two values,
32276         don't check whether tm_isdst has the requested value, since
32277         we already know the answer.  When tm_isdst has the wrong value,
32278         use a different heuristic to find the right one, based on the
32279         extreme values actually observed in practice in tz2003a,
32280         rather than the (overly optimistic) "previous 3 calendar quarters".
32281
32282         (not_equal_tm, print_tm, check_result): Use "const T" rather than
32283         "T const" to accommodate glibc style.
32284         (check_result): Use less-confusing report format.  "long" -> "long int.
32285         (main): Likewise.
32286         Don't loop if the iteration overflows time_t.
32287         Allow a negative step in the iteration.
32288
32289 2003-07-06  Karl Berry  <karl@gnu.org>
32290
32291         * config/depcomp: update from automake.
32292         * config/config.sub: update from prep.
32293
32294 2003-07-03  Karl Berry  <karl@gnu.org>
32295
32296         * config/config.guess: update from prep.
32297
32298 2003-07-01  Paul Eggert  <eggert@twinsun.com>
32299
32300         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
32301         xreadlink.c now includes it unconditionally.
32302
32303 2003-07-01  Paul Eggert  <eggert@twinsun.com>
32304
32305         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
32306         having it depend on HAVE_SYS_TYPES_H.
32307
32308 2003-07-01  Bruno Haible  <bruno@clisp.org>
32309
32310         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
32311         <sys/types.h> should be sufficient.
32312         Reported by Paul Eggert.
32313
32314 2003-06-26  Karl Berry  <karl@gnu.org>
32315
32316         * config/depcomp: update from automake.
32317
32318 2003-06-26  Bruno Haible  <bruno@clisp.org>
32319
32320         * modules/human: Depend on module stdbool.
32321
32322 2003-06-25  Bruno Haible  <bruno@clisp.org>
32323
32324         * modules/readlink: New file.
32325         * modules/xreadlink: Depend on it.
32326         * MODULES.html.sh (func_all_modules): Add readlink.
32327
32328 2003-06-25  Bruno Haible  <bruno@clisp.org>
32329
32330         * m4/readlink.m4: New file.
32331
32332 2003-06-25  Bruno Haible  <bruno@clisp.org>
32333
32334         * lib/readlink.c: New file.
32335
32336 2003-06-22  Karl Berry  <karl@gnu.org>
32337
32338         * config/srclist.txt: update mkinstalldirs from automake.
32339         * config/mkinstalldirs: update.
32340
32341 2003-06-22  Bruno Haible  <bruno@clisp.org>
32342
32343         Portability to mingw32.
32344         * m4/ssize_t.m4: New file, from GNU gettext.
32345         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
32346         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
32347
32348 2003-06-22  Bruno Haible  <bruno@clisp.org>
32349
32350         * modules/safe-read: Add m4/ssize_t.m4.
32351         * modules/xreadlink: Add m4/ssize_t.m4.
32352
32353 2003-06-20  Bruno Haible  <bruno@clisp.org>
32354
32355         Assume C89, so PARAMS isn't needed.
32356         * lib/unicodeio.h (PARAMS): Remove.
32357         * lib/unicodeio.c: Don't use PARAMS.
32358
32359 2003-06-18  Karl Berry  <karl@gnu.org>
32360
32361         * config/config.{guess,sub}: update from prep.
32362
32363 2003-06-18  Jim Meyering  <jim@meyering.net>
32364
32365         Merge changes from coreutils.
32366         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
32367         Remove explicit declarations of xmalloc and realloc.
32368         Include xalloc.h.
32369         (read_utmp): Remove anachronistic cast of xmalloc.
32370
32371 2003-06-17  Paul Eggert  <eggert@twinsun.com>
32372
32373         Assume C89, so PARAMS isn't needed.
32374         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
32375         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
32376         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
32377         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
32378         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
32379         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
32380         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
32381         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
32382         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
32383         lib/xstrtod.h, lib/xstrtol.h: Likewise.
32384         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
32385         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
32386         no longer needed. Anyway, config.h should always be included before any
32387         other file.
32388
32389 2003-06-11  Simon Josefsson  <jas@extundo.com>
32390
32391         * modules/sysexits: New file.
32392         * MODULES.html.sh (func_all_modules): Add sysexits.
32393
32394 2003-06-11  Simon Josefsson  <jas@extundo.com>
32395
32396         * lib/sysexit_.h: New file.
32397
32398 2003-06-11  Derek Price  <derek@ximbiot.com>
32399
32400         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
32401         necessary.
32402
32403 2003-06-11  Bruno Haible  <bruno@clisp.org>
32404
32405         * m4/sysexits.m4: New file.
32406
32407 2003-06-10  Simon Josefsson  <jas@extundo.com>
32408
32409         * lib/argp.h: New file, from glibc.
32410         * lib/argp-ba.c: New file, from glibc.
32411         * lib/argp-eexst.c: New file, from glibc.
32412         * lib/argp-fmtstream.c: New file, from glibc.
32413         * lib/argp-fmtstream.h: New file, from glibc.
32414         * lib/argp-fs-xinl.c: New file, from glibc.
32415         * lib/argp-help.c: New file, from glibc.
32416         * lib/argp-namefrob.h: New file, from glibc.
32417         * lib/argp-parse.c: New file, from glibc.
32418         * lib/argp-pv.c: New file, from glibc.
32419         * lib/argp-pvh.c: New file, from glibc.
32420         * lib/argp-xinl.c: New file, from glibc.
32421
32422 2003-06-10  Simon Josefsson  <jas@extundo.com>
32423
32424         * modules/strchrnul: New file.
32425
32426 2003-06-10  Simon Josefsson  <jas@extundo.com>
32427
32428         * modules/argp: New file.
32429
32430 2003-06-10  Simon Josefsson  <jas@extundo.com>
32431
32432         * m4/strchrnul.m4: New file.
32433
32434 2003-06-10  Simon Josefsson  <jas@extundo.com>
32435
32436         * lib/strchrnul.h: New file.
32437         * lib/strchrnul.c: New file.
32438
32439 2003-06-10  Bruno Haible  <bruno@clisp.org>
32440
32441         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
32442
32443 2003-06-07  Karl Berry  <karl@gnu.org>
32444
32445         * config/config.{guess,sub}: update from prep.
32446
32447 2003-06-07  Jim Meyering  <jim@meyering.net>
32448
32449         * modules/strtod: Use $(...) notation, not @...@ for
32450         AC_REPLACE'd variables.
32451         * modules/localcharset: Likewise.
32452
32453 2003-06-07  Jim Meyering  <jim@meyering.net>
32454
32455         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
32456         in place of my name in the copyright comment.
32457         Remove definition and uses of __P.
32458
32459         From coreutils.
32460         * lib/stat.c: Don't declare xmalloc explicitly.
32461         Instead, include "xalloc.h".
32462         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
32463         xrealloc, and xcalloc return values.
32464         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
32465         Improve comment.
32466         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
32467
32468 2003-06-07  Bruno Haible  <bruno@clisp.org>
32469
32470         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
32471         avoid AC_CONFIG_LINKS.
32472         * modules/fnmatch (Makefile.am): Use explicit creation rule for
32473         fnmatch.h, to avoid AC_CONFIG_LINKS.
32474         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
32475
32476 2003-06-07  Bruno Haible  <bruno@clisp.org>
32477
32478         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
32479         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
32480         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
32481         directory.
32482         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
32483         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
32484         directory.
32485
32486 2003-06-06  Jim Meyering  <jim@meyering.net>
32487
32488         Merge from coreutils.
32489         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
32490         Consolidate declarations and initializations of *_base* locals.
32491
32492         Merge from coreutils.
32493         This avoids a core dump on systems without GNU putenv,
32494         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
32495         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
32496         (unsetenv): New static function, from GNU libc.
32497         (rpl_putenv): Use it.
32498
32499         * lib/modechange.c: Remove trailing blanks.
32500
32501         Merge from coreutils.
32502         * lib/fsusage.c: Remove declaration of statfs.
32503         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
32504
32505         * lib/posixtm.c: Include <stdbool.h> unconditionally.
32506
32507 2003-06-06  Jim Meyering  <jim@meyering.net>
32508
32509         * lib/stdbool_.h: Renamed from stdbool.h.in.
32510
32511 2003-06-06  Jim Meyering  <jim@meyering.net>
32512             Bruno Haible  <bruno@clisp.org>
32513
32514         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
32515         Adjust Makefile.am snippet not to redirect directly to target.
32516         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
32517
32518 2003-06-05  Paul Eggert  <eggert@twinsun.com>
32519
32520         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
32521         mismatch, look in future quarters as well as past.  This fixes a
32522         bug when processing fall-backwards gaps immediately after a long
32523         period of daylight-saving time.
32524
32525         * lib/mktime.c: Assume freestanding C89 or better.
32526         (HAVE_LIMITS_H): Remove.  Assume it's 1.
32527         (__P): Remove; not used.
32528         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
32529         (mktime, not_equal_tm, print_tm, check_result,
32530         main): Use prototypes.  Use const * where appropriate.
32531         (main): Fix typo in testing code that uncovered by above changes.
32532         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
32533
32534 2003-06-04  Paul Eggert  <eggert@twinsun.com>
32535
32536         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
32537         locale.h, localeconv.  This merges changes from coreutils.
32538
32539         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
32540         It can be removed after the next Autoconf is released.
32541         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
32542         needed.
32543
32544 2003-06-04  Paul Eggert  <eggert@twinsun.com>
32545
32546         * lib/mktime.c: Fix Debian bug 177940
32547         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
32548         (localtime_offset): Now long int, not time_t, because we want it
32549         to be guaranteed to be signed.  All uses changed.
32550         (__mktime_internal): If overflow would occur when adding offset,
32551         don't add it.
32552
32553         Merge 'human' changes from coreutils.  Rewrite to support
32554         locale-specific notations like thousands separators.
32555         * lib/human.c: Simplify authorship notice.
32556         Include human.h immediately after config.h.
32557         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
32558         <limits.h>: Do not include, since human.h does.
32559         (SIZE_MAX, UINTMAX_MAX): New macros.
32560         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
32561         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
32562         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
32563         (power_letter): Renamed from suffixes.
32564         (generate_suffix_backwards): Remove.
32565         (adjust_value): Now takes int style (because of human.h changes)
32566         and long double value (for greater precision on some platforms).
32567         (group_number): New function.
32568         (human_readable): Use it.  Use integer options, not enum.
32569         Put the options before the sizes in the arg list.
32570         Support all the new options.
32571         The old human_readable function has been removed;
32572         use inttostr.h instead.
32573         (human_readable, default_block_size, humblock):
32574         Use uintmax_t, not int, for block sizes.
32575         (human_readable_inexact, block_size_types): Remove.
32576         (block_size_opts): New constant.
32577         (human_options): Renamed from human_block_size, with new signature
32578         that allows block sizes up to UINTMAX_MAX.  All callers changed.
32579         * lib/human.h: Add copyright and authorship notice.
32580         Include <limits.h> and <stdbool.h> unconditionally.
32581         (PARAMS): Remove.  All uses removed.
32582         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
32583         (enum human_inexact_style): Remove tag; now a nameless enum.
32584         (human_floor, human_ceiling, human_round_to_even): Now have
32585         values 2, 0, 1 rather than -1, 1, 0.
32586         (human_group_digits, human_suppress_point_zero, human_autoscale,
32587         human_base_1024, human_SI, human_B): New constants.
32588         (human_readable_inexact, human_block_size): Remove.
32589         (human_readable): Size args are now uintmax_t, not int.
32590         (human_options): New decl.
32591
32592         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
32593         unnecessary now that we assume C89 or better.  This change
32594         imported from coreutils.
32595
32596         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
32597         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
32598         in the 2003-05-30 sync from glibc.
32599
32600         .h files should stand alone, but we shouldn't include <sys/types.h>
32601         if we can get away with just <stddef.h>.
32602
32603         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
32604         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
32605         rather than <sys/types.h>, as we merely need size_t.
32606         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
32607         to get size_t.
32608         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
32609         Include <stdio.h>, to get FILE.
32610         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
32611         memcasecmp.h has included <stddef.h> and all we need is size_t.
32612         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
32613         our interface, instead of including <sys/types.h>
32614
32615 2003-06-04  Paul Eggert  <eggert@twinsun.com>
32616
32617         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
32618         now, as glibc mktime is buggy on non-glibc systems.
32619
32620 2003-06-03  Karl Berry  <karl@gnu.org>
32621
32622         * config/config.sub: update from prep.
32623
32624 2003-06-02  Paul Eggert  <eggert@twinsun.com>
32625
32626         [from coreutils]
32627         Fix some minor time-related bugs with POSIX time arguments.
32628         Some valid time stamps were being rejected (notably -1, and
32629         time stamps before 1900 on 64-bit hosts).  And some invalid
32630         time stamps were being accepted, e.g. September 31.
32631
32632         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
32633         that we can return (time_t) -1 successfully.
32634         * lib/posixtm.c: Likewise.
32635         [HAVE_STDBOOL_H]: Include <stdbool.h>.
32636         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
32637         (t): Remove static var.
32638         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
32639         of static var.  All uses changed.
32640         (year): Do not reject years before 1900; they can occur with
32641         64-bit time_t.
32642         (posix_time_parse): Do not check for out-of-range components;
32643         that is now the caller's responsibility, since our checks were
32644         only approximations.
32645         (posixtime): Use mktime to check for out-of-range components,
32646         since it knows them exactly.
32647         If mktime returns (time_t) -1, check whether an error actually occurred
32648         by invoking localtime on -1.
32649         (main) [TEST_POSIXTIME]: Check for input data errors, and report
32650         posixtime failures better.
32651         Improve the test data (in comments only).
32652
32653 2003-06-02  Karl Berry  <karl@gnu.org>
32654
32655         * config/mkinstalldirs (version): new variable.
32656         (--version): new option.
32657         (usage): improve message.
32658
32659 2003-05-30  Karl Berry  <karl@gnu.org>
32660
32661         * lib/mktime.c: update from libc.
32662
32663 2003-05-30  Bruno Haible  <bruno@clisp.org>
32664
32665         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
32666         * config/config.rpath: Upgrade to gettext-0.12.1.
32667
32668 2003-05-30  Bruno Haible  <bruno@clisp.org>
32669
32670         * m4/gettext.m4: Upgrade to gettext-0.12.1.
32671         * m4/nls.m4: New file, from gettext-0.12.1.
32672         * m4/po.m4: New file, from gettext-0.12.1.
32673         * m4/progtest.m4: Upgrade to gettext-0.12.1.
32674
32675 2003-05-30  Bruno Haible  <bruno@clisp.org>
32676
32677         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
32678         * lib/localcharset.h: Likewise.
32679         * lib/localcharset.c: Likewise.
32680
32681 2003-05-29  Karl Berry  <karl@gnu.org>
32682
32683         * config/config.rpath: update from gettext.
32684
32685 2003-05-28  Paul Eggert  <eggert@twinsun.com>
32686
32687         Assume the headers required for C89 freestanding compilers.
32688         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
32689         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
32690         * m4/human.m4 (gl_HUMAN): Likewise.
32691         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
32692         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
32693         * m4/userspec.m4 (gl_USERSPEC): Likewise.
32694         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
32695         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
32696         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
32697
32698 2003-05-28  Paul Eggert  <eggert@twinsun.com>
32699
32700         Assume the headers required for C89 freestanding compilers.
32701         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
32702         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
32703         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
32704         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
32705         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
32706         define, since <limits.h> is guaranteed to do that.
32707         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
32708         * lib/exclude.c: Include <stdbool.h> unconditionally.
32709         * lib/tempname.c: Include <stddef.h> unconditionally.
32710         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
32711         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
32712         <stddef.h> does that.
32713         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
32714         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
32715         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
32716         needed.
32717         * lib/xstrtol.c: Likewise.
32718         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
32719         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
32720
32721         * lib/addext.c (addext): Use assignment rather than cast, to avoid
32722         warnings on some platforms.
32723
32724         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
32725         arbitrarily.
32726
32727 2003-05-26  Jim Meyering  <jim@meyering.net>
32728
32729         Merge in a change from coreutils:
32730         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
32731         that is guaranteed to be `no'.  Use `no_such_member' to indicate
32732         that condition, rather than `-1' which is slightly misleading.
32733         Change the name of the cache variable to have the gl_ prefix.
32734         Prompted by a patch from Richard Dawe for DJGPP.
32735
32736 2003-05-24  Karl Berry  <karl@gnu.org>
32737
32738         * config/config.guess: update from prep.
32739
32740 2003-05-22  Karl Berry  <karl@gnu.org>
32741
32742         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
32743
32744 2003-05-20  Karl Berry  <karl@gnu.org>
32745
32746         * config/config.guess: update from prep.
32747
32748 2003-05-18  Karl Berry  <karl@gnu.org>
32749
32750         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
32751         might actually be set by the user.
32752
32753         * config/depcomp, install-sh, mdate-sh: update from automake.
32754
32755 2003-05-17  Bruno Haible  <bruno@clisp.org>
32756
32757         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
32758         invalid expansion for AC_EGREP_CPP.
32759         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
32760         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
32761         Suggested by Akim Demaille <akim@epita.fr> in
32762         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
32763
32764 2003-05-12  Jim Meyering  <jim@meyering.net>
32765
32766         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
32767         the space-padded-by-default conversion specifiers, %e, %k, %l.
32768
32769 2003-05-12  Bruno Haible  <bruno@clisp.org>
32770
32771         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
32772         the string is longer than 4 KB.
32773
32774 2003-05-11  Karl Berry  <karl@gnu.org>
32775
32776         * config/config.{guess,sub}: update from prep.
32777
32778 2003-05-09  Bruno Haible  <bruno@clisp.org>
32779
32780         * modules/error: Add m4/strerror_r.m4 to file list.
32781
32782 2003-05-03  Bruno Haible  <bruno@clisp.org>
32783
32784         Upgrade to Unicode-4.0.
32785         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
32786         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
32787         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
32788         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
32789         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
32790         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
32791         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
32792         Change width of U+E0100..U+E01EF from 1 to 0.
32793
32794 2003-04-25  Jim Meyering  <jim@meyering.net>
32795
32796         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
32797         of type size_t, not int.
32798
32799 2003-04-25  Bruno Haible  <bruno@clisp.org>
32800
32801         * lib/copy-file.c: Include <stddef.h>, for size_t.
32802
32803 2003-04-21  Paul Eggert  <eggert@twinsun.com>
32804
32805         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
32806         code which expansion is under static control.  Patch imported from
32807         Akim Demaille's patch to Bison; see
32808         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
32809
32810 2003-04-14  Bruno Haible  <bruno@clisp.org>
32811
32812         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
32813
32814 2003-04-11  Jim Meyering  <jim@meyering.net>
32815
32816         Merge changes from Coreutils.
32817
32818         2003-03-22  Jim Meyering  <jim@meyering.net>
32819
32820         * lib/strftime.c (widen): Cast alloca return value to proper type.
32821
32822         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
32823
32824         From GNU libc.
32825         * lib/strftime.c (my_strftime): Handle very large width
32826         specifications for numeric values correctly.  Improve checks for
32827         overflow.
32828
32829         2003-01-19  Jim Meyering  <jim@meyering.net>
32830
32831         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
32832         definitions.
32833         (nl_get_alt_digit) [! defined my_strftime]: Define.
32834         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
32835         _nl_get_alt_digit and _nl_get_walt_digit.
32836
32837         * lib/strftime.c (my_strftime): Merge in locale-related changes from
32838         libc. These changes have no effect outside of _LIBC.
32839
32840 2003-04-10  Bruno Haible  <bruno@clisp.org>
32841
32842         * modules/findprog: New file.
32843         * MODULES.html.sh (func_all_modules): Add it.
32844
32845 2003-04-10  Bruno Haible  <bruno@clisp.org>
32846
32847         * m4/findprog.m4: New file.
32848         * m4/eaccess.m4: New file.
32849
32850 2003-04-10  Bruno Haible  <bruno@clisp.org>
32851
32852         * lib/findprog.h: New file, from GNU gettext.
32853         * lib/findprog.c: New file, from GNU gettext.
32854
32855 2003-04-05  Jim Meyering  <jim@meyering.net>
32856
32857         Merge changes from Coreutils.
32858
32859         * lib/exclude.h (PARAMS): Remove definition and uses.
32860         * lib/exclude.c: Remove uses of `PARAMS'.
32861
32862         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
32863         Add test-cases for DOS filenames. Declare program_name.
32864         (main): Set up program_name.  Patch by Rich Dawe.
32865
32866         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
32867         error from mntctl.
32868         Use mntctl's return value to drive the entry-processing loop, since
32869         we can't rely on the value of the vmt_length member in the last
32870         entry.  On some systems doing so could result in exhausting
32871         virtual memory.  Based in part on a patch from Mike Jetzer.
32872
32873 2003-04-04  Bruno Haible  <bruno@clisp.org>
32874
32875         * modules/linebreak: New file.
32876         * MODULES.html.sh (func_all_modules): Add it.
32877
32878 2003-04-04  Bruno Haible  <bruno@clisp.org>
32879
32880         * m4/linebreak.m4: New file.
32881
32882 2003-04-04  Bruno Haible  <bruno@clisp.org>
32883
32884         * lib/linebreak.h: New file, from GNU gettext.
32885         * lib/linebreak.c: New file, from GNU gettext with slight
32886         modifications.
32887         * lib/lbrkprop.h: New file, from GNU gettext.
32888
32889 2003-04-03  Bruno Haible  <bruno@clisp.org>
32890
32891         * modules/utf8-ucs4: New file.
32892         * modules/utf16-ucs4: New file.
32893         * modules/ucs4-utf8: New file.
32894         * modules/ucs4-utf16: New file.
32895         * MODULES.html.sh (func_all_modules): Add them.
32896
32897 2003-04-03  Bruno Haible  <bruno@clisp.org>
32898
32899         * m4/utf-ucs4.m4: New file.
32900         * m4/ucs4-utf.m4: New file.
32901
32902 2003-04-03  Bruno Haible  <bruno@clisp.org>
32903
32904         * lib/utf8-ucs4.h: New file, from GNU gettext.
32905         * lib/utf16-ucs4.h: New file, from GNU gettext.
32906         * lib/ucs4-utf8.h: New file, from GNU gettext.
32907         * lib/ucs4-utf16.h: New file, from GNU gettext.
32908
32909 2003-04-02  Bruno Haible  <bruno@clisp.org>
32910
32911         * modules/binary-io: New file.
32912         * MODULES.html.sh (func_all_modules): Add it.
32913
32914 2003-04-02  Bruno Haible  <bruno@clisp.org>
32915
32916         * lib/binary-io.h: New file, from GNU gettext.
32917
32918 2003-04-01  Bruno Haible  <bruno@clisp.org>
32919
32920         * modules/pathname: New file.
32921         * MODULES.html.sh (func_all_modules): Add it.
32922
32923 2003-04-01  Bruno Haible  <bruno@clisp.org>
32924
32925         * lib/pathname.h: New file, from GNU gettext.
32926         * lib/concatpath.c: New file, from GNU gettext.
32927
32928 2003-03-30  Bruno Haible  <bruno@clisp.org>
32929
32930         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
32931
32932 2003-03-30  Bruno Haible  <bruno@clisp.org>
32933
32934         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
32935         function chown() doesn't exist.
32936
32937 2003-03-28  Bruno Haible  <bruno@clisp.org>
32938
32939         * modules/copy-file: New file.
32940         * MODULES.html.sh (func_all_modules): Add it.
32941
32942 2003-03-28  Bruno Haible  <bruno@clisp.org>
32943
32944         * m4/copy-file.m4: New file.
32945
32946 2003-03-28  Bruno Haible  <bruno@clisp.org>
32947
32948         * lib/copy-file.h: New file, from GNU gettext.
32949         * lib/copy-file.c: New file, from GNU gettext.
32950
32951 2003-03-18  Jim Meyering  <jim@meyering.net>
32952
32953         * lib/quote.c (quote_n): Fix typo in comment.
32954
32955 2003-03-18  Bruno Haible  <bruno@clisp.org>
32956
32957         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
32958         checking.
32959         * m4/onceonly_2_57.m4: Likewise.
32960
32961 2003-03-17  Bruno Haible  <bruno@clisp.org>
32962
32963         * m4/onceonly.m4: Require autoconf 2.54 or newer.
32964         (m4_quote): Remove macro.
32965         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
32966
32967 2003-03-14  Jim Meyering  <jim@meyering.net>
32968
32969         Merge changes from Coreutils.
32970         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
32971         to be const, in order to avoid warnings.
32972         (obstack_room): Likewise.
32973         (obstack_empty_p): Likewise.
32974
32975 2003-03-14  Bruno Haible  <bruno@clisp.org>
32976
32977         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
32978         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
32979
32980 2003-03-13  Paul Eggert  <eggert@twinsun.com>
32981
32982         Merge changes from Bison.
32983         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
32984         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
32985         when compiling Bison 1.875's `bitset bset = obstack_alloc
32986         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
32987         * lib/hash.c: Include <stdbool.h> unconditionally.
32988
32989 2003-03-13  Paul Eggert  <eggert@twinsun.com>
32990
32991         * m4/onceonly.m4 (m4_quote): New macro.
32992         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
32993         Quote AC_FOREACH variable-expansions properly.
32994
32995 2003-03-13  Paul Eggert  <eggert@twinsun.com>
32996
32997         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
32998
32999 2003-03-09  Paul Eggert  <eggert@twinsun.com>
33000
33001         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
33002         Reported by Bruce Becker; see:
33003         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
33004
33005 2003-03-03  Paul Eggert  <eggert@twinsun.com>
33006             Bruno Haible  <bruno@clisp.org>
33007
33008         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
33009         Reported by John Hughes, see
33010         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
33011
33012 2003-02-20  Bruno Haible  <bruno@clisp.org>
33013
33014         * MODULES.html.sh (func_all_modules): Add poll.
33015
33016 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
33017
33018         * modules/poll: New file.
33019
33020 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
33021
33022         * lib/poll_.h: New file.
33023         * lib/poll.c: New file.
33024
33025 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
33026
33027         * m4/poll.m4: New file.
33028
33029 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
33030
33031         * modules/mathl: New file.
33032
33033 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
33034
33035         * lib/mathl.h: New file.
33036         * lib/acosl.c: New file.
33037         * lib/asinl.c: New file.
33038         * lib/atanl.c: New file.
33039         * lib/ceill.c: New file.
33040         * lib/cosl.c: New file.
33041         * lib/expl.c: New file.
33042         * lib/floorl.c: New file.
33043         * lib/frexpl.c: New file.
33044         * lib/ldexpl.c: New file.
33045         * lib/logl.c: New file.
33046         * lib/sincosl.c: New file.
33047         * lib/sinl.c: New file.
33048         * lib/sqrtl.c: New file.
33049         * lib/tanl.c: New file.
33050         * lib/trigl.c: New file.
33051         * lib/trigl.h: New file.
33052
33053 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
33054
33055         * m4/mathl.m4: New file.
33056
33057 2003-02-18  Bruno Haible  <bruno@clisp.org>
33058
33059         * MODULES.html.sh (func_all_modules): Add mathl.
33060
33061 2003-02-17  Bruno Haible  <bruno@clisp.org>
33062
33063         * modules/mkdtemp: New module.
33064         * MODULES.html.sh (func_all_modules): Add it.
33065
33066 2003-02-17  Bruno Haible  <bruno@clisp.org>
33067
33068         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
33069
33070 2003-02-17  Bruno Haible  <bruno@clisp.org>
33071
33072         * lib/mkdtemp.h: New file, from GNU gettext.
33073         * lib/mkdtemp.c: New file, from GNU gettext.
33074
33075 2003-02-02  Jim Meyering  <jim@meyering.net>
33076
33077         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
33078         e.g. glibc-2.2.93.
33079
33080 2003-01-31  Bruno Haible  <bruno@clisp.org>
33081
33082         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
33083         'rpl_rename'.
33084         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
33085         'rpl_strnlen'.
33086         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
33087         'rpl_strtod'.
33088         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
33089         'rpl_utime'.
33090
33091 2003-01-31  Bruno Haible  <bruno@clisp.org>
33092
33093         * lib/rename.c: #undef rename before defining rpl_rename.
33094         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
33095
33096 2003-01-30  Bruno Haible  <bruno@clisp.org>
33097
33098         * modules/vasnprintf, modules/vasprintf: New modules.
33099         * MODULES.html.sh (func_all_modules): Add them.
33100
33101 2003-01-30  Bruno Haible  <bruno@clisp.org>
33102
33103         * m4/signed.m4: New file, from GNU gettext.
33104         * m4/longdouble.m4: New file, from GNU gettext.
33105         * m4/wchar_t.m4: New file, from GNU gettext.
33106         * m4/wint_t.m4: New file, from GNU gettext.
33107         * m4/vasnprintf.m4: New file.
33108         * m4/vasprintf.m4: New file.
33109
33110 2003-01-30  Bruno Haible  <bruno@clisp.org>
33111
33112         * lib/printf-args.h: New file, from GNU gettext.
33113         * lib/printf-args.c: New file, from GNU gettext.
33114         * lib/printf-parse.h: New file, from GNU gettext.
33115         * lib/printf-parse.c: New file, from GNU gettext.
33116         * lib/vasnprintf.h: New file, from GNU gettext.
33117         * lib/vasnprintf.c: New file, from GNU gettext.
33118         * lib/asnprintf.c: New file, from GNU gettext.
33119         * lib/vasprintf.h: New file, from GNU gettext with modifications.
33120         * lib/vasprintf.c: New file, from GNU gettext.
33121         * lib/asprintf.c: New file, from GNU gettext.
33122
33123 2003-01-29  Bruno Haible  <bruno@clisp.org>
33124
33125         * modules/stpncpy: New module.
33126         * MODULES.html.sh (func_all_modules): Add it.
33127
33128 2003-01-29  Bruno Haible  <bruno@clisp.org>
33129
33130         * m4/stpncpy.m4: New file.
33131
33132 2003-01-29  Bruno Haible  <bruno@clisp.org>
33133
33134         * lib/stpncpy.h: New file, from GNU gettext with modifications.
33135         * lib/stpncpy.c: New file, from GNU gettext with modifications.
33136
33137 2003-01-28  Bruno Haible  <bruno@clisp.org>
33138
33139         * modules/c-ctype: New module.
33140         * MODULES.html.sh (func_all_modules): Add it.
33141
33142 2003-01-28  Bruno Haible  <bruno@clisp.org>
33143
33144         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
33145         Paul Eggert.
33146         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
33147         Paul Eggert.
33148
33149 2003-01-27  Bruno Haible  <bruno@clisp.org>
33150
33151         * modules/xsetenv: New module.
33152         * MODULES.html.sh (func_all_modules): Add it.
33153
33154 2003-01-27  Bruno Haible  <bruno@clisp.org>
33155
33156         * lib/xsetenv.h: New file, from GNU gettext.
33157         * lib/xsetenv.c: New file, from GNU gettext.
33158
33159 2003-01-23  Jim Meyering  <jim@meyering.net>
33160
33161         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
33162         from working on systems without dirfd (at least Irix and OSF1/Tru64).
33163
33164 2003-01-23  Bruno Haible  <bruno@clisp.org>
33165
33166         * modules/minmax: New module.
33167         * MODULES.html.sh (func_all_modules): Add it.
33168
33169 2003-01-23  Bruno Haible  <bruno@clisp.org>
33170
33171         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
33172         Eggert.
33173
33174 2003-01-22  Bruno Haible  <bruno@clisp.org>
33175
33176         * modules/exit: New module.
33177         * MODULES.html.sh (func_all_modules): Add it.
33178
33179 2003-01-22  Bruno Haible  <bruno@clisp.org>
33180
33181         * lib/exit.h: New file, from GNU gettext.
33182
33183 2003-01-19  Bruno Haible  <bruno@clisp.org>
33184
33185         * gnulib-tool: Recognize option --extract-maintainer.
33186         (func_get_maintainer): New function.
33187         * modules/*: Add Maintainer entry.
33188
33189 2003-01-16  Jim Meyering  <jim@meyering.net>
33190
33191         * m4/regex.m4: The `regex' struct is both input and output.
33192         Initialize it before each use.  Patch by Tim Waugh.
33193
33194 2003-01-16  Bruno Haible  <bruno@clisp.org>
33195
33196         * MODULES.html.sh: Add a table of contents. Add the module name as
33197         leftmost column. Add hyperlinks.
33198
33199 2003-01-15  Bruno Haible  <bruno@clisp.org>
33200
33201         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
33202
33203 2003-01-15  Bruno Haible  <bruno@clisp.org>
33204
33205         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
33206         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
33207         suffix.
33208
33209 2003-01-15  Bruno Haible  <bruno@clisp.org>
33210
33211         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
33212
33213 2003-01-15  Bruno Haible  <bruno@clisp.org>
33214
33215         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
33216         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
33217
33218 2003-01-14  Jim Meyering  <jim@meyering.net>
33219
33220         * lib/same.c (same_name): Tweak a comment.
33221
33222 2003-01-14  Bruno Haible  <bruno@clisp.org>
33223
33224         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
33225         when a string comparison is sufficient.
33226
33227 2003-01-14  Bruno Haible  <bruno@clisp.org>
33228
33229         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
33230         'unsigned int'.
33231
33232 2003-01-14  Bruno Haible  <bruno@clisp.org>
33233
33234         * lib/hash-pjw.c: Add comment about low quality of this function.
33235
33236 2003-01-13  Bruno Haible  <bruno@clisp.org>
33237
33238         * modules/stpcpy: Distribute lib/stpcpy.h.
33239         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
33240
33241 2003-01-13  Bruno Haible  <bruno@clisp.org>
33242
33243         * modules/*: Add a description.
33244         * modules/strpbrk: Fix Makefile.am snippet.
33245         * modules/strtoimax: Fix dependencies.
33246         * modules/strtoumax: Likewise.
33247
33248 2003-01-13  Bruno Haible  <bruno@clisp.org>
33249
33250         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
33251         * modules/alloca (Makefile.am): All object files depend on alloca.h.
33252         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
33253
33254 2003-01-13  Bruno Haible  <bruno@clisp.org>
33255
33256         * gnulib-tool (func_create_testdir): Store config/* files in the main
33257         directory.
33258         * config.rpath: Move to ...
33259         * config/config.rpath: ... here.
33260         * modules/gettext: Contains config/config.rpath, not config.rpath.
33261         * modules/iconv: Likewise.
33262
33263 2003-01-12  Paul Eggert  <eggert@twinsun.com>
33264
33265         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
33266         to avoid collisions with libcurses and libreadline.
33267
33268         * m4/getstr.m4: Remove.
33269         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
33270
33271 2003-01-12  Paul Eggert  <eggert@twinsun.com>
33272
33273         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
33274         to avoid collisions with libcurses and libreadline.
33275
33276         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
33277         * lib/getstr.h, getstr.c: Remove.
33278         * lib/getline.c: Include "getline.h", to check interface.
33279         Move body of old getstr.c here: this defines MIN_CHUNK and
33280         declares getdelim2, which is renamed from getstr.
33281         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
33282
33283         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
33284         All uses changed.
33285         * lib/linebuffer.h: Likewise.
33286         (readline): Remove backward-compatibility macro.
33287
33288 2003-01-12  Paul Eggert  <eggert@twinsun.com>
33289
33290         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
33291         to avoid collisions with libcurses and libreadline.
33292         * getstr: Remove.
33293         * MODULES.html.sh: Remove getstr.
33294         * modules/getline: Depend on unlocked-io, not getstr.
33295
33296 2003-01-12  Jim Meyering  <jim@meyering.net>
33297
33298         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
33299
33300 2003-01-10  Bruno Haible  <bruno@clisp.org>
33301
33302         * modules/alloca: Change Makefile.am requirements. Simplify Include
33303         requirements. Add lib/alloca_.h to file list.
33304
33305 2003-01-10  Bruno Haible  <bruno@clisp.org>
33306
33307         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
33308
33309 2003-01-10  Bruno Haible  <bruno@clisp.org>
33310
33311         * lib/alloca_.h: New file.
33312         * lib/getdate.y: Unconditionally include alloca.h.
33313         * lib/makepath.c: Likewise.
33314         * lib/setenv.c: Likewise.
33315         * lib/userspec.c: Likewise.
33316
33317 2003-01-09  Karl Berry  <karl@gnu.org>
33318
33319         * MODULES.html.sh: include `dirname $0` in PATH, to find
33320         gnulib-tool.
33321
33322 2003-01-09  Bruno Haible  <bruno@clisp.org>
33323
33324         * modules/stdbool: Change configure.ac, Makefile.am requirements.
33325         Simplify Include requirements. Add lib/stdbool.h.in to file list.
33326
33327 2003-01-09  Bruno Haible  <bruno@clisp.org>
33328
33329         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
33330
33331 2003-01-09  Bruno Haible  <bruno@clisp.org>
33332
33333         * lib/stdbool.h.in: New file.
33334
33335 2003-01-09  Bruno Haible  <bruno@clisp.org>
33336
33337         * gnulib-tool (func_all_modules): Ignore files ending in ~.
33338         * MODULES.html.sh: Likewise.
33339
33340 2003-01-08  Jim Meyering  <jim@meyering.net>
33341
33342         * lib/full-write.c: Undefine and define-away `const' after inclusion
33343         of errno.h, not before.  Suggestion from Bruno Haible.
33344
33345 2003-01-08  Bruno Haible  <bruno@clisp.org>
33346
33347         * modules/full-read: Depend on full-write.
33348
33349 2003-01-08  Bruno Haible  <bruno@clisp.org>
33350
33351         * lib/safe-read.c: Include specification header first, to ensure its
33352         selfcontainedness.
33353         * lib/full-write.c: Likewise.
33354
33355 2003-01-07  Jim Meyering  <jim@meyering.net>
33356
33357         * lib/full-write.c: Rework so that it may serve to define full_read,
33358         too.
33359         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
33360
33361 2003-01-07  Bruno Haible  <bruno@clisp.org>
33362
33363         * lib/strtoimax.c: Include <stdint.h> as an alternative to
33364         <inttypes.h>.
33365         * lib/xstrtol.h: Likewise.
33366         * lib/xstrtoimax.c: Likewise.
33367         * lib/xstrtoumax.c: Likewise.
33368         * lib/human.h: Likewise.
33369
33370         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
33371         on systems that have <inttypes.h> but not <stdint.h>.
33372
33373 2003-01-07  Bruno Haible  <bruno@clisp.org>
33374
33375         * MODULES.html.sh: Add copyright notice.
33376         (missed_files): Omit CVS directory entries.
33377         (func_module): Make it work with sed-3.02.
33378         * MODULES.txt: Remove file.
33379
33380 2003-01-06  Jim Meyering  <jim@meyering.net>
33381
33382         * lib/version-etc.c: Update year in translatable copyright string.
33383
33384 2003-01-03  Karl Berry  <karl@gnu.org>
33385
33386         * config/config.{guess,sub}: update from prep.
33387
33388 2003-01-02  Karl Berry  <karl@gnu.org>
33389
33390         * doc/COPYING.DOC: belatedly updated to 1.2.
33391
33392 2003-01-01  Karl Berry  <karl@gnu.org>
33393
33394         * gnulib-tool (func_verify_module): report module name $module in
33395         error message, not $1.
33396         * gnulib-tool (create-testdir): don't complain if destdir couldn't
33397         be created, only if it doesn't exist.
33398         * gnulib-tool (last_checkin_date): don't expand the $Date here.
33399
33400 2002-12-31  Paul Eggert  <eggert@twinsun.com>
33401
33402         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
33403
33404 2002-12-31  Paul Eggert  <eggert@twinsun.com>
33405
33406         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
33407         memcmp if strcoll doesn't work.
33408
33409 2002-12-31  Bruno Haible  <bruno@clisp.org>
33410
33411         * lib/utime.c (utime_null): No need to call ftruncate if the file was
33412         nonempty.
33413
33414 2002-12-31  Bruno Haible  <bruno@clisp.org>
33415
33416         * lib/memcoll.c (STRCOLL): New macro.
33417         (memcoll): Use it.
33418
33419 2002-12-31  Bruno Haible  <bruno@clisp.org>
33420
33421         * lib/localcharset.h: New file.
33422         * lib/localcharset.c: Include it.
33423         * lib/unicodeio.c: Likewise.
33424
33425 2002-12-31  Bruno Haible  <bruno@clisp.org>
33426
33427         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
33428         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
33429
33430 2002-12-31  Bruno Haible  <bruno@clisp.org>
33431
33432         * lib/getline.h: Include <stddef.h>, for size_t.
33433
33434         * lib/unicodeio.h: Include <stddef.h>, for size_t.
33435         * lib/unicodeio.c: Don't include <stddef.h>.
33436
33437 2002-12-31  Bruno Haible  <bruno@clisp.org>
33438
33439         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
33440         HAVE_TM_ZONE.
33441
33442 2002-12-24  Karl Berry  <karl@gnu.org>
33443
33444         * config/config.guess: update from prep.
33445
33446 2002-12-24  Bruno Haible  <bruno@clisp.org>
33447
33448         General infrasructure.
33449         * m4/README: Rewritten.
33450         * m4/onceonly.m4: New file.
33451         * m4/onceonly_2_57.m4: New file.
33452
33453         Module atexit.
33454         * m4/atexit.m4: New file.
33455
33456         Module strtod.
33457         * m4/strtod.m4: New file.
33458
33459         Module strtol.
33460         * m4/strtol.m4: New file.
33461
33462         Module strtoul.
33463         * m4/strtoul.m4: New file.
33464
33465         Module memchr.
33466         * m4/memchr.m4: New file.
33467
33468         Module memcmp.
33469         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
33470         (jm_FUNC_MEMCMP): Invoke it.
33471
33472         Module memcpy.
33473         * m4/memcpy.m4: New file.
33474
33475         Module memmove.
33476         * m4/memmove.m4: New file.
33477
33478         Module memset.
33479         * m4/memset.m4: New file.
33480
33481         Module strcspn.
33482         * m4/strcspn.m4: New file.
33483
33484         Module strpbrk.
33485         * m4/strpbrk.m4: New file.
33486
33487         Module strstr.
33488         * m4/strstr.m4: New file.
33489
33490         Module strerror.
33491         * m4/strerror.m4: New file.
33492
33493         Module mktime.
33494         * m4/mktime.m4: Renamed from jm-mktime.m4.
33495         (gl_PREREQ_MKTIME): New macro.
33496         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
33497
33498         Module malloc.
33499         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
33500         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
33501         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
33502
33503         Module realloc.
33504         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
33505         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
33506         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
33507
33508         Module strftime.
33509         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
33510         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
33511         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
33512         gl_TM_GMTOFF.
33513         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
33514
33515         Module xalloc.
33516         * m4/xalloc.m4: New file.
33517
33518         Module alloca.
33519         * m4/alloca.m4: New file.
33520
33521         Module putenv.
33522         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
33523         (jm_FUNC_PUTENV): Invoke it.
33524
33525         Module setenv.
33526         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
33527         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
33528         when invoked twice.
33529         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
33530         gt_FUNC_SETENV.
33531
33532         Module memrchr.
33533         * m4/memrchr.m4: New file.
33534
33535         Module stpcpy.
33536         * m4/stpcpy.m4: New file.
33537
33538         Module strcase.
33539         * m4/strcase.m4: New file.
33540
33541         Module strdup.
33542         * m4/strdup.m4: New file.
33543
33544         Module strnlen.
33545         * m4/strnlen.m4: New file.
33546
33547         Module strndup.
33548         * m4/strndup.m4: New file.
33549
33550         Module xstrtod.
33551         * m4/xstrtod.m4: New file.
33552
33553         Module xstrtol.
33554         * m4/xstrtol.m4: New file.
33555
33556         Module getdate.
33557         * m4/getdate.m4: New file.
33558
33559         Module unlocked-io.
33560         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
33561         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
33562         * m4/jm-glibc-io.m4n: Remove file.
33563
33564         Module long-options.
33565         * m4/long-options.m4: New file.
33566
33567         Module md5.
33568         * m4/md5.m4: New file.
33569
33570         Module sha.
33571         * m4/sha.m4: New file.
33572
33573         Module getstr.
33574         * m4/getstr.m4: New file.
33575
33576         Module getline.
33577         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
33578         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
33579         <sys/types.h>, for size_t. Use the function name gnu_getline, not
33580         simply getline. Infoke gl_PREREQ_GETLINE.
33581
33582         Module obstack.
33583         * m4/obstack.m4: New file.
33584
33585         Module hash.
33586         * m4/hash.m4: New file.
33587
33588         Module readtokens.
33589         * m4/readtokens.m4: New file.
33590
33591         Module strverscmp.
33592         * m4/strverscmp.m4: New file.
33593
33594         Module stdbool.
33595         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
33596         OSF/1.
33597
33598         Module strtoll.
33599         * m4/strtoll.m4: New file.
33600
33601         Module strtoull.
33602         * m4/strtoull.m4: New file.
33603
33604         Module strtoimax.
33605         * m4/strtoimax.m4: New file.
33606
33607         Module strtoumax.
33608         * m4/strtoumax.m4: New file.
33609
33610         Module xstrtoimax.
33611         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
33612         jm_AC_PREREQ_XSTRTOIMAX.
33613         Moved the strtol prerequisites to strtol.m4.
33614         Moved the strtoll prerequisites to strtoll.m4.
33615         Moved the strtoimax prerequisites to strtoimax.m4.
33616
33617         Module xstrtoumax.
33618         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
33619         jm_AC_PREREQ_XSTRTOUMAX.
33620         Moved the strtoul prerequisites to strtoul.m4.
33621         Moved the strtoull prerequisites to strtoull.m4.
33622         Moved the strtoumax prerequisites to strtoumax.m4.
33623
33624         Module chown.
33625         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
33626         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
33627
33628         Module dup2.
33629         * m4/dup2.m4: New file.
33630
33631         Module ftruncate.
33632         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
33633         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
33634
33635         Module getgroups.
33636         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
33637         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
33638
33639         Module gettimeofday.
33640         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
33641         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
33642         gl_PREREQ_GETTIMEOFDAY.
33643
33644         Module mkdir.
33645         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
33646         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
33647
33648         Module mkstemp.
33649         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
33650         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
33651         jm_AC_TYPE_UINTMAX_T.
33652         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
33653
33654         Module stat.
33655         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
33656         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
33657
33658         Module lstat.
33659         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
33660         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
33661
33662         Module timespec.
33663         * m4/timespec.m4 (gl_TIMESPEC): New macro.
33664         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
33665         * m4/st_mtim.m4: Indentation.
33666
33667         Module nanosleep.
33668         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
33669         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
33670         gl_PREREQ_NANOSLEEP.
33671
33672         Module regex.
33673         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
33674         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
33675         (gl_REGEX): New macro.
33676
33677         Module rename.
33678         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
33679         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
33680
33681         Module rmdir.
33682         * m4/rmdir.m4: New file.
33683
33684         Module utime.
33685         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
33686         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
33687         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
33688
33689         Module dirname.
33690         * m4/dirname.m4: New file.
33691
33692         Module getopt.
33693         * m4/getopt.m4: New file.
33694
33695         Module unistd-safer.
33696         * m4/unistd-safer.m4: New file.
33697
33698         Module fnmatch.
33699         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
33700         declaration.
33701         (gl_PREREQ_FNMATCH_EXTRA): New macro.
33702         (gl_FUNC_FNMATCH_POSIX): New macro.
33703         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
33704         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
33705         simply fnmatch.
33706
33707         Module exclude.
33708         * m4/exclude.m4: New file.
33709
33710         Module human.
33711         * m4/human.m4: New file.
33712
33713         Module acl.
33714         * m4/acl.m4: Nop.
33715
33716         Module backupfile.
33717         * m4/backupfile.m4: New file.
33718         * m4/d-ino.m4: Indentation.
33719
33720         Module fsusage.
33721         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
33722         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
33723         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
33724
33725         Module dirfd.
33726         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
33727         requirements.
33728
33729         Module euidaccess.
33730         * m4/euidaccess.m4: New file.
33731
33732         Module file-type.
33733         * m4/file-type.m4: New file.
33734
33735         Module fileblocks.
33736         * m4/fileblocks.m4: New file.
33737
33738         Module filemode.
33739         * m4/filemode.m4: New file.
33740
33741         Module isdir.
33742         * m4/isdir.m4: New file.
33743
33744         Module lchown.
33745         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
33746         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
33747
33748         Module makepath.
33749         * m4/makepath.m4: New file.
33750
33751         Module modechange.
33752         * m4/modechange.m4: New file.
33753
33754         Module mountlist.
33755         * m4/mountlist.m4: New file.
33756         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
33757         Indentation.
33758
33759         Module path-concat.
33760         * m4/path-concat.m4: New file.
33761
33762         Module pathmax.
33763         * m4/pathmax.m4: New file.
33764
33765         Module same.
33766         * m4/same.m4: New file.
33767
33768         Module save-cwd.
33769         * m4/save-cwd.m4: New file.
33770
33771         Module savedir.
33772         * m4/savedir.m4: New file.
33773
33774         Module xgetcwd.
33775         * m4/xgetcwd.m4: New file.
33776         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
33777
33778         Module xreadlink.
33779         * m4/xreadlink.m4: New file.
33780
33781         Module safe-read.
33782         * m4/safe-read.m4: New file.
33783
33784         Module safe-write.
33785         * m4/safe-write.m4: New file.
33786
33787         Module closeout.
33788         * m4/closeout.m4: New file.
33789
33790         Module stdio-safer.
33791         * m4/stdio-safer.m4: New file.
33792
33793         Module getpass.
33794         * m4/getpass.m4: New file.
33795
33796         Module getugroups.
33797         * m4/getugroups.m4: New file.
33798
33799         Module group-member.
33800         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
33801         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
33802
33803         Module idcache.
33804         * m4/idcache.m4: New file.
33805
33806         Module userspec.
33807         * m4/userspec.m4: New file.
33808
33809         Module gettime.
33810         * m4/clock_time.m4: New file.
33811         * m4/gettime.m4: New file.
33812
33813         Module settime.
33814         * m4/settime.m4: New file.
33815
33816         Module posixtm.
33817         * m4/posixtm.m4: New file.
33818
33819         Module gethostname.
33820         * m4/gethostname.m4: New file.
33821
33822         Module canon-host.
33823         * m4/canon-host.m4: New file.
33824
33825         Module gettext.
33826         * m4/codeset.m4: New file, from gettext-0.11.5.
33827         * m4/gettext.m4: New file, from gettext-0.11.5.
33828         * m4/glibc21.m4: New file, from gettext-0.11.5.
33829         * m4/iconv.m4: New file, from gettext-0.11.5.
33830         * m4/intdiv0.m4: New file, from gettext-0.11.5.
33831         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
33832         * m4/inttypes.m4: New file, from gettext-0.11.5.
33833         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
33834         * m4/isc-posix.m4: New file, from gettext-0.11.5.
33835         * m4/lcmessage.m4: New file, from gettext-0.11.5.
33836         * m4/lib-ld.m4: New file, from gettext-0.11.5.
33837         * m4/lib-link.m4: New file, from gettext-0.11.5.
33838         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
33839         * m4/progtest.m4: New file, from gettext-0.11.5.
33840         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
33841         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
33842         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
33843
33844         Module localcharset.
33845         * m4/localcharset.m4: New file.
33846
33847         Module hard-locale.
33848         * m4/hard-locale.m4: New file.
33849
33850         Module mbswidth.
33851         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
33852         onceonly macros.
33853         * m4/mbrtowc.m4: Add comment.
33854
33855         Module memcasecmp.
33856         * m4/memcasecmp.m4: New file.
33857
33858         Module memcoll.
33859         * m4/memcoll.m4: New file.
33860
33861         Module unicodeio.
33862         * m4/unicodeio.m4: New file.
33863
33864         Module rpmatch.
33865         * m4/rpmatch.m4: New file.
33866
33867         Module yesno.
33868         * m4/yesno.m4: New file.
33869
33870         Module exitfail.
33871         * m4/exitfail.m4: New file.
33872
33873         Module c-stack.
33874         * m4/c-stack.m4 (gl_C_STACK): New macro.
33875         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
33876
33877         Module error.
33878         * m4/error.m4 (gl_ERROR): New macro.
33879         (jm_PREREQ_ERROR): Use onceonly macros.
33880
33881         Module fatal.
33882         * m4/fatal.m4: New file.
33883
33884         Module getloadavg.
33885         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
33886         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
33887
33888         Module getpagesize.
33889         * m4/getpagesize.m4: New file.
33890
33891         Module getusershell.
33892         * m4/getusershell.m4: New file.
33893
33894         Module physmem.
33895         * m4/physmem.m4: New file.
33896
33897         Module posixver.
33898         * m4/posixver.m4: New file.
33899
33900         Module quotearg.
33901         * m4/quotearg.m4: New file.
33902
33903         Module quote.
33904         * m4/quote.m4: New file.
33905
33906         Module readutmp.
33907         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
33908
33909         Module sig2str.
33910         * m4/sig2str.m4: New file.
33911
33912         Other.
33913         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
33914         ulonglong.m4.
33915         * m4/intmax_t.m4: New file.
33916         * m4/d-type.m4: Indentation.
33917         * m4/jm-macros.m4: Update.
33918         * m4/prereq.m4 (jm_PREREQ): Update.
33919         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
33920         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
33921         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
33922         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
33923         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
33924         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
33925         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
33926         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
33927         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
33928         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
33929         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
33930         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
33931         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
33932         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
33933         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
33934         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
33935         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
33936         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
33937         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
33938
33939 2002-12-24  Bruno Haible  <bruno@clisp.org>
33940
33941         * MODULES.txt: Update according to m4/ changes.
33942
33943         Module gettext.
33944         * config.rpath: New file, from gettext-0.11.5.
33945
33946         * modules/*: New module descriptions.
33947         * gnulib-tool: New file.
33948         * MODULES.html.sh: New file.
33949
33950 2002-12-21  Karl Berry  <karl@gnu.org>
33951
33952         * doc/fdl.texi: update to version 1.2.
33953
33954 2002-12-19  Karl Berry  <karl@gnu.org>
33955
33956         * config/config.guess: update from prep.
33957
33958 2002-12-18  Bruno Haible  <bruno@clisp.org>
33959
33960         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
33961         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
33962
33963 2002-12-17  Bruno Haible  <bruno@clisp.org>
33964
33965         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
33966         stdlib.h, string.h.
33967
33968 2002-12-17  Bruno Haible  <bruno@clisp.org>
33969
33970         * lib/canon-host.c (strdup): Remove unused declaration.
33971
33972         * lib/fsusage.c: Include full_read.h.
33973         (get_fs_usage): Use full_read instead of safe_read.
33974
33975         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
33976
33977 2002-12-12  Karl Berry  <karl@gnu.org>
33978
33979         * config/config.guess: update from prep.
33980
33981 2002-12-11  Bruno Haible  <bruno@clisp.org>
33982
33983         * m4/setenv.m4: New file, from gettext-0.11.5.
33984
33985 2002-12-11  Bruno Haible  <bruno@clisp.org>
33986
33987         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
33988         not unsetenv().
33989         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
33990         modifications:
33991
33992         2002-12-11  Bruno Haible  <bruno@clisp.org>
33993
33994                 * setenv.c (alloca): Fall back to malloc.
33995                 (freea): New macro.
33996                 (setenv): Use freea() to free memory allocated with alloca().
33997
33998         2002-11-13  Bruno Haible  <bruno@clisp.org>
33999
34000                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
34001                 function declarations.
34002                 * unsetenv.c (unsetenv): Likewise.
34003
34004         2002-03-04  Bruno Haible  <bruno@clisp.org>
34005
34006                 Portability to AIX 4.3.3.
34007                 * unsetenv.c: New file, extracted from setenv.c.
34008                 * setenv.c: Move the unsetenv() function to unsetenv.c.
34009
34010         2001-12-20  Bruno Haible  <bruno@clisp.org>
34011
34012                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
34013                 use malloc instead. For SunOS 4.
34014
34015         2001-12-11  Bruno Haible  <bruno@clisp.org>
34016
34017                 * setenv.c: Declare alloca.
34018                 (compar_fn_t): New typedef.
34019                 (KNOWN_VALUE, STORE_VALUE): Use it.
34020
34021         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
34022         setenv.h.
34023
34024 2002-12-10  Paul Eggert  <eggert@twinsun.com>
34025
34026         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
34027         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
34028         Choose values that are less likely to collide with system fnmatch
34029         options.
34030         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
34031         defined (e.g., a pure POSIX system).
34032         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
34033         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
34034
34035 2002-12-06  Paul Eggert  <eggert@twinsun.com>
34036
34037         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
34038         a pain in practice to deal with generated m4 files.  This change
34039         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
34040
34041         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
34042         and jm-glibc-io.m4, as they are no longer a special case.
34043         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
34044         kludge and the auto-generation stuff.  Check only whether the
34045         functions are declared, not whether they exist, since older hosts
34046         that don't declare the functions can't use the optimization anyway.
34047
34048 2002-12-06  Jim Meyering  <jim@meyering.net>
34049
34050         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
34051
34052         Merge in changes from libc's misc/error.c, in preparation
34053         for the merge of gnulib's changes back into libc.
34054
34055         * lib/error.c (_): Define only if not already defined.
34056         Move definition to follow all #include directives.
34057         Include unlocked-io.h only if !_LIBC.
34058         [_LIBC]: Include <libio/libioP.h>.
34059         [USE_IN_LIBIO]: Include <libio/iolibio.h>
34060         (fflush): Tweak definition to use INTUSE.
34061         (putc): Define.
34062
34063 2002-12-05  Paul Eggert  <eggert@twinsun.com>
34064
34065         * lib/alloca.c [defined emacs]: Include "lisp.h".
34066         (xalloc_die) [defined emacs]: New macro.
34067         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
34068         [! defined emacs]: Include <xalloc.h>.
34069         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
34070         (pointer): Typedef to POINTER_TYPE *.
34071         (malloc): Remove decl; we now always use xmalloc.
34072         (alloca): Use old-style definition, since Emacs needs this.
34073         Check for arithmetic overflow when computing combined size.
34074
34075 2002-12-04  Paul Eggert  <eggert@twinsun.com>
34076
34077         Do not generate unlocked-io.h automatically, since it's easier to
34078         maintain it by hand.
34079
34080         * lib/unlocked-io.h: New file, from GNU diffutils,
34081         but with proper copyright notice and attribution.
34082         * lib/gen-uio: Remove.
34083         * lib/Makefile.am: Add copyright notice.
34084         (libfetish_a_SOURCES): Add unlocked-io.h.
34085         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
34086         (DISTCLEANFILES, io_functions): Remove macros.
34087         (EXTRA_DIST): Remove gen_uio.
34088         (unlocked-io.h): Remove rule.
34089
34090 2002-12-04  Jim Meyering  <jim@meyering.net>
34091
34092         Reflect the fact that stat.c and lstat.c are no longer generated.
34093         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
34094         (DISTCLEANFILES): Likewise.
34095         (EXTRA_DIST): Likewise.
34096         (all_local): Don't depend on stat.c or lstat.c.
34097         (stat.c, lstat.c): Remove rules.
34098         (EXTRA_DIST): Remove xstat.in.
34099
34100         * lib/xstat.in: Remove file.  Contents moved into stat.c.
34101         * lib/stat.c: New file.  Contents mostly from xstat.in.
34102         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
34103         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
34104
34105         * lib/safe-read.c: Rework so that it may serve to define safe_write,
34106         too.
34107         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
34108
34109 2002-12-03  Jim Meyering  <jim@meyering.net>
34110
34111         * lib/safe-read.c, safe-write.c: Change variable names and comments,
34112         but not semantics, to minimize the differences between these two files.
34113         (safe_read): Change comment to mention SAFE_READ_ERROR.
34114
34115         * lib/safe-read.c (IS_EINTR): Define.
34116         (safe_read): Use IS_EINTR in place of in-function cpp directives.
34117
34118 2002-12-02  Jim Meyering  <jim@meyering.net>
34119
34120         * lib/safe-read.c (EINTR): Define.
34121         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
34122         (INT_MAX): Provide fallback.
34123         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
34124
34125         * lib/safe-read.h (SAFE_READ_ERROR): Define.
34126
34127 2002-12-02  Bruno Haible  <bruno@clisp.org>
34128
34129         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
34130         Define, taken from safe-read.c.
34131         (INT_MAX): Provide fallback.
34132         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
34133         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
34134
34135         * lib/safe-read.c (EINTR): Remove definition.
34136         (safe_read): Don't use EINTR if it is absent.
34137
34138 2002-12-01  Jim Meyering  <jim@meyering.net>
34139
34140         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
34141         zero.
34142         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
34143
34144 2002-11-27  Paul Eggert  <eggert@twinsun.com>
34145
34146         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
34147         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
34148         with `if (! (value < limit)) abort ();', for readability.
34149
34150 2002-11-26  Karl Berry  <karl@gnu.org>
34151
34152         * lib/strdup.c: copy from libc again, with jim's ok.
34153         * lib/.cppi-disable: re-add strdup.c
34154
34155 2002-11-25  Karl Berry  <karl@gnu.org>
34156
34157         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
34158         instead of "strtol.c".
34159
34160 2002-11-25  Karl Berry  <karl@gnu.org>
34161
34162         * config/install-sh: update from automake for variable quoting, $0 in
34163         error msgs, etc.
34164
34165         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
34166         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
34167         entry.
34168
34169 2002-11-25  Jim Meyering  <jim@meyering.net>
34170
34171         * lib/mktime.c: Sync from libc, now that it has the latest fix.
34172
34173 2002-11-24  Karl Berry  <karl@gnu.org>
34174
34175         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
34176         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
34177
34178 2002-11-24  Jim Meyering  <jim@meyering.net>
34179
34180         Update from coreutils:
34181
34182         * lib/mktime.c: Merge in changes from libc.
34183
34184         Avoid a link-time failure on some Linux systems.
34185         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
34186         (otherwise).
34187         (__mon_yday): Declare with the STATIC attribute.
34188         (__mktime_internal): Likewise.
34189         Based on a report from Greg Schafer.
34190
34191 2002-11-23  Jim Meyering  <jim@meyering.net>
34192
34193         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
34194         Use `unsigned', not `int', as type of index.
34195
34196         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
34197
34198         * lib/fsusage.c: Remove unneeded parentheses around operands of
34199         `defined'.
34200
34201 2002-11-22  Paul Eggert  <eggert@twinsun.com>
34202
34203         * lib/quotearg.h: Allow multiple inclusion by surrounding with
34204         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
34205         so that we can be included first.
34206         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
34207         * lib/quotearg.c: Include quotearg.h immediately after config.h.
34208         No need to include stddef.h or sys/types.h any more.
34209         Surround local include files with "", not "<>".
34210         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
34211         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
34212         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
34213         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
34214         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
34215         (ISPRINT): Remove; no longer needed now that we assume C89.
34216
34217         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
34218         Preserve errno.
34219
34220         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
34221         quotearg_char): Use SIZE_MAX rather than
34222         (size_t) -1 when we are talking about "infinity".
34223
34224         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
34225
34226 2002-11-22  Paul Eggert  <eggert@twinsun.com>
34227
34228         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
34229         hint that one should use `if (! x) abort ();' rather than `assert
34230         (x);', and anyway it's one less thing to worry about configuring.
34231         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
34232         hash_rehash, hash_insert): Use abort rather than assert.
34233
34234 2002-11-22  Bruno Haible  <bruno@clisp.org>
34235
34236         * lib/safe-read.h: Assume C89. Add comments.
34237         (safe_read): Change return type to size_t.
34238         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
34239         byte counts > SSIZE_MAX correctly.
34240         * lib/safe-write.h: New file.
34241         * lib/safe-write.c: New file.
34242         * lib/full-read.h: New file.
34243         * lib/full-read.c: New file.
34244         * lib/full-write.h: Assume C89. Add comments.
34245         * lib/full-write.c: Include safe-write.h.
34246         (full_write): Rewritten to use safe_write.
34247         Suggested by Jim Meyering and Paul Eggert.
34248
34249 2002-11-21  Jim Meyering  <jim@meyering.net>
34250
34251         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
34252
34253         Merge in changes from the coreutils.
34254
34255         2002-09-25  Paul Eggert  <eggert@twinsun.com>
34256         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
34257         <stdint.h>.
34258         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
34259         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
34260         int.  Work more efficiently if X is the same width as uintmax_t.
34261         Do not compare X to -1, to avoid bogus compiler warning.
34262         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
34263         Don't assume that f_frsize and f_bsize are the same type.
34264
34265         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
34266         warning on FreeBSD.
34267
34268         * lib/makepath.c (make_path): Restore umask *before* creating the final
34269         component.
34270         (make_path): Minor reformatting.
34271
34272         * lib/xmalloc.c: Adjust to work with new autoconf macros,
34273         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
34274         HAVE_MALLOC/HAVE_REALLOC.
34275
34276         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
34277         dummy ones.  At least on GNU/Linux systems, `auto' means something
34278         else.
34279         From Michael Stone.
34280
34281 2002-11-21  Bruno Haible  <bruno@clisp.org>
34282
34283         Remove case insensitive option matching.
34284         * lib/argmatch.h (argcasematch): Remove declaration.
34285         (ARGCASEMATCH): Remove macro.
34286         (__xargmatch_internal): Remove case_sensitive argument.
34287         (XARGMATCH): Update.
34288         (XARGCASEMATCH): Remove macro.
34289         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
34290         case_sensitive argument.
34291         (argcasematch): Remove function.
34292         (__xargmatch_internal): Remove case_sensitive argument.
34293         (main): Use XARGMATCH instead of XARGCASEMATCH.
34294
34295         * lib/xmalloc.c: Change compile-time error message. Add comment about
34296         required autoconf version.
34297
34298 2002-11-20  Paul Eggert  <eggert@twinsun.com>
34299
34300         Merge argmatch cleanups from Bison.  Assume C89.
34301
34302         * lib/argmatch.c: Include config.h here, not in argmatch.h.
34303         Include stdlib.h, for EXIT_FAILURE.
34304         Always include <string.h>, since we assume C89.
34305         (EXIT_FAILURE): Remove pre-C89 bug workaround.
34306         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
34307         Include <stddef.h> instead, since it's all we need for size_t.
34308         (PARAMS): Remove.  All uses removed.
34309         (ARRAY_CARDINALITY): Do not bother to #undef.
34310         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
34311         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
34312         Remove unnecessary parentheses.
34313         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
34314         Insert necessary parentheses.
34315         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
34316         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
34317
34318 2002-11-19  Bruno Haible  <bruno@clisp.org>
34319
34320         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
34321         * lib/mbswidth.h: Include <stddef.h>, for size_t.
34322
34323         * lib/mbswidth.h (PARAMS): Remove macro.
34324         (mbswidth, mbsnwidth): Use ANSI C function declarations.
34325         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
34326
34327         * lib/gcd.h (PARAMS): Remove macro.
34328         (gcd): Use ANSI C function declarations.
34329         * lib/gcd.c (gcd): Likewise.
34330
34331 2002-11-15  Bruno Haible  <bruno@clisp.org>
34332
34333         * lib/strcspn.c: Include <stddef.h>.
34334         (strcspn): Use ANSI C function declaration. Change return type to
34335         size_t. Use NULL.
34336         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
34337         (strpbrk): Use NULL.
34338         * lib/strpbrk.h (PARAMS): Remove macro.
34339         (strpbrk): Use ANSI C function declaration.
34340         * lib/strstr.c: Don't include <sys/types.h>.
34341         * lib/strstr.h (PARAMS): Remove macro.
34342         (strstr): Use ANSI C function declarations.
34343
34344 2002-11-14  Karl Berry  <karl@gnu.org>
34345
34346         * config/mkinstalldirs: `do' on separate line, instead of
34347         `for var; do'.
34348
34349 2002-11-06  Bruno Haible  <bruno@clisp.org>
34350
34351         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
34352         * lib/gcd.c (gcd): Likewise.
34353
34354 2002-11-05  Bruno Haible  <bruno@clisp.org>
34355
34356         * lib/gcd.h: New file, from gettext-0.11.5.
34357         * lib/gcd.c: New file, from gettext-0.11.5.
34358
34359 2002-11-05  Bruno Haible  <bruno@clisp.org>
34360
34361         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
34362         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
34363         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
34364         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
34365
34366         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
34367         <libintl.h>.
34368         * lib/makepath.c: Include gettext.h instead of <locale.h> and
34369         <libintl.h>.
34370
34371         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
34372         * lib/human.c: Include gettext.h instead of <libintl.h>.
34373         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
34374         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
34375         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
34376         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
34377         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
34378         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
34379         (textdomain): Remove definition.
34380         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
34381
34382         * lib/long-options.c: Remove include of <libintl.h> and definition of
34383         _.
34384         * lib/same.c: Remove include of <libintl.h> and definition of _.
34385
34386 2002-11-04  Owen Taylor  <otaylor@redhat.com>
34387
34388         * lib/config.charset: A few additions for Solaris.
34389
34390 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
34391
34392         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
34393         * lib/localcharset.c (locale_charset): Declare as extern "C".
34394
34395 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
34396
34397         * lib/config.charset: msdos in uk_UA uses CP1125.
34398
34399 2002-11-04  Bruno Haible  <bruno@clisp.org>
34400
34401         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
34402         * lib/strcase.h: New file, from GNU gettext-0.11.5.
34403         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
34404         * lib/strstr.h: New file, from GNU gettext-0.11.5.
34405         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
34406
34407 2002-11-04  Bruno Haible  <bruno@clisp.org>
34408
34409         * lib/localcharset.c (locale_charset): Don't return an empty string.
34410
34411 2002-11-04  Bruno Haible  <bruno@clisp.org>
34412
34413         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
34414         aliases.
34415
34416 2002-11-04  Bruno Haible  <bruno@clisp.org>
34417
34418         * lib/config.charset: Update for newest glibc. Add canonical names
34419         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
34420
34421 2002-11-04  Bruno Haible  <bruno@clisp.org>
34422
34423         * lib/config.charset: Add support for NetBSD.
34424
34425 2002-11-04  Bruno Haible  <bruno@clisp.org>
34426
34427         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
34428
34429 2002-11-01  Bruno Haible  <bruno@clisp.org>
34430
34431         * configure.in: Add AC_CONFIG_AUX_DIR call.
34432         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
34433         test/Makefile.
34434         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
34435
34436 2002-09-28  Karl Berry  <karl@gnu.org>
34437
34438         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
34439         installed automake until the next release, since changes have been
34440         made.
34441
34442 2002-09-25  Karl Berry  <karl@gnu.org>
34443
34444         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
34445         * lib/getopt*: copy from libc/posix.
34446         * lib/gettext.h: copy from gettext.
34447         * lib/.cppi-disable: add strdup.c, gettext.h.
34448
34449 2002-09-25  Karl Berry  <karl@gnu.org>
34450
34451         * config/srclist.txt: enable gettext.h check.
34452         * config/config.{guess,sub}: update from prep.
34453         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
34454                 from automake 1.6.3.
34455         See srclist*.
34456
34457 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
34458
34459         * regex.c (PATFETCH): Remove the translating fetch.
34460         (PATFETCH_RAW): Rename to PATFETCH.
34461         (set_image_of_range): New fun.
34462         (SET_RANGE_TABLE_WORK_AREA): Use it.
34463         (regex_compile): Don't translate the pattern chars so eagerly.
34464         Only do it when inserting an `exactn' bytecode or when handling
34465         a char-range.
34466         (mutually_exclusive_p): Avoid empty statement.
34467
34468 2002-07-06  Jim Meyering  <meyering@lucent.com>
34469
34470         * m4/README: Don't mention Makefile.am.in.
34471         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
34472
34473 2002-07-01  Jim Meyering  <meyering@lucent.com>
34474
34475         * lib/c-stack.c: Include sys/time.h.
34476         From Volker Borchert.
34477
34478 2002-06-26  Paul Eggert  <eggert@twinsun.com>
34479
34480         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
34481
34482 2002-06-26  Paul Eggert  <eggert@twinsun.com>
34483
34484         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
34485         New macro.  Use it uniformly instead of
34486         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
34487         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
34488         reported by Vin Shelton.
34489
34490 2002-06-22  Paul Eggert  <eggert@twinsun.com>
34491
34492         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
34493         Do not assume SA_SIGINFO behavior.
34494         Bug reported by Jim Meyering on NetBSD 1.5.2.
34495
34496 2002-06-22  Jim Meyering  <meyering@lucent.com>
34497
34498         * m4/c-stack.m4: New file, from diffutils-2.8.2.
34499         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
34500
34501         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
34502         now that configure.ac uses AC_GNU_SOURCE.
34503         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
34504         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
34505
34506         Update to latest tools.  Suggestions from Paul Eggert.
34507         * m4/stdbool.m4: New file, from diffutils-2.8.2.
34508         * m4/gnu-source.m4: Update from diffutils-2.8.2.
34509         * m4/fnmatch.m4: Likewise.
34510         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
34511         to AC_HEADER_STDBOOL
34512
34513 2002-06-22  Jim Meyering  <meyering@lucent.com>
34514
34515         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
34516         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
34517
34518 2002-06-22  Jim Meyering  <meyering@lucent.com>
34519
34520         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
34521
34522         * lib/exitfail.c, exitfail.h: Likewise.
34523         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
34524
34525         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
34526         of fnmatch.h.
34527         (EXTRA_DIST): Add fnmatch_loop.c.
34528         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
34529
34530         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
34531         * lib/fnmatch.c: Update from diffutils-2.8.2.
34532         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
34533         * lib/fnmatch.h: Remove file.
34534
34535 2002-06-21  Jim Meyering  <meyering@lucent.com>
34536
34537         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
34538         * m4/mbrtowc.m4: Likewise.
34539
34540         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
34541         * m4/mbswidth.m4: Reflect name change:
34542         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
34543         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
34544
34545         * m4/lib-link.m4: Update from gettext-0.11.2.
34546         * m4/gettext.m4: Likewise.
34547
34548         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
34549         From Alfred M. Szmidt.
34550
34551 2002-06-18  Paul Eggert  <eggert@twinsun.com>
34552
34553         * lib/file-type.h: Report an error if neither S_ISREG nor
34554         S_IFREG is defined, instead of using a test specific to glibc
34555         2.2.  This should be safe, since POSIX requires S_ISREG and
34556         Unix Version 7 had S_IFREG.  We don't need to check for
34557         <sys/types.h> since we don't use any symbols that it defines.
34558
34559 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
34560
34561         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
34562         $@-t, so that each temporary file name is unique and valid in the first
34563         8 characters, for operation under DOS.
34564
34565 2002-06-15  Paul Eggert  <eggert@twinsun.com>
34566
34567         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
34568
34569 2002-06-15  Jim Meyering  <meyering@lucent.com>
34570
34571         Work even with DJGPP 2.03, which lacks support for symlinks.
34572         From Richard Dawe.
34573         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
34574         is defined.
34575         * lib/lchown.c (S_ISLNK): Likewise.
34576
34577 2002-06-15  Jim Meyering  <meyering@lucent.com>
34578
34579         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
34580         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
34581         have been included before this file.
34582
34583 2002-06-14  Jim Meyering  <meyering@lucent.com>
34584
34585         * lib/file-type.h: Use the version from diffutils-2.8.2.
34586         * lib/file-type.c: Likewise.
34587
34588 2002-06-07  Jim Meyering  <meyering@lucent.com>
34589
34590         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
34591         They're needed at least for NetBSD 1.5.2.
34592         ($statxfs_includes): Include those same headers.
34593         ($statxfs_includes): Include sys/vfs.h if available.
34594         ($statxfs_includes): Likewise for sys/statvfs.h.
34595         Check for the following members in both structs statfs and statvfs:
34596         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
34597
34598 2002-06-01  Jim Meyering  <meyering@lucent.com>
34599
34600         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
34601         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
34602
34603 2002-05-28  Jim Meyering  <meyering@lucent.com>
34604
34605         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
34606         Reported by Volker Borchert.
34607
34608 2002-05-27  Jim Meyering  <meyering@lucent.com>
34609
34610         Fix a problem seen only on nonconforming systems whereby ls.c's
34611         use of localtime, and then of gettimeofday would cause trouble:
34612         the localtime call used to initialize rpl_gettimeofday's save
34613         mechanism would clobber ls's current local time information so
34614         that in any long listing the first file would always be listed
34615         with date 1970-01-01.  Analysis by Volker Borchert.
34616
34617         * lib/gettimeofday.c (localtime): Undefine.
34618         (rpl_localtime): New function.
34619
34620 2002-05-27  Jim Meyering  <meyering@lucent.com>
34621
34622         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
34623         localtime.
34624
34625         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
34626         use the replacement function; it wouldn't resolve at link time.
34627         Reported by Volker Borchert.
34628
34629 2002-05-22  Jim Meyering  <meyering@lucent.com>
34630
34631         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
34632         file-type.h.
34633         * lib/file-type.h: New file.
34634         * lib/file-type.c (file_type): New file/function.  Extracted from
34635         diffutils.
34636
34637 2002-04-30  Jim Meyering  <meyering@lucent.com>
34638
34639         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
34640
34641 2002-04-29  Paul Eggert  <eggert@twinsun.com>
34642
34643         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
34644
34645 2002-04-29  Paul Eggert  <eggert@twinsun.com>
34646
34647         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
34648         Do not check for alloca.h (no longer used) or stdbool.h (was never
34649         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
34650
34651 2002-04-29  Paul Eggert  <eggert@twinsun.com>
34652
34653         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
34654
34655 2002-04-29  Jim Meyering  <meyering@lucent.com>
34656
34657         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
34658         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
34659         Use AC_FUNC_STRNLEN here instead.
34660
34661         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
34662         With autoconf-2.53a, it's part of AC_PROG_CC.
34663
34664 2002-04-28  Paul Eggert  <eggert@twinsun.com>
34665
34666         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
34667         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
34668
34669 2002-04-28  Paul Eggert  <eggert@twinsun.com>
34670
34671         * lib/sig2str.h, lib/sig2str.c: New files.
34672         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
34673
34674 2002-04-28  Paul Eggert  <eggert@twinsun.com>
34675
34676         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
34677         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
34678         of 127, since 64 is the largest conceivable number for ancient
34679         nonstandard hosts.
34680         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
34681
34682 2002-04-28  Jim Meyering  <meyering@lucent.com>
34683
34684         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
34685
34686 2002-04-24  Jim Meyering  <meyering@lucent.com>
34687
34688         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
34689         (jm_PREREQ): Use it.
34690
34691         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
34692         mach/mach.h fcntl.h.
34693         Check for this function: setlocale.
34694
34695 2002-04-24  Jim Meyering  <meyering@lucent.com>
34696
34697         * lib/gettext.h: New file, from Gettext.
34698         * lib/Makefile.am (INCLUDES): Remove -I../intl.
34699         (libfetish_a_SOURCES): Add gettext.h.
34700
34701 2002-04-16  Jim Meyering  <meyering@lucent.com>
34702
34703         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
34704         ut_pid, ut_id, ut_exit.
34705
34706 2002-04-16  Jim Meyering  <meyering@lucent.com>
34707
34708         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
34709         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
34710         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
34711
34712 2002-04-12  Jim Meyering  <meyering@lucent.com>
34713
34714         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
34715         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
34716         existence of the getmntinfo function.  Needed for Darwin 5.3.
34717
34718         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
34719         This is necessary at least on Darwin 5.3.
34720
34721         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
34722         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
34723         strnlen.o in the library, and that makes some versions of ranlib
34724         object.
34725
34726 2002-04-12  Jim Meyering  <meyering@lucent.com>
34727
34728         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
34729
34730 2002-04-09  Jim Meyering  <meyering@lucent.com>
34731
34732         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
34733         to be more precise.  Rather than saying we're checking whether the
34734         function `works', say what we're testing.
34735         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
34736         Reported by Bruno Haible.
34737
34738 2002-03-10  Jim Meyering  <meyering@lucent.com>
34739
34740         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
34741         Suggestion from Santiago Vila.
34742
34743 2002-03-08  Jim Meyering  <meyering@lucent.com>
34744
34745         * lib/rename.c: Mention that this wrapper is needed also on
34746         mips-dec-ultrix4.4 systems.
34747
34748 2002-03-02  Jim Meyering  <meyering@lucent.com>
34749
34750         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
34751         not HAVE_CLOCK_SETTIME.
34752
34753 2002-02-27  Paul Eggert  <eggert@twinsun.com>
34754
34755         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
34756         Check for clock_settime.
34757
34758 2002-02-27  Paul Eggert  <eggert@twinsun.com>
34759
34760         * lib/nanosleep.h: Rename to....
34761         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
34762
34763         * lib/gettime.c: New file.
34764         * lib/settime.c: New file.
34765         * lib/stime.c: Remove.
34766
34767         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
34768         timespec.h.  Remove nanosleep.h.
34769
34770 2002-02-25  Paul Eggert  <eggert@twinsun.com>
34771
34772         * m4/acl.m4: New file.
34773         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
34774         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
34775
34776 2002-02-25  Paul Eggert  <eggert@twinsun.com>
34777
34778         * lib/acl.c, lib/acl.h: New files.
34779         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
34780
34781 2002-02-24  Jim Meyering  <meyering@lucent.com>
34782
34783         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
34784         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
34785         cause trouble.  Reported by Nelson Beebe.
34786
34787 2002-02-23  Paul Eggert  <eggert@twinsun.com>
34788
34789         * lib/path-concat.c (xpath_concat): Reorder code to pacify
34790         compilers that don't know that xalloc_die never returns.
34791
34792 2002-02-20  Jim Meyering  <meyering@lucent.com>
34793
34794         * lib/getdate.c: Regenerate using bison-1.33.
34795
34796 2002-02-17  Jim Meyering  <meyering@lucent.com>
34797
34798         * config/config.guess (main): Don't use `head -1'; it's no longer
34799         portable. Use `sed 1q' instead.
34800
34801 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
34802
34803         * m4/codeset.m4: Upgrade to gettext-0.11.
34804         * m4/gettext.m4: Upgrade to gettext-0.11.
34805         * m4/glibc21.m4: Upgrade to gettext-0.11.
34806         * m4/iconv.m4: Upgrade to gettext-0.11.
34807         * m4/isc-posix.m4: Upgrade to gettext-0.11.
34808         * m4/lcmessage.m4: Upgrade to gettext-0.11.
34809         * m4/lib-ld.m4: New file, from gettext-0.11.
34810         * m4/lib-link.m4: New file, from gettext-0.11.
34811         * m4/lib-prefix.m4: New file, from gettext-0.11.
34812         * m4/progtest.m4: Upgrade to gettext-0.11.
34813
34814 2002-02-15  Paul Eggert  <eggert@twinsun.com>
34815
34816         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
34817         (jm_PREREQ): Use it.
34818
34819 2002-02-15  Paul Eggert  <eggert@twinsun.com>
34820
34821         * lib/posixver.c, lib/posixver.h: New files.
34822         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
34823
34824 2002-02-02  Paul Eggert  <eggert@twinsun.com>
34825             Bruno Haible  <bruno@clisp.org>
34826
34827         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
34828         (fwrite_success_callback): New declaration.
34829         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
34830         print_unicode_char. Call failure callback instead of error.
34831         (fwrite_success_callback): New function.
34832         (exit_failure_callback): New function.
34833         (fallback_failure_callback): New function.
34834         (print_unicode_char): Call unicode_to_mb.
34835
34836 2002-01-26  Jim Meyering  <meyering@lucent.com>
34837
34838         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
34839         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
34840
34841 2002-01-26  Jim Meyering  <meyering@lucent.com>
34842
34843         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
34844
34845 2002-01-22  Paul Eggert  <eggert@twinsun.com>
34846
34847         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
34848
34849 2002-01-22  Jim Meyering  <meyering@lucent.com>
34850
34851         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
34852         Otherwise, some versions of automake would omit the rule that makes
34853         Makefile from Makefile.in.
34854
34855 2002-01-21  Paul Eggert  <eggert@twinsun.com>
34856
34857         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
34858         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
34859         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
34860         (memcoll): Set errno to zero if there is no error.
34861
34862         * lib/quotearg.c (quotearg_buffer_restyled):
34863         Fix bug with quoting buffers containing NUL when backslashing escapes.
34864         This bug was exposed by the other changes in this patch.
34865         (quotearg_n_options): New arg ARGSIZE.
34866         All callers changed.
34867         (quoting_options_from_style): New function.
34868         (quotearg_n_style): Use it.
34869         (quotearg_n_style_mem): New function.
34870
34871         * lib/quotearg.h (quotearg_n_style_mem): New function.
34872
34873 2002-01-19  Jim Meyering  <meyering@lucent.com>
34874
34875         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
34876         Remove useless quotes: DF_PROG="df".
34877         * m4/strnlen.m4: New file.
34878
34879 2002-01-16  Paul Eggert  <eggert@twinsun.com>
34880
34881         * lib/backupfile.c (ISDIGIT): Comment fix.
34882         * lib/getdate.y (ISDIGIT): Likewise.
34883         * lib/posixtm.c (ISDIGIT, year): Likewise.
34884         * lib/strverscmp.c (ISDIGIT): Likewise.
34885         * lib/userspec.c (ISDIGIT): Likewise.
34886
34887 2002-01-16  Jim Meyering  <meyering@lucent.com>
34888
34889         * lib/getdate.y: Add three semicolons, each just before a closing
34890         brace. Bison (as of version 1.31) no longer papers over that mistake.
34891
34892 2002-01-05  Jim Meyering  <meyering@lucent.com>
34893
34894         * lib/version-etc.c (version_etc_copyright): Update copyright year.
34895
34896 2001-12-19  Paul Eggert  <eggert@twinsun.com>
34897
34898         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
34899         not silently exit merely because the output buffer happens to
34900         have nothing pending.
34901
34902 2001-12-18  Paul Eggert  <eggert@twinsun.com>
34903
34904         See the big note in ../ChangeLog.
34905         * lib/human.c (suffixes): Prefer K to k for 1024.
34906         (generate_suffix_backwards): New function.
34907         (human_readable_inexact): Use it.
34908         * lib/xstrtol.c (__xstrtol): If there is no number but there
34909         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
34910         Accept 'K' as well as 'k'.
34911
34912 2001-12-15  Jim Meyering  <meyering@lucent.com>
34913
34914         * lib/regex.h (__restrict_arr): Update from libc.
34915
34916         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
34917         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
34918         (STREQ): Define.
34919
34920 2001-12-14  Jim Meyering  <meyering@lucent.com>
34921
34922         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
34923         Suggestion from Bruno Haible.
34924
34925 2001-12-10  Jim Meyering  <meyering@lucent.com>
34926
34927         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
34928         xrealloc, Instead, include "xalloc.h".
34929         (initbuffer): Don't cast xmalloc return value to char*.
34930         (readline): Reword comment.
34931         Don't cast xrealloc return value to char*
34932         Return NULL, not 0.
34933
34934 2001-12-09  Jim Meyering  <meyering@lucent.com>
34935
34936         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
34937         about `signed and unsigned type in conditional expression'.
34938         * lib/posixtm.c (posix_time_parse): Likewise.
34939
34940         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
34941
34942         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
34943         to avoid a pedantic warning.
34944
34945         * lib/getstr.c: Don't include assert.h.
34946         (getstr): Remove warning-evoking assertions.
34947         Return -1 if offset parameter is out of bounds.
34948         Change the type of a local from int to size_t.
34949
34950         * lib/strftime.c (my_strftime_localtime_r): Include this function
34951         definition in the `#if ! HAVE_TM_GMTOFF' block.
34952
34953         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
34954         Include xalloc.h instead.
34955
34956 2001-12-02  Jim Meyering  <meyering@lucent.com>
34957
34958         * lib/tempname.c: Don't declare getenv, thus reverting the change of
34959         2001-11-18.  It's no longer necessary, now that stdlib.h is always
34960         included.
34961
34962         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
34963         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
34964
34965 2001-11-30  Akim Demaille  <akim@epita.fr>
34966
34967         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
34968         before being defined.
34969
34970 2001-11-27  Paul Eggert  <eggert@twinsun.com>
34971
34972         * lib/quotearg.h (quotearg_n, quotearg_n_style):
34973         First arg is int, not unsigned.
34974         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
34975         (SIZE_MAX, UINT_MAX): New macros.
34976         (quotearg_n_options): Abort if N is negative.
34977         Avoid overflow check on hosts where size_t is 64 bits and int
34978         is 32 bits, as overflow is impossible there.
34979         Fix off-by-one typo that caused unnecessary reallocation.
34980
34981 2001-11-27  Jim Meyering  <meyering@lucent.com>
34982
34983         * lib/tempname.c: Merge with version from libc.
34984         * lib/regex.c: Likewise.
34985
34986         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
34987         systems for which STDC_HEADERS is 0, it was not included, resulting in
34988         a warning about an integer-to-pointer conversion problem with getenv.
34989         Reported by Volker Borchert.
34990
34991 2001-11-26  Jim Meyering  <meyering@lucent.com>
34992
34993         * lib/gtod.h: Remove file.
34994         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
34995         * lib/gettimeofday.c: Don't include gtod.h.
34996         (GTOD_init): Remove function.
34997         (rpl_gettimeofday): Do its job here instead, rather than aborting.
34998         Suggestion from Volker Borchert.
34999
35000 2001-11-23  Jim Meyering  <meyering@lucent.com>
35001
35002         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
35003         it.
35004         * lib/hash.c (struct hash_table): Define it here instead.
35005
35006 2001-11-22  Jim Meyering  <meyering@lucent.com>
35007
35008         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
35009
35010 2001-11-20  Jim Meyering  <meyering@lucent.com>
35011
35012         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
35013         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
35014
35015 2001-11-19  Jim Meyering  <meyering@lucent.com>
35016
35017         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
35018         directory.  Use "conftestXXXXXX" as the template.
35019         Suggestion from Paul Eggert.
35020
35021         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
35022         immediately, so the test doesn't mistakenly hit the max-open-files
35023         limit.
35024
35025 2001-11-18  Paul Eggert  <eggert@twinsun.com>
35026
35027         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
35028         (TEMPORARIES): New macro.
35029         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
35030         removes an artificial limitation (e.g. HP-UX 10.20, where
35031         TMP_MAX is 17576).
35032
35033 2001-11-18  Jim Meyering  <meyering@lucent.com>
35034
35035         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
35036
35037 2001-11-18  Jim Meyering  <meyering@lucent.com>
35038
35039         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
35040         on SunOS 4.
35041
35042         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
35043         files will be created before anything else.
35044
35045 2001-11-17  Paul Eggert  <eggert@twinsun.com>
35046
35047         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
35048         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
35049
35050 2001-11-17  Jim Meyering  <meyering@lucent.com>
35051
35052         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
35053         Prompted by a report from Bob Proulx.
35054
35055         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
35056         Instead, require UTILS_FUNC_MKSTEMP.
35057
35058 2001-11-17  Jim Meyering  <meyering@lucent.com>
35059
35060         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
35061         Now, that's done as part of AC_FUNC_STRTOD.
35062
35063 2001-11-17  Jim Meyering  <meyering@lucent.com>
35064
35065         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
35066         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
35067         rather than group writable.  Patch by Juan F. Codagnone.
35068
35069         * lib/readtokens.c: Remove explicit declarations of xmalloc and
35070         xrealloc, Instead, include "xalloc.h".
35071
35072         * lib/mountlist.c: Include unlocked-io.h after all system headers.
35073         Remove explicit declarations of xmalloc, xrealloc,
35074         and xstrdup.  Instead, include "xalloc.h".
35075
35076         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
35077         unlocked-io.h.
35078         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
35079         Likewise.
35080         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
35081
35082         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
35083         Reported by Padraig Brady.
35084
35085         * lib/mkstemp.c: #undef mkstemp.
35086         Include config.h.
35087         (rpl_mkstemp): Rename from mkstemp.
35088         Protoize.
35089
35090 2001-11-16  Jim Meyering  <meyering@lucent.com>
35091
35092         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
35093         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
35094         determine the amount of total physical memory, use pstat_getstatic.
35095         HPUX-11 doesn't define _SC_PHYS_PAGES.
35096         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
35097         If sysconf couldn't be used to determine the amount of available
35098         physical memory, use both pstat_getstatic and pstat_getdynamic.
35099         Based on a patch from Bob Proulx.
35100
35101 2001-11-10  Jim Meyering  <meyering@lucent.com>
35102
35103         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
35104         (jm_PREREQ): Use it.
35105
35106 2001-11-09  Jim Meyering  <meyering@lucent.com>
35107
35108         * m4/jm-macros.m4: Require autoconf-2.52f.
35109         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
35110         Use these AC_-prefixed names, not the AM_-prefixed ones.
35111
35112         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
35113
35114 2001-11-05  Jim Meyering  <meyering@lucent.com>
35115
35116         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
35117
35118 2001-11-04  Jim Meyering  <meyering@lucent.com>
35119
35120         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
35121         $DEFS.
35122
35123 2001-11-03  Jim Meyering  <meyering@lucent.com>
35124
35125         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
35126         of AC_DEFUN.
35127
35128         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
35129         know the name of the variable in the macro definition.
35130
35131 2001-11-03  Jim Meyering  <meyering@lucent.com>
35132
35133         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
35134         in argmatch_to_argument call.
35135
35136         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
35137         argument.
35138
35139         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
35140         e.g., a fault due to an attempt to free a NULL pointer.
35141
35142 2001-11-01  Jim Meyering  <meyering@lucent.com>
35143
35144         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
35145         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
35146
35147 2001-11-01  Jim Meyering  <meyering@lucent.com>
35148
35149         * lib/dirfd.c, lib/dirfd.h: New files.
35150         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
35151
35152         * lib/hash.c (hash_print) [TESTING]: Clean up.
35153
35154 2001-10-22  Paul Eggert  <eggert@twinsun.com>
35155
35156         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
35157         to avoid a warning if -Wall.
35158
35159 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
35160
35161         * README: New file
35162         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
35163         (per RMS's instructions, this is now the canonical source)
35164         * lgpl/, gpl/: New directories.
35165
35166 2001-10-21  Paul Eggert  <eggert@twinsun.com>
35167
35168         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
35169
35170 2001-10-21  Jim Meyering  <meyering@lucent.com>
35171
35172         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
35173         this code would end up calling gettext even in packages built
35174         with --disable-nls.
35175         * lib/getopt.c (_): Likewise.
35176         * lib/regex.c (_): Likewise.
35177
35178 2001-10-20  Paul Eggert  <eggert@twinsun.com>
35179
35180         * m4/error.m4 (jm_PREREQ_ERROR):
35181         Do not invoke AC_CHECK_FUNCS with strerror_r, as
35182         AC_FUNC_STRERROR_R does that.
35183         Check for strerror declaration.
35184
35185         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
35186         are supposed to have them these days.
35187         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
35188         Merge changes from latest Autoconf CVS.
35189         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
35190         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
35191         POSIX decided to standardize on the int flavor of strerror_r.
35192
35193 2001-10-20  Paul Eggert  <eggert@twinsun.com>
35194
35195         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
35196         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
35197         Use strerror_r that is only a macro, even if it is not a function.
35198         (strerror): Check for HAVE_DECL_STRERROR before declaring.
35199         (private_strerror): Use prototypes, not old-style function definition.
35200         (print_errno_message): New function.
35201         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
35202         char*-flavored one.
35203         (error_tail, error, error_at_line): Use it.
35204
35205 2001-10-11  Jim Meyering  <meyering@lucent.com>
35206
35207         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
35208         and quote_n (1, ... to avoid clobbering a buffer.
35209
35210 2001-10-05  Jim Meyering  <meyering@lucent.com>
35211
35212         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
35213         hash-pjw.h.
35214         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
35215         * lib/hash-pjw.h: New file.
35216
35217 2001-09-30  Jim Meyering  <meyering@lucent.com>
35218
35219         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
35220         `struct fsstat' has the `f_fstypename' member.
35221         Use that to define FS_TYPE, which is now used to make
35222         the getfsstat link test tighter.
35223
35224 2001-09-30  Jim Meyering  <meyering@lucent.com>
35225
35226         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
35227         Include <sys/ucred.h>, for Apple Darwin.
35228         Include sys/mount.h and sys/fs_types.h only if available.
35229         (FS_TYPE): Define.
35230         (read_filesystem_list): Use FS_TYPE.
35231
35232 2001-09-29  Paul Eggert  <eggert@twinsun.com>
35233
35234         * lib/exclude.c (excluded_filename): 0 -> false, since it's
35235         a boolean context.
35236
35237 2001-09-29  Jim Meyering  <meyering@lucent.com>
35238
35239         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
35240         [one-argument getmntent function]): Include stdio.h before mntent.h.
35241         SunOS 4.1.x needs it for the declaration of `FILE'.
35242         Patch by Volker Borchert.
35243
35244         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
35245         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
35246         sys/fs_types.h, and make the link-test for getfsstat guard #include
35247         directives with appropriate #if HAVE_*_H tests so that we can
35248         detect getfsstat on Apple Darwin1.3.7 systems.
35249         Reported by Nelson Beebe.
35250         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
35251
35252 2001-09-28  Paul Eggert  <eggert@twinsun.com>
35253
35254         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
35255         #defines strtoimax.  Also treat the other strto* functions
35256         like strtoimax.
35257
35258         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
35259         Check for strtoul and strtoumax,
35260         as those declarations are made even in the signed case.
35261         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
35262         Likewise, for strtol and strtoimax.
35263
35264 2001-09-28  Paul Eggert  <eggert@twinsun.com>
35265
35266         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
35267         #defines strtoimax.  Also treat the other strto* functions
35268         like strtoimax.
35269
35270         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
35271         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
35272         (strtoimax, strtoumax): Do not declare if already defined as a macro.
35273
35274 2001-09-26  Jim Meyering  <meyering@lucent.com>
35275
35276         Most macros in unlocked-io.h had the wrong number of arguments.
35277         * lib/gen-uio: New script.
35278         (USE_UNLOCKED_IO): Define to 1 if not already defined.
35279         * lib/unlocked-io.hin: Remove file.
35280         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
35281         rather than trying to embed it here.
35282         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
35283         Reported by Padraig Brady.
35284
35285 2001-09-25  Volker Borchert  <bt@teknon.de>
35286
35287         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
35288         `result'.
35289
35290 2001-09-24  Jim Meyering  <meyering@lucent.com>
35291
35292         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
35293
35294 2001-09-23  Jim Meyering  <meyering@lucent.com>
35295
35296         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
35297         instead of the mere test for existence of mntent.h.  The latter
35298         would get a false-positive on AIX 3.4 systems.
35299         In the outer getmntent if-block, don't die if neither of the getmntent
35300         tests succeeds.  Instead, just fall through and continue with the
35301         remaining tests.
35302
35303 2001-09-23  Jim Meyering  <meyering@lucent.com>
35304
35305         * lib/mountlist.c: Remove useless parentheses in #if directives.
35306         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
35307         the deprecated MOUNTED symbol is no longer defined in mntent.h.
35308
35309 2001-09-22  Jim Meyering  <meyering@lucent.com>
35310
35311         * m4/gettext.m4: New file.  From gettext.
35312         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
35313         * m4/progtest.m4: Likewise
35314         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
35315         * m4/glibc21.m4: Likewise.
35316
35317         * m4/libintl.m4: Remove.  No longer used.
35318
35319 2001-09-22  Jim Meyering  <meyering@lucent.com>
35320
35321         * lib/localcharset.c: Update from latest gettext.
35322         * lib/config.charset: Likewise.
35323
35324 2001-09-20  Jim Meyering  <meyering@lucent.com>
35325
35326         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
35327         strtoimax.
35328         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
35329         strtoumax.
35330
35331 2001-09-20  Jim Meyering  <meyering@lucent.com>
35332
35333         * lib/xstrtol.c (strtoimax): Guard declaration with
35334         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
35335         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
35336         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
35337         (strtoumax): Likewise, for completeness (it wasn't necessary).
35338
35339 2001-09-17  Paul Eggert  <eggert@twinsun.com>
35340
35341         * lib/strtoimax.c (HAVE_LONG_LONG):
35342         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
35343         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
35344         to work around bug in IBM C compiler.
35345
35346 2001-09-17  Jim Meyering  <meyering@lucent.com>
35347
35348         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
35349         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
35350         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
35351         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
35352         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
35353         whenever the right hand side need not be expanded by the shell.
35354
35355 2001-09-16  Paul Eggert  <eggert@twinsun.com>
35356
35357         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
35358         library.  It's not correct, as some older glibcs are buggy.
35359         fnmatch wasn't fixed until glibc 2.2.
35360
35361         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
35362         special shell magic here.
35363
35364 2001-09-16  Jim Meyering  <meyering@lucent.com>
35365
35366         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
35367         * m4/jm-macros.m4: Require it.
35368
35369 2001-09-16  Jim Meyering  <meyering@lucent.com>
35370
35371         * lib/mkdir.c: New file.
35372
35373 2001-09-15  Jim Meyering  <meyering@lucent.com>
35374
35375         * m4/jm-macros.m4: Check for help2man.
35376
35377 2001-09-11  Jim Meyering  <meyering@lucent.com>
35378
35379         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
35380         The body, by Paul Eggert, was moved here from configure.in.
35381         * m4/jm-macros.m4: Require UTILS_HOST_OS.
35382
35383 2001-09-04  Paul Eggert  <eggert@twinsun.com>
35384
35385         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
35386         (jm_PREREQ): Use it.
35387
35388 2001-09-04  Paul Eggert  <eggert@twinsun.com>
35389
35390         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
35391         Use ssize_t, not int, to store result of readlink.
35392         Check for ssize_t overflow as well as size_t overflow,
35393         as POSIX says the result of readlink is implementation-defined
35394         when ssize_t overflows.
35395         Remove unnecessary cast to char*.
35396         Use free+malloc instead of realloc, as the storage doesn't need
35397         to be preserved and it's clearer and can be more efficient that way.
35398         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
35399         * lib/xreadlink.h (xreadlink): Update prototype.
35400
35401 2001-09-04  Paul Eggert  <eggert@twinsun.com>
35402
35403         * lib/xgetcwd.c: Revert some of the previous change; intead,
35404         fix the HAVE_GETCWD_NULL code to behave more like the
35405         !HAVE_GETCWD_NULL code used to.
35406
35407         Include "xalloc.h".
35408         (xgetcwd): Do not return NULL when memory is exhausted; instead,
35409         invoke xalloc_die.
35410
35411 2001-09-03  Paul Eggert  <eggert@twinsun.com>
35412
35413         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
35414         sys/param.h, as pathmax.h includes them.
35415
35416 2001-09-03  Paul Eggert  <eggert@twinsun.com>
35417
35418         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
35419         (jm_PREREQ_XGETCWD): New macro.
35420
35421         * m4/getcwd.m4: New file.
35422
35423 2001-09-03  Paul Eggert  <eggert@twinsun.com>
35424
35425         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
35426         like the HAVE_GETCWD_NULL code.
35427         Include pathmax.h if not HAVE_GETCWD.
35428         Do not include xalloc.h.
35429         (INITIAL_BUFFER_SIZE): New symbol.
35430         Do not use xmalloc / xrealloc, since the caller is responsible for
35431         handling errors.  Preserve errno around `free' during failure.
35432         Do not overrun buffer when using getwd.
35433
35434 2001-09-03  Paul Eggert  <eggert@twinsun.com>
35435
35436         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
35437         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
35438         getcwd (NULL, 0).
35439
35440 2001-09-03  Paul Eggert  <eggert@twinsun.com>
35441
35442         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
35443         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
35444         spotted by Jim Meyering.
35445
35446 2001-09-03  Jim Meyering  <meyering@lucent.com>
35447
35448         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
35449         failure.
35450
35451 2001-09-02  Jim Meyering  <meyering@lucent.com>
35452
35453         * lib/error.c: Update from GNU libc.
35454
35455 2001-09-01  Jim Meyering  <meyering@lucent.com>
35456
35457         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
35458         Used by df.
35459
35460 2001-09-01  Jim Meyering  <meyering@lucent.com>
35461
35462         * lib/xreadlink.c: New file.
35463         * lib/xreadlink.h: New file.
35464         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
35465         xreadlink.h.
35466
35467         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
35468         doesn't conflict with sparc Solaris 7's definition in
35469         /usr/include/sys/int_types.h.
35470
35471         * lib/exclude.c: Use `""', not `<>' to #include non-system header
35472         files.
35473         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
35474         and strncasecmp as r-values.  Unixware didn't have declarations.
35475
35476 2001-08-31  Paul Eggert  <eggert@twinsun.com>
35477
35478         * lib/xstrtol.h: Add copyright notice.
35479         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
35480         LONGINT_INVALID_SUFFIX_CHAR.
35481
35482 2001-08-31  Paul Eggert  <eggert@twinsun.com>
35483
35484         * lib/xstrtol.c (strtoimax): New decl.
35485
35486 2001-08-31  Paul Eggert  <eggert@twinsun.com>
35487
35488         * lib/xgetcwd.c: Don't include pathmax.h.
35489         Include stdlib.h and unistd.h if available.
35490         Include xalloc.h.
35491         (xmalloc, xstrdup, free): Remove decls.
35492         (xgetcwd): Don't assume sizes fit in unsigned.
35493         Check for overflow when computing sizes.
35494         Simplify reallocation code.
35495
35496 2001-08-31  Paul Eggert  <eggert@twinsun.com>
35497
35498         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
35499         a directory's st_size can have an arbitrary value, so the old
35500         usage could waste an arbitrary amount of memory.  All uses
35501         changed.
35502         * lib/savedir.h: Update prototype.
35503
35504 2001-08-31  Paul Eggert  <eggert@twinsun.com>
35505
35506         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
35507
35508         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
35509         old strtoimax.c.
35510
35511         Also, make the following further changes to make this file's
35512         configuration more similar to that of strtol.c:
35513         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
35514         (strtoumax, uintmax_t, strtoull, strtol): Remove.
35515         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
35516         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
35517         changed to signed values.
35518
35519         And make the following changes as well:
35520         Fix copyright notice, as 1999 was missing.
35521         (verify): New macro.
35522         (strtoimax): Check sizes at compile-time, not run-time.
35523         Prefer strtol to strtoll if both work.
35524         (main): Remove; it was not that useful and was a pain to maintain.
35525
35526         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
35527
35528 2001-08-31  Jim Meyering  <meyering@lucent.com>
35529
35530         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
35531         Use an initial, malloc'd, buffer of length 128 rather than
35532         a statically allocated one of length 1024.
35533
35534 2001-08-30  Paul Eggert  <eggert@twinsun.com>
35535
35536         Simplify code, partly by assuming autoconf 2.52 semantics.
35537
35538         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
35539
35540         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
35541         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
35542         All uses removed.
35543         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
35544         Move AC_REQUIRE to next-to-top level, to avoid confusion.
35545         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
35546         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
35547         jm_AC_HEADER_INTTYPES_H.
35548         * m4/jm-macros.m4 (jm_MACROS): Likewise.
35549
35550         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
35551
35552         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
35553         Quote first arg of AC_DEFUN.
35554         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
35555         since they are needed to parse the include file even if we need
35556         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
35557         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
35558         but with opposite signedness.
35559
35560 2001-08-30  Paul Eggert  <eggert@twinsun.com>
35561
35562         Merge 'exclude' changes from tar 1.13.22.
35563         This fixes one or two unlikely storage allocation overflow bugs,
35564         but doesn't change user-visible behavior otherwise.
35565
35566 2001-08-30  Paul Eggert  <eggert@twinsun.com>
35567
35568         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
35569         (jm_PREREQ_EXCLUDE): New macro.
35570
35571 2001-08-30  Paul Eggert  <eggert@twinsun.com>
35572
35573         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
35574         tm to be declared.
35575
35576 2001-08-30  Paul Eggert  <eggert@twinsun.com>
35577
35578         * lib/hash.c: Remove '2001' from copyright notice.
35579
35580 2001-08-30  Paul Eggert  <eggert@twinsun.com>
35581
35582         * lib/full-write.h: New file.
35583         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
35584         * lib/full-write.c: Correct credits, as cccp.c no longer
35585         exists and anyway it was so heavily changed from the old cccp
35586         code as to be unrecognizable.  Include full-write.h.
35587         (full_write) Return size_t, with short writes meaning failure.
35588         All callers changed.  This fixes a bug with large buffers
35589         on 64-bit hosts.
35590         * lib/utime.c: Include full-write.h.
35591
35592 2001-08-30  Paul Eggert  <eggert@twinsun.com>
35593
35594         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
35595         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
35596         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
35597         Include if available.
35598         (<xalloc.h>): Include
35599         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
35600         (verify): New macro.  Use it to verify that EXCLUDE macros do not
35601         collide with FNM macros.
35602         (struct patopts): New struct.
35603         (struct exclude): Use it, as exclude patterns now come with options.
35604         (new_exclude): Support above changes.
35605         (new_exclude, add_exclude_file):
35606         Initial size must now be a power of two to simplify overflow checking.
35607         (free_exclude, fnmatch_no_wildcards): New function.
35608         (excluded_filename): No longer requires options arg, as the options
35609         are determined by add_exclude.  Now returns bool, not int.
35610         (excluded_filename, add_exclude):
35611         Add support for the fancy new exclusion options.
35612         (add_exclude, add_exclude_file): Now takes int options arg.
35613         Check for arithmetic overflow when computing sizes.
35614         (add_exclude_file): xrealloc might modify errno, so don't
35615         realloc until after errno might be used.
35616
35617         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
35618         New macros.
35619         (free_exclude): New decl.
35620         (add_exclude, add_exclude_file): Now takes int options arg.
35621         (excluded_filename): No longer requires options arg, as the options
35622         are determined by add_exclude.  Now returns bool, not int.
35623
35624 2001-08-30  Paul Eggert  <eggert@twinsun.com>
35625
35626         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
35627
35628 2001-08-27  Jim Meyering  <meyering@lucent.com>
35629
35630         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
35631
35632         * lib/version-etc.c (N_): Remove definition.
35633         Revert most of last change.
35634         Instead, simply don't mark the `Copyright...' string for translation.
35635         Based on advice from Paul Eggert.
35636
35637         * lib/strtoxmax.c: Tweak comment.
35638
35639 2001-08-26  Jim Meyering  <meyering@lucent.com>
35640
35641         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
35642
35643         * m4/xstrtoimax.m4: New file.
35644         * m4/xstrtoumax.m4: Add comments explaining why we
35645         AC_REPLACE_FUNCS(strtol).
35646
35647 2001-08-26  Jim Meyering  <meyering@lucent.com>
35648
35649         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
35650         of copyright with `%s' so translators don't get an untranslated
35651         message in 2002.
35652         (COPYRIGHT_YEAR): Define.
35653         (version_etc): Use fprintf rather than fputs.
35654         Suggestion from Ulrich Drepper.
35655
35656         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
35657
35658         * lib/strtoll.c: New file, from GNU libc.
35659         * lib/xstrtoimax.c: New file.
35660
35661         * lib/xstrtol.h: Add xstrtoimax.
35662         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
35663         * lib/strtoimax.c: New file.  Likewise, but first define
35664         STRTOUXMAX_SIGNED.
35665
35666         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
35667         ...
35668         * lib/strtoxmax.c: ... then renamed to this.
35669
35670 2001-08-18  Paul Eggert  <eggert@twinsun.com>
35671
35672         * m4/inttypes.m4: Add AC_PREREQ(2.13).
35673         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
35674         (jm_AC_TYPE_INTMAX_T): New macro.
35675         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
35676
35677         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
35678
35679         * m4/longlong.m4: Renamed from ulonglong.m4.
35680         * m4/inttypes.m4: Renamed from inttypes_h.m4.
35681         * m4/uintmax_t.m4: Removed.
35682
35683 2001-08-13  Paul Eggert  <eggert@twinsun.com>
35684
35685         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
35686         Port to Solaris 8, where 'sed' requires a space after the 'r'
35687         command, and where sh dislikes "$/".  Clean up the spacing a bit.
35688         Redirect output to $tmp just once.
35689
35690 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
35691
35692         * lib/addext.c (<errno.h>): Include.
35693         (errno): Declare if not defined.
35694         (addext): Work correctly when pathconf returns -1 and leaves
35695         errno alone because there is no limit.  Also, work even if
35696         pathconf returns a value greater than SIZE_MAX.
35697
35698 2001-08-12  Jim Meyering  <meyering@lucent.com>
35699
35700         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
35701         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
35702         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
35703         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
35704         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
35705         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
35706         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
35707         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
35708         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
35709         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
35710         utime.m4, utimes.m4, xstrtoumax.m4:
35711         Quote the first argument in each use of AC_DEFUN.
35712
35713 2001-08-12  Jim Meyering  <meyering@lucent.com>
35714
35715         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
35716         Simply `return getcwd (NULL, 0);'.
35717         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
35718         Use 1300 as initial value for length, not PATH_MAX.
35719
35720         * lib/pathmax.h: Clean up cpp syntax.
35721
35722 2001-08-12  Jim Meyering  <meyering@lucent.com>
35723
35724         * lib/gettimeofday.c: New file.
35725         * lib/gtod.h: New file.
35726         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
35727
35728 2001-08-05  Jim Meyering  <meyering@lucent.com>
35729
35730         * m4/jm-macros.m4: Require autoconf-2.52.
35731
35732 2001-08-04  Jim Meyering  <meyering@lucent.com>
35733
35734         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
35735         stmt, to get in sync with glibc.
35736
35737 2001-08-03  Paul Eggert  <eggert@twinsun.com>
35738
35739         The following changes are from gettext 0.10.39 as maintained by
35740         Bruno Haible.
35741
35742         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
35743         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
35744         with inverted sense.  All uses changed.
35745
35746         * lib/mbswidth.c: Don't include <limits.h>.
35747         Include <stdlib.h> and <string.h> unconditionally.
35748         (iswcntrl, mbsinit, ISCNTRL): New macros.
35749         (mbsnwidth): Use K&R style function declarations.
35750         Don't bother checking for MB_LEN_MAX == 1, since the compiler
35751         can optimize it when MB_CUR_MAX == 1.
35752         The width of control characters is zero, not 1.
35753
35754 2001-08-03  Paul Eggert  <eggert@twinsun.com>
35755
35756         The following changes are from gettext 0.10.39 as maintained by
35757         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
35758
35759         * m4/codeset.m4: Upgrade to serial AM1.
35760         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
35761         all uses changed.  Quote first arg of AC_DEFUN.
35762         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
35763
35764         * m4/iconv.m4: Upgrade to serial AM2.
35765         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
35766         Add --with-libconv-prefix.
35767         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
35768         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
35769         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
35770         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
35771         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
35772
35773         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
35774         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
35775         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
35776         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
35777         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
35778         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
35779         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
35780         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
35781         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
35782
35783         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
35784         string.h any more.
35785
35786         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
35787         not the default value.
35788
35789         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
35790         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
35791         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
35792         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
35793         Also check for iswcntrl, used for wcwidth fallback.
35794         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
35795         to Autoconf 2.13.
35796
35797 2001-08-03  Jim Meyering  <meyering@lucent.com>
35798
35799         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
35800         as it was in the original.  Reported by Paul Eggert.
35801
35802 2001-07-16  Jim Meyering  <meyering@lucent.com>
35803
35804         * m4/gettimeofday.m4: New file.
35805         Prompted by a report from Bernhard Baehr.
35806
35807 2001-07-15  Jim Meyering  <meyering@lucent.com>
35808
35809         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
35810         stuff. Now it's in ../Makefile.cfg.
35811
35812 2001-07-15  Jim Meyering  <meyering@lucent.com>
35813
35814         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
35815         (BUILT_SOURCES): Add unlocked-io.h.
35816         (io_functions): Define.
35817         (unlocked-io.h): New rule.
35818         (DISTCLEANFILES): Add unlocked-io.h.
35819         (all-local): Depend on unlocked-io.h, to ensure it is created.
35820
35821         * lib/unlocked-io.hin: New file
35822
35823         * lib/regex.c: Update from glibc.
35824
35825 2001-07-05  Jim Meyering  <meyering@lucent.com>
35826
35827         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
35828         recommendation.
35829         (libfetish_a_SOURCES): Put all .h files here instead.
35830         Remove a thus-exposed (better checks in automake) duplicate and
35831         two unnecessary .h files.
35832
35833 2001-07-04  Jim Meyering  <meyering@lucent.com>
35834
35835         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
35836         that generates jm-glibc-io.m4 so that it doesn't trigger any make
35837         distcheck failure.
35838
35839 2001-07-02  Jim Meyering  <meyering@lucent.com>
35840
35841         The following changes were prompted by suggestions from Bruno Haible.
35842
35843         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
35844         is now generated.
35845         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
35846         definition of EXTRA_DIST.
35847         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
35848         ensure that the generated file is created/updated whenever the list
35849         of $(unlocked_functions) is changed.
35850         (jm-glibc-io.m4): New rule.
35851         (unlocked-io.h): New rule -- currently unused.
35852
35853 2001-06-24  Jim Meyering  <meyering@lucent.com>
35854
35855         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
35856         unmatched right bracket, rather than kludging it with an extra,
35857         falsely-matching quote in a comment.  Patch by Akim Demaille.
35858
35859 2001-06-11  Jim Meyering  <meyering@lucent.com>
35860
35861         * lib/regex.c: Update from GNU libc.
35862
35863 2001-05-27  Jim Meyering  <meyering@lucent.com>
35864
35865         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
35866         Check for ut_type in struct utmp.
35867
35868 2001-05-27  Jim Meyering  <meyering@lucent.com>
35869
35870         * lib/readutmp.h (UT_TYPE): Define.
35871
35872 2001-05-24  Jim Meyering  <meyering@lucent.com>
35873
35874         * lib/argmatch.c: Include "quote.h".
35875         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
35876         quote function.  Reported by Göran Uddeborg.
35877
35878 2001-05-22  Jim Meyering  <meyering@lucent.com>
35879
35880         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
35881         now that we use the package-supplied version unconditionally.
35882         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
35883
35884 2001-05-21  Jim Meyering  <meyering@lucent.com>
35885
35886         * m4/regex.m4: Change a couple backticks to single quotes to avoid
35887         shell syntax errors.
35888
35889 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
35890
35891         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
35892
35893 2001-05-20  Paul Eggert  <eggert@twinsun.com>
35894
35895         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
35896         Don't bother to check library strftime, since
35897         we'll be using our own my_strftime function anyway.
35898         Define my_strftime instead of strftime.
35899
35900 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
35901
35902         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
35903         which is not yet declared.
35904
35905 2001-05-15  Jim Meyering  <meyering@lucent.com>
35906
35907         * m4/regex.m4: Use proper quoting so brackets appear in the test
35908         program.
35909         Reported by, and with help from, Bruno Haible.
35910
35911 2001-05-13  Jim Meyering  <meyering@lucent.com>
35912
35913         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
35914         undefined.
35915
35916 2001-05-11  Paul Eggert  <eggert@twinsun.com>
35917
35918         dirname code cleanup.  base_name now behaves more compatibly
35919         with POSIX basename when given file names that have trailing
35920         slashes, and similarly for dir_name.  Add new primitives
35921         base_len and dir_len.  Put the directory-name-related decls
35922         into dirname.h.
35923
35924         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
35925         * lib/backupfile.c (base_name): Likewise.
35926         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
35927         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
35928         * lib/makepath.c (strip_trailing_slashes): Likewise.
35929         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
35930         ISSLASH): Likewise.
35931         * lib/rename.c (strip_trailing_slashes): Likewise.
35932         * lib/same.c (base_name): Likewise.
35933         * lib/stripslash.c (ISSLASH): Likewise.
35934
35935         * lib/addext.c: Include <dirname.h> after size_t is defined.
35936         * lib/backupfile.c: Likewise.
35937
35938         * lib/addext.c (addext): Use base_len to trim redundant
35939         trailing slashes instead of doing it ourselves.
35940         But do not trim the last slash if it is not redundant.
35941
35942         * lib/backupfile.c (find_backup_file_name,
35943         max_backup_version): Use base_len instead of rolling it ourselves.
35944         Handle the case of "" and (on DOS) "C:" correctly.
35945
35946         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
35947         needed. Include <string.h>, <dirname.h>.
35948         (base_name): Allow file names ending in slashes, other than names
35949         that are all slashes.  In this case, return the basename followed
35950         by the slashes.  This is more general, and can be used in places
35951         where the original base_name purposely had an assertion failure.
35952         (base_len): New function.
35953
35954         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
35955         Do not include <assert.h>; no longer needed.
35956         Include xalloc.h.
35957         (memrchr): Remove decl.
35958         (dir_name_r): Remove.
35959         (dir_len): Renamed from dirlen.  All callers changed.
35960         Rewrite in terms of base_name, for simplicity and consistency.
35961         (dir_name): Never return NULL.  All callers changed.
35962         Do not include <stdlib.h> in test program; no longer needed.
35963         return 0; is fine for test program.
35964
35965         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
35966         New macros.
35967         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
35968
35969         * lib/path-concat.c (path_concat): Use base_len to compute
35970         base length, not strlen; this means we cannot rely on memcpy
35971         to null-terminate.
35972
35973         * lib/same.c (STREQ): Remove.
35974         (same_name): Handle the case where the basename ends in trailing '/'.
35975
35976         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
35977         a slash was stripped.  Do not strip the last slash after a
35978         file system prefix.
35979
35980 2001-05-11  Paul Eggert  <eggert@twinsun.com>
35981
35982         * lib/Makefile.am (libfetish_a_SOURCES):
35983         Add strftime.c, since we now compile it on all hosts.
35984
35985         * lib/strftime.c (my_strftime):
35986         Define to nstrftime if emacs, but only if my_strftime is not defined.
35987         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
35988         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
35989         Add one more extra argument: a nanoseconds value.
35990         All uses changed.
35991         (ns): New macro.
35992         (my_strftime function): Add %N format.
35993         (emacs_strftimeu): Renamed from emacs_strftime,
35994         with extra ut argument.
35995
35996 2001-05-09  Paul Eggert  <eggert@twinsun.com>
35997
35998         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
35999
36000 2001-04-21  Jim Meyering  <meyering@lucent.com>
36001
36002         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
36003         doesn't interfere.
36004
36005 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
36006
36007         * m4/ftruncate.m4: Check for chsize.
36008         Link with ftruncate.o unconditionally if ftruncate is missing.
36009         This was required when cross-compiling to i586-mingw32msvc.
36010
36011 2001-04-08  Jim Meyering  <meyering@lucent.com>
36012
36013         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
36014         recomputed; that's necessary when the offset spans a DST transition.
36015         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
36016
36017 2001-04-02  Jim Meyering  <meyering@lucent.com>
36018
36019         * lib/regex.h, regex.c: Update from GNU libc.
36020
36021 2001-03-24  Jim Meyering  <meyering@lucent.com>
36022
36023         * m4/jm-macros.m4: Require autoconf-2.49d.
36024
36025 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
36026
36027         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
36028
36029 2001-03-19  Paul Eggert  <eggert@twinsun.com>
36030
36031         * lib/version-etc.c (version_etc_copyright): Update to 2001.
36032
36033 2001-03-17  Jim Meyering  <meyering@lucent.com>
36034
36035         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
36036         now that the version in autoconf is equivalent.
36037         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
36038
36039         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
36040         Suggestion from Akim Demaille.
36041
36042         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
36043         (jm_PREREQ_TEMPNAME): New function.
36044
36045 2001-03-16  Paul Eggert  <eggert@twinsun.com>
36046
36047         * lib/tempname.c (uint64_t): Define to uintmax_t if
36048         not defined, and if UINT64_MAX is not defined.
36049         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
36050         Reported by John David Anglin.
36051
36052 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
36053
36054         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
36055         resolve alias if codeset is empty.
36056         * lib/config.charset (BeOS): Use wildcard syntax.
36057
36058 2001-03-13  Jim Meyering  <meyering@lucent.com>
36059
36060         * lib/path-concat.c (path_concat)
36061         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
36062         concatenating e.g., `C:' and `foo'.
36063         From Bruno Haible.
36064
36065 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
36066
36067         * lib/localcharset.c (locale_charset): Don't use
36068         setlocale(LC_CTYPE,NULL). Don't return NULL.
36069         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
36070
36071 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
36072
36073         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
36074         support for DOS/DJGPP.
36075
36076 2001-03-01  Paul Eggert  <eggert@twinsun.com>
36077
36078         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
36079         lacks mkstemp.  Compile our own tempname.c if we compile our own
36080         mkstemp.c, as mkstemp relies on tempname.
36081
36082 2001-03-01  Jim Meyering  <meyering@lucent.com>
36083
36084         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
36085         AH_VERBATIM really does output its argument verbatim.
36086
36087 2001-02-28  Paul Eggert  <eggert@twinsun.com>
36088
36089         * lib/Makefile.am (libfetish_a_SOURCES):
36090         Add dup-safer.c, fopen-safer.c.
36091         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
36092
36093         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
36094         * lib/unistd-safer.h: New files.
36095
36096 2001-02-25  Paul Eggert  <eggert@twinsun.com>
36097
36098         The mkstemp replacement is taken from glibc 2.2.2, with some
36099         portability fixes for use outside glibc, as follows:
36100
36101         * lib/tempname.c (struct_stat64): New macro.
36102         (direxists, __gen_tempname): Use it.
36103         This avoids a portability problem with Solaris 8.
36104
36105         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
36106         (<stddef.h>, <stdint.h>, <string.h>):
36107         Include only if STDC_HEADERS || _LIBC.
36108         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
36109         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
36110         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
36111         (__set_errno): Define this macro if <errno.h> doesn't.
36112         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
36113         Define these macros if <stdio.h> doesn't.
36114         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
36115         Define these macros if <sys/stat.h>
36116         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
36117         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
36118         __xstat64): Define if not _LIBC.
36119         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
36120         (__gen_tempname): Invoke gettimeofday only if
36121         HAVE_GETTIMEOFDAY || _LIBC;
36122         otherwise, fall back on plain "time".
36123         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
36124
36125         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
36126
36127         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
36128
36129 2001-02-18  Paul Eggert  <eggert@twinsun.com>
36130
36131         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
36132
36133 2001-02-17  Paul Eggert  <eggert@twinsun.com>
36134
36135         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
36136         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
36137         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
36138         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
36139
36140 2001-02-17  Paul Eggert  <eggert@twinsun.com>
36141
36142         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
36143         Remove workaround macros for hosts that have mbrtowc but not
36144         mbstate_t, as we now insist on proper declarations for both
36145         before using mbrtowc.
36146
36147 2001-02-17  Jim Meyering  <meyering@lucent.com>
36148
36149         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
36150         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
36151         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
36152         UnixWare 7.1.1.
36153
36154         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
36155         rather than AC_CACHE_VAL.
36156
36157 2001-02-17  Jim Meyering  <meyering@lucent.com>
36158
36159         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
36160         around included file name.
36161
36162         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
36163
36164         * lib/strftime.c: Update from GNU libc (the only changes were to
36165         comments).
36166
36167 2001-02-17  Jim Meyering  <meyering@lucent.com>
36168
36169         * lib/regex.c: Update from libc.
36170
36171 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
36172
36173         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
36174         clash.
36175
36176 2001-02-16  Paul Eggert  <eggert@twinsun.com>
36177
36178         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
36179         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
36180         Reported by Mark Hounschell via Paul Eggert.
36181
36182 2001-02-07  Jim Meyering  <meyering@lucent.com>
36183
36184         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
36185
36186 2001-02-05  Jim Meyering  <meyering@lucent.com>
36187
36188         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
36189         it includes the patch required for `large file' support with at least
36190         HP-UX's 10.20 /bin/cc.
36191
36192 2001-02-03  Jim Meyering  <meyering@lucent.com>
36193
36194         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
36195         AS_IF, now that it works once again (mysteriously).
36196         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
36197
36198 2001-01-30  Jim Meyering  <meyering@lucent.com>
36199
36200         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
36201         * m4/chown.m4: Rename conftestchown to conftest.chown.
36202         * m4/rename.m4: s/conftestdir/conftest.d1/ and
36203         s/conftestdir2/conftest.d2/.
36204         * m4/utimes.m4: s/conftestdata/conftest.data/
36205         Inspired by Pavel Roskin's change in autoconf.
36206
36207 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
36208
36209         * lib/config.charset: Update for FreeBSD 4.2.
36210
36211 2001-01-27  Jim Meyering  <meyering@lucent.com>
36212
36213         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
36214         a use of AS_IF.
36215         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
36216
36217 2001-01-26  Jim Meyering  <meyering@lucent.com>
36218
36219         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
36220         quotearg.c includes it.
36221
36222 2001-01-26  Jim Meyering  <meyering@lucent.com>
36223
36224         * lib/quotearg.c: Include stddef.h.
36225         * lib/quote.c: Include stddef.h.
36226         Reported by Axel Kittenberger.
36227
36228         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
36229         line in double quotes so that it evokes a better diagnostic.
36230         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
36231         Reported by Axel Kittenberger.
36232
36233 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
36234
36235         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
36236         as if it was a `charset'.
36237
36238 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
36239
36240         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
36241         has const.
36242
36243 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
36244
36245         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
36246         to avoid a warning.  Add back 'const' to inptr.
36247
36248 2001-01-20  Jim Meyering  <meyering@lucent.com>
36249
36250         Be sure that headers are checked before used in code compiled
36251         for the type checks.
36252         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
36253         In place of that, invoke jm_CHECK_ALL_TYPES.
36254         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
36255         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
36256         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
36257         The check for ssize_t was mistakenly run before the test for unistd.h.
36258
36259         The configure-time check for stdbool.h was missing.
36260         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
36261         (jm_PREREQ_HASH): New function.
36262
36263 2001-01-17  Jim Meyering  <meyering@lucent.com>
36264
36265         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
36266         for autoconf-2.49c.
36267         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
36268
36269 2001-01-16  Jim Meyering  <meyering@lucent.com>
36270
36271         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
36272         From Bruno Haible.
36273
36274 2001-01-14  Jim Meyering  <meyering@lucent.com>
36275
36276         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
36277         foo and bar.  Create conftestdir/ in the script, not in the C code.
36278         Remove directories in the script, not in the C code.
36279         Remove conftestdir{,2} before trying to create the directory.
36280         Make the entire configure script fail if the mkdir fails.
36281
36282 2001-01-14  Jim Meyering  <meyering@lucent.com>
36283
36284         * lib/rename.c: New file.  From Volker Borchert.
36285         Include stdlib.h, string.h or strings.h, and xalloc.h.
36286         Use strip_trailing_slashes rather than open-coding it.
36287
36288 2001-01-03  Paul Eggert  <eggert@twinsun.com>
36289
36290         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
36291
36292 2001-01-03  Jim Meyering  <meyering@lucent.com>
36293
36294         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
36295         of local `inptr' to avoid warning with some system declarations of
36296         iconv.
36297
36298 2001-01-02  Volker Borchert  <bt@teknon.de>
36299
36300         * m4/rename.m4: New file.
36301         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
36302
36303 2001-01-01  Jim Meyering  <meyering@lucent.com>
36304
36305         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
36306         even on systems with utmpx.h.  It's necessary for the declaration of
36307         utmp's ut_user member.  Reported by Andreas Jaeger.
36308
36309         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
36310         available. They are required for the declarations of getgrgid and
36311         getpwuid resp.
36312         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
36313         Reported by Andreas Jaeger.
36314
36315 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
36316
36317         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
36318         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
36319         so `make install' also works in VPATH builds.
36320
36321 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
36322
36323         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
36324         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
36325         can be used in subdirectories.
36326
36327 2000-12-29  Paul Eggert  <eggert@twinsun.com>
36328
36329         * lib/modechange.c: Do not assume that mode_t uses the
36330         traditional octal encoding.  E.g. "chmod 1 FOO" should set
36331         the other-execute bit of FOO even if S_IXOTH != 1.
36332
36333         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
36334         WOTH, XOTH, ALLM): New macros.
36335         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
36336          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
36337         Use them.
36338         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
36339         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
36340         (mode_compile):
36341         No need to use uintmax_t; unsigned long is long enough.
36342         Don't bother to get suffix since we don't use it.
36343
36344 2000-12-26  Jim Meyering  <meyering@lucent.com>
36345
36346         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
36347         better with autoheader.
36348
36349 2000-12-24  Jim Meyering  <meyering@lucent.com>
36350
36351         * lib/hash.c (is_prime): Return explicit boolean values.
36352         (hash_get_first): Return NULL to appease Irix5.6's 89.
36353         Reported by Nelson Beebe.
36354
36355 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
36356
36357         * lib/localcharset.c (locale_charset): Add support for Win32.
36358
36359 2000-12-18  Paul Eggert  <eggert@twinsun.com>
36360
36361         * lib/physmem.h, lib/physmem.c: New files.
36362
36363         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
36364         (noinst_HEADERS): Add physmem.h.
36365
36366         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
36367         't' for compatibility with Solaris 8 sort.
36368
36369 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
36370
36371         * lib/config.charset: Add support for BeOS.
36372
36373 2000-12-17  Jim Meyering  <meyering@lucent.com>
36374
36375         * m4/dos.m4 (jm_AC_DOS): New file and macro.
36376         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
36377
36378 2000-12-16  Jim Meyering  <meyering@lucent.com>
36379
36380         This bug had a serious impact on chown: `chown N:M FILE' (for integer
36381         N and M) would have treated it like `chown N:N FILE'.
36382
36383         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
36384
36385 2000-12-16  Jim Meyering  <meyering@lucent.com>
36386
36387         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
36388         SHELLS_FILE to a file name that's useful on djgpp systems.
36389         Include stdlib.h.
36390         (ADDITIONAL_DEFAULT_SHELLS): Define.
36391         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
36392         Based mostly on a patch from Prashant TR.
36393
36394 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
36395
36396         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
36397         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
36398         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
36399
36400 2000-12-08  Andreas Schwab  <schwab@suse.de>
36401
36402         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
36403         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
36404
36405 2000-12-07  Jim Meyering  <meyering@lucent.com>
36406
36407         * lib/stripslash.c (ISSLASH): Define.
36408         (strip_trailing_slashes): Use ISSLASH rather than comparing against
36409         `/'.
36410         From Prashant TR.
36411
36412         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
36413         (dir_name_r): Declare this function as static.
36414         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
36415         manifest itself on a name containing a mix of slashes and
36416         backslashes.
36417         Make this function work with names starting with a DOS-style
36418         drive letter and colon prefix.
36419         (dir_name): Append `.' if necessary.
36420         Based mostly on patches from Prashant TR and Eli Zaretskii.
36421
36422         * lib/dirname.h (dir_name_r): Remove prototype.
36423
36424 2000-12-06  Paul Eggert  <eggert@twinsun.com>
36425
36426         * m4/off_t-format.m4: Remove this file.
36427         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
36428
36429 2000-12-06  Jim Meyering  <meyering@lucent.com>
36430
36431         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
36432         replacement strtoull, we may well need the replacement strtoul, too.
36433         Check for declarations of strtoul and strtoull.
36434         Check for strtol.  Mainly as a cue to cause automake to include
36435         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
36436         Check for limits.h -- strtol.c needs it.
36437
36438 2000-12-05  Jim Meyering  <meyering@lucent.com>
36439
36440         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
36441
36442 2000-12-04  Jim Meyering  <meyering@lucent.com>
36443
36444         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
36445         Also include memory.h, stdlib.h, unistd.h if appropriate.
36446         Reported by Andreas Jaeger (conflicting declaration of malloc).
36447
36448 2000-12-02  Jim Meyering  <meyering@lucent.com>
36449
36450         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
36451         * m4/jm-macros.m4 (jm_MACROS): require it.
36452
36453 2000-12-02  Jim Meyering  <meyering@lucent.com>
36454
36455         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
36456
36457 2000-12-01  Paul Eggert  <eggert@twinsun.com>
36458
36459         * lib/memrchr.c: Include <config.h> before any system include file.
36460
36461 2000-11-30  Jim Meyering  <meyering@lucent.com>
36462
36463         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
36464
36465 2000-11-30  Jim Meyering  <meyering@lucent.com>
36466
36467         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
36468
36469 2000-11-29  Paul Eggert  <eggert@twinsun.com>
36470
36471         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
36472
36473 2000-11-26  Jim Meyering  <meyering@lucent.com>
36474
36475         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
36476
36477 2000-11-22  Paul Eggert  <eggert@twinsun.com>
36478
36479         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
36480         size of (size_t) -1; it's not portable.
36481
36482 2000-11-17  Jim Meyering  <meyering@lucent.com>
36483
36484         * lib/strstr.c: Update from GNU libc.
36485
36486 2000-11-17  Akim Demaille  <akim@epita.fr>
36487
36488         * lib/obstack.h: Formatting changes.
36489         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
36490         prevent type checking.
36491         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
36492         cast the value to (void *): assigning a `foo *' to a `void *'
36493         variable is valid.
36494         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
36495
36496 2000-11-16  Jim Meyering  <meyering@lucent.com>
36497
36498         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
36499
36500 2000-11-11  Jim Meyering  <meyering@lucent.com>
36501
36502         * lib/error.c: Add a couple #includes, merging from GNU libc version.
36503
36504 2000-11-10  Jim Meyering  <meyering@lucent.com>
36505
36506         * lib/obstack.h: Update from GNU libc.
36507         * lib/obstack.c: Likewise.
36508
36509 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
36510
36511         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
36512
36513 2000-11-06  Paul Eggert  <eggert@twinsun.com>
36514
36515         * lib/getusershell.c (setusershell): Use rewind rather than
36516         fseek/fseeko, to avoid configuration hassles with fseeko.
36517         Don't bother opening SHELLS_FILE if shellstream is NULL;
36518         it's not necessary.
36519
36520 2000-11-05  Jim Meyering  <meyering@lucent.com>
36521
36522         * lib/makepath.h (make_dir): Declare.
36523         * lib/makepath.c (make_dir): Remove `static' attribute.
36524         Tweak a comment.
36525
36526 2000-11-04  Jim Meyering  <meyering@lucent.com>
36527
36528         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
36529
36530 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
36531
36532         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
36533         last one in a bucket, advance to the next bucket.
36534
36535 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
36536
36537         * lib/fnmatch.c: Do not comment out all the code if we are using
36538         the GNU C library, because in some cases we are replacing buggy
36539         code in the GNU C library itself.
36540
36541 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
36542
36543         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
36544         (regex_compile): Catch bogus \(\1\).
36545
36546 2000-10-30  Paul Eggert  <eggert@twinsun.com>
36547
36548         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
36549         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
36550         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
36551
36552 2000-10-30  Paul Eggert  <eggert@twinsun.com>
36553
36554         * lib/error.h, getline.h, modechange.h:
36555         Remove "2000" from Copyright line, as the file hasn't been
36556         changed this year other than in the copyright notice.
36557
36558         * lib/xalloc.h: Add "2000" to Copyright line, as this file
36559         was changed this year.
36560
36561 2000-10-29  Jim Meyering  <meyering@lucent.com>
36562
36563         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
36564         renaming.
36565         * m4/ls-mntd-fs.m4: Likewise
36566
36567 2000-10-29  Jim Meyering  <meyering@lucent.com>
36568
36569         * lib/xstat.in: Fix grammar in comment.
36570
36571 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
36572
36573         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
36574         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
36575         doesn't define __restrict_arr.
36576
36577 2000-10-28  Jim Meyering  <meyering@lucent.com>
36578
36579         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
36580         (jm_PREREQ_MEMCHR): New function.
36581
36582 2000-10-28  Jim Meyering  <meyering@lucent.com>
36583
36584         * lib/memchr.c: Update from libc.
36585         Adjust for portability:
36586         [HAVE_STDLIB_H]: Include stdlib.h.
36587         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
36588         Undef __memchr, too.
36589         [!weak_alias]: Define __memchr to memchr.
36590
36591         * lib/regex.c: Update from libc.
36592         * lib/regex.h: Likewise.
36593         * lib/getopt1.c: Likewise.
36594         * lib/memcmp.c: Likewise.
36595
36596         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
36597         Avoid using fseek, when possible -- it's broken by design.
36598         Patch by Ulrich Drepper.
36599
36600 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
36601
36602         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
36603         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
36604         Giving in to popular pressure to shut up the compiler with casts.
36605
36606 2000-10-26  Jim Meyering  <meyering@lucent.com>
36607
36608         * lib/strftime.c: Update from libc.
36609
36610 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
36611
36612         * regex.c: More `unsigned char' -> `re_char' changes.
36613         Also change several `int' into `re_wchar_t'.
36614         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
36615         (PUSH_FAILURE_POINTER): Don't cast any more.
36616         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
36617         We want GCC to complain, since this piece of code makes
36618         re_match non-reentrant, which *should* be fixed.
36619         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
36620         (EXTEND_BUFFER): Use RETALLOC.
36621         (SET_LIST_BIT): Don't cast.
36622         (re_wchar_t): New type.
36623         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
36624         that those two functions will always properly return.
36625         (IMMEDIATE_QUIT_CHECK): Cast to void.
36626         (analyse_first): Use recursion rather than an explicit stack.
36627         (re_compile_fastmap): Can't fail anymore.
36628         (re_search_2): Don't check re_compile_fastmap for failure.
36629         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
36630         Now also sets the new value (passed in a new argument).
36631         (re_match_2_internal): Use it.
36632         Also, use a new var `reg' of type size_t when looping through regs
36633         rather than reuse the inappropriate `mcnt'.
36634
36635 2000-10-25  Jim Meyering  <meyering@lucent.com>
36636
36637         * lib/obstack.c: Update from libc.
36638
36639 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
36640
36641         * regex.c (regex_compile): Change the way of handling a range from
36642         a char less than 256 to a char not less than 256.
36643
36644 2000-10-24  Andrew Innes  <andrewi@gnu.org>
36645
36646         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
36647         NT-Emacs only.
36648         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
36649         so that re_search functions only quit when callers expect them to.
36650
36651 2000-10-23  Jim Meyering  <meyering@lucent.com>
36652
36653         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
36654         wrong.  That set_locale call must not have any side effects.
36655         From Paul Eggert.
36656
36657 2000-10-22  Jim Meyering  <meyering@lucent.com>
36658
36659         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
36660         [CYCLIC]: Remove now-unused definition.
36661
36662         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
36663         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
36664         Suggestion from Ulrich Drepper.
36665
36666 2000-10-21  Jim Meyering  <meyering@lucent.com>
36667
36668         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
36669         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
36670         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
36671
36672 2000-10-21  Jim Meyering  <meyering@lucent.com>
36673
36674         * lib/dirname.c (memrchr): Declare if necessary.
36675         (dir_name): Remove the restriction that there be no
36676         trailing slashes.  Now, this code skips past them, effectively
36677         ignoring them.
36678         [TEST_DIRNAME] (main): New unit tests.
36679
36680         * lib/memrchr.c: New file from GNU libc.
36681         Undef __memrchr, too.
36682         [!weak_alias]: Define __memrchr to memrchr.
36683         Guard weak_alias use with `#ifdef weak_alias'.
36684
36685 2000-10-21  Jim Meyering  <meyering@lucent.com>
36686
36687         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
36688         (dir_name): Use dir_name_r.
36689         * lib/dirname.h (dir_name_r): Declare it.
36690
36691 2000-10-17  Jim Meyering  <meyering@lucent.com>
36692
36693         * lib/quote.h (PARAMS): Define and use.
36694         Reported by Akim Demaille.
36695
36696         * lib/getopt.c: Update from libc.
36697
36698 2000-10-16  Jim Meyering  <meyering@lucent.com>
36699
36700         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
36701         setlocale.
36702         From Jan Fedak.
36703
36704 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
36705
36706         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
36707
36708 2000-09-25  Jim Meyering  <meyering@lucent.com>
36709
36710         * lib/md5.h (rol): Define (from GnuPG).
36711
36712         * lib/sha.c: Give credit (GnuPG) where due.
36713         (M): Use rol rather than open-coding it.
36714         Add a FIXME comment.
36715
36716 2000-09-21  Jim Meyering  <meyering@lucent.com>
36717
36718         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
36719         Reported by Michael Stone.
36720
36721 2000-09-20  Jim Meyering  <meyering@lucent.com>
36722
36723         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
36724         (noinst_HEADERS): Add sha.h.
36725         Based on code from Scott G. Miller and from GnuPG.
36726
36727 2000-09-18  Jim Meyering  <meyering@lucent.com>
36728
36729         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
36730         LIBS. Otherwise, everyone ends up linking with -lelf for some
36731         configurations.
36732         Reported by Mike Stone.
36733
36734 2000-09-15  Jim Meyering  <meyering@lucent.com>
36735
36736         * lib/regex.c: Update from libc.
36737
36738 2000-09-10  Jim Meyering  <meyering@lucent.com>
36739
36740         * lib/getopt.c (_getopt_internal): Update from glibc.
36741
36742 2000-09-09  Jim Meyering  <meyering@lucent.com>
36743
36744         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
36745         think it should be used as a general replacement for isascii.
36746         * lib/fnmatch.c: Likewise.
36747         * lib/mbswidth.c: Likewise
36748         * lib/regex.c: Likewise.
36749
36750         Don't use atoi.
36751         * lib/userspec.c: Include sys/param.h and limits.h.
36752         Include xstrtol.h.
36753         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
36754         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
36755         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
36756         UID, GID.  Check range.
36757
36758 2000-09-06  Jim Meyering  <meyering@lucent.com>
36759
36760         * lib/getopt.c (_getopt_internal): Update from glibc.
36761
36762 2000-08-30  Jim Meyering  <meyering@lucent.com>
36763
36764         * lib/strftime.c: Merge in changes from GNU libc.
36765
36766 2000-08-26  Jim Meyering  <meyering@lucent.com>
36767
36768         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
36769         * m4/fpending.m4: New file.
36770
36771 2000-08-26  Jim Meyering  <meyering@lucent.com>
36772
36773         * lib/closeout.c: Include "__fpending.h".
36774         (close_stdout_status): Return right away if there's nothing to flush.
36775
36776         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
36777         * lib/__fpending.c: New file.
36778         * lib/__fpending.h: New file.
36779
36780 2000-08-20  Jim Meyering  <meyering@lucent.com>
36781
36782         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
36783         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
36784         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
36785
36786 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
36787
36788         Improve fileutils installation on systems where running
36789         programs (like install) can't be unlinked.
36790         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
36791         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
36792
36793 2000-08-07  Paul Eggert  <eggert@twinsun.com>
36794
36795         Standardize on "memory exhausted" instead of "Memory exhausted"
36796         or "virtual memory exhausted".
36797         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
36798         "virtual memory exhausted".
36799         * lib/same.c (same_name): Invoke xalloc_die instead of printing
36800         our own message.
36801         * lib/userspec.c (parse_user_spec): Likewise.
36802         * lib/bumpalloc.h: comment fix
36803         * lib/same.c, userspec.c: Include xalloc.h.
36804
36805         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
36806         not char *const and pointing to a constant array.
36807         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
36808         (xrealloc): Comment fix.
36809
36810         * lib/userspec.c (parse_user_spec):
36811         Don't translate a message until just before returning,
36812         to avoid unnecessary translation.
36813
36814 2000-08-07  Jim Meyering  <meyering@lucent.com>
36815
36816         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
36817         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
36818         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
36819         getgroups.c, gethostname.c, getopt.h, group-member.c,
36820         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
36821         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
36822         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
36823         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
36824         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
36825         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
36826         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
36827         yesno.c: Back out Copyright date changes for each file with no change
36828         this year.  This eases coordination with other programs using the same
36829         source code modules.  From Paul Eggert.
36830
36831 2000-08-06  Paul Eggert  <eggert@twinsun.com>
36832
36833         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
36834         not char, for compatibility with glibc 2.1.3 strftime.c.
36835
36836 2000-08-03  Greg McGary  <greg@mcgary.org>
36837
36838         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
36839         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
36840         (EXTEND_BUFFER): Use them.
36841
36842 2000-08-01  Jim Meyering  <meyering@lucent.com>
36843
36844         * lib/dirname.c (ISSLASH): Define.
36845         (BACKSLASH_IS_PATH_SEPARATOR): Define.
36846         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
36847         both `\' and `/' may be use as path separators.
36848         Based on a patch from Prashant TR.
36849
36850 2000-07-31  Paul Eggert  <eggert@twinsun.com>
36851
36852         * lib/quotearg.c (quotearg_n_options): Don't make the initial
36853         slot vector a constant, since it might get modified.
36854
36855 2000-07-31  Jim Meyering  <meyering@lucent.com>
36856
36857         * lib/xmalloc.c: Use `virtual memory exhausted', not
36858         `Memory exhausted'.
36859         * lib/obstack.c (print_and_abort): Likewise.
36860
36861 2000-07-30  Paul Eggert  <eggert@twinsun.com>
36862
36863         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
36864         buffer, so that the caller can always quote one small
36865         component of a "memory exhausted" message in slot 0.
36866         From a suggestion by Jim Meyering.
36867
36868 2000-07-30  Jim Meyering  <meyering@lucent.com>
36869
36870         * lib/makepath.c (make_path): Quote the other instance, too.
36871
36872         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
36873         (STATIC_BUF_SIZE): Define.
36874         (quotearg_n_options): Use only statically allocated storage when
36875         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
36876         than STATIC_BUF_SIZE.
36877
36878 2000-07-29  Jim Meyering  <meyering@lucent.com>
36879
36880         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
36881         * lib/dirname.c (dir_name): Likewise.
36882
36883         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
36884         `/'.
36885
36886         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
36887         (dir_name): Assert that there are no trailing slashes.
36888
36889 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
36890
36891         * lib/mbswidth.h (mbswidth): Add a flags argument.
36892         (mbswidth): New declaration.
36893         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
36894         * lib/mbswidth.c (mbswidth): Add a flags argument.
36895         (mbsnwidth): New function.
36896
36897 2000-07-24  Jim Meyering  <meyering@lucent.com>
36898
36899         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
36900
36901 2000-07-23  Paul Eggert  <eggert@twinsun.com>
36902
36903         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
36904
36905 2000-07-23  Paul Eggert  <eggert@twinsun.com>
36906
36907         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
36908         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
36909         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
36910         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
36911         invoke multibyte primitives.
36912
36913 2000-07-23  Paul Eggert  <eggert@twinsun.com>
36914
36915         * lib/quotearg.c:
36916         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
36917         so that mbstate_t is always defined.
36918
36919         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
36920         be 1 in at least one GCC installation, and this configuration
36921         error is likely to be common.  Ignoring MB_LEN_MAX hurts
36922         performance on hosts that have mbrtowc but have only unibyte
36923         locales, but I assume these hosts are rare.
36924
36925 2000-07-23  Paul Eggert  <eggert@twinsun.com>
36926
36927         * lib/mbswidth.c (_XOPEN_SOURCE):
36928         Don't define; this causes problems on Solaris 7.
36929         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
36930
36931 2000-07-23  Jim Meyering  <meyering@lucent.com>
36932
36933         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
36934         too: getgrgid, getpwuid, getuid.
36935
36936 2000-07-23  Jim Meyering  <meyering@lucent.com>
36937
36938         * lib/basename.c (base_name): Add an assertion.
36939
36940 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
36941
36942         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
36943         shadow its mbsinit function.
36944
36945 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
36946
36947         * lib/mbswidth.h: New file.
36948         * lib/mbswidth.c: New file.
36949         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
36950         (noinst_HEADERS): Add mbswidth.h.
36951
36952 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
36953
36954         * lib/config.charset: Add support for FreeBSD. Improve support for
36955         HP-UX and IRIX 6.
36956
36957 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
36958
36959         * m4/mbswidth.m4: New file.
36960         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
36961
36962 2000-07-15  Jim Meyering  <meyering@lucent.com>
36963
36964         * lib/makepath.c: Include quote.h.
36965         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
36966         corresponding argument in a `quote (...)' call.
36967         Give better diagnostics.
36968
36969         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
36970         (noinst_HEADERS): Add quote.h.
36971
36972         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
36973         from tar's src/misc.c.
36974         * lib/quote.h: New file.  Prototypes for same.
36975
36976 2000-07-14  Paul Eggert  <eggert@twinsun.com>
36977
36978         From a suggestion by Bruno Haible.
36979         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
36980         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
36981         to decide whether to define the BeOS workaround macro;
36982         this adjusts to the change to AC_MBSTATE_T.
36983
36984 2000-07-14  Jim Meyering  <meyering@lucent.com>
36985
36986         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
36987         jm_AC_TYPE_UINTMAX_T.
36988
36989 2000-07-13  Paul Eggert  <eggert@twinsun.com>
36990
36991         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
36992
36993         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
36994         quotearg_buffer_restyled): Add support for
36995         clocale_quoting_style.  Undo previous change to
36996         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
36997         and "{RIGHT QUOTATION MARK}" msgids.
36998
36999 2000-07-10  Paul Eggert  <eggert@twinsun.com>
37000
37001         From a suggestion by Bruno Haible.
37002         * m4/mbstate_t.m4 (AC_MBSTATE_T):
37003         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
37004         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
37005         and mbstate_t, to a single-part test that simply defines mbstate_t.
37006         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
37007         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
37008
37009 2000-07-10  Jim Meyering  <meyering@lucent.com>
37010
37011         * m4/strerror_r.m4: Mirror the correction made in autoconf.
37012
37013         * m4/gnu-source.m4: Output to confdefs.h directly.
37014         Suggestion from Akim Demaille.
37015
37016 2000-07-09  Paul Eggert  <eggert@twinsun.com>
37017
37018         The old behavior of quoting `like this' doesn't look good with
37019         newer, ISO-style fonts.  See:
37020         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
37021
37022         Instead, quote "like this" by default.  Let the translator
37023         tailor the locale-specific quoting behavior by providing
37024         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
37025
37026         * lib/quotearg.c (N_): New macro.
37027         (gettext_default): New function.
37028         (quotearg_buffer_restyled): Use
37029         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
37030         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
37031
37032 2000-07-09  Jim Meyering  <meyering@lucent.com>
37033
37034         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
37035         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
37036
37037         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
37038         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
37039
37040 2000-07-09  Jim Meyering  <meyering@lucent.com>
37041
37042         * lib/Most files: Update copyright dates to include 2000.
37043
37044 2000-07-08  Jim Meyering  <meyering@lucent.com>
37045
37046         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
37047         if not defined.
37048         (xgethostname): Remove now-unnecessary #ifdef.
37049         Move declaration of `err' into loop where it's used.
37050
37051 2000-07-05  Paul Eggert  <eggert@twinsun.com>
37052         and Bruno Haible  <haible@clisp.cons.org>
37053
37054         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
37055         only if the test for an object-type mbstate_t fails.  This
37056         prevents us from mistakenly reporting that mbstate_t is a
37057         system object type after we "#define mbstate_t int" to work
37058         around its lack.
37059
37060 2000-07-05  Paul Eggert  <eggert@twinsun.com>
37061         and Bruno Haible  <haible@clisp.cons.org>
37062
37063         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
37064
37065 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
37066
37067         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
37068         to strerror_r.
37069         Include <ctype.h> for use of isalpha.
37070
37071 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
37072
37073         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
37074         by allocating a larger buffer. Test the gethostname return value for
37075         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
37076         returns an error and ENAMETOOLONG isn't defined.
37077
37078 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
37079
37080         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
37081         dimension.
37082
37083 2000-07-04  Jim Meyering  <meyering@lucent.com>
37084
37085         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
37086         of the deprecated AC_CHECKING.
37087
37088 2000-07-04  Jim Meyering  <meyering@lucent.com>
37089
37090         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
37091         Reported by Bruno Haible.
37092
37093 2000-07-04  Jim Meyering  <meyering@lucent.com>
37094
37095         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
37096         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
37097         lacks mbrtowc.
37098
37099 2000-07-03  Paul Eggert  <eggert@twinsun.com>
37100
37101         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
37102         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
37103
37104 2000-07-03  Paul Eggert  <eggert@twinsun.com>
37105         and Bruno Haible  <haible@clisp.cons.org>
37106
37107         * lib/quotearg.c (mbrtowc):
37108         Assign to *pwc, and return 1 only if result is nonzero.
37109         (iswprint): Use ISPRINT when substituting our own mbrtowc.
37110
37111 2000-07-03  Jim Meyering  <meyering@lucent.com>
37112
37113         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
37114
37115 2000-07-03  Jim Meyering  <meyering@lucent.com>
37116
37117         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
37118         This is necessary to get a definition of e.g., UTMP_FILE on
37119         HP-UX 10.20.
37120         From Bob Proulx.
37121
37122 2000-07-02  Jim Meyering  <meyering@lucent.com>
37123
37124         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
37125
37126         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
37127         AC_LIBOBJ(function_name).
37128         * m4/chown.m4: Likewise.
37129         * m4/fnmatch.m4: Likewise.
37130         * m4/ftruncate.m4: Likewise.
37131         * m4/getgroups.m4: Likewise.
37132         * m4/getline.m4: Likewise.
37133         * m4/group-member.m4: Likewise.
37134         * m4/jm-macros.m4: Likewise.
37135         * m4/lstat.m4: Likewise.
37136         * m4/malloc.m4: Likewise.
37137         * m4/memcmp.m4: Likewise.
37138         * m4/nanosleep.m4: Likewise.
37139         * m4/putenv.m4: Likewise.
37140         * m4/realloc.m4: Likewise.
37141         * m4/regex.m4: Likewise.
37142         * m4/stat.m4: Likewise.
37143         * m4/strftime.m4: Likewise.
37144
37145 2000-07-02  Jim Meyering  <meyering@lucent.com>
37146
37147         * lib/quotearg.c (mbstate_t): Don't define here.
37148
37149 2000-07-02  Jim Meyering  <meyering@lucent.com>
37150
37151         * lib/nanosleep.c (SIGCONT): Define if not already defined.
37152
37153 2000-07-01  Jim Meyering  <meyering@lucent.com>
37154
37155         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
37156
37157 2000-07-01  Jim Meyering  <meyering@lucent.com>
37158
37159         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
37160         problem.
37161
37162 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
37163
37164         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
37165         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
37166
37167 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
37168
37169         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
37170         per change in ../m4/ls-mntd-fs.m4.
37171         (read_filesystem_list): Ignore symbolic links.
37172
37173 2000-06-29  Jim Meyering  <meyering@lucent.com>
37174
37175         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
37176         for declaration of strcmp.
37177
37178         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
37179
37180         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
37181         Avoid warning by casting result to `char *' to remove `const'.
37182
37183 2000-06-28  Jim Meyering  <meyering@lucent.com>
37184
37185         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
37186         included by quotearg.c, for which we perform this test.  From
37187         Bruno Haible.
37188
37189 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
37190
37191         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
37192         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
37193         <utmpx.h> exists, put readutmp.o into LIBOBJS.
37194
37195 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
37196
37197         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
37198
37199 2000-06-26  Paul Eggert  <eggert@twinsun.com>
37200
37201         savedir now sets errno on failure and invokes xmalloc to get memory.
37202         Fix a couple of other minor bugs while we're at it.
37203
37204         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
37205         (NAMLEN): Remove macro.
37206         (malloc, realloc): Remove decls.
37207         (stpcpy): Likewise.
37208         ("xalloc.h"): Include.
37209         (NAME_SIZE_DEFAULT): New macro.
37210         (savedir): Use xmalloc / xrealloc to allocate memory.
37211         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
37212         Skip "" directory entries.
37213         Use strlen to calculate directory entry length, since the old method
37214         is rarely used these days and isn't worth supporting.
37215         Don't use a pointer after freeing it.
37216         Check for integer overflow when calculating allocation size.
37217         Use memcpy to copy entries, instead of stpcpy.
37218         Set errno properly when returning NULL.
37219         Check for readdir error.
37220
37221 2000-06-26  Jim Meyering  <meyering@lucent.com>
37222
37223         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
37224
37225 2000-06-25  Jim Meyering  <meyering@lucent.com>
37226
37227         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
37228         Linux header bug when _XOPEN_SOURCE is defined to 500.
37229
37230 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
37231
37232         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
37233         deficiency.
37234
37235 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
37236
37237         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
37238         Include xalloc.h.
37239         Don't include <stdlib.h>.  Don't declare malloc, realloc.
37240
37241 2000-06-24  Jim Meyering  <meyering@lucent.com>
37242
37243         * m4/strerror_r.m4: Revive this file -- to try out an experimental
37244         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
37245         for which strerror does return char*, but which lacks a conveniently
37246         accessible declaration of the function.  If the compile-test says
37247         strerror_r doesn't work, then resort to a `run'-test that works on
37248         BeOS and segfaults on DEC Unix.
37249
37250 2000-06-24  Jim Meyering  <meyering@lucent.com>
37251
37252         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
37253
37254 2000-06-23  Paul Eggert  <eggert@twinsun.com>
37255
37256         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
37257         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
37258
37259 2000-06-23  Paul Eggert  <eggert@twinsun.com>
37260
37261         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
37262         (mbrtowc, mbstate_t): Define substitutes if
37263         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
37264         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
37265         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
37266
37267 2000-06-23  Jim Meyering  <meyering@lucent.com>
37268
37269         * m4/afs.m4: Add missing AC_MSG_RESULT.
37270         Reported by Bruno Haible.
37271
37272         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
37273         Suggestion from Bruno Haible.
37274
37275 2000-06-23  Jim Meyering  <meyering@lucent.com>
37276
37277         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
37278
37279 2000-06-21  Jim Meyering  <meyering@lucent.com>
37280
37281         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
37282
37283 2000-06-21  Jim Meyering  <meyering@lucent.com>
37284
37285         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
37286         (noinst_HEADERS): Add getstr.h.
37287
37288         * lib/getline.c (getstr): Move into a separate file.
37289         * lib/getstr.c (getstr): New file, extracted from getline.c, with
37290         the following changes: new parameter, delim2; both delim[12]
37291         parameters have type `int', not `char'.  The latter would lose
37292         with 8-bit delimiters.
37293         * lib/getstr.h: New file.
37294
37295 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
37296
37297         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
37298         than 1024, return a memory chunk of least possible size, instead
37299         of size PATH_MAX + 2. In the loop, increment the size proportionally.
37300         Use free/xmalloc instead of xrealloc to avoid copying for very long
37301         paths.
37302
37303 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
37304
37305         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
37306         the empty string.
37307
37308 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
37309
37310         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
37311         address, not strdup.  Include <stdlib.h> and don't declare free().
37312
37313 2000-06-19  Jim Meyering  <meyering@lucent.com>
37314
37315         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
37316
37317 2000-06-18  Jim Meyering  <meyering@lucent.com>
37318
37319         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
37320
37321         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
37322         `checking whether...' message to be consistent with that of the
37323         lstat test.
37324
37325 2000-06-18  Jim Meyering  <meyering@lucent.com>
37326
37327         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
37328         Besides, these days every porting target provides a mkdir function.
37329
37330         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
37331         needed. (this snippet comes from src/system.h).
37332
37333 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
37334
37335         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
37336
37337 2000-06-15  Paul Eggert  <eggert@twinsun.com>
37338
37339         * lib/human.c (adjust_value): New function.
37340         (human_readable_inexact): Apply rounding style even when
37341         printing approximate values.
37342
37343 2000-06-14  Paul Eggert  <eggert@twinsun.com>
37344
37345         * lib/human.c (human_readable_inexact): Allow an input block
37346         size that is not a multiple of the output block size, and vice versa.
37347         Reported by Piergiorgio Sartor.
37348
37349 2000-06-14  Paul Eggert  <eggert@twinsun.com>
37350
37351         * lib/getdate.y (get_date): Apply relative times after time
37352         zone indicator, not before.  Reported by Todd A. Jacobs.
37353
37354 2000-06-13  Jim Meyering  <meyering@lucent.com>
37355
37356         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
37357
37358         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
37359
37360 2000-06-12  Paul Eggert  <eggert@twinsun.com>
37361
37362         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
37363
37364 2000-06-12  Jim Meyering  <meyering@lucent.com>
37365
37366         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
37367         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
37368         optional argument.
37369         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
37370         the optional argument, `lib'.
37371
37372 2000-06-08  Jim Meyering  <meyering@lucent.com>
37373
37374         * m4/largefile.m4: Remove file (now that it's part of autoconf).
37375
37376 2000-06-04  Paul Eggert  <eggert@twinsun.com>
37377
37378         Rewrite largefile configuration so that we don't need to run
37379         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
37380         AC_CANONICAL_HOST in configure.in -- jmm]
37381
37382         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
37383         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
37384         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
37385         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
37386         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
37387         All uses changed.
37388         Instead of inspecting the output of getconf, try to compile the
37389         test program without and with the macro definition.
37390         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
37391         for getconf.  Instead, check for the needed flags by compiling
37392         test programs.
37393
37394 2000-06-04  Paul Eggert  <eggert@twinsun.com>
37395
37396         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
37397
37398 2000-06-04  Jim Meyering  <meyering@lucent.com>
37399
37400         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
37401         SunOS 4.1.4 for which gid_t is an unsigned type.
37402
37403 2000-06-03  Jim Meyering  <meyering@lucent.com>
37404
37405         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
37406         now that autoconf requires that.
37407
37408         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
37409         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
37410         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
37411
37412 2000-06-03  Jim Meyering  <meyering@lucent.com>
37413
37414         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
37415
37416 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
37417
37418         * m4/glibc21.m4: New file.
37419         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
37420
37421 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
37422
37423         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
37424         newer, don't install charset.alias.
37425         * lib/config.charset: Change the Linux/glibc rules so they become empty
37426         on glibc-2.1 or newer.
37427
37428 2000-06-02  Jim Meyering  <meyering@lucent.com>
37429
37430         * lib/mountlist.c: Back out last change.  Instead, do this...
37431         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
37432         me_dummy member using the same `ignore'-testing code.
37433         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
37434         fs_type strings.
37435         From Mark D. Roth.
37436
37437 2000-05-29  Jim Meyering  <meyering@lucent.com>
37438
37439         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
37440         mounts with the `ignore' attribute.  Based on a patch from
37441         Mark D. Roth.
37442
37443 2000-05-28  Jim Meyering  <meyering@lucent.com>
37444
37445         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
37446         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37447         * m4/stat.m4: Likewise.
37448         * m4/lstat.m4: Likewise.
37449         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
37450
37451         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
37452         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
37453
37454 2000-05-26  Jim Meyering  <meyering@lucent.com>
37455
37456         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
37457
37458 2000-05-24  Jim Meyering  <meyering@lucent.com>
37459
37460         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
37461         autoconf requires that.
37462         * m4/lib-check.m4: Likewise.
37463         * m4/jm-macros.m4: Likewise.
37464         * m4/strftime.m4: Likewise.
37465
37466         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
37467         AC_CHECK_DECLS, now that autoconf requires that.
37468
37469 2000-05-22  Jim Meyering  <meyering@lucent.com>
37470
37471         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37472         * m4/lstat.m4: Likewise.
37473
37474 2000-05-22  Jim Meyering  <meyering@lucent.com>
37475
37476         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
37477
37478 2000-05-20  Jim Meyering  <meyering@lucent.com>
37479
37480         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
37481         (jm_PREREQ): Use it.
37482
37483 2000-05-18  Jim Meyering  <meyering@lucent.com>
37484
37485         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
37486         back, too, since it may have been modified by allocate_entry.
37487         (hash_delete): Rewrite to use neither the assignment operator
37488         nor the comma operator in an if-expression.
37489
37490 2000-05-15  Paul Eggert  <eggert@twinsun.com>
37491
37492         * lib/closeout.c:
37493         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
37494         Remove; no longer needed.
37495         "quotearg.h": Add include.
37496         (file_name): Do not bother to explicitly initialize to NULL; it's less
37497         efficient on some hosts.
37498         (close_stdout_status): Remove test as to whether stdout was already
37499         closed; it breaks for the case "echo x | sort >&-".
37500         Quote file name colons.
37501         Do not assume that _("write error") lacks format strings.
37502
37503 2000-05-15  Jim Meyering  <meyering@lucent.com>
37504
37505         * lib/version-etc.c (version_etc_copyright): Update the copyright
37506         string used in all --version output.
37507
37508 2000-05-14  Jim Meyering  <meyering@lucent.com>
37509
37510         * lib/closeout.c (close_stdout_set_file_name): New function.
37511         (close_stdout_status): Use new file-scoped global.
37512         Return right away if fstat says the stdout file descriptor is invalid.
37513         * lib/closeout.h (close_stdout_set_file_name): Declare.
37514
37515 2000-05-10  Jim Meyering  <meyering@lucent.com>
37516
37517         * lib/closeout.c [default_exit_status]: New file-scoped variable.
37518         (close_stdout_set_status): New function.
37519         * lib/closeout.h (close_stdout_set_status): Declare.
37520
37521 2000-05-09  Jim Meyering  <meyering@lucent.com>
37522
37523         * m4/gettext.m4: Rename this...
37524         * m4/libintl.m4: ...to this.
37525
37526 2000-05-08  Jim Meyering  <meyering@lucent.com>
37527
37528         * lib/long-options.c: Don't include closeout.h.
37529         (parse_long_options): Don't call close_stdout for --version.
37530
37531 2000-05-06  Paul Eggert  <eggert@twinsun.com>
37532
37533         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
37534         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
37535         2.1.3 bug.  This avoids a clash when files like regex.c define
37536         _GNU_SOURCE.
37537
37538 2000-05-06  Jim Meyering  <meyering@lucent.com>
37539
37540         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
37541         (AC_REPLACE_FUNCS): Add strnlen.
37542
37543         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
37544         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
37545
37546         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
37547         AC_SEARCH_LIBS call for nanosleep.
37548         (LIB_NANOSLEEP): Set and AC_SUBST.
37549
37550 2000-05-06  Jim Meyering  <meyering@lucent.com>
37551
37552         * lib/strnlen.c: Undefine __strnlen and strnlen.
37553         [!weak_alias]: Define __strnlen to strnlen.
37554
37555         * lib/atexit.c: New file, from libiberty.
37556
37557 2000-05-06  Jim Meyering  <meyering@lucent.com>
37558
37559         * lib/closeout.c (close_stdout_status): Also check for errors on the
37560         stderr stream.
37561
37562 2000-05-05  Jim Meyering  <meyering@lucent.com>
37563
37564         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
37565         AC_SEARCH_LIBS call for clock_gettime.
37566         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
37567
37568         * m4/search-libs.m4: Update from autoconf.
37569
37570         su doesn't work on Solaris 2.6.
37571         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
37572         <shadow.h>.  Reported by Dragos Harabor.
37573
37574 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
37575
37576         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
37577         memcpy instead of xmalloc, xrealloc, path_concat.
37578         (locale_charset): Treat empty environment variables as absent.
37579         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
37580
37581 2000-05-04  Jim Meyering  <meyering@lucent.com>
37582
37583         * lib/getopt.c: Update from glibc.
37584         * lib/obstack.c: Likewise.
37585         * lib/obstack.h: Likewise.
37586         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
37587         file
37588
37589         * lib/regex.h: Likewise.
37590         * lib/strndup.c: Likewise.
37591         * lib/strnlen.c: New file, from glibc.
37592
37593 2000-05-03  Jim Meyering  <meyering@lucent.com>
37594
37595         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
37596
37597 2000-05-02  Paul Eggert  <eggert@twinsun.com>
37598
37599         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
37600         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
37601         compile-time test, rather than inspecting host and OS, to
37602         decide whether to define _LARGEFILE_SOURCE.
37603
37604 2000-05-01  Jim Meyering  <meyering@lucent.com>
37605
37606         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
37607
37608         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
37609         Based on a patch from Bruno Haible.
37610
37611 2000-05-01  Jim Meyering  <meyering@lucent.com>
37612
37613         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
37614
37615 2000-04-29  Jim Meyering  <meyering@lucent.com>
37616
37617         * lib/path-concat.c: Declare strdup only if it's not defined.
37618         * lib/canon-host.c: Likewise.
37619
37620 2000-04-28  Jim Meyering  <meyering@lucent.com>
37621
37622         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
37623         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
37624         is included first, then limits.h is included by locale.h by libintl.h.
37625         From John David Anglin.
37626
37627 2000-04-25  Jim Meyering  <meyering@lucent.com>
37628
37629         * lib/makepath.c (S_IRWXUGO): Define.
37630         (make_path): Always perform explicit chmod if MODE specifies any
37631         of the `special' permission bits.  Prompted by a bug report against
37632         install from Mate Wierdl and Joost van Baal.
37633
37634 2000-04-18  Jim Meyering  <meyering@lucent.com>
37635
37636         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
37637         (jm_PREREQ): Use it.
37638
37639 2000-04-18  Jim Meyering  <meyering@lucent.com>
37640
37641         * lib/README: New file.
37642
37643         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
37644         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
37645
37646 2000-04-17  Jim Meyering  <meyering@lucent.com>
37647
37648         Get it right :-)
37649         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
37650         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
37651         Suggestion from Akim Demaille.
37652
37653 2000-04-17  Jim Meyering  <meyering@lucent.com>
37654
37655         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
37656         the definition of it to rpl_strftime also defined-away the system's
37657         declaration.
37658
37659 2000-04-15  Jim Meyering  <meyering@lucent.com>
37660
37661         Use `C' to denote so-called `contiguous' files, the same way
37662         that tar does.
37663         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
37664         (ftypelet): Use S_ISCTG.
37665         From Michael Deutschmann.
37666
37667 2000-04-14  Jim Meyering  <meyering@lucent.com>
37668
37669         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
37670         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
37671         clobbered.
37672
37673 2000-04-14  Jim Meyering  <meyering@lucent.com>
37674
37675         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
37676
37677 2000-04-13  Jim Meyering  <meyering@lucent.com>
37678
37679         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
37680         AH_VERBATIM to insert required #ifndef into config.h.in.
37681         Suggestion from Akim Demaille.
37682
37683 2000-04-12  Jim Meyering  <meyering@lucent.com>
37684
37685         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
37686         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
37687         Christian Krackowizer.
37688
37689         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
37690         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
37691         (AC_SYS_LARGEFILE): Require.
37692         (AM_C_PROTOTYPES): Require.
37693
37694 2000-04-08  Jim Meyering  <meyering@lucent.com>
37695
37696         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
37697         names don't conflict.  Reported by Eli Zaretskii.
37698
37699 2000-04-07  Jim Meyering  <meyering@lucent.com>
37700
37701         * lib/putenv.c: Move inclusion of errno.h so it follows that of
37702         sys/types.h, to work around system header problems on AIX 3.2.5.
37703         From Bruno Haible.
37704
37705 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
37706
37707         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
37708         bug.  Deal with the different error behavior of Irix iconv.
37709
37710 2000-04-05  Paul Eggert  <eggert@twinsun.com>
37711
37712         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
37713         IRIX if the installer said otherwise.
37714
37715 2000-04-05  Jim Meyering  <meyering@lucent.com>
37716
37717         Portability tweaks required for ultrix4.3.
37718         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
37719         (jm_CHECK_DECLS): Add getutent to the list of functions.
37720         (_jm_DECL_HEADERS): Add utmpx.h.
37721         From John David Anglin.
37722
37723         * m4/strftime.m4: Back out the 2000-04-02 change.
37724         Instead of that change, simply undefine putenv in the test program.
37725
37726 2000-04-05  Jim Meyering  <meyering@lucent.com>
37727
37728         Portability tweaks required for ultrix4.3.
37729         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
37730         getutent.
37731         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
37732         * lib/canon-host.c: Declare strdup.
37733         * lib/path-concat.c: Likewise.
37734         From John David Anglin.
37735
37736 2000-04-04  Jim Meyering  <meyering@lucent.com>
37737
37738         Be more DOS 8.3-friendly.
37739         * lib/ref-add.sin: Renamed from ref-add.sed.in.
37740         * lib/ref-del.sin: Renamed from ref-del.sed.in.
37741         * lib/Makefile.am: Reflect renaming.
37742         Reported by Eli Zaretskii.
37743
37744         Use a temporary file name that won't clash with `charset.alias'
37745         in the DOS 8.3 name space.
37746         * lib/Makefile.am (charset_tmp): Define.
37747         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
37748         (uninstall-local): Likewise.
37749         Reported by Eli Zaretskii.
37750
37751 2000-04-03  Jim Meyering  <meyering@lucent.com>
37752
37753         * m4/gettext.m4: Fix typo in comment.
37754
37755         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
37756         textutils/configure.in).  Suggestion from Paul Eggert.
37757         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
37758
37759 2000-04-02  Paul Eggert  <eggert@twinsun.com>
37760
37761         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
37762         variable in the shell rather than using putenv, which isn't
37763         portable.  This avoids the configure-time inter-test dependency
37764         on the potentially-renamed putenv function.
37765
37766 2000-03-30  Paul Eggert  <eggert@twinsun.com>
37767
37768         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
37769         before checking struct stat.st_blksize, so that
37770         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
37771
37772 2000-03-29  Paul Eggert  <eggert@twinsun.com>
37773
37774         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
37775         since strftime.c uses HAVE_STRFTIME to decide whether to use
37776         the underlying strftime.
37777
37778 2000-03-29  Paul Eggert  <eggert@twinsun.com>
37779
37780         * lib/time/strftime.c (my_strftime): Make sure we call the system
37781         strftime, not ourselves, when invoking the underlying strftime.
37782
37783 2000-03-24  Jim Meyering  <meyering@lucent.com>
37784
37785         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
37786         (charset_alias): Define.
37787         (install-exec-local): Factor out common code.
37788         (uninstall-local): Split lines longer than 80.
37789         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
37790         (SUFFIXES): Define.
37791         (.sed.in.sed): New rule.  Don't redirect directly to $@.
37792         (CLEANFILES): Add ref-add.sed and ref-del.sed.
37793
37794 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
37795
37796         * lib/config.charset: Output a line containing "Packages using this
37797         file".
37798         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
37799         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
37800         ref-del.sed): New rules.
37801
37802 2000-03-17  Jim Meyering  <meyering@lucent.com>
37803
37804         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
37805         Otherwise, include <strings.h>
37806
37807 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
37808
37809         * lib/unicodeio.c (utf8_wctomb): New function.
37810         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
37811         format instead of in UCS-4 with platform dependent endianness.
37812
37813 2000-03-10  Jim Meyering  <meyering@lucent.com>
37814
37815         * m4/lib-check.m4: Look for getspnam in -lgen, too.
37816         From Marco Franzen.
37817
37818 2000-03-07  Paul Eggert  <eggert@twinsun.com>
37819
37820         * lib/savedir.c (savedir): Work even if directory size is
37821         negative; this can happen with some screwy NFS configurations.
37822
37823 2000-03-06  Jim Meyering  <meyering@lucent.com>
37824
37825         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
37826         if it's NULL (because we ran out of memory).  From Bruno Haible.
37827
37828 2000-03-05  Jim Meyering  <meyering@lucent.com>
37829
37830         * lib/localcharset.c ("path-concat.h"): Include.
37831         (get_charset_aliases): Use path_concat instead of ANSI string
37832         concatenation.
37833
37834         * lib/unicodeio.h (PARAMS): Define.
37835         Use it to guard prototype.
37836
37837 2000-03-04  Jim Meyering  <meyering@lucent.com>
37838
37839         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
37840         for lib/localcharset.c.
37841
37842 2000-03-04  Jim Meyering  <meyering@lucent.com>
37843
37844         * lib/Makefile.am (install-exec-local): Create $(libdir) before
37845         installing into it.
37846         (uninstall-local): Uncomment this rule so `make distcheck' works
37847         once again.
37848
37849         * lib/unicodeio.c (<errno.h>): Include it.
37850         (errno): Declare if not defined.
37851
37852         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
37853
37854         * lib/config.charset: New version, incorporating remarks from a linux
37855         i18n mailing list.  From Bruno Haible.
37856
37857 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
37858
37859         * m4/codeset.m4: New file.
37860         * m4/iconv.m4: New file.
37861         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
37862
37863 2000-03-03  Jim Meyering  <meyering@lucent.com>
37864
37865         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
37866
37867 2000-03-02  Jim Meyering  <meyering@lucent.com>
37868
37869         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
37870         the messages come out on separate lines.
37871
37872         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
37873         rather than jm_CHECK_DECLARATIONS.
37874         * m4/decl.m4: Remove now-unused file.
37875
37876         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
37877         geteuid.
37878
37879 2000-03-02  Jim Meyering  <meyering@lucent.com>
37880
37881         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
37882
37883 2000-03-01  Jim Meyering  <meyering@lucent.com>
37884
37885         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
37886         * lib/unicodeio.c: Likewise.
37887
37888 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
37889
37890         * lib/config.charset: New file.
37891         * lib/localcharset.c: New file.
37892         * lib/unicodeio.h, lib/unicodeio.c: New files.
37893         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
37894         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
37895         (noinst_HEADERS): Add unicodeio.h.
37896         (all-local, install-exec-local, charset.alias): New targets.
37897
37898 2000-02-28  Paul Eggert  <eggert@twinsun.com>
37899
37900         * lib/quotearg.c (ALERT_CHAR): New macro.
37901         (quotearg_buffer_restyled): Use it.
37902
37903 2000-02-27  Jim Meyering  <meyering@lucent.com>
37904
37905         * m4/check-decl.m4: Add getenv to the list.
37906
37907 2000-02-27  Jim Meyering  <meyering@lucent.com>
37908
37909         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
37910         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
37911
37912         * lib/backupfile.c: Guard inclusion of stdlib.h with
37913         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
37914         Declare malloc if needed.
37915
37916         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
37917         `#ifndef HAVE_DECL..'
37918         now that autoconf always defines the HAVE_DECL_ symbols.
37919         * lib/human.c: Likewise.
37920         * lib/same.c: Likewise.
37921         * lib/strtoumax.c: Likewise.
37922
37923         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
37924         declaration check was not run.
37925         * lib/hash.c: Likewise.
37926         * lib/human.c: Likewise.
37927         * lib/same.c: Likewise.
37928         * lib/strtoumax.c: Likewise.
37929
37930         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
37931         `.', then first look up the entire `.'-containing string as a login
37932         name.
37933
37934 2000-02-23  Jim Meyering  <meyering@lucent.com>
37935
37936         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
37937         in place of my hack.
37938
37939 2000-02-18  Paul Eggert  <eggert@twinsun.com>
37940
37941         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
37942         (textint): New typedef.
37943         (parser_control): Member year changed from int to textint.
37944         All uses changed.
37945         (YYSTYPE): Removed; replaced by %union with int and textint members.
37946         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
37947         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
37948         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
37949         (tSNUMBER, tUNUMBER): Now of type <textintval>.
37950         (date, number, to_year): Use width of number in digits, not its value,
37951         to determine whether it's a 2-digit year, or a 2-digit time.
37952         (yylex): Store number of digits of numeric tokens.
37953         Reported by John Kendall.
37954
37955         (parser_control): Changed from struct parser_control to typedef (for
37956         consistency).  All uses changed.
37957
37958         (tID): Removed; not used.
37959         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
37960
37961 2000-02-14  Paul Eggert  <eggert@twinsun.com>
37962
37963         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
37964         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
37965
37966 2000-02-12  Jim Meyering  <meyering@lucent.com>
37967
37968         * lib/userspec.c (ISDIGIT): Define it.
37969         (isdigit): Remove definition.
37970         (is_number): Use ISDIGIT, not isdigit.
37971         <libintl.h>: Include.
37972         (_ and N_): Define.
37973         (parse_user_spec): Mark translatable strings.
37974
37975 2000-02-10  Jim Meyering  <meyering@lucent.com>
37976
37977         With these changes, nanosleep.[ch] are finally enough like the other
37978         lib/* replacement files to compile on a few more losing systems.
37979
37980         * lib/nanosleep.h: Don't include config.h.
37981         Remove prototype from declaration of nanosleep.
37982         (PARAMS): Remove now-unneeded definition.
37983         * lib/nanosleep.c: #undef nanosleep.
37984         (rpl_nanosleep): Rename from nanosleep.
37985
37986 2000-02-10  Jim Meyering  <meyering@lucent.com>
37987
37988         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
37989         gnu_nanosleep to rpl_nanosleep.
37990
37991 2000-02-09  Jim Meyering  <meyering@lucent.com>
37992
37993         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
37994         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
37995
37996 2000-02-08  Akim Demaille  <akim@epita.fr>
37997
37998         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
37999         `[' and `]' and remove uses of `changequote'.
38000         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
38001         (AC_SYS_LARGEFILE): Likewise.
38002         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38003         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
38004         of changequote.
38005         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
38006         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
38007         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
38008         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
38009
38010 2000-02-05  Jim Meyering  <meyering@lucent.com>
38011
38012         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
38013         Remove explicit use of AC_HEADER_TIME.  It is required by
38014         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
38015         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
38016         in autoconf whereby the expansion of the latter ended up preceding
38017         the expansion of its prerequisite, AC_HEADER_TIME.
38018         Reported by Volker Borchert.
38019
38020 2000-02-03  Jim Meyering  <meyering@lucent.com>
38021
38022         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
38023
38024 2000-02-03  Jim Meyering  <meyering@lucent.com>
38025
38026         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
38027         rather than with `#if HAVE_UTMPNAME'.
38028
38029 2000-02-02  Jim Meyering  <meyering@lucent.com>
38030
38031         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
38032         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
38033         Reported by Eli Zaretskii.
38034
38035 2000-02-01  Jim Meyering  <meyering@lucent.com>
38036
38037         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
38038
38039 2000-01-31  Jim Meyering  <meyering@lucent.com>
38040
38041         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
38042         functions.  Add the time.h and sys/time.h headers along with the
38043         AC_REQUIRE'ment of AC_HEADER_TIME.
38044
38045 2000-01-31  Jim Meyering  <meyering@lucent.com>
38046
38047         * lib/nanosleep.h (nanosleep): Guard declaration with
38048         `#if ! HAVE_DECL_NANOSLEEP'.
38049         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
38050         the declaration in that vendor's sys/timers.h.
38051         Reported by Christian Krackowizer.
38052
38053         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
38054         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
38055         (ISPRINT): Likewise.
38056         Reported by Tom Tromey.
38057
38058 2000-01-30  Jim Meyering  <meyering@lucent.com>
38059
38060         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
38061
38062         * m4/prereq.m4 (utmp_includes): Define.
38063         Check for ut_user and ut_name members in both struct utmpx
38064         and struct utmp.
38065
38066 2000-01-30  Jim Meyering  <meyering@lucent.com>
38067
38068         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
38069         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
38070         header files where only utmpx.ut_user is declared.
38071
38072         * lib/readutmp.h (UT_USER): Define.
38073
38074 2000-01-29  Jim Meyering  <meyering@lucent.com>
38075
38076         * m4/lib-check.m4: New file containing library-related checks from
38077         fileutils and sh-utils (textutils had none).
38078
38079 2000-01-28  Jim Meyering  <meyering@lucent.com>
38080
38081         * m4/perl.m4: Change format of warning message to look more like that
38082         from the missing script.  Suggestion from François Pinard.
38083
38084 2000-01-25  Jim Meyering  <meyering@lucent.com>
38085
38086         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
38087         well as time.h in the compile check.
38088         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
38089         Fix typo in cross-compiling case: s/yes/no/.
38090
38091 2000-01-23  Jim Meyering  <meyering@lucent.com>
38092
38093         * m4/jm-macros.m4: Move df-related tests here from
38094         fileutils/configure.in
38095
38096         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
38097         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
38098
38099         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
38100         s/space/ac_fsusage_space/.
38101         (jm_FILE_SYSTEM_USAGE): Take two parameters.
38102
38103         * m4/ftruncate.m4: New file (derived from part of
38104         fileutils/configure.in).
38105         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
38106         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
38107
38108         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
38109         AC_SUBST these here, rather than just in sh-util/configure.in, so
38110         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
38111         all the same.
38112         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
38113         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
38114         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
38115         (AC_SUBST(POW_LIBM)): Likewise.
38116         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
38117
38118 2000-01-23  Jim Meyering  <meyering@lucent.com>
38119
38120         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
38121         obstack.c.
38122
38123 2000-01-22  Jim Meyering  <meyering@lucent.com>
38124
38125         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
38126
38127         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
38128
38129         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
38130         configure.in
38131         (AC_CHECK_HEADERS): Likewise for sh-utils.
38132         (AC_CHECK_HEADERS): Likewise for textutils.
38133         Merge the three lists of headers.
38134
38135         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
38136         from fileutils' configure.in.
38137
38138         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
38139         code. Moved tests into their own function (_jm_DECL_HEADERS) in
38140         check-decl.m4.
38141
38142         * m4/check-decl.m4: Use #if rather than #ifdef.
38143         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
38144         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
38145         (_jm_DECL_HEADERS): Define new function.
38146         (jm_CHECK_DECLARATIONS): Require it.
38147
38148 2000-01-22  Jim Meyering  <meyering@lucent.com>
38149
38150         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
38151         [! HAVE_DECL_STRTOULL]: Declare strtoull.
38152         Required for some AIX systems.  Reported by Christian Krackowizer.
38153         [TESTING] (main): New function.
38154
38155         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
38156         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
38157         letters.
38158
38159         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
38160         iswprint.
38161
38162         * lib/strverscmp.c (ISDIGIT): Define.
38163         (strverscmp): Use ISDIGIT, not isdigit.
38164
38165 2000-01-19  Jim Meyering  <meyering@lucent.com>
38166
38167         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
38168         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
38169         defines `struct timespec' in <sys/time.h>
38170
38171         * m4/c-bs-a.m4: Remove uses of changequote altogether.
38172         Thanks to Akim for explaining.
38173
38174 2000-01-17  Paul Eggert  <eggert@twinsun.com>
38175
38176         * lib/nanosleep.c (nanosleep):
38177         Don't use SA_INTERRUPT to decide whether to call sigaction, as
38178         POSIX.1 doesn't require SA_INTERRUPT and some systems
38179         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
38180         it's been part of POSIX.1 since day 1 (in 1988).
38181
38182 2000-01-17  Jim Meyering  <meyering@lucent.com>
38183
38184         * lib/interlock: Remove unused file.  Reported by François Pinard.
38185
38186 2000-01-16  Paul Eggert  <eggert@twinsun.com>
38187
38188         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
38189         alert, backslash, formfeed, and vertical tab unnecessarily in
38190         shell quoting style.
38191
38192 2000-01-16  Jim Meyering  <meyering@lucent.com>
38193
38194         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
38195         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
38196         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
38197         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
38198
38199 2000-01-16  Jim Meyering  <meyering@lucent.com>
38200
38201         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
38202         because the latter didn't work.
38203
38204 2000-01-15  Jim Meyering  <meyering@lucent.com>
38205
38206         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
38207         (AC_REPLACE_FUNCS): Add memcpy and memset.
38208         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
38209         Add strpbrk.
38210         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
38211
38212 2000-01-12  Jim Meyering  <meyering@lucent.com>
38213
38214         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
38215         (jm_PREREQ): Use it.
38216         (jm_PREREQ_READUTMP): New macro.
38217         (jm_PREREQ): Use it.
38218
38219 2000-01-11  Paul Eggert  <eggert@twinsun.com>
38220
38221         Quote multibyte characters correctly.
38222         * m4/c-bs-a.m4: New file.
38223         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
38224         (jm_PREREQ): Use it.
38225
38226 2000-01-11  Paul Eggert  <eggert@twinsun.com>
38227
38228         * m4/uintmax_t.m4: Port to autoconf 2.13.
38229
38230 2000-01-08  Jim Meyering  <meyering@ascend.com>
38231
38232         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
38233         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
38234
38235 2000-01-04  Jim Meyering  <meyering@ascend.com>
38236
38237         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
38238         jm_STRUCT_DIRENT_D_TYPE.
38239         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
38240         jm_STRUCT_DIRENT_D_INO.
38241         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
38242         jm_STRUCT_UTIMBUF.
38243         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
38244         renamings.
38245         * m4/utime.m4: Likewise.
38246
38247         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
38248         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
38249
38250 2000-01-03  Paul Eggert  <eggert@twinsun.com>
38251
38252         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
38253         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
38254
38255 2000-01-02  Jim Meyering  <meyering@ascend.com>
38256
38257         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
38258         remember if this is necessary.
38259
38260 1999-12-26  Jim Meyering  <meyering@ascend.com>
38261
38262         * m4/jm-macros.m4: Use it here.
38263         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
38264
38265 1999-12-23  Jim Meyering  <meyering@ascend.com>
38266
38267         * m4/jm-macros.m4: Check for clock_gettime (moved from
38268         fileutils/configure.in)
38269         Check for gettimeofday.
38270
38271 1999-12-20  Jim Meyering  <meyering@ascend.com>
38272
38273         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
38274         autoconf-2.14a-1999-12-20.
38275
38276 1999-12-19  Jim Meyering  <meyering@ascend.com>
38277
38278         * m4/lstat-slash.m4: New file.
38279         * m4/jm-macros.m4: Use the new macro:
38280         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38281
38282 1999-12-07  Jim Meyering  <meyering@ascend.com>
38283
38284         * m4/perl.m4: Require that File::Compare be available, too.
38285         Too many systems seem to lack it.
38286
38287         * m4/strftime.m4: Add checks for most of the cpp macros tested in
38288         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
38289
38290 1999-11-18  Paul Eggert  <eggert@twinsun.com>
38291
38292         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
38293         problem with the QNX 4.25 shell, which doesn't propagate exit
38294         status of failed commands inside shell assignments.
38295
38296 1999-11-17  Jim Meyering  <meyering@ascend.com>
38297
38298         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
38299
38300 1999-11-07  Jim Meyering  <meyering@ascend.com>
38301
38302         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
38303
38304 1999-11-06  Jim Meyering  <meyering@ascend.com>
38305
38306         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
38307         * m4/jm-macros.m4 (jm_MACROS): Use it here.
38308
38309 1999-11-05  Jim Meyering  <meyering@ascend.com>
38310
38311         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
38312         configure.in of textutils, fileutils, and sh-utils into this one
38313         (shared between those packages) file.
38314         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
38315         AC_STRUCT_ST_BLKSIZE.
38316
38317 1999-11-03  Jim Meyering  <meyering@ascend.com>
38318
38319         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
38320         of AC_CHECK_TYPE checks includes unistd.h.
38321         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
38322         Suggestion from Akim Demaille.
38323
38324 1999-10-30  Jim Meyering  <meyering@ascend.com>
38325
38326         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
38327         m4-quoted string.
38328         * m4/ls-mntd-fs.m4: Likewise.
38329         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
38330         * m4/jm-winsz1.m4: Likewise.
38331
38332         * m4/const.m4: Remove file, since the fix made it into the experimental
38333         version of autoconf.
38334         * m4/mktime.m4: Likewise.
38335
38336         * m4/check-type.m4: Remove file, now that the latest version of
38337         AC_CHECK_TYPE takes a third arg to specify additional #includes.
38338
38339         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
38340         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
38341         AC_CHECK_TYPE.
38342
38343 1999-10-04  Jim Meyering  <meyering@ascend.com>
38344
38345         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
38346
38347 1999-09-22  Paul Eggert  <eggert@twinsun.com>
38348
38349         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
38350         2.95.1 bug with HP-UX 10.20.
38351
38352 1999-09-17  Jim Meyering  <meyering@ascend.com>
38353
38354         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
38355         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
38356         due to missing strdup (against sh-utils-2.0).
38357
38358 1999-08-29  Jim Meyering  <meyering@ascend.com>
38359
38360         * m4/jm-macros.m4: Require jm_BISON.
38361         * m4/bison.m4: New file.
38362
38363 1999-08-17  Paul Eggert  <eggert@twinsun.com>
38364
38365         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
38366         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
38367
38368 1999-08-05  Jim Meyering  <meyering@ascend.com>
38369
38370         * m4/getline.m4: Rename test file from conftestdata to conftest.data
38371         to avoid conflicts with `conftest' on 8+3 filesystems.
38372         Suggestion from Eli Zaretskii.
38373
38374 1999-08-04  Jim Meyering  <meyering@ascend.com>
38375
38376         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
38377         fileutils and sh-utils (textutils's getline test was inadequate).
38378         (AM_FUNC_GETLINE): Run this test.
38379         (AC_CHECK_FUNCS): Check for getdelim.
38380         Reported by Bob Proulx.
38381
38382 1999-08-02  Jim Meyering  <meyering@ascend.com>
38383
38384         * m4/jm-macros.m4: Add a comment.
38385
38386 1999-08-01  Paul Eggert  <eggert@twinsun.com>
38387
38388         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
38389         <inttypes.h> defines strtoumax as a macro (and not as a
38390         function).
38391
38392 1999-08-01  Paul Eggert  <eggert@twinsun.com>
38393
38394         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
38395         that we can shift, multiply and divide unsigned long long
38396         values; Ultrix cc can't do it.
38397
38398 1999-08-01  Paul Eggert  <eggert@twinsun.com>
38399
38400         * m4/mktime.m4: New file, which is a preview of what should appear
38401         in the next public autoconf release.
38402
38403 1999-08-01  Paul Eggert  <eggert@twinsun.com>
38404
38405         * m4/lfs.m4: Remove this file.
38406         * m4/largefile.m4: New file.  It contains the old contents of
38407         lfs.m4, except that all names with prefix AC_LFS have been
38408         changed to use the prefix AC_SYS_LARGEFILE instead, to be
38409         compatible with future autoconf versions.  Also, some minor m4
38410         quoting problems have been fixed.
38411
38412 1999-08-01  Paul Eggert  <eggert@twinsun.com>
38413
38414         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
38415         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
38416         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
38417         and simplify the shell code.
38418
38419 1999-08-01  Jim Meyering  <meyering@ascend.com>
38420
38421         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
38422         m4.
38423
38424 1999-07-20  Jim Meyering  <meyering@ascend.com>
38425
38426         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
38427
38428 1999-07-15  Jim Meyering  <meyering@ascend.com>
38429
38430         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
38431
38432 1999-05-22  Jim Meyering  <meyering@ascend.com>
38433
38434         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
38435
38436 1999-05-20  Jim Meyering  <meyering@ascend.com>
38437
38438         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
38439         Add a colon after each `then' in case $4 is empty.
38440
38441 1999-05-16  Jim Meyering  <meyering@ascend.com>
38442
38443         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
38444
38445 1999-05-10  Jim Meyering  <meyering@ascend.com>
38446
38447         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
38448
38449         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
38450         AC_FUNC_MKTIME.
38451
38452 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
38453
38454         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
38455
38456 1999-05-04  Paul Eggert  <eggert@twinsun.com>
38457
38458         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
38459         not CPPFLAGS, so that linking works correctly in IRIX.
38460
38461 1999-04-30  Paul Eggert  <eggert@twinsun.com>
38462
38463         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
38464
38465 1999-04-20  Paul Eggert  <eggert@twinsun.com>
38466
38467         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
38468         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
38469         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
38470         jm_AC_TYPE_UNSIGNED_LONG_LONG.
38471         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
38472
38473         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
38474
38475 1999-04-20  Jim Meyering  <meyering@ascend.com>
38476
38477         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
38478         AC_REPLACE xstroull if necessary.  From Paul Eggert.
38479         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
38480
38481 1999-04-18  Jim Meyering  <meyering@ascend.com>
38482
38483         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
38484         * m4/jm-macros.m4: Use it.
38485
38486 1999-04-06  Jim Meyering  <meyering@ascend.com>
38487
38488         * m4/strftime.m4: Remove test for %f.
38489
38490 1999-03-29  Jim Meyering  <meyering@ascend.com>
38491
38492         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
38493         superset of the AC_TYPE_* checks in the textutils, fileutils,
38494         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
38495         AC_TYPE_PID_T.
38496
38497 1999-03-28  Jim Meyering  <meyering@ascend.com>
38498
38499         * m4/jm-macros.m4: Define GNU_PACKAGE here.
38500         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
38501         replaced e.g., in the *.sh files of the sh-utils.
38502
38503 1999-03-20  Jim Meyering  <meyering@ascend.com>
38504
38505         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
38506         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
38507         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
38508
38509 1999-03-19  Jim Meyering  <meyering@ascend.com>
38510
38511         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
38512
38513 1999-03-12  Jim Meyering  <meyering@ascend.com>
38514
38515         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
38516
38517 1999-03-07  Jim Meyering  <meyering@ascend.com>
38518
38519         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
38520         declared.
38521
38522 1999-02-17  Jim Meyering  <meyering@ascend.com>
38523
38524         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
38525         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
38526
38527 1999-02-07  Jim Meyering  <meyering@ascend.com>
38528
38529         * m4/group-member.m4: New file -- extracted from sh-utils'
38530         configure.in.
38531
38532         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
38533         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
38534
38535 1999-02-06  Jim Meyering  <meyering@ascend.com>
38536
38537         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
38538         * m4/fnmatch.m4: Likewise.
38539         * m4/getgroups.m4: Likewise.
38540         * m4/lstat.m4: Likewise.
38541         * m4/malloc.m4: Likewise.
38542         * m4/putenv.m4: Likewise.
38543         * m4/realloc.m4: Likewise.
38544         * m4/regex.m4: Likewise.
38545         * m4/stat.m4: Likewise.
38546         * m4/strftime.m4: Likewise.
38547         Suggestion from Alain Magloire.
38548
38549         * m4/chown.m4: Use `.$ac_objext', not `.o'.
38550         * m4/fnmatch.m4: Likewise.
38551         * m4/getgroups.m4: Likewise.
38552         * m4/getline.m4: Likewise.
38553         * m4/lstat.m4: Likewise.
38554         * m4/malloc.m4: Likewise.
38555         * m4/memcmp.m4: Likewise.
38556         * m4/putenv.m4: Likewise.
38557         * m4/realloc.m4: Likewise.
38558         * m4/regex.m4: Likewise.
38559         * m4/stat.m4: Likewise.
38560         * m4/strftime.m4: Likewise.
38561         Suggestion from Alain Magloire.
38562
38563         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
38564         an argument.
38565
38566         * m4/regex.m4: Add a run-time Test for proper operation of
38567         re_compile_pattern.
38568
38569 1999-01-31  Jim Meyering  <meyering@ascend.com>
38570
38571         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
38572
38573 1999-01-30  Jim Meyering  <meyering@ascend.com>
38574
38575         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
38576
38577         * m4/jm-mktime.m4: Make this a wrapper around the official
38578         AM_FUNC_MKTIME rather than my private copy, now that the official one
38579         is up to date.
38580         * m4/mktime.m4: Remove file.
38581
38582         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
38583         * m4/uptime.m4: Likewise.
38584         * m4/uintmax_t.m4: Likewise.
38585
38586 1999-01-28  Jim Meyering  <meyering@ascend.com>
38587
38588         * m4/jm-macros.m4: Use jm_AFS.
38589         * m4/afs.m4: New file (from fileutils' configure.in).
38590
38591         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
38592         * m4/chown.m4: Likewise.
38593         * m4/d-ino.m4: Likewise.
38594         * m4/d-type.m4: Likewise.
38595         * m4/fnmatch.m4: Likewise.
38596         * m4/getgroups.m4: Likewise.
38597         * m4/gettext.m4: Likewise.
38598         * m4/jm-mktime.m4: Likewise.
38599         * m4/jm-winsz2.m4: Likewise.
38600         * m4/lcmessage.m4: Likewise.
38601         * m4/ls-mntd-fs.m4: Likewise.
38602         * m4/malloc.m4: Likewise.
38603         * m4/memcmp.m4: Likewise.
38604         * m4/putenv.m4: Likewise.
38605         * m4/realloc.m4: Likewise.
38606         * m4/st_mtim.m4: Likewise.
38607         * m4/strftime.m4: Likewise.
38608
38609 1999-01-16  Jim Meyering  <meyering@ascend.com>
38610
38611         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
38612         (ARGMATCH_DIE_DECL): Define.
38613
38614 1999-01-12  Jim Meyering  <meyering@ascend.com>
38615
38616         * m4/Makefile.am.in: Rewrite to avoid using fmt.
38617         Reported by Lars Hecking.
38618
38619 1999-01-10  Jim Meyering  <meyering@ascend.com>
38620
38621         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
38622         gross kludge.
38623         * m4/inttypes_h.m4: Likewise.
38624         * m4/lstat.m4: Likewise.
38625         * m4/malloc.m4: Likewise.
38626         * m4/readdir.m4: Likewise.
38627         * m4/realloc.m4: Likewise.
38628         * m4/st_dm_mode.m4: Likewise.
38629         * m4/stat.m4: Likewise.
38630         * m4/utimbuf.m4: Likewise.
38631         * m4/utimes.m4: Likewise.
38632
38633         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
38634         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
38635         comments in config.h.in are meaningful.
38636
38637         * m4/jm-macros.m4: Require autoconf-2.13 here.
38638
38639         * m4/regex.m4: By default, don't use the included regex.c on systems
38640         with glibc 2.  Suggestion from Uli Drepper.
38641
38642 1999-01-02  Jim Meyering  <meyering@ascend.com>
38643
38644         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
38645
38646 1998-12-18  Jim Meyering  <meyering@ascend.com>
38647
38648         * m4/Makefile.am.in (Makefile.am): Simplify rule.
38649         Based on a suggestion from Lars Hecking.
38650
38651 1998-11-16  Paul Eggert  <eggert@twinsun.com>
38652
38653         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
38654
38655 1998-11-16  Jim Meyering  <meyering@ascend.com>
38656
38657         * m4/lfs.m4: Double-quote the `uname...` expression.
38658
38659 1998-11-14  Jim Meyering  <meyering@ascend.com>
38660
38661         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
38662         * m4/stat.m4: Likewise.
38663
38664 1998-11-03  Jim Meyering  <meyering@ascend.com>
38665
38666         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
38667         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
38668
38669 1998-10-18  Jim Meyering  <meyering@ascend.com>
38670
38671         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
38672
38673 1998-10-17  Jim Meyering  <meyering@ascend.com>
38674
38675         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
38676         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
38677         calls for those previously hard-coded headers.  Instead, take a new
38678         parameter.
38679         (jm_CHECK_DECLARATIONS): Reflect interface change.
38680         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
38681         (jm_CHECK_DECL_LOCALTIME_R): New macro.
38682
38683         * m4/mktime.m4: Test for spring-forward gap before long-running test.
38684
38685 1998-10-14  Jim Meyering  <meyering@ascend.com>
38686
38687         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
38688         instead of "TZ=America/Vancouver".  From Paul Eggert.
38689
38690 1998-10-11  Jim Meyering  <meyering@ascend.com>
38691
38692         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
38693         This adds a test for a recently added compatibility fix for mktime.c.
38694         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
38695
38696 1998-09-27  Jim Meyering  <meyering@ascend.com>
38697
38698         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
38699
38700         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
38701         ../configure.in, including a change from Gordon Matzigkeit to allow
38702         cross-compiling for the Hurd.
38703
38704         * m4/glibc.m4: New file/macro to test for the GNU C Library
38705         versions 1 and 2.  From Gordon Matzigkeit.
38706         Indent.
38707
38708 1998-09-21  Jim Meyering  <meyering@ascend.com>
38709
38710         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
38711
38712 1998-08-18  Paul Eggert  <eggert@twinsun.com>
38713
38714         Port nanosecond-resolution times to UnixWare 2.1.2 and
38715         pedantic Solaris 2.6.
38716
38717         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
38718         AC_STRUCT_ST_MTIM.
38719         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
38720         Generate name of ns member, instead of just 1 or undef.
38721         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
38722
38723 1998-08-15  Jim Meyering  <meyering@ascend.com>
38724
38725         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
38726         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
38727         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
38728         instead of jm_TYPE_SSIZE_T.
38729
38730 1998-08-12  Jim Meyering  <meyering@ascend.com>
38731
38732         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
38733
38734 1998-08-02  Jim Meyering  <meyering@ascend.com>
38735
38736         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
38737         in acconfig.h manually.
38738
38739 1998-07-31  Paul Eggert  <eggert@twinsun.com>
38740
38741         * m4/st_mtim.m4: New file.
38742
38743 1998-07-28  Jim Meyering  <meyering@ascend.com>
38744
38745         * m4/utimes.m4: Undef stat.
38746
38747 1998-07-25  Jim Meyering  <meyering@ascend.com>
38748
38749         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
38750         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
38751
38752 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
38753
38754         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
38755         uid and gid actually remain unchanged.
38756
38757 1998-07-07  Jim Meyering  <meyering@ascend.com>
38758
38759         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
38760
38761 1998-07-04  Jim Meyering  <meyering@ascend.com>
38762
38763         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
38764         to prove that this macro can be used in packages without regex.c.
38765
38766 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
38767
38768         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
38769         is to be used.
38770
38771 1998-07-03  Jim Meyering  <meyering@ascend.com>
38772
38773         * m4/gettext.m4: Add -lintl if it's found to be necessary.
38774
38775         * m4/gettext.m4: New file -- from gettext-0.10.35.
38776         * m4/lcmessage.m4: Likewise.
38777         * m4/progtest.m4: Likewise.
38778
38779         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
38780         * m4/jm-macros.m4: Require the new macro.
38781
38782 1998-06-29  Jim Meyering  <meyering@ascend.com>
38783
38784         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
38785         for the definition of NGROUPS (used in a system header included
38786         by sys/mount.h).
38787
38788 1998-06-28  Jim Meyering  <meyering@ascend.com>
38789
38790         * m4/ls-mntd-fs.m4: New file.
38791         * m4/fstypename.m4: New file.
38792
38793         * m4/jm-macros.m4: Require the new macro.
38794         * m4/jm-glibc-io.m4: New file.
38795
38796 1998-05-19  Jim Meyering  <meyering@ascend.com>
38797
38798         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
38799         * m4/lchown.m4: New file.
38800
38801         * m4/Makefile.am.in: New file.
38802         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
38803
38804 1998-05-14  Jim Meyering  <meyering@ascend.com>
38805
38806         * m4/Makefile.am (EXTRA_DIST): Add them.
38807         * m4/jm-macros.m4: New file.
38808         * m4/utimbuf.m4: New file.
38809
38810 1998-05-12  Jim Meyering  <meyering@ascend.com>
38811
38812         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
38813
38814 1998-05-11  Jim Meyering  <meyering@ascend.com>
38815
38816         * m4/isc-posix.m4: New file.
38817
38818 1998-05-10  Jim Meyering  <meyering@ascend.com>
38819
38820         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
38821
38822 1998-05-09  Jim Meyering  <meyering@ascend.com>
38823
38824         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
38825         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
38826         with automake.
38827
38828         * m4/ssize_t.m4: New file.
38829         * m4/mktime.m4: Remove file -- the new automake has this now.
38830
38831 1998-04-26  Jim Meyering  <meyering@ascend.com>
38832
38833         * m4/assert.m4: New file.
38834         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
38835
38836 1998-04-05  Jim Meyering  <meyering@ascend.com>
38837
38838         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
38839         (jm_PREREQ): Use it here.
38840
38841 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
38842
38843         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
38844         in acconfig.h.
38845
38846 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
38847
38848         * m4/prereq.m4: New file.
38849         * m4/error.m4: New file.
38850         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
38851
38852 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
38853
38854         * m4/getline.m4: Don't set am_cv_func_working_getline before the
38855         cache-check for the same variable -- that defeated the purpose of
38856         the test; the test program was never run.  This was a problem only
38857         on systems with losing getline functions -- HP-UX 10.20 is one.
38858         Reported by Bjorn Helgaas.
38859
38860 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
38861
38862         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
38863
38864 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
38865
38866         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
38867
38868         * m4/const.m4: New file.  Use an initializer in this declaration
38869         typedef int charset[2]; const charset x;
38870         Reported by Bob Glickstein.
38871
38872 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
38873
38874         * m4/chown.m4: Fix reversed types on -1 args to chown.
38875         From Kaveh Ghazi.
38876
38877 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
38878
38879         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
38880         Add lseek and memchr.
38881
38882         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
38883         T.E.Dickey <dickey@clark.net> said that some older preprocessors
38884         have a 20-character limit on names.
38885
38886 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
38887
38888         * m4/inttypes_h.m4: New file.
38889         * m4/uintmax_t.m4: New file.
38890         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
38891
38892
38893         -----
38894
38895         Copyright (C) 1997-2008 Free Software Foundation, Inc.
38896
38897         Copying and distribution of this file, with or without
38898         modification, are permitted provided the copyright notice
38899         and this notice are preserved.